View Full Version : Thread Category / Prefix Hack
Mystics
02-11-2004, 10:00 PM
Thread Category / Prefix Hack
Version: 1.3.7
vBulletin Version: 3.0.7
Developer: Mystics (www.vbulletin-germany.com (http://www.vbulletin-germany.com/))
Hack-Language: English & German & French (thanks to ReadWrite (https://vborg.vbsupport.ru/member.php?u=45924))
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
Moderators are able to create own categories for each of their moderated forums
(Forum -> Forum Tools -> Manage Categories -> threadcategory.php)
Display of the categories on forum display, search results, subscribed threads and within the thread itself
It is possible to change the category with editing the first post of a thread or with the thread tools available for moderators at any time
Settings in the Admin CP
Maximum categories per forum
Thread Category required: Users have to select a thread category for their threads
Default Thread Categories: You may set default categories which will either be shown only in forums without own categories or be shown in addition to existing categories
Show Thread Categories in extra column or in front of the thread title in the same column
Alignment of the categories (if 'Show in extra column' is enabled): Align left, align right, center
Show Category in 'Last Post' column
Category HTML Markup: Specify an HTML tag with which to display the categories (bold, italic, red etc.)
Allow Thread Category search: If enabled, the categories of all forums the user has access to will be grouped in a list and displayed in the search engine.
Per Forum: Allow categories in this forum.
Screenshots
See attachments.
Version-History
1.3.7 (02-22-2005 - 09:00 pm)
Modified instructions for vBulletin 3.0.7
(3 more changes within the search_results template)
1.3.6 (01-15-2005 - 06:10 pm)
Modified instructions for vBulletin 3.0.5
(only the third modification of the template FORUMDISPLAY has changed)
1.3.5 (11-02-2004 - 11:00 pm)
Bugfix: File: newthread.php
Preview error with categories containing "&" fixed
1.3.4 (09-25-2004 - 04:00 pm)
Update: Template SUBSCRIBE (colspan have to be increased since vB 3.0.2)
Bugfix: File: includes/functions_forumlist.php
Include category length in length of the shown last thread title
1.3.3 (https://vborg.vbsupport.ru/showpost.php?p=497349&postcount=61) (04-08-2004 - 08:55 pm)
Bugfix: File: forumdisplay.php
Selected category got lost when browsing through forum pages
1.3.2 (https://vborg.vbsupport.ru/showpost.php?p=491130&postcount=54) (03-27-2004 - 05:45 pm)
Bugfix: File: clientscript/vbulletin_quickreply.js
Javascript error when using Quick Reply
New: Added modification for postbit_legacy template (same as postbit modification)
Modified instructions for vBulletin 3.0.0 'Gold' (only the first modification of postings.php has changed)
1.3.1 (03-06-2004 - 00:20 am)
Bugfix (https://vborg.vbsupport.ru/showpost.php?p=482138&postcount=38): Template: threadbit_deleted
Incorrect display of category column in this template
1.3 (02-23-2004 - 08:40 pm)
Bugfix: Don't display a category in a thread if categories are not allowed in the forum
Bugfix: Critical bug in threadcategory.php related to the option 'Update existing threads with changed categories' fixed
Upload the new threadcategory.php as soon as possible! 1.2.1 (https://vborg.vbsupport.ru/showpost.php?p=476527&postcount=17) (02-14-2004 - 02:15 pm)
Bugfix (https://vborg.vbsupport.ru/showpost.php?p=476527&postcount=17): Template: forumdisplay_announcement
Wrong 'colspan' value used, if categories are displayed in an extra
column and forum contains announements in addition
1.2 (02-11-2004 - 11:30 pm)
New: Display category in notify mail next to the thread title
Bugfix: Improved display of the categories in "Who's Online"
1.1 (02-10-2004 - 11:55 pm)
New: Display of last category in the 'Last Post' column (may be disabled in the admin cp)
New: Display of hack version in the admin cp at the vBulletin options (for example 'Thread-Category Hack v1.1')
Bugfix: Show link to 'Manage Categories, if DHTML menus are disabled
Bugfix: Don't show categories from forums where categories are not (longer) allowed
Bugfix: Convert HTML code within categories
1.0.1 (02-08-2004 - 11:30 pm)
Bugfix: Correct display in "Who's Online" while managing categories
1.0.0 (02-08-2004 - 4:49 pm)
First version
Installation
Upload the files categoryinstall.php and categoryinstall_text.php to the admincp directory of your forum
Open this file with your browser:
http://www.yourdomain.de/forum/admincp/categoryinstall.php
Log in and follow the instructions
You may delete the two files after the installation of the hack
Time needed for installation: approx. 30-60 min.
Tested for version: 3.0.0 RC 3 (and above).
Note: If you have already used the vBulletin 2 version (http://people.freenet.de/vbhacks/prefix/prefix.html) 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
Upload the files categoryinstall.php and categoryinstall_text.php to the admincp directory of your forum
Open this file with your browser:
http://www.yourdomain.de/forum/admincp/categoryinstall.php
Log in, select the version you want to update from (at Step 2 -> 'Update Hack') and follow the instructions
Short overview of the needed modifications
1. Files that need to be edited:
editpost.php
forumdisplay.php
moderator.php
newthread.php
postings.php
search.php
showthread.php
subscription.php
admincp/forum.php
clientscript/vbulletin_global.js
clientscript/vbulletin_quickreply.js
clientscript/vbulletin_stdedit.js
clientscript/vbulletin_wysiwyg.js
includes/functions.php
includes/functions_databuild.php
includes/functions_forumlist.php
includes/functions_newpost.php
includes/functions_online.php
includes/functions_search.php
2. New files:
threadcategory.php
3. Templates that need to be edited:
editor_clientscript
editpost
FORUMDISPLAY
forumdisplay_announcement
forumhome_lastpostby
newthread
postbit
postbit_legacy
search_forums
search_results
search_results_postbit
SHOWTHREAD
SUBSCRIBE
threadadmin_editthread
threadbit
threadbit_deleted
4. New templates:
threadcategory_listbit
threadcategory_modify
5. New phrases:
Too many to list them all - they will be created automatically by the install script
Final words
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 (https://vborg.vbsupport.ru/member.php?u=45924) for his french translation.
Have fun with the hack.
Please click Install if you have installed it :)
corsacrazy
02-12-2004, 10:11 PM
what will it look like if a forum doesnt have any catagories ? will u still see the catagory coloumn ?
Mystics
02-12-2004, 10:14 PM
will u still see the catagory coloumn ?No.
SpeedStreet
02-13-2004, 05:32 AM
This hack is invaluable.
You've taken a great hack for vb2, and made Vb3 that much more exciting because of the upgrades you have here.
Thank you a ton!
Alien
02-13-2004, 06:29 AM
You have done such an excellent job with this, this is certainly going into my new site release coming out in the next few days.. I'm planning on turning this on in our news forum, however since we're going to also be using vBadvanced would you happen to know how I can call the images (such as amusing, politics, etc.) from that index page too? That would be immensely better for me to show it in both places my news occurs!
Thank you SO much for the hard work, it's layed out real clean!
-Jason
Alien
02-13-2004, 06:37 AM
Oh I noticed this hack does not yet include or have an add-on for allowing mini images, would it be possible to get this support in the future? :D
colicab-d
02-13-2004, 09:11 AM
wow, this is a great hack and amust for the new version of my site :D now i can organize the tutorials better :D
thnx
will probs get the other admin to do this as its a time consuming hack lol
colicab-d
02-13-2004, 09:14 AM
actually could someone maybe see about making this htl compliant? would speed things up no end :D
MrNase
02-13-2004, 10:44 AM
why would that speed up the installation? As far as i know the htl hack doesn't change the templates and the files on it's own... So you'd have to do it too :)
Kaffeerappel
02-13-2004, 11:15 AM
Thanks for the hack, I consider installing it in a future project.
I would also love to be able to use images as a category. Also, is there a way to force the user to pick a category?
sypher_again
02-13-2004, 11:18 AM
very good hack , thx very much :D
Mystics
02-13-2004, 03:51 PM
Also, is there a way to force the user to pick a category?Sure. This is an admin cp option :)
https://vborg.vbsupport.ru/attachment.php?attachmentid=16702
Oh I noticed this hack does not yet include or have an add-on for allowing mini images, would it be possible to get this support in the future? :DHm, is this not possible with the vBulletin Post Icons?
I don't have planned to add something like this in the future, sorry.
Alien
02-13-2004, 07:58 PM
Darn. :) It would be an amazing solution for us..
If you did it with post icons, it would throw the neatness of the post icons table off.. I'd want to use like little bars with "Political", or "Strange" on them and that would ruin the look of the post icons section completely. Also, if I just used reguler sized icons people would have to put their mouse over them to read the category since there's no way a 15x15 icon is gonna have readable text. :) When users are choosing a category they can also see all the different graphical buttons in a pulldown menu as well (in the same place, just like you do with your text version right now). I think this would be an excellent option, but understand if you have no desire to pursue it.. I guess I can always hire out the modifications if it came down to it.
Thanks for this either way, it really IS excellent!
-Jason
Dean C
02-13-2004, 08:01 PM
Beautifully done Mystics - good to see you releasing mods again :)
Logikos
02-13-2004, 10:18 PM
VERY VERY NICE JOB Mystics! Can't thank you enough.
/me clicks install!
Logikos
02-14-2004, 12:05 AM
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.
Mystics
02-14-2004, 10:26 AM
\[]emesis']One very minor template error. Check attachment and you will see.Thank you for discovering this, I really missed that :(
To fix it, open forumdisplay.php and find:
// ### 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 ###
Move that bunch of code above this code:
// get announcementsNow find (still in forumdisplay.php): $sorturl = "forumdisplay.php?$session[sessionurl]f=$forumid&daysprune=$daysprune";And replace it with: $sorturl = "forumdisplay.php?$session[sessionurl]f=$forumid&daysprune=$daysprune" . $sorturl;
Now edit the template forumdisplay_announcement and find:
<if condition="$show['threadicons']">5<else />4</if>">
Replace it with:
<if condition="$show['threadicons']"><if condition="$show['threadcategories'] == 2">6<else />5</if><else /><if condition="$show['threadcategories'] == 2">5<else />4</if></if>">
I will update the hack to v1.2.1 later.
Kaffeerappel
02-14-2004, 03:24 PM
Hm, is this not possible with the vBulletin Post Icons?
Yes, and no. If you use the post icons insead of the prefix, you can set a default post icon, however it will appear in every single post in the thread. I would prefer having it within forced only for the thread starter.
Mystics
02-14-2004, 03:31 PM
Yes, and no. If you use the post icons insead of the prefix, you can set a default post icon, however it will appear in every single post in the thread. I would prefer having it within forced only for the thread starter.Hm, sorry, but I don't understand what you mean.
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.
Kaffeerappel
02-14-2004, 06:21 PM
But this has nothing to do with the post icons. That was an answer for Alien.
I was aware of that. I was trying to explain that you cannot use the post icons in the same way as you can use the prefixes with your hack. I think that's why Alien and myself would love to see your hack with images.
draven
02-14-2004, 06:21 PM
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?
Logikos
02-14-2004, 07:21 PM
Thanks for that fast fix!
gmarik
02-14-2004, 07:54 PM
So this is the third hack of this kind. Maybe we should propose to add it to the Gold edition by default?
Mystics
02-14-2004, 09:41 PM
The moderators can't manage categories in their own forums. Is it because my usergroup ids isn't standard?No, that is no problem. I have tested it with all kinds of users...admin, mod, supermod, mod of a forum with a new usergroup....all worked fine.
I'm just using the standard function:
can_moderate($forumid, '')
Do they have no access to threadcatgory.php or are they just not able to see the link 'Manage Categories' within the Forum-Tools? Does it work for you?
Logikos
02-14-2004, 10:25 PM
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.
<if condition="$bbuserinfo[usergroupid] == 6,5">code here</if>
or maybe
<if condition="$bbuserinfo[usergroupid] == 6">code here
<if condition="$bbuserinfo[usergroupid] == 5">code here</if>
<else />
code here
</if>
</if>
Any ideas?
Mystics
02-14-2004, 11:40 PM
\[]emesis']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...<if condition="$bbuserinfo['usergroupid'] == 6 OR $bbuserinfo['usergroupid'] == 5">code here</if>Don't forget to disable "Thread Category Required".
Logikos
02-15-2004, 12:06 AM
Thanks! I didn't think we could use OR in the conditions, now i know ::sneaky:: ::sneaky:: :p
The Watcher
02-18-2004, 07:49 PM
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 :(
draven
02-19-2004, 01:47 PM
No, that is no problem. I have tested it with all kinds of users...admin, mod, supermod, mod of a forum with a new usergroup....all worked fine.
I'm just using the standard function:
can_moderate($forumid, '')
Do they have no access to threadcatgory.php or are they just not able to see the link 'Manage Categories' within the Forum-Tools? Does it work for you?
The link dosn't appear in Forum-Tools.
Logikos
02-19-2004, 01:57 PM
The link dosn't appear in Forum-Tools.
If installed correctly, you will need to go to the admin cp and turn it on for the forum you want the catogory hack to appear.
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 :(
I think this is for rc3 +
draven
02-19-2004, 05:54 PM
\[]emesis']If installed correctly, you will need to go to the admin cp and turn it on for the forum you want the catogory hack to appear.
It's already turned on. It's still only admins that can see it.
Mystics
02-22-2004, 11:46 AM
The link dosn't appear in Forum-Tools.In this case your moderators are also not able to see the other Forum-Tools Links like 'Mass Prune', 'Add Moderator' and so on....because I just have put the 'Manage Categories' Link below these other options without verifying any permissions.
But it's also possible you haven't edited the FORUMDISPLAY template correct...the part should look like this: <if condition="$show['addmoderator']">
<div><label for="fa_amd"><input type="radio" name="do" id="fa_amd" value="addmoderator" />$vbphrase[add_moderator]</label></div>
</if>
<if condition="$foruminfo['allowcategories']">
<div><label for="fa_cat"><input type="radio" name="do" id="fa_cat" value="showcategory" />$vbphrase[manage_threadcategory]</label></div>
</if>....maybe you have mixed up the if conditions.
You can send me an admin acc if I should check it in your forum.
draven
02-22-2004, 02:21 PM
Thanks. I somehow got the code above instead of under, so it works now.
FleaBag
02-23-2004, 06:42 AM
This is one seriously sweet-ass hack. I've been up all night, so I'll install it when I wake tonight LOL. :D Thank you.
Mystics
02-23-2004, 05:49 PM
New version released:
v1.3
Bugfix: Don't display a category in a thread if categories are not allowed in the forum
Bugfix: Critical bug in threadcategory.php related to the option 'Update existing threads with changed categories' fixed
Please upload the new threadcategory.php as soon as possible!
Martyjp
02-28-2004, 07:09 PM
Great hack :)
Took ages to install as I have 7 main template sets, the ctrl and V keys are now worn out, was well worth it though :)
Chris M
02-28-2004, 11:25 PM
This looks to be a stunning hack :)
Great job Mystics :)
I will test this out on my offline boards, but sadly I don't really have any use for this on my own boards - However: I shall click install, and install it sometime next week anyway, just for the hell of it :)
Satan
Aceman
03-04-2004, 03:58 PM
I have a problem. I installed this hack.. which I love btw.. however I'm getting a display error on in the forums area.. when I staffer/user deletes a thread the deleted information is showing up all funny. (see attachement)
Anyone know how to fix this? or where to look? I know it's got something to do with table span.. etc.. I think I just need to add a cell to account for the category cell and it should be fine..
Aceman
UPDATE: I have fixed the visual problem. This is how I did it.
EDIT TEMPLATE: threadbit_deleted
<tr>
<td class="alt1"><img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" alt="" /></td>
<if condition="$show['threadicons']">
<td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else /> </if></td>
</if>
<!-- Accounting for Category Hack -->
<if condition="$show['threadcategories'] == 2">
<td class="alt1Active" align="$categoryalign" nowrap="nowrap"><if condition="$thread['category']">$categorymarkup[0]$thread[category]$categorymarkup[1]</if></td>
</if>
<!-- Accounting for Category Hack END -->
<td class="alt1">
<div>
<if condition="$show['viewthread']"><span style="float:$stylevar[right]" class="smallfont"><a href="showthread.php?$session[sessionurl]t=$thread[threadid]">$vbphrase[view]</a></span></if>
$thread[typeprefix]
<if condition="$show['threadtitle']"><em>$thread[threadtitle]</em></if>
</div>
<div class="smallfont">
<if condition="$show['managethread']"><span style="float:$stylevar[right]"><a href="postings.php?$session[sessionurl]do=editthread&t=$thread[threadid]">$vbphrase[manage]</a></span></if>
<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
</if>
</div>
</td>
<td class="alt2" colspan="3" align="center">
<div class="smallfont"><phrase 1="member.php?$session[sessionurl]u=$thread[del_userid]" 2="$thread[del_username]">$vbphrase[thread_deleted_by_x]</phrase></div>
<if condition="$show['deletereason']">
<div class="smallfont">$vbphrase[reason]: <em>$thread[del_reason]</em></div>
</if>
</td>
</tr>
Adding this to the template fixed my problem.
trilOByte
03-05-2004, 09:02 PM
Excellent Mystics, By far the most complex hack (with reagards to the sheer number of file/template edits) I've ever installed I think, but aside from one minor mistake, which I spotted myself - it went like a dream - that's got to be thanks to your outstanding instructions.
* trilOByte clicks install.
I'm just dreading doing it over when vB3 goes gold. :D :D
trilOByte
03-05-2004, 09:06 PM
One question, is it possible to specify different colours on a "per category" basis, rather than for all of them?
Mystics
03-05-2004, 09:26 PM
One question, is it possible to specify different colours on a "per category" basis, rather than for all of them?No, that's not possible.
@Aceman
Thank you for finding this, I have updated the hack to v1.3.1.
djohn
03-06-2004, 11:32 AM
How can update version 1.3 to 1.3.1?
Mystics
03-06-2004, 11:55 AM
How can update version 1.3 to 1.3.1?
Update hack
Upload the files categoryinstall.php and categoryinstall_text.php to the admincp directory of your forum
Open this file with your browser:
http://www.yourdomain.de/forum/admincp/categoryinstall.php
Log in, select the version you want to update from (at Step 2 -> 'Update Hack') and follow the instructions
Pitman
03-18-2004, 08:01 PM
Parse error: parse error in /****/****/public_html/forums/includes/functions.php on line 1795
Fatal error: Call to undefined function: exec_nocache_headers() in /****/****/public_html/forums/admincp/global.php on line 37
Mystics
03-18-2004, 08:13 PM
Parse error: parse error in /****/****/public_html/forums/includes/functions.php on line 1795
Fatal error: Call to undefined function: exec_nocache_headers() in /****/****/public_html/forums/admincp/global.php on line 37
1. Upload your backup functions.php and re-do the changes for this hack
OR
2. Replace line 1795 of your functions.php with this:
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') === false, '?', '&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') === false, '?', '&') . "explain=1\">Explain</a>)<br />\n";
1. and 2. : Do not use Dreamweaver for this!
Pitman
03-18-2004, 08:40 PM
Thanks man.... Dreamweaver was the problem ;x
i know someone already suggested this but he didn't get a real reply ..
i was also wondering if anyone could provide a .htl version of the hack ..
no it doesn't really speed things up but it makes maintenance a lot easier
thanks in advance 8472
The General
03-25-2004, 02:50 PM
Would it be possible for users to edit te text within the prefix in the new post box?
The General
03-25-2004, 03:18 PM
Would it be possible to add more than 1 category to a topic?
Flashinblue
03-25-2004, 03:40 PM
Seems nice, but can't get it to work. I've been thru all steps, then tried it... but nothing shows in the new thread (no box containing prefixes) and nothing new in the forum tools neither...
good thing is everything seems to work, it hasn't "broke" anything... but nothing new neither ;)
Stray
03-26-2004, 07:26 PM
So far this hack works excellent for me. This would be a great standard vb feature.
Geographic2
03-26-2004, 10:06 PM
Word on the street is... Install.
Now if only I could teach the Talkerbot to do my installs....
djohn
03-27-2004, 11:11 AM
5. Edit the file: postings.php
Find this code:
$show['undeleteoption'] = iif ($threadinfo['isdeleted'] == 1 AND can_moderate($threadinfo['forumid'], 'canremoveposts') AND can_moderate($threadinfo['forumid'], 'canmanagethreads'), true, false);
I can't find this code in my postings.php (3.0 Gold, unhacked)
Mystics
03-27-2004, 02:57 PM
New version released:
1.3.2 (03-27-2004 - 05:45 pm)
Bugfix: File: clientscript/vbulletin_quickreply.js
Javascript error when using Quick Reply
Modified instructions for vBulletin 3.0.0 'Gold' (only the first modification of postings.php has changed)
To fix the Javascript error, edit the file clientscript/vbulletin_quickreply.js.
Find:return validatemessage(fetch_object("qr_message").value, 0, temp_minchars, maxchars, false, tform);Replace it with:return validatemessage(fetch_object("qr_message").value, 0, temp_minchars, maxchars, false, tform, 0);
djohn
03-27-2004, 03:32 PM
Thanks, Mystics! Luv your hack!
djohn
03-27-2004, 04:27 PM
While installing the hack, i've noticed, that I have to edit the postbit template, but not postbit_legacy. Is it not supported?
Mystics
03-27-2004, 04:56 PM
While installing the hack, i've noticed, that I have to edit the postbit template, but not postbit_legacy. Is it not supported?
You can edit the postbit_legacy template in the same way you have to edit the postbit template.
I have added it to the instructions, thanks :)
Stray
03-27-2004, 05:22 PM
I still can't get over how nice this hack is.
Great job, extremely professional.
MeTaL_oRgY
04-04-2004, 07:54 PM
i'm having a problem with this hack, thing is, when i'm in the middle of instalation I can edit the .php files, but no more, after that, this error appears
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in D:\web\www\sr\forums\includes\functions.php on line 1864
what the heck is going on, what should I do?
P.S. The forum is on a test server on my PC :)
Mystics
04-06-2004, 09:04 PM
i'm having a problem with this hack, thing is, when i'm in the middle of instalation I can edit the .php files, but no more, after that, this error appears
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in D:\web\www\sr\forums\includes\functions.php on line 1864
Replace line 1864 of includes/functions.php with: $debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') === false, '?', '&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') === false, '?', '&') . "explain=1\">Explain</a>)<br />\n";And do not use Dreamweaver for this!!!
PS: This has nothing to do with the hack...you will always get this error when editing that file with Dreamweaver :)
Mystics
04-08-2004, 06:05 PM
Small update to 1.3.3:
Edit forumdisplay.php and find: $pagenav = construct_page_nav($totalthreads, "forumdisplay.php?$session[sessionurl]f=$forumid", "&sort=$sortfield&order=$sortorder&pp=$perpage&days prune=$daysprune");
Replace it with: $pagenav = construct_page_nav($totalthreads, "forumdisplay.php?$session[sessionurl]f=$forumid", "&sort=$sortfield&order=$sortorder&pp=$perpage&days prune=$daysprune" . iif(!empty($_REQUEST['threadcategory']), '&threadcategory=' . urlencode($_REQUEST['threadcategory'])));
Otherwise the selected category got lost when browsing through multiple forumdisplay pages.
djohn
04-11-2004, 03:46 PM
Thanks for the update.
I wanted to know if there's a way to make the Thread Category dropdown menu (on forumshow) be the same as others? See attached screenshot, the Thread Category dropdown menu is a little bit narrower than the others. It's the same in Opera.
Yapluka
04-13-2004, 09:01 PM
Very nice hack, works like a charm for me !
Just a little thing : when editing the first post with QuickEdit, the category is lost. Any suggestion for that ?
Thanks anyway !
Mystics
04-13-2004, 09:46 PM
Just a little thing : when editing the first post with QuickEdit, the category is lost. Any suggestion for that ?
What do you mean with "QuickEdit"?
If you edit the first post, you are able to change the current category.
Yapluka
04-13-2004, 10:01 PM
Sorry, I mean the QuickEdit hack : https://vborg.vbsupport.ru/showthread.php?p=500245#post500245
If you edit the first post using QuickEdit, the thread will lose its category.
gwhooooey
04-15-2004, 04:29 AM
Any way we can choose different colours for different categories?
trinitym
04-19-2004, 09:00 PM
_Excellent_ hack, well done and will prove to be quite useful. *clicks install* I don't think I've ever edited so many files in one sitting. ;)
I do have a question though. I wonder if there's a way to have it so that categories are required only in certain forums and not required in all that have categories assigned to them. For example, I don't really need categories to be required in say "the bugs, complaints & suggestions" forum, but I'd like for categories to be requried in the "fanfiction" forum since I'm going to have the ratings be the categories.
Either way, love the hack-age. :)
influence
04-20-2004, 05:44 PM
The installation setup was great. It looks like you will be setting a trend and hopefully every hacker will setup their installation pages this way.
Excellent idea and great hack. I have been looking for this.
Thanks for the amazing hack.
*click*
influence
04-20-2004, 08:11 PM
One quick suggestion or maybe a request addon for future versions. I am trying to set this up so that members can select which category his/her thread should be in. On my list of category, I have 3 categories only mods/admin and SM should be using (annoucement, featured thread and Rules ) . My question is , is there anyway to set this up in a way for me to specific certain categories registered users are restricted from using?
That would be great
bmckain
04-25-2004, 07:17 PM
I've installed this hack and I have to say it is well done, I did seem to make a small error somewhere though. I can add categories from the AdminCP - Options but when I try to do it from the forum manager I get the following error:
Not Found
The requested URL /forums/threadcategory.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.29 Server at www.lwg3d.org Port 80
Any ideas on what I did wrong?
Majik?
04-25-2004, 07:46 PM
Not Found
The requested URL /forums/threadcategory.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.29 Server at www.lwg3d.org (http://www.lwg3d.org/) Port 80
Any ideas on what I did wrong?You dind't upload the "threadcategory.php" file or put it in a sub-folder when it should be in the forum root.
bmckain
04-25-2004, 08:05 PM
You dind't upload the "threadcategory.php" file or put it in a sub-folder when it should be in the forum root.
Opps, (blush), that's too easy... ;) Thanks
bmckain
04-25-2004, 09:39 PM
Well, that worked like a charm!
After getting a feel for how this works, it's led to another request.
Would it be or is it possible to have the search ognore all other parameters other than "catagory"? It would be really nice to allow members to just choose a cataegory and have the search engine list all threads under that particular category independant of author, title, etc.
djohn
05-18-2004, 02:47 PM
I repeat my question again, Mystics, sorry about nagging. That thing just bugs me the whole time. I've liturally spent hours trying to find where can decrease the width of the dropdown menu in any forum. The screenshot is there: https://vborg.vbsupport.ru/attachment.php?attachmentid=18043
Notice how the All Categories dropdown menu is a little bit narrower than the others? Where can I adjust it? The closes i've come is the bit in FORUMDISPLAY template:
<td class="smallfont">$vbphrase[threadcategory]:</td>
<td>$threadcategories</td>
I guess the $threadcategories is what i am looking for, but where can i adjust the width of the dropdown menu?
I've tried everything, even crazy stuff like
<td>$threadcategories</td>
<td><select name="threadcategories" style="width:125px">
<option>$threadcategories</option>
</select></td>
still doesn't work. It seems to me that since $threadcategories array is dynamic, it cannot be used with <option> and <select> tags. If so, then whe??where does the script know, how wide is the dropdown menu going to be?
Many thanks for the hack, waiting for a reply.
bmckain
05-24-2004, 02:01 PM
Thread Category / Prefix Hack
Please click Install if you have installed it :)
Call me silly, but I couldn't find the "Install" link to click on.
Okiewan
05-27-2004, 05:25 AM
top of each page, right hand side...
Fantastic work! Well done.
Mystics
06-05-2004, 09:03 PM
I repeat my question again, Mystics, sorry about nagging. That thing just bugs me the whole time. I've liturally spent hours trying to find where can decrease the width of the dropdown menu in any forum. The screenshot is there: https://vborg.vbsupport.ru/attachment.php?attachmentid=18043
Notice how the All Categories dropdown menu is a little bit narrower than the others? Where can I adjust it?
You can call the function with an argument for the width.
includes/functions.php:function fetch_thread_categories($foruminfo, $selcat = '', $empty = 1, $showall = '', $categoryarray = array(), $selectwidth = '')So you may change forumdisplay.php:$threadcategories = fetch_thread_categories($foruminfo, urldecode($_REQUEST['threadcategory']), 0, $vbphrase['all_categories']);to:$threadcategories = fetch_thread_categories($foruminfo, urldecode($_REQUEST['threadcategory']), 0, $vbphrase['all_categories'], array(), '125px');then whe??where does the script know, how wide is the dropdown menu going to be?
The menu is as wide as the longest entry needs place.
djohn
06-10-2004, 01:12 PM
Thank you, that worked like a charm!
Ming Keong
06-12-2004, 05:08 PM
Thank you. This is a great hack!
marc_t
06-14-2004, 02:46 PM
Hi Mystics,
that seems to be a very great hack. Is it working with 3.0.1 aswell?
marc
Mystics
06-14-2004, 02:53 PM
Is it working with 3.0.1 aswell?
Yes.
marc_t
06-14-2004, 02:56 PM
Thanks (gerade auch bei euch gefunden ;) )
Downloading-and-installing :D
EDIT:
Is this hack the same used in here this forum (screenshot) when displaying the vBulletin Version infront of the topic? Did someone modify you hack the for showking no own column or is this another hack?
marc_t
06-14-2004, 03:09 PM
Damn forgot the screenshot :/
marc_t
06-14-2004, 07:45 PM
Ok, ok.. ;)
After installing I recognized the option to switch on/off kategorie columns. If switched off, the Category is displayed just in front of the topic as shown in my screenshot.
Just to let those know who maybe did ask the same thing :D
marc
Mystics
06-14-2004, 07:54 PM
Is this hack the same used in here this forum (screenshot)
No :)
marc_t
06-14-2004, 07:58 PM
:speechless:
har har ...
I better go and get another beer than... anyways: Great hack!
dndog
06-18-2004, 03:53 PM
Great job Mystics!
/me clicks install
dndog
06-26-2004, 04:12 PM
Mystics, I keep on getting this error:
Fatal error: Call to undefined function: fetch_thread_categories() in /home/dndonli/public_html/beta/forumdisplay.php on line 422
What can I do to fix this?
Mystics
06-26-2004, 08:36 PM
Mystics, I keep on getting this error:
Fatal error: Call to undefined function: fetch_thread_categories() in /home/dndonli/public_html/beta/forumdisplay.php on line 422
What can I do to fix this?
Take the original vB3 Files and re-do all file modifications step-by-step by following exactly my instructions (categoryinstall.php). You may start with includes/functions.php. Maybe that's sufficient.
dndog
06-28-2004, 06:58 PM
I have rehacked those files you mentioned and still get the same error.
I also have rehacked forumdisplay.php 5 times... :ermm:
What should I do?
Mystics
06-28-2004, 07:19 PM
I have rehacked those files you mentioned and still get the same error.
I also have rehacked forumdisplay.php 5 times... :ermm:
What should I do?
Send me a FTP-Account and vB-admin-data and I'll take a look.
Catch-22|BL
07-06-2004, 01:09 AM
This looks very great. :)
How does it work with full-text search (https://vborg.vbsupport.ru/showthread.php?t=66789) enabled?
Just wondering, does the category search feature work with the vB3 full text search?
Mystics
07-11-2004, 08:47 PM
Just wondering, does the category search feature work with the vB3 full text search?
Yes.
Henry-RS
07-12-2004, 04:35 AM
Hi Mystics,
If this could somehow be integrated with vBadvanced, it would make the Portal extremely good. (couldn't think of any other way to put it, but I WANT this for vB advanced) :D
jluerken
07-17-2004, 07:20 PM
Hi,
I installed the latest version of this hack today and have two questions.
1. The templates which must be created threadcategory_listbit and threadcategory_modify are this GLOBAL templates?
2. I can set default categories as admin but in the FORUM TOOLS I don't see an option to set a PER forum category.
I which file is the error maybe?
Thanks in advance
jluerken
Mystics
07-17-2004, 07:26 PM
1. The templates which must be created threadcategory_listbit and threadcategory_modify are this GLOBAL templates?As it is not possible to select a group for templates, I don't really know, what you mean. Just create these templates in all your styles or just in your parent style (if you have one).2. I can set default categories as admin but in the FORUM TOOLS I don't see an option to set a PER forum category.
I which file is the error maybe?
You can set these categories in each forum within the front end:
Forum -> Forum Tools -> Manage Categories -> threadcategory.php
https://vborg.vbsupport.ru/external/2004/07/1.php?attachmentid=16704
jluerken
07-17-2004, 07:31 PM
As it is not possible to select a group for templates, I don't really know, what you mean. Just create these templates in all your styles or just in your parent style (if you have one).
You can set these categories in each forum within the front end:
Forum -> Forum Tools -> Manage Categories -> threadcategory.php
https://vborg.vbsupport.ru/attachment.php?attachmentid=16704
1. solved. I thought about phrases and not templates. sry :D
2. No sorry but I do not have a MANAGE CATEGORIES option in the FORUM TOOLS drop down menu. I am sure that I have made an error when you tell me the hack is working so it would be nice if you could point me to the file where this is implemented so that I can check again.
Mystics
07-17-2004, 07:33 PM
2. No sorry but I do not have a MANAGE CATEGORIES option in the FORUM TOOLS drop down menu. I am sure that I have made an error when you tell me the hack is working so it would be nice if you could point me to the file where this is implemented so that I can check again.
Take a look at the FORUMDISPLAY template and compare it with the instuctions.
PS: Wir h?tten das auch bei vBulletin-Germany.com kl?ren k?nnen ;)
jluerken
07-17-2004, 07:53 PM
Take a look at the FORUMDISPLAY template and compare it with the instuctions.
PS: Wir h?tten das auch bei vBulletin-Germany.com kl?ren k?nnen ;)
Checked FORUMDISPLAY and all the changes are correct.
PS: Sollen wir da weiterreden oder wie machen wir es? hehe
Mystics
07-17-2004, 07:59 PM
Checked FORUMDISPLAY and all the changes are correct.
Do you have set "Allow Categories" to "Yes" for this forum in your "Manage Forums" section?
I can check it if you send me an admin acc. via pm.
jluerken
07-17-2004, 08:06 PM
Do you have set "Allow Categories" to "Yes" for this forum in your "Manage Forums" section?
I can check it if you send me an admin acc. via pm.
You got a PM !
Mystics
07-17-2004, 08:14 PM
You got a PM !
As I guessed, the FORUMDISPLAY template was wrong... :rolleyes:
This code was missing: <if condition="$foruminfo['allowcategories']">
<div><label for="fa_cat"><input type="radio" name="do" id="fa_cat" value="showcategory" />$vbphrase[manage_threadcategory]</label></div>
</if>
jluerken
07-17-2004, 08:16 PM
As I guessed, the FORUMDISPLAY template was wrong... :rolleyes:
This code was missing: <if condition="$foruminfo['allowcategories']">
<div><label for="fa_cat"><input type="radio" name="do" id="fa_cat" value="showcategory" />$vbphrase[manage_threadcategory]</label></div>
</if>
Ok many thanks, I will update all the other styles now and press INSTALLED :D
Thanks for your help!
shadow187
07-22-2004, 03:50 PM
Thanks for this great hack m8 !!!!
However i have some request.....
IS it possible when a user edit his thread for example and changes his thread prefix for his thread, is it then possible so that the thread is jumped at the first line in that forum...
So basically the same effect if you reply to a thread, it jumps back to the first line....
Would be great if that could be done...
Thanks in advandce
S.
truefresco
07-27-2004, 05:26 AM
I have installed this hack with 3.01 and it works great, but now there is 3.0.3 will it work?
and how to upgrade?
Mystics
07-28-2004, 07:46 PM
I have installed this hack with 3.01 and it works great, but now there is 3.0.3 will it work?
and how to upgrade?
It will work and you just have to re-do the file and template modifications.
truefresco
07-28-2004, 07:55 PM
It will work and you just have to re-do the file and template modifications.
how do i do that? file mods that is - do i run install or there is a list with files/changes somewhere?
Mystics
07-28-2004, 08:01 PM
how do i do that? file mods that is - do i run install or there is a list with files/changes somewhere?
/admincp/categoryinstall.php?hacklanguage=english&step=2
Step 6: Instructions for File Changes
Step 7: Instructions for Template Changes
truefresco
07-28-2004, 08:36 PM
thanks a lot!
The General
07-28-2004, 09:02 PM
/admincp/categoryinstall.php?hacklanguage=english&step=2
Step 6: Instructions for File Changes
Step 7: Instructions for Template Changes
Hmm...well I did do all the file changes again after my upgrade from 3.0.0 to 3.0.3, my templates all seem intact still. But somehow I lost all the current prefixes I had, they all got deleted or are hidden.
Did I forget something?
Great job, installing this hack now. This was EXACTLY what I was looking for. ^^
spence2
08-01-2004, 12:51 PM
13. Edit the template: SUBSCRIBE
Find this code: <td class="tcat" colspan="5">
This phrase does not exist in default text of template "SUBSCRIBE"
<!-- 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 -->
How should I proceed?
Thanking you in advance for your reply!
Mystics
08-01-2004, 01:30 PM
13. Edit the template: SUBSCRIBE
Find this code: <td class="tcat" colspan="5">
This phrase does not exist in default text of template "SUBSCRIBE"
It's now:<td class="tcat" colspan="6">Replace it with: <td class="tcat" colspan="<if condition="$show['threadcategories'] == 2">7<else />6</if>">
spence2
08-02-2004, 02:15 AM
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!
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. :)
Mystics
08-05-2004, 04:47 PM
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. :)
Hm, do you "Update existing threads with changed categories" at the same time? Just ordering does not change any thread infos.
spence2
08-05-2004, 07:57 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=66082&page=1&pp=15) so that users could choose a category when posting a new thread to a forum via a form?
Thanks.
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 :)
Mystics
08-09-2004, 04:10 PM
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 :)
No, that's not possible by default. You would have to create a new option, similar to the "forum.allowcategories" option. You may take that option as an example for a new one. Should be not too difficult.
Alright, will try to figure that out on my own.
Btw, these is an instance in step 2 of file edits :
the delthreadlimit portion occurs 2 times , so perform the 'add above' filtercategory twice also ?
Might want to clarify in your installation instructions to remove any ambuguity :)
Battle_Ring
08-11-2004, 05:55 PM
Ive Re-checkever everything and cant seem to find any error that i did....but look at my screenshot....it has to be in forum display, but i see nothing wrong with my forum display....not sure if i need a <br> somewhere, cuz it seems everything is moved one to the left....like the views is in replies....replies ins in thread starter...etc
Battle_Ring
08-11-2004, 05:59 PM
See Look.....
Mystics
08-12-2004, 04:48 PM
Ive Re-checkever everything and cant seem to find any error that i did....but look at my screenshot....it has to be in forum display, but i see nothing wrong with my forum display....not sure if i need a <br> somewhere, cuz it seems everything is moved one to the left....like the views is in replies....replies ins in thread starter...etc
Your threadbit template is not correct. Re-do the modifications.
Mystics
08-12-2004, 05:26 PM
Btw, these is an instance in step 2 of file edits :
the delthreadlimit portion occurs 2 times , so perform the 'add above' filtercategory twice also ?
No, you really just have to find this code: $delthreadlimit
");Pay attention to the correct indent (3x tab, not 4x tab in front of $delthreadlimit). Maybe I will change it nevertheless to make it more clear.
Battle_Ring
08-13-2004, 02:15 PM
That Fixed It, Thanks
djohn
08-24-2004, 05:32 PM
vBulletin 3.03, i get an error on installation step 7 part 13
Find this code: <td class="tcat" colspan="5">
It's not there :(
ps: i don't think the hack is compatible with 3.0.3, i have errors everywhere after the installation.
Mystics
08-24-2004, 05:44 PM
vBulletin 3.03, i get an error on installation step 7 part 13
It's not there :(
https://vborg.vbsupport.ru/showpost.php?p=538918&postcount=114
That's the only thing that has changed with 3.0.3. Beside this it work's fine.
djohn
08-25-2004, 02:15 PM
Thanks, i'll try that. I guess the other errors were my fault.
Sunmoon
08-26-2004, 02:35 AM
Is there an option with this hack for users to filter out categories they don't want to see? For example, I have a very active Real Life forum and there are political threads that most people don't want to see. If someone tags it political, I want to be sure that only people who want to see political threads see them.
Sounds like a great script!
Mystics
08-26-2004, 05:29 PM
Is there an option with this hack for users to filter out categories they don't want to see? For example, I have a very active Real Life forum and there are political threads that most people don't want to see. If someone tags it political, I want to be sure that only people who want to see political threads see them.No, that is not built-in. It's only possible to display threads of ONE specific category, not vice-versa.
Sunmoon
08-30-2004, 03:56 PM
Ok, thanks Mystics :(
Borisch
09-11-2004, 03:33 PM
Installed.
This was exactly what I had been planning on implementing myself.
Thx for sparing me the trouble =)
Maverickrd
09-16-2004, 11:07 AM
Hello all,
first, nice Hack good Work.
Now my question, can i copy forum categories to other forums.
When yes, how?
Cu
Mav
intrigue
09-16-2004, 12:41 PM
when i get time to install this i will do i think for the education environment of one of me forums this will be invaluable
.matt
Mystics
09-16-2004, 08:09 PM
Now my question, can i copy forum categories to other forums.That's not possible, sorry.
You only could use phpMyAdmin to update more than one forum with the same categories:
UPDATE forum SET category = "Category 1\r\nCategory 2\r\nCategory 2\r\n" WHERE forumid IN (1,2,3,4)
1,2,3,4 = forum ids
After that you have to save the display order of your forums to update the forum cache.
BamaStangGuy
09-18-2004, 05:12 PM
It seems that after I installed this hack my who's online stopped working correctly. Right now it just says "Member" Viewing Thread or Viewing Attachment. It doesnt give a link to the thread or attachment like it did prior to installing the hack.
What part of the hack could have affected this so I can go back double check the coding?
Anyone else having this happen?
Rick Sample
09-18-2004, 10:50 PM
I noticed that their are alot of files that need to be edited, will I have to do that manual or will the install script do that for me?
Thanks,
Rick Sample
09-18-2004, 11:07 PM
LOL...nevermind, I found it out. I think I'll let this go, don't have that much time :)
BamaStangGuy
09-19-2004, 02:17 AM
can anyone comment on my problem?
BamaStangGuy
09-21-2004, 03:52 PM
ok then can someone PLEASE tell me what files deal with the whos online page so that I can double check the code. The online page worked fine before I installed the hack. The least someone can do is tell me what files to check
Mystics
09-21-2004, 05:18 PM
ok then can someone PLEASE tell me what files deal with the whos online page so that I can double check the code. The online page worked fine before I installed the hack. The least someone can do is tell me what files to check
Reupload the original includes/functions_online.php.
BamaStangGuy
09-22-2004, 03:09 AM
Reupload the original includes/functions_online.php.
Thank you
Jack28
09-22-2004, 01:11 PM
Help i got this error:
Fatal error: Call to undefined function fetch_thread_categories() in W:\www\forumdisplay.php on line 431
PS. did re-hack the files n stuff... staying getting this error :(
Mystics
09-22-2004, 09:35 PM
Help i got this error:
Fatal error: Call to undefined function fetch_thread_categories() in W:\www\forumdisplay.php on line 431
PS. did re-hack the files n stuff... staying getting this error :(
Re-do the modifcations in includes/functions.php!
And be careful to insert the code at the right place. I think you have put it one line to high or low (maybe above } instead of beloe })
Lord Brar
11-04-2004, 02:46 PM
wow. just what I was praying for. Thanks . Installed!
Hades-1
11-06-2004, 04:09 PM
Can anyone tell me what to do in order to fix the screenshot you see below.
Its only the subscription template
It would be nice if it were possible to pick which usergroups can add categories through the admincp. I would prefer it if mods could not add categories. I know if is a simple code edit but it would be a good thing to add in the future. (I have done this already on my board).
Also, it would be nice to be able to edit forum thread categories from the admincp instead of having to do it from the board. Just a thought.
Otherwise very cool! Thanks!
Hi, I think that this hack is a great hack... it's just what I tried^^
Just two question
1) My forum ( version 3.0.3) has two style (default for alla forum and the second only applied to a forum): is it possible apply this hack to second style?
2) I had already installed warning hack and arcade hack.... u know if this hack is compatible with the others?
thx
Mystics
11-20-2004, 04:48 PM
is it possible apply this hack to second style?Just edit the templates of the second style as well (or make your first style to a parent of your second style)2) I had already installed warning hack and arcade hack.... u know if this hack is compatible with the others?I don't see any connection between these hacks.
Thx for the answer.
My doubs about other hack is because some *php and templates are the same.. but I'll try to install :)
StefanS
11-29-2004, 11:30 AM
Hi,
installed as described but if i call threadcategory.php i'm getting errors like:
Fatal error: Allowed memory size of 92212328 bytes exhausted at (null):0 (tried to allocate 35867534 bytes) in /home/httpd/docs/thinkfactory.de/foren/threadcategory.php(129) : eval()'d code on line 61
or
Fatal error: Allowed memory size of 74248752 bytes exhausted at (null):0 (tried to allocate 17942529 bytes) in /home/httpd/docs/thinkfactory.de/foren/threadcategory.php(129) : eval()'d code on line 82
Could anyone give me a shorthand where to search for fixing it?
Thanks!
Mike, is it possible to take up the suggestion of having 'mini images' as a prefix like what was mentioned in the first few posts of this hack thread ?
Because some of the thread prefixes are really long, and it would throw the layoff out and could be better represented by an icon.
Post icons have totally no functionality, compared to your thread prefixes ( think sorting by prefix, search by prefix etc )
I hope you could consider this request :)
Overlord
12-15-2004, 02:52 AM
I agree, I've installed it and it works fantastic, good job.
Some of my members however have requested I change the prefixes to easy to destinguish icons. Or perhaps both? with a switch on every forum to use text or icons?
Not really a switch, perhaps just allowing the input box to accept the img tags ( either bbcode or html , doesnt matter to me ) and to show it correctly.
I tried but it shows the code instead lol
Overlord
12-15-2004, 07:50 AM
Yes, that would probably work better.
Also, someone mentioned you can disable the category column and have the prefix appear before the thread titles? How exactly do you do that?
EDIT: I have recently had complaints that members are mysteriously losing posts, and topics are mysteriously going missing. Since the only major hack I installed over the past few days has been this I was wondering if there's any way that threads could be 'accidentally' hard deleted by this hack?
EDIT2: Nevermind, problem solved., I had a mod who did un-intentionally. :P
Tried everything but I still see the categories like in the attachment.
Any idea what I could have done wrong?
Mystics
12-29-2004, 05:34 PM
Tried everything but I still see the categories like in the attachment.
Any idea what I could have done wrong?Re-do your changes in the SHOWTHREAD template (First revert to original).
Ok I just redid all and seems to work just fine now.
thanks !
Hmm problem seems to have come from the Sticky spacer hack:
By Kingskin @ vbulletin.nl
Feel free to redistribute this/do whatever you like with it, i dont care!
@~@~@~@~@~@~@~@~@~@~@~@~@~
Go to the FORUMDISPLAY template of the style you wish to modify
Find:
$threadbits_sticky
Below that add:
</table><p>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<if condition="$show['threadicons']">
<td class="thead" colspan="2"> </td>
<else />
<td class="thead"> </td>
</if>
<td class="thead" width="100%">
<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&order=desc&sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
<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"><a href="$sorturl&order=desc&sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</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>
</tr>
Any idea how I can combine the 2? Moment I change these things in the FORUMDISPLAY forum the tables shift and all looks messy.
Thanks
lordnex
12-30-2004, 06:44 PM
I have one problem with this..
When I try to add specific categories to forums I'm getting a blank white page.
http://blahblah.ca/threadcategory.php?forumid=6
that's listed in the URL bar but the actual forum is blank. I have my board as my index file. Ideas?
lordnex
12-30-2004, 06:45 PM
I have one problem with this..
When I try to add specific categories to forums I'm getting a blank white page.
http://blahblah.ca/threadcategory.php?forumid=6
that's listed in the URL bar but the actual forum is blank. I have my board as my index file. Ideas?
I just wanted to also mention that it works with everything else though. The global categories work fine.
roundhost
12-30-2004, 07:49 PM
How about if the category was in the title, e.g.
Instead of the title coming out as:
I need help eating rice??? (#)
It could be:
Question: I need help eating rice???
lordnex
12-30-2004, 07:59 PM
How about if the category was in the title, e.g.
Instead of the title coming out as:
I need help eating rice??? (#)
It could be:
Question: I need help eating rice???
were you helping someone else out? Kinda confusing without a quote.
Mystics
12-30-2004, 08:04 PM
I have one problem with this..
When I try to add specific categories to forums I'm getting a blank white page.Added the templates to the wrong style? Didn't add the templates at all?
How about if the category was in the title, e.g.
Instead of the title coming out as:
I need help eating rice??? (#)
It could be:
Question: I don't really understand your question. Just set "Show Thread Categories in Extra Column" in your [URL=https://vborg.vbsupport.ru/attachment.php?attachmentid=20843]admin cp (]I need help eating rice???[/url) to "No".
lordnex
12-30-2004, 08:48 PM
Added the templates to the wrong style? Didn't add the templates at all?
Ooooh.. there was one template missing. I upgraded vb (finally I know it's been a bit few months since the new version came out) and have been reinstalling hacks and upgraded this one too and missed the 2 new templates. Thanks, it's a great hack and all is working now.
BlasterT3
01-07-2005, 03:47 PM
GREAT HACK! ill be installing this weekend ty
H@K@N
01-09-2005, 01:37 PM
Hi Mystics,
i have also installed that hack, but i am getting following error, when i try to klick on a Forum :
Fatal error: Call to undefined function: fetch_thread_categories() in /srv/www/htdocs/web1/html/forumdisplay.php on line 430
when i klick to the last posted, i can go in ...
do ya know what i have missing ?
Mystics
01-09-2005, 01:50 PM
Hi Mystics,
i have also installed that hack, but i am getting following error, when i try to klick on a Forum :
Fatal error: Call to undefined function: fetch_thread_categories() in /srv/www/htdocs/web1/html/forumdisplay.php on line 430
when i klick to the last posted, i can go in ...
do ya know what i have missing ?Re-do the changes carefully in the original versions of forumdisplay.php and includes/functions.php.
H@K@N
01-09-2005, 02:49 PM
Ok th@nks Mystics,
i found out, that i inserted the code in functions.php between
return $stylesetlist;
<<<here>>>
}
isn't it better to say :
search for :
// ###################### Start build datastore #######################
add above :
code ....
anyway ...
I was able to give in one Forum some Categories, but after that, my wysiwyg Box was not working anymore also Quick Reply not, i cannot write anything into it ( have checked double vbulletin_wysiwyg.js + vbulletin_quickreply.js.
But it seems that the dropdown boxes for editing Forum Setting(goto_forum_tools) is not working anymore. When i push that, he jumps to the Display Options under the Threads.
any ideas ?
th@nks
DarrinM
01-11-2005, 09:37 AM
vB version 3.0.5
Hi there, hope someone can help
I am trying to install this hack to vB 3.0.5 and have found that <td class="smallfont"> </td>
does not exist in FORUMDISPLAY template
there are some 14 instances of td class="smallfont and 7 of </td>
Everything seems to be working except there is no option to display a category drop down box to select from when creating a new thread, oh and I cant see anywhere to set options for a moderator when viewing a board. The backend to the hack seems to be working as when editing an existing thread it does ask for a category to be selected before accepting the edit
Could someone provide some assistance if possible please as this hack would be very useful for me
Kind Regards
Darrin
Ordovicium
01-11-2005, 09:41 PM
@DarrinM:
Search for:
<td colspan="2" align="$stylevar[right]"><input type="submit" class="button" value="$vbphrase[show_threads]" /></td>
and replace it with:
<if condition="$show['threadcategories']">
<td class="smallfont"> </td>
<td class="smallfont"> </td>
</tr>
<tr>
<td class="smallfont">$vbphrase[threadcategory]:</td>
<td>$threadcategories</td>
</if>
<td class="smallfont"> </td>
<td><input type="submit" class="button" value="$vbphrase[show_threads]" style="width:100px" /></td>
DarrinM
01-11-2005, 10:13 PM
Thankyou for the assistance, however I am still not getting any category drop down box when posting a new thread, I have checked the updates to newthread template and all seem fine !
Darrin
This hack works fine in 3.0.5 :)
Thanks Mystics :)
Slave
01-13-2005, 05:58 AM
Lovely Hack .. Installed and fully working ..
A suggestion, but only if you have the time :)
I've seen people ask for the chance to put images as Categories .. as well as being able to give different Categories different colours .. wouldn't all this (and more) be possible if you allowed vBcode to work when you fill in the Categories boxes?
To be honest I'm not sure how difficult this would be .. but it's worth more investigation I would think :)
Slave
01-13-2005, 06:16 AM
Taking that further ..
I've just found this ..
https://vborg.vbsupport.ru/showthread.php?t=74184
Which is a hack to allow vB code in Titles .. I'm sure the same sort of thing could be done for Categories ..
I'll have a look myself to see if I can hack this into the Categories hack but it might be beyond me .. others are more than welcome to have a go. If you succeed can you let us know how to do it so everyone knows .. :)
Mystics
01-15-2005, 03:26 PM
@Slave
The problem is to show these images / colorful categories within the drop down list...
btw: I updated the instructions for vBulletin 3.0.5.
Slave
01-16-2005, 07:55 AM
Do you need to show them in the dropdown lists? .. it's not like the people picking the categories will really mind as it would the mods and admins deciding what colour/image to use ..
An example is a forsale/wanted type forum .. as a mod for that forum I might want forsale to be in green and wanted in red .. both would have images next to them .. but the people picking the categories wouldn't need to see that when they are picking them ..
Dennis Olson
02-15-2005, 10:17 PM
Will this hack work in 3.0.3 as-is? Or do I have to change something?
Dennis Olson
02-15-2005, 11:41 PM
I already have extensive modifications to some of the templates and files altered by this hack. Will it install properly in conjunction with these existing mods?
Mystics
02-16-2005, 07:14 PM
I already have extensive modifications to some of the templates and files altered by this hack. Will it install properly in conjunction with these existing mods?Give it a try. Only you know the modifications you made, only you can test it.
Dennis Olson
02-16-2005, 08:43 PM
I've never used the automated hack installer. So my question is really centered around how that application works. Does it make a backup of all files & templates (thus allowing you to cleanly back-out of an install), or do I need to take a tarball first?
Thanks!
Mystics
02-17-2005, 07:51 PM
I've never used the automated hack installer. So my question is really centered around how that application works. Does it make a backup of all files & templates (thus allowing you to cleanly back-out of an install), or do I need to take a tarball first?It's not as automatic as you may think...you have to do the template and file modifications by yourself. So yes, you should make a backup. Datebase changes are automated and a deinstallation routine for them is included.
Slave
02-22-2005, 08:39 AM
Mystics ..
I'm in the process of lowering the number of forums I have and would like to move all the threads from about 8 forums into the one forum with them all having categories instead. Before I do this I'd like to give all of those threads a category. Is there a way I can force all threads in one forum a single category which would then show once I move them?
I've tried creating a single category and then using the update all threads option .. but this seems to only work if they have a category attached to the thread already.
Any ideas?
Mystics
02-24-2005, 12:31 PM
Any ideas?Use these queries instead:
UPDATE thread SET category = 'category1' WHERE forumid = X;
UPDATE thread SET category = 'category2' WHERE forumid = Y;
etc.
X, Y = forumids of the old forums.
Slave
02-24-2005, 12:55 PM
Cheers .. I'll give it a go ..
I take it to keep the cats for the forum move I have to make sure the cats are using the same slots on each forum ..
Mystics
02-24-2005, 01:04 PM
I have to make sure the cats are using the same slots on each forum ..Actually this is not important.
Slave
02-24-2005, 01:15 PM
Ahh .. cool .. thanks :)
Cyricx
03-06-2005, 04:01 PM
Man I'm having a heck of a time figuring out the conditional to only make this display for admins or co admins if it's a certain forum..
Any ideas?
hitmanuk2k
03-07-2005, 12:58 PM
In editor_clientscript we are told to add something below:
"must_enter_subject" : "$vbphrase[must_enter_subject]",
But I can not find that line in there.
Box Websites
03-10-2005, 09:44 AM
Hi all,
Can someone tell me how to uninstall this? I thought there was a script to run but I cant find it, heh.
rjordan
03-15-2005, 12:46 AM
I must say, this had to have taken a long time to put together. The installation instructions and their delivery method is top notch. I thank you for what you have come up with as it has gone in smoothly on my site. I thank you!
Dennis Olson
03-18-2005, 01:26 PM
I installed this yesterday. Works perfectly. However, in my vB3.0.3, I had to dig around for new code placement in the FORUMHOME and SEARCH_RESULTS templates, as there are differences in 3.0.7. All-in-all, a great hack, and it installed in about 3 hours.
Dennis Olson
03-18-2005, 02:50 PM
When I SEARCH on more than ONE KEYWORD, the search function ONLY searches threads that have a category. The old threads (which do NOT have a category) are ignored. However, if you search fo a single keyword, ALL threads containing that keyword are found, whether categorized or not.
Could somone perhaps tell me what needs to be done?
vB3.0.3
Thanks!
EDIT: Additional information -
To test, I added a category to a few threads whos contents would be used in a search. When I searched using multiple keywords, only a SINGLE thread came up in results. This was a thread that had been created AFTER categories were put in place. The missing threads had the category added via a thread edit (thread tools / edit thread).
However, when I used -' "keyword1" and "keyword2" '- , I got all three threads. Still NONE of the uncategorized ones however.
Dennis Olson
03-29-2005, 01:24 PM
Problem went away on its own after a day or so...
?? :rolleyes:
The Kiss
03-31-2005, 05:20 PM
Hi Mystics,
I'm the administrator of the French forum of a famous website (check out my PM). We currently have 3 forums in several languages. Today i'm ready to try your hack but I wondering if you can add the following changes. Please, have a look to the attached pic.
#1 - Display categories under titles of forums [important request, please]
#2 - Let users to select categories from top of the page (as showed on the pic)
Another question. I saw you are member of the vBulletin programming commulity. So, can you tell me if your hack could be integrated as a standard feature in next releases of VB?
Bye
Mystics
04-01-2005, 05:48 PM
#1 - Display categories under titles of forums [important request, please]
#2 - Let users to select categories from top of the page (as showed on the pic)Feel free to edit the hack for your purpose...I won't add this because not many users (including me) need such a feature. And if you have many categories you can't display them all as plain links.
The Kiss
04-01-2005, 06:10 PM
ok, I understand your position. BTW perhaps I can use the Replacement Variable Manager if I can't display all categories as plain links. Possible ?
e.g: [cat1] = http://www.xxxxxxxx.xxx/forum/showthread.p....
Another solution should be to extend the length of descriptions below Forum title. Is it possible and does this affect something?
I won't add this because not many users (including me) need such a feature.
Well, in fact the biggest French forum (22.905.990 messages and 253.967 members) uses the system I describe. That's why I asked the question. I want the same thing as them.
check it out at: http://forum.hardware.fr/
Thanks anyway,
Bye
Mystics
04-01-2005, 06:14 PM
Another solution should be to extend the length of descriptions below Forum title. Is it possible and does this affect something?You can do that.Well, in fact the biggest French forum (22.905.990 messages and 253.967 members) uses the system I describe. That's why I asked the question. I want the same thing as them.
check it out at: http://forum.hardware.fr/This looks just like normal sub forums, not like categories.
You should consider using sub forums instead of categories.
The Kiss
04-01-2005, 06:37 PM
You should consider using sub forums instead of categories.
ok, here is a typical exemple of what I'm trying to do:
Forum Nokia
Entry level | Middle class | Pro class
By clicking on 'Forum Nokia' members display threads of the 3 categories. If not, then they display only the selected category.
This possible with your hack but not by using sub-forums. Perhaps there is a special PHP command to do this but I don't know it..
In vB 3.0.6 "Edit the file: clientscript/vbulletin_stdedit.js"
Find this code:function validatePost(tform, subjectVal, minLength, maxLength)
{
return validatemessage(tform.message.value, subjectVal, minLength, maxLength, false, tform);
}
Replace it with this code:
function validatePost(tform, subjectVal, minLength, maxLength, categoryVal)
{
if (typeof categoryVal == "undefined")
{
var categoryVal = 0;
}
return validatemessage(tform.message.value, subjectVal, minLength, maxLength, false, tform, categoryVal);
}
The Code in 3.0.6 :
function validatePost(tform, subjectVal, minLength, maxLength)
{
postOK = validatemessage(tform.message.value, subjectVal, minLength, maxLength, false, tform);
if ((postOK == true) & is_ie) {
Copied = tform.message.createTextRange();
Copied.execCommand("Copy");
}
return postOK;
}
What needs changin' ? Everything else went through nice and easy !
The Kiss
04-01-2005, 10:43 PM
TTG,
Thank but what for? Can you explain?
TTG,
Thank but what for? Can you explain?
er.. my previous post was 'my problem' .. I can't edit the code as per the installation 'cos 3.0.6 code is different !?
Mystics
04-02-2005, 11:06 AM
@TTG
You obviously have already modified vbulletin_stdedit.js....yours is not the original code...so either upload the original vbulletin_stdedit.js or use this:function validatePost(tform, subjectVal, minLength, maxLength, categoryVal)
{
if (typeof categoryVal == "undefined")
{
var categoryVal = 0;
}
postOK = validatemessage(tform.message.value, subjectVal, minLength, maxLength, false, tform, categoryVal);
if ((postOK == true) & is_ie) {
Copied = tform.message.createTextRange();
Copied.execCommand("Copy");
}
return postOK;
}
Thanks Mystics .. that solved the problem.
Clicked Install ..
One of the best set of hack instructions I've used .. very well done m8
TouchStone
04-11-2005, 11:25 AM
I installed Mystics' Prefix Hack but prefixes aren't showing on the cmps. Any idea on how to fix this?
PIKenPIK
05-03-2005, 07:27 AM
I'm gonna use this :) Was looking it for ages ..... Excellent ....
** Clicks Install **
Kaishi
05-20-2005, 03:48 AM
has anyone gotten this to work with vbadvance? i want to display the prefix in the news module
Kaishi
05-27-2005, 04:37 PM
i don't know if it's a bug with this hack, or it's something else. but if someone is viewing a thread in a forum, it doesn't say (x Viewing). only people viewing the forum is counted as viewing.
Kaishi
05-27-2005, 04:39 PM
does anyone know how to fix that?
vktechnology
06-03-2005, 09:35 PM
very cool hack..
vktechnology
06-07-2005, 11:05 AM
does Anyone know how to fix this?
what file or template should i go to edit to fix this ?
Mystics
06-07-2005, 04:06 PM
does Anyone know how to fix this?
what file or template should i go to edit to fix this ?Revert the threadbit template and do the changes carefully again.
StarBuG
06-10-2005, 11:49 AM
Hi Mystics
Do you plan to make a hook based version of your hack for the 3.5?
I realy would like to have it because it is a great hack :D
StarBuG
vktechnology
06-10-2005, 01:37 PM
Revert the threadbit template and do the changes carefully again.
Thank Mystics
It's working now
sensimilla
07-06-2005, 09:42 AM
would it need alot of coding to use images for each category ,instead of descriptions?
thanks in advance
paul41598
07-26-2005, 11:08 PM
mystics: Is it possible in this hack, to define in each forum, whether or not you want to have a seperate category cell for all the threads or just put the prefix in front of the thread title?
Cuz now, in the options(Show Thread Categories in Extra Column / Alignment) you can only choose yes, or no. WHich changes all your forums. However for instance, I want one of my forums to use a category cell, and the other forum to just prefix the thread title (i.e FS: xbox $120.00)
Mystics
07-30-2005, 05:41 PM
mystics: Is it possible in this hack, to define in each forum, whether or not you want to have a seperate category cell for all the threads or just put the prefix in front of the thread title?No, not by default. Feel free to implement it.
paul41598
07-31-2005, 12:15 PM
No, not by default. Feel free to implement it.
dunno if Im capable, but I guess I could try, lol. Not sure if it would be hard or not
sarahsboy18
08-31-2005, 03:21 PM
Just had to say great job Mystics... After spending a few minutes digging through the code trying to force it not to show the category in 'last post' column I decided to check the control panel... and sure enough you had already thought of that. Thanks! Brilliant work.
Jorim
09-17-2005, 02:45 PM
Hey Mystics, great hack, very very useful!
I've got a question. I'm using the option to force my users to select a category and that works fine, but I'd like to force them to select even if they don't want to have a category. So I want them to have the possibility to choose 'none' with value="". I've tried to find the spot where I can add an empty standard, but I can't find the place.
Do you understand what I mean and can you help me with this?
Thanks already!
Jorim
thalamus
09-18-2005, 11:07 AM
Just thought I'd say hi and thanks for a wonderful mod. Certain forums on my board need to have a status on the threads, and this has worked perfectly for me with no adjustments on the install on my vB3.0.9 (apart from some minor mods to allow for co-existing hacks). I've clicked the 'install' on here of course :)
One thing I'd love to know, is where I can look to add the ability to allow the category text to be different colors i.e. Help = Red, Checked = Blue, Resolved = Green etc. I would imagine this means a major modification of the way the details are both stored and retrieved from mySQL which is fine, but I'm just asking to save me reinventing the wheel :)
Omega Prime
09-21-2005, 10:33 AM
Any chance of a 3.5 version of this (product/plug-in or otherwise) :) ?
Odysseus
09-21-2005, 09:17 PM
Any chance of a 3.5 version of this (product/plug-in or otherwise) :) ?
I would appreciate this also.
Can't understand why Jelsoft did not include this in 3.5 by default ... :ermm:
Trovador
09-28-2005, 03:07 PM
This Hack run in vB. 3.5???
Mystics
09-29-2005, 08:30 PM
This Hack run in vB. 3.5???No, not yet.
Jorim
09-30-2005, 07:38 AM
Hey Mystics, great hack, very very useful!
I've got a question. I'm using the option to force my users to select a category and that works fine, but I'd like to force them to select even if they don't want to have a category. So I want them to have the possibility to choose 'none' with value="". I've tried to find the spot where I can add an empty standard, but I can't find the place.
Do you understand what I mean and can you help me with this?
Thanks already!
Jorim
Mystics, what about my idea??
Mijae
10-02-2005, 04:25 AM
I installed this the day before 3.5 gold came out. I now need this for the new version ;)
Any news or updates about that?
michaelbenson
10-02-2005, 01:30 PM
No, not yet.
Does that mean that the update is in process? :surprised:
Markco
10-15-2005, 07:57 AM
Any news or updates about that?
yes, I also make the same request
Black_Widow
10-16-2005, 02:19 AM
I've installed this on 3.0.7. It works very well ,thank you.
The only problem areis when you move thread from one forum to another.
The forum move also category in the title and you cannot remove it from the new forum.
Is this a known issue?
Thanks
Mystics
10-16-2005, 09:08 AM
The only problem areis when you move thread from one forum to another.
The forum move also category in the title and you cannot remove it from the new forum.
Is this a known issue?
ThanksSo I guess the new forum doesn't have any categories?
Black_Widow
10-16-2005, 11:03 AM
So I guess the new forum doesn't have any categories?
Yes exactly.
jokerz
10-19-2005, 11:36 AM
Mystic or anyone who can help me.
Is it templates in admin area or files in forum folder? Catagories thread title is split to the top, than inside thread list.
Mystics
10-19-2005, 06:07 PM
Mystic or anyone who can help me.
Is it templates in admin area or files in forum folder? Catagories thread title is split to the top, than inside thread list.
See the screenshot hereHm, could be a wrong threadbit (or FORUMDISPLAY) template. Revert to original, test, and do the modifications again.
jokerz
10-20-2005, 07:50 AM
Mystics, sorry it wasn't your fault. It was css problems. This is very nice, anyway.
How do you put : at the end of catagory title? Like the catagory name is Print and thread title is Assignment
In thread list is showing Print Assignment
I want to put Print: Assignment
What's template file I can edit? Cheers
Thomas P
10-21-2005, 11:07 AM
@Mystics: Are you going to release this hack for 3.5?
Wird es den hack für die Version 3.5 geben? Wäre super .
Mystics
10-21-2005, 04:51 PM
@Mystics: Are you going to release this hack for 3.5?Yes.
thalamus
10-22-2005, 12:02 AM
Yes.And I for one can't wait for it, my board is waiting and in dire need! hehe... :D Any ideas as to when it will be done?
jokerz
10-22-2005, 04:42 PM
How do you put : at the end of catagory title? Like the catagory name is Print and thread title is Assignment
In thread list is showing Print Assignment
I want to put Print: Assignment
What's template file I can edit? Cheers
Mystics
10-22-2005, 05:45 PM
How do you put : at the end of catagory title?Look at the bottom of your vBulletin Options. Category Markup.
Black_Widow
10-22-2005, 10:13 PM
Is there a way to use search strings to use search url like
www.forumpath..../search.php?do=process&query=keys
I'm trying
www.forumpath..../search.php?do=process&query=keys&threadcategories=HELP
but w/o results.
Thanks
Mystics
10-22-2005, 10:18 PM
Is there a way to use search strings to use search urlsearch.php?do=process&query=testquery&threadcategory=exactcategory
search.php?do=process&query=testquery&categoryoverride=partofcategory
Markco
10-23-2005, 08:35 AM
@Mystics: Are you going to release this hack for 3.5?
Yes.
He will be you translates into French as for the 3.x
Thank you
Black_Widow
10-24-2005, 02:16 PM
search.php?do=process&query=testquery&threadcategory=exactcategory
search.php?do=process&query=testquery&categoryoverride=partofcategory
Is it possibile to search only for some thread category w/o specify the keyword (query=XXX)
Thanks
dai-kun
10-31-2005, 02:43 AM
.. is the uninstaller suppose to delete all my templates from my database? Now my forum got no templates at alll..
Mystics
10-31-2005, 10:57 AM
.. is the uninstaller suppose to delete all my templates from my database? Now my forum got no templates at alll..No. Just tested it and it works (still) fine.
marc_t
10-31-2005, 01:27 PM
Is it still possible to use that one in 3.5 or is it better to wait for a new version from your site, Mystics?
Thanks in advance for your great work! ;)
marc
Mystics
10-31-2005, 01:38 PM
Is it still possible to use that one in 3.5 or is it better to wait for a new version from your site, Mystics?You should wait a few days.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.