The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thread Prefixes Details »» | |||||||||||||||||||||||||
Thread Prefixes
Version: 1.6.2 vBulletin Version: 3.6.10 Developer: Michael (Mystics) Koenig (www.vbulletin-germany.com) Modification-Language: English & German & French (thanks to ReadWrite - Note: Readme has not yet been translated to french.) Install-difficulty: Medium File-edits: 5 Template-edits: 10 Brief Description of the Modification This modification allows your users to choose a thread prefix for each thread. To do this you are able to select an appropriate prefix from a list beside the title while posting a new thread - for example 'Help', 'Problem', 'Search' etc. This prefix will be displayed in front of the thread title. The result will be for example: Problem - I can't find this setting Problem is the thread prefix, I can't find this setting is the title of the thread. The prefixes displayed in this list may be defined by a moderator for each of his moderated forums (Forum Tools -> Manage Thread Prefixes); of course an administrator and a super moderator is allowed to do this for every forum. Features
See attachments. Version-History 1.6.2 (2008-05-24 - 9:30 pm CET)
Tested for version: 3.5.0 (and above). Note: If you have used the Thread Category / Prefix Hack in vBulletin 3.0.x, don't worry: all existing prefixes will be imported during the installation. You just have to re-do your thread prefix settings in your vBulletin Options. Update Product
1. Files that need to be edited:
If the modification doesn't work correct after installation, please verify all modifications you have made within the files and the templates. Be sure you have uploaded all edited and new files. The modification was tested extensive and will function properly if installed correct. Thanks to ReadWrite for his french translation. Special Thanks to Andreas for his help with the hooks. Have fun with the modification! Please click Install if you have installed it Mike Supporters / CoAuthors Show Your Support
|
Comments |
#412
|
|||
|
|||
^ Moment of stupidity. It's all in the "thread" table. Will see what I can whip up.
|
#413
|
|||
|
|||
Mwahaha! I've done it. Easy peasy. I'll post some code here - I'm not really one for writing scripts for other people (with the random problems people run into), but this should assist someone else (I've used the ezSQL class here):
PHP Code:
|
#414
|
|||
|
|||
Quote:
If only it were that easy (it doesn't work!!). For each old forum that had prefixes, you need a new prefixset. Table: prefixset prefixsetid, varchar(25), for example if we are reading forumid 14, import14 displayorder, int(10) The prefixset title needs to be inserted into the phrase table: Table: phrase languageid: 0 fieldname: prefix product= vbulletin text = prefix set title (eg "imported from forum 14, Off topic") varname: prefixset_xx_title where xx = prefixsetid eg prefixset_import14_title This prefixsetid has to be assigned to the forum number: Table: forumprefixset forumid, int(10), eg 14 prefixsetid, varchar(25) In each prefixset, the individual prefix ids are inserted: Table: prefix prefixid, varchar(25), no spaces! so maybe forumid like 14_001 then 14_002 etc. If you had 10 prefixes in forum 14, then we need 10 prefixids. prefixsetid, varchar(25), from above displayorder, int(10) Each prefixid needs the prefix text read from the original thread prefix list for the forum inserted into 2 fields (title plain text and rich text). These are stored in the phrase table: languageid: 0 fieldname: global product= vbulletin text = the old thread prefix text varname: prefix_xx_yy where xx = prefixid yy = title_rich or title_plain eg prefix_import14_title_plain Then each thread in the forum with a prefix from the old system has the corresponding new prefixid inserted into it: Table: thread prefixid, varchar(25) The only bit I'm not sure about is: Table: forum lastprefixid, varchar(25) Repeat for all forums. Optionally transfer forum settings from old to new (mandatory thread prefix etc, but this can easily be done manually). Finally, you have to rebuild languages. Right, there's the challenge! |
#415
|
|||
|
|||
Dude, it was real easy for me. All of my thread prefixes have been transfered over. All I did was create my old prefixes in 3.7 admincp, the prefixids matched my old prefixes.
|
#416
|
|||
|
|||
I see what you've done. It works, so long as your existing prefixes have no spaces in, and you only have one "set" of prefixes. My different forum id's all have different sets, and I have spaces in my old prefixes.
|
#417
|
||||
|
||||
The Spaces can not be a big Problem. With only one Query you can turn all Spaces to Underscore that can be used in the native Prefix Mod.
It's just the Problem to create hundreds of Prefix-Sets by Hand. |
#418
|
|||
|
|||
I am half way there....
|
#419
|
|||
|
|||
OK, I have written a script that does the whole job of converting to 3.7.
To keep things separate, I've posted it here: https://vborg.vbsupport.ru/showthread.php?t=165761 |
#420
|
||||
|
||||
I hvae to reinstall all of it because it f...t up my forum, i can not see new threads or anything.
This is the message i get. Parse error: syntax error, unexpected $end in /home/3/h/hjornet/www/hjornet/includes/functions_databuild.php on line 1841 what is the easiest way to get by this?? |
#421
|
||||
|
||||
Had to upload and revert the templates to fix it.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|