[REQ]Alot of Mods(Check Post)

Thread Prefixes upgrade from Mystics to 3.7

Thread prefixes upgrade.


This script upgrades the old Thread Prefixes hack by Mystics to the new thread prefixes found in 3.7+. The only guarantee is that it works on my test server, going from 3.6.8 to 3.7.0B3.

It is a one-run operation. The script reads the details of the old thread prefix system from your database, and then writes new entries for the new system into your database. The code is rough and ready (OK, it's my first ever script), so do NOT use it unless you have backed up your database and are prepared to restore it.

It will create a fully populated prefixset for each forum with prefixes, and then assign the prefixes to the threads in that forum.

The rich text format of the new prefix is set to be bold with square brackets around, although if you want to change that you can edit tpup.php (there is a commented out version of the query, that will make the text plain - it should be obvious).

Instructions.

1. Upgrade to 3.7 and revert all templates.
2. Open dp.php in a text editor and enter your database login details.
3. Upload all 4 .php files to a new folder on your server (or test server).
4. Backup your database.
5. Browse to tpup.php in your browser to run it.
6. When it's done, close the browser window and delete the files from your server.
7. Now you must rebuild all languages in AdminCP > Languages & Phrases > Language Manager > Rebuild All Languages. If you miss this step, nothing will work!
8. Please report any success or failure in this thread.

Versions:
1.00 First go.
1.01 Added the facility to specify a database table prefix.
1.04 Got the table prefix right, thanks to Mystics.
=========================================================
UA Sidebar 3.0.7
CSS Issues were addressed in UAsidebar Version 3.0.5 Please make sure to update your CSS code for your style, upload the newest product and overwrite the previous versions.

A simple variation of the Forum Intro Mod. This will add upto 3 blocks as a sidebar on your forum index pages. Each forum would have it's own 1-3 bocks. You can turn them on or off. Block 1 is the Key block, if it is not enabled no blocks will show regardless of how blocks 2 and 3 are set.

This is the second version and is labelled 3.0.1. 3.0.0 Had an issue with the new profiles. Apparently I used the same name for my wrapper as it does so i quickly changed it.

This will also work with VB 3.6.x

Add your block code in Admincp >>> Forum Manager >>> Whatever Forum near the bottom of the options.
Template edits must be made. Instructions are below. Each edit is clearly labelled to make it easy to find in or remove from your templates.

*** Advertising removed ***
UA_Sidebar Update 3.0.7 changes
  • Fixed error in the Table Header phrase. (Thanks to Sophia for pointing it out

    )
UA_Sidebar Update 3.0.6 changes:
  • Added a right sidebar template and CSS for it. (Requested)
UA_Sidebar Update 3.0.5 changes:
  • CSS bug fixed a slight change in the CSS code.
  • 1 template change to address CSS issue.
UA_Sidebar Update 3.0.4 changes:
  • Added missing wrapit div and CSS
UA_Sidebar Update 3.0.3 changes:
  • Templates now included in product file
  • Changed Div ID to UAsidebar so it doesn't conflict with other mods past/present/future.
    If updating you must change #sidebar to #UAsidebar in your CSS
  • Overwrite Product is now possible.
  • Edits are easier with less code to paste
Features:
  • Each forum can have it's own 1,2 or 3 sidebar blocks controlled in Forum Management
  • You can edit the templates to your needs.
Future Features and Possible Future Features:
  • Optional product file that will include Auto Template edits
  • Option to move sidebar to the right side
  • Last x posts in specific forum (No promises)
  • Default sidebar for all forums (No promises)
  • Users in this forum (No promises)
*** ALWAYS BACKUP YOUR STYLE BEFORE EDITING ***

Known Bugs
  • [FIXED IN 3.0.5]Thread list goes off the page a 165px in Firefox as of Version 3.0.4.
  • [FIXED IN 3.0.5]Sidebar sits above Threadlist in IE as of Version 3.0.4.
CSS CODE
#############################

*Note* You will have to adjust the top margin to line up with your style. 26px worked for me but you may need more or less to line up with the navbar.*END NOTE*

Add this CSS code to the bottom of the Additional CSS Definitions box for the style you are using.

For a left sidebar
Code:
/* Start UASidebar Left CSS */
#UAcontent
{ margin-left: 175px; }
body 
{ height: 100%; overflow: auto; } 
#UAsidebar 
{ float:left; margin-top: 26px; width: 175px; }/* END UA Sidebar CSS */
/* End UA Sidebar Left CSS */
For a right sidebar

Code:
/* Start UASidebar Right CSS */
#UAcontentright
{ margin-right: 180px; }
body 
{ height: 100%; overflow: auto; } 
#UAsidebarright 
{ float:right; margin-top: 26px; width: 175px; }
/* End UA Sidebar Right CSS */
###############################

In the forumdisplay template find

Code:
$navbar
For a left sidebar Add below:

Code:
<!-- Start UA Sidebar Left Top  -->
$ua_sidebar_forumdisplay_bit
<!-- / End UA Sidebar Top  -->
For a right sidebar Add below:

Code:
<!-- Start UA Sidebar Right Top  -->
$ua_sidebar_forumdisplay_bit_right
<!-- / End UA Sidebar Top  -->
(If you used my Forum Intro hack place above or below <!-- / End Forum Intro --> )
####################

In footer template find

Code:
$spacer_close
Above Add:

Code:
<!-- Start UA Sidebar bottom -->
$ua_sidebar_footbit
<!-- End UA Sidebar Bottom -->
 
hello all!

sorry for my english..
I installed thread prefix, but I can't find the possibility to change it.
Example: i put a prefix "problem", I want to change it in "solved". I think it must be a modify in the edit template, right?
 
Back
Top