The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thread Category / Prefix Hack Details »» | |||||||||||||||||||||||||
Thread Category / Prefix Hack
Version: 1.3.7 vBulletin Version: 3.0.7 Developer: Mystics (www.vbulletin-germany.com) Hack-Language: English & German & French (thanks to ReadWrite) Install-difficulty: Medium File-edits: 19 Template-edits: 16 Brief Description of the Hack With this hack it is possible to assign a category/prefix to a thread. To do this you are able to select an appropriate category from a list beside the title while posting a new thread - for example 'Help', 'Problem', 'Search' etc. The categories displayed in this list may be defined by a moderator for each of his moderated forums (Forum Tools -> Manage Categories); of course an administrator is allowed to do this for every forum. Features
See attachments. Version-History 1.3.7 (02-22-2005 - 09:00 pm)
Upload the new threadcategory.php as soon as possible!1.2.1 (02-14-2004 - 02:15 pm)
Tested for version: 3.0.0 RC 3 (and above). Note: If you have already used the vBulletin 2 version of this hack (only available in german) and the categories are still stored in the vB3 database, you may convert them for the vB3 version. You will see a note to that in step 2 of the hack installation. Update hack
1. Files that need to be edited:
If the hack 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 hack was tested extensive and will function properly if installed correct. Thanks to ReadWrite for his french translation. Have fun with the hack. Please click Install if you have installed it Show Your Support
|
Благодарность от: | ||
Comments |
#17
|
|||
|
|||
Hey, i can't belive how sweet the install went. No problems at all. I can see how hard you worked on this. i love the way you set up your install script, wish everyone did it like that.
One very minor template error, unless i missed something. Check attachment and you will see. |
#18
|
||||
|
||||
Quote:
To fix it, open forumdisplay.php and find: Code:
// ### THREAD CATEGORY HACK START ### // get categories $threadcategories = fetch_thread_categories($foruminfo, urldecode($_REQUEST['threadcategory']), 0, $vbphrase['all_categories']); $show['threadcategories'] = 0; if (!empty($threadcategories) AND $foruminfo['allowcategories']) { if (!empty($_REQUEST['threadcategory'])) { $sorturl .= '&threadcategory=' . urlencode($_REQUEST['threadcategory']); } $show['threadcategories'] = 1; $categorymarkup = array(); $categorymarkup = explode('{1}', $vboptions['categorymarkup']); if ($vboptions['showcategoryalign'] > 0) { $show['threadcategories'] = 2; switch($vboptions['showcategoryalign']) { case 1: $categoryalign = 'left'; break; case 2: $categoryalign = 'right'; break; case 3: $categoryalign = 'center'; break; default: $categoryalign = 'left'; } } } // ### THREAD CATEGORY HACK END ### Code:
// get announcements Code:
$sorturl = "forumdisplay.php?$session[sessionurl]f=$forumid&daysprune=$daysprune"; Code:
$sorturl = "forumdisplay.php?$session[sessionurl]f=$forumid&daysprune=$daysprune" . $sorturl; Code:
<if condition="$show['threadicons']">5<else />4</if>"> Code:
<if condition="$show['threadicons']"><if condition="$show['threadcategories'] == 2">6<else />5</if><else /><if condition="$show['threadcategories'] == 2">5<else />4</if></if>"> |
#19
|
|||
|
|||
Quote:
|
#20
|
||||
|
||||
Quote:
The thread starter is forced to select a thread category (if you enabled this in your vBulletin options) - see my answer to your posting above. But this has nothing to do with the post icons. That was an answer for Alien. |
#21
|
|||
|
|||
Quote:
|
#22
|
|||
|
|||
Excellent hack. I only have one little problem. The moderators can't manage categories in their own forums. Is it because my usergroup ids isn't standard?
|
#23
|
|||
|
|||
Thanks for that fast fix!
|
#24
|
||||
|
||||
So this is the third hack of this kind. Maybe we should propose to add it to the Gold edition by default?
|
#25
|
||||
|
||||
Quote:
I'm just using the standard function: Code:
can_moderate($forumid, '') |
#26
|
|||
|
|||
Okay i want to know if you could help me make it only so mods and Admids can see the catogory drop down box in the new thread, edit thread ect...
not sure if i could do somthing like this. HTML Code:
<if condition="$bbuserinfo[usergroupid] == 6,5">code here</if> HTML Code:
<if condition="$bbuserinfo[usergroupid] == 6">code here <if condition="$bbuserinfo[usergroupid] == 5">code here</if> <else /> code here </if> </if> |
#27
|
||||
|
||||
Quote:
Code:
<if condition="$bbuserinfo['usergroupid'] == 6 OR $bbuserinfo['usergroupid'] == 5">code here</if> |
#28
|
|||
|
|||
Thanks! I didn't think we could use OR in the conditions, now i know ::sneaky:: ::sneaky::
|
#29
|
|||
|
|||
Does this work on vb3 RC2 ??? Because I tried to install it and the very first line to find in the file edits is not even present in my editpost.php
|
#30
|
|||
|
|||
Quote:
|
#31
|
|||
|
|||
Quote:
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|