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 |
#112
|
||||
|
||||
Quote:
Did I forget something? |
#113
|
|||
|
|||
Great job, installing this hack now. This was EXACTLY what I was looking for. ^^
|
#114
|
|||
|
|||
13. Edit the template: SUBSCRIBE
Find this code: <td class="tcat" colspan="5"> This phrase does not exist in default text of template "SUBSCRIBE" Code:
<!-- topic table --> <form action="subscription.php" method="post"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="viewsubscription" /> <input type="hidden" name="type" value="thread" /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <tr> <td class="tcat"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('subslistinfo')"><img id="collapseimg_subslistinfo" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_subslistinfo].gif" alt="" border="0" /></a> $vbphrase[subscribed_threads_in_folder]<span class="normal">: <span id="nav_subsfolders.listinfo"><if condition="$show['allfolders']">$vbphrase[all]<else />$folder</if> <script type="text/javascript"> vbmenu_register("nav_subsfolders.listinfo"); </script></span></span> </td> </tr> </thead> <tbody id="collapseobj_subslistinfo" style="$vbcollapse[collapseobj_subslistinfo]"> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div style="width:$stylevar[formwidth_usercp]" align="$stylevar[left]"> <fieldset class="fieldset"> <legend>$vbphrase[folder_controls]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td> $vbphrase[jump_to_folder]:<br /> <select name="folderid" onchange="window.location=('subscription.php?$session[sessionurl]do=viewsubscription&folderid='+this.options[this.selectedIndex].value)"> $folderjump </select>$gobutton </td> </tr> <tr> <td> <a href="subscription.php?$session[sessionurl]do=viewsubscription&daysprune=-1&folderid=all">$vbphrase[view_all_subscribed_threads]</a> | <a href="subscription.php?$session[sessionurl]do=editfolders">$vbphrase[edit_folders]</a> </td> </tr> </table> </fieldset> </div> </div> </td> </tr> </tbody> </table> </form> <br /> <if condition="$show['pagenav']"> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px"> <tr valign="bottom"> <td align="$stylevar[right]">$pagenav</td> </tr> </table> </if> <!-- topic table --> <form action="subscription.php" method="post" name="form"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="dostuff" /> <input type="hidden" name="folderid" value="$folderid" /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="6"> <span class="smallfont" style="float:$stylevar[right]"><strong>$vbphrase[threads]</strong>: $totalallthreads</span> $vbphrase[subscribed_threads_in_folder]<span class="normal">: <span id="nav_subsfolders.threadlist"><if condition="$show['allfolders']">$vbphrase[all]<else />$folder</if> <script type="text/javascript"> vbmenu_register("nav_subsfolders.threadlist") </script></span></span> </td> </tr> <if condition="$show['havethreads']"> <tr> <td class="thead" colspan="2"> </td> <td class="thead" width="100%"> <a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title] / <a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername] </td> <td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td> <!--<td class="thead" align="center" nowrap="nowrap"><a href="$sorturl&order=desc&sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]</td>--> <!--<td class="thead" align="center" nowrap="nowrap"><a href="$sorturl&order=desc&sort=views">$vbphrase[views]</a> $sortarrow[views]</td>--> <td class="thead">$vbphrase[notification]</td> <td class="thead"><input name="allbox" type="checkbox" value="Check All" title="$vbphrase[check_uncheck_all]" onClick="checkall(this.form);" /></td> </tr> $threadbits <tr> <td class="tfoot" colspan="6" align="$stylevar[right]"><div class="smallfont"> $vbphrase[selected_threads]: <select name="what"> <optgroup label="$vbphrase[move_delete_subscriptions]"> <option value="move">$vbphrase[move_to_folder]...</option> <option value="delete">$vbphrase[delete_subscription]</option> </optgroup> <optgroup label="$vbphrase[update_subscription_type]"> <option value="update0">$vbphrase[no_email_notification]</option> <option value="update1">$vbphrase[instant_email_notification]</option> <option value="update2">$vbphrase[daily_email_notification]</option> <option value="update3">$vbphrase[weekly_email_notification]</option> </optgroup> </select>$gobutton </div></td> </tr> <else /> <tr> <td class="alt1" align="center" colspan="6"> <br /> $vbphrase[folder_is_currently_empty] <br /> <br /> </td> </tr> </if> </table> </form> <!-- / topic table --> <if condition="$show['pagenav']"> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px"> <tr valign="top"> <td align="$stylevar[right]">$pagenav</td> </tr> </table> </if> <br /> <!-- icon key and forum jump --> <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr valign="bottom"> <td width="100%"> <!-- icon key --> <table cellpadding="2" cellspacing="0" border="0"> <tr align="$stylevar[left]"> <td><img src="$stylevar[imgdir_statusicon]/thread_new.gif" alt="$vbphrase[new_posts]" border="0" /></td> <td class="smallfont">$vbphrase[new_posts]</td> </tr> <tr> <td><img src="$stylevar[imgdir_statusicon]/thread.gif" alt="$vbphrase[no_new_posts]" border="0" /></td> <td class="smallfont">$vbphrase[no_new_posts]</td> </tr> <if condition="$vboptions['usehotthreads']"> <tr> <td><img src="$stylevar[imgdir_statusicon]/thread_hot_new.gif" alt="$vbphrase[hot_thread_with_new_posts]" border="0" /></td> <td class="smallfont"><phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase></td> </tr> <tr> <td><img src="$stylevar[imgdir_statusicon]/thread_hot.gif" alt="$vbphrase[hot_thread_with_no_new_posts]" border="0" /></td> <td class="smallfont"><phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase></td> </tr> </if> <tr> <td><img src="$stylevar[imgdir_statusicon]/thread_lock.gif" alt="$vbphrase[closed_thread]" border="0" /></td> <td class="smallfont">$vbphrase[thread_is_closed]</td> </tr> <if condition="$show['dotthreads']"> <tr> <td><img src="$stylevar[imgdir_statusicon]/thread_dot.gif" alt="$vbphrase[thread_contains_a_message_written_by_you]" border="0" /></td> <td class="smallfont">$vbphrase[you_have_posted_in_this_thread]</td> </tr> </if> </table> <!-- / icon key --> </td> <td>$forumjump</td> </tr> </table> <!-- / icon key and forum jump --> Thanking you in advance for your reply! |
#115
|
||||
|
||||
Quote:
Code:
<td class="tcat" colspan="6"> Code:
<td class="tcat" colspan="<if condition="$show['threadcategories'] == 2">7<else />6</if>"> |
#116
|
|||
|
|||
Yes, it's working now.
Thank you so much for your quality work and great hack ... and for your willingness to share it! Your support is much appreciated as well. Thanks, again! |
#117
|
||||
|
||||
Possible bug:
Wrong Category prefix is displayed in the last post column (on forumhome) when you arrange the categories in alphabetic order. I've disabled that feature, as a result. Thought you should know. |
#118
|
||||
|
||||
Quote:
|
#119
|
|||
|
|||
I have your hack installed and it is working perfectly.
So, of course, I want MORE ... don't we always? ... so, my question: Would there be a way to incorporate this with Erwin's hack so that users could choose a category when posting a new thread to a forum via a form? Thanks. |
#120
|
||||
|
||||
Great hack Mike, just installed this and working like a charm
One request though: Is it possible to Force use of this thread prefix not across all the categories, but on a per-forum basis ? Thanks for your work |
#121
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|