Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Thread Prefixes Details »
Thread Prefixes
Mod Version: 1.6.2, by Mystics (Member) Mystics is offline
Developer Last Online: Jun 2015 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.x Rating: (37 votes - 4.92 average) Installs: 457
Released: 04 Aug 2006 Last Update: 25 May 2008 Downloads: 3371
Not Supported DB Changes Uses Plugins Template Edits Code Changes Additional Files Re-usable Code Translations  

Thread Prefixes

Version: 1.6.2
vBulletin Version: 3.6.10
Developer: Michael (Mystics) Koenig (www.vbulletin-germany.com)
Modification-Language: English & German & French (thanks to ReadWrite - Note: Readme has not yet been translated to french.)
Install-difficulty: Medium
File-edits: 5
Template-edits: 10


Brief Description of the Modification

This modification allows your users to choose a thread prefix for each thread. To do this you are able to select an appropriate prefix from a list beside the title while posting a new thread - for example 'Help', 'Problem', 'Search' etc.

This prefix will be displayed in front of the thread title. The result will be for example:
Problem - I can't find this setting

Problem is the thread prefix, I can't find this setting is the title of the thread.

The prefixes displayed in this list may be defined by a moderator for each of his moderated forums (Forum Tools -> Manage Thread Prefixes); of course an administrator and a super moderator is allowed to do this for every forum.


Features
  • Moderators are able to create own prefixes for each of their moderated forums.
    (Forum -> Forum Tools -> Manage Thread Prefixes -> threadprefix.php)
  • Display of the prefixes on forum display, search results, subscribed threads and within the thread itself.
  • It is possible to change the prefix with editing the first post of a thread or with the thread tools available for moderators at any time.
Settings in Admin CP
  • Maximum prefixes per forum
  • Thread Prefix required: Users have to select a thread prefix for their threads. You can select this globally for all forums or on a per forum basis.
  • Default Thread Prefixes: You may set default prefixes which will either be shown only in forums without own prefixes or be shown in addition to existing prefixes
  • Show Thread Prefixes in extra column or in front of the thread title in the same column
  • Alignment of the prefixes (if 'Show in extra column' is enabled): Align left, align right, center
  • Show Prefix in 'Last Post' column
  • Prefix HTML Markup: Specify an HTML tag with which to display the prefixes (bold, italic, red etc.)
  • Allow Thread Prefix search: If enabled, the prefixes of all forums the user has access to will be grouped in a list and displayed in the search engine.
  • Per Forum:
    • Allow Thread Prefixes in this Forum
    • Thread Prefix Required in this Forum.
Screenshots

See attachments.


Version-History

1.6.2 (2008-05-24 - 9:30 pm CET)
  • Fixed XSS security issue:
    Import the updated xml file (product-threadprefix_*.xml) to fix the security issue!
  • Changes for vBulletin 3.6.10 (Updated Template modifications)
  • Bugfix: It's possible again to search for prefixes
  • Installation script prefixinstall.php now works with IE7 too.
1.6.1 (2006-08-29 - 11:30 pm CET)
  • Bugfix: It's possible again to change the prefix by editing the first post of a thread.
  • Bugfix: The prefix will be forwarded correctly and without an error to the advanced editor while editing the first post via AJAX.
  • New: Thread Prefixes for discussion threads for user infractions and reported posts.
    You can enter those thread prefixes within your vBulletin settings.
  • New: Ability to sort the thread prefixes in descending order.
    (Forum Tools -> Manage Thread Prefixes)
  • New: Version check for the Thread Prefix Product within the AdminCP.
  • Import the updated xml file (product-threadprefix_*.xml) and upload the updated file /upload/threadprefix.php to your server.
1.6.0 (2006-08-04 - 07:00 pm CET)
  • Changes for vBulletin 3.6.0
  • Because you have to upload all files of vBulletin 3.6, there are no instructions for the update. Just follow the standard instructions for the file and template changes.
  • Fixed error within the search engine.
  • New: Prefixes are displayed within Content Syndication (external.php)
  • Do not forget to import the updated xml file (product-threadprefix_*.xml)!
1.5.5 (2006-04-09 - 03:00 pm CET)
  • Fixed database error within the search engine.
    (if prefix was selected and results were shown as posts)
  • Just import the updated xml file.
1.5.4 (2006-03-20 - 01:30 am CET)
  • Fixed small error within the search engine.
  • Just import the updated xml file.
1.5.3 (2006-03-19 - 03:30 pm CET)
  • Changes in includes/class_dm_threadpost.php for vB 3.5.4
  • Changes in includes/functions_threadprefix.php for vB 3.5.4
  • New: Search for prefixes only is now possible (without keywords)
  • New: Prefixes are displayed in "Similar Threads"
  • New: Separator between prefix and thread title within threads/emails may now be defined in your Admin Control Panel (used to be always " - ").
  • New: Save Thread Prefix in Search Preferences
1.5.2 (2005-11-03 - 07:30 pm CET)
  • Missing phrase: updateprefixes
  • Fixed small error in /threadprefix.php
1.5.1 (2005-11-02 - 09:30 pm CET)
  • First version for vBulletin 3.5.1
1.5.0 (2005-11-02 - 09:30 pm CET)
  • First version for vBulletin 3.5.0 (only one file edit more because of a missing hook)
Installation
  1. Upload all files from the upload directory to your vBulletin directory on your server.

    Overview of the files and corresponding directories:
    • /threadprefix.php
    • /admincp/prefixinstall.php
    • /admincp/prefixinstall_text.php
    • /includes/functions_threadprefix.php
  2. Import the file "product-threadprefix_english.xml" with 'Manage Products':
    Admin Control Panel -> Plugin System -> Manage Products ->
    [Add/Import Product] -> Select file -> Import
  3. Open this file with your browser:
    http://www.yourdomain.com/forum/admincp/prefixinstall.php
  4. Log in as administrator and follow the instructions
Time needed for installation: approx. 30 min.
Tested for version: 3.5.0 (and above).

Note: If you have used the Thread Category / Prefix Hack in vBulletin 3.0.x, don't worry: all existing prefixes will be imported during the installation. You just have to re-do your thread prefix settings in your vBulletin Options.

Update Product
  1. Upload all files from the upload directory to your vBulletin directory on your server.

    Overview of the files and corresponding directories:
    • /threadprefix.php
    • /admincp/prefixinstall.php
    • /admincp/prefixinstall_text.php
    • /includes/functions_threadprefix.php
  2. Import the file "product-threadprefix_english.xml" with 'Manage Products':
    Admin Control Panel -> Plugin System -> Manage Products ->
    [Add/Import Product] -> Select file -> Import

    You have to select 'Allow Overwrite' -> 'Yes' before clicking on Import!
  3. Open this file with your browser:
    http://www.yourdomain.com/forum/admincp/prefixinstall.php
  4. Log in, select the version you want to update from (at Step 2 -> 'Update Modification') and follow the instructions.
Short overview of the needed modifications

1. Files that need to be edited:
  • /showthread.php (Display prefix in 'Similar Threads')
  • /clientscript/vbulletin_textedit.js (JavaScript error message if no prefix was selected)
  • /includes/class_dm_threadpost.php (Prefix within emails to moderators)
  • /includes/functions_databuild.php (Update prefix in column 'Last Post' for mod functions)
  • /includes/functions_online.php (Display prefix in 'Who's online')

    It is your decision if you need the above functions or if you decide do use the product without file modifications!
    You don't have to do the file modifications as the product will work even though without them!
2. New files:
  • /threadprefix.php
  • /includes/functions_threadprefix.php
3. Templates that need to be edited:
  • editpost
  • FORUMDISPLAY
  • newthread
  • search_forums
  • search_results
  • SUBSCRIBE
  • threadadmin_editthread
  • threadbit
  • threadbit_announcement
  • threadbit_deleted
4. New templates:
  • threadprefix_listbit
  • threadprefix_modify
5. New phrases:
  • Too many to list them all - they will be created automatically while importing the xml file
Final words

If the modification doesn't work correct after installation, please verify all modifications you have made within the files and the templates. Be sure you have uploaded all edited and new files.

The modification was tested extensive and will function properly if installed correct.

Thanks to ReadWrite for his french translation.

Special Thanks to Andreas for his help with the hooks.

Have fun with the modification!

Please click Install if you have installed it

Mike

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	eng_admincp_prefix_settings.gif
Views:	3104
Size:	62.6 KB
ID:	51551   Click image for larger version

Name:	eng_admincp_edit_forum.gif
Views:	2353
Size:	13.0 KB
ID:	51552   Click image for larger version

Name:	eng_forum_manage_prefixes.gif
Views:	4744
Size:	39.5 KB
ID:	51553   Click image for larger version

Name:	eng_forum_post_new_thread.gif
Views:	6578
Size:	17.4 KB
ID:	51554  

Click image for larger version

Name:	eng_forum_search_forums.gif
Views:	5177
Size:	24.6 KB
ID:	51555   Click image for larger version

Name:	eng_forum_threads_in_forum.gif
Views:	6855
Size:	21.4 KB
ID:	51556  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Thread Prefixes Mystics vBulletin 3.5 Add-ons 368 09 Aug 2009 01:52

  #136  
Old 26 Nov 2006, 19:45
Mystics's Avatar
Mystics Mystics is offline
 
Join Date: Oct 2001
Real name: Mike
Originally Posted by stabmyback View Post
HMM, is it just me or does the display options dont work??

[_] Have Prefixes in alphabetical order
(Prefix Number will be ignored)

[o]Ascending [o]Descending

when i submit the form it resets >_<
The prefixes will be ordered and stored in the database. So it's normal that this form always shows the default options.
Reply With Quote
  #137  
Old 27 Nov 2006, 04:54
blankoboy blankoboy is offline
 
Join Date: Apr 2006
Mystics, is the current version of this hack compatible with the 3.6.4 release of VB? I have been seeing posts from some saying it works with no problems on their board while others are saying the complete opposite. I realize of course there is quite a diversity of configurations and user skill level so it's hard to take anyone's word.

Can you say either way if it is fully compatible with 3.6.4 or if an update is pending? Also, any word on whether this hack may get integrated into the 'officially' VB product down the road? Thanks and keep up the great work!
Reply With Quote
  #138  
Old 27 Nov 2006, 08:04
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
I did a clean install on vB 3.6.4 then installed this mod and the search by prefix still doesn't work.
__________________
Kiwi Biker

SV1000 Portal
Reply With Quote
  #139  
Old 27 Nov 2006, 08:40
blankoboy blankoboy is offline
 
Join Date: Apr 2006
Originally Posted by SpankMe View Post
I did a clean install on vB 3.6.4 then installed this mod and the search by prefix still doesn't work.
This is the type of post I'm referring (is it not fully compatible or perhaps the installation was not fully correct, etc?). Unfortunately, not being able to implement this hack is the major roadblock for me launching my site. :cry:

*Is this very forum (vbulletin.org) using Mystics's prefix hack or their own version?

Last edited by blankoboy; 27 Nov 2006 at 08:53.
Reply With Quote
  #140  
Old 27 Nov 2006, 09:12
GNDI's Avatar
GNDI GNDI is offline
 
Join Date: Jun 2005
Originally Posted by blankoboy View Post
This is the type of post I'm referring (is it not fully compatible or perhaps the installation was not fully correct, etc?). Unfortunately, not being able to implement this hack is the major roadblock for me launching my site. :cry:

*Is this very forum (vbulletin.org) using Mystics's prefix hack or their own version?
the reason is, that some of the files/lines have been moved from vB you just have to do a little foot work yourself. it is working you have my promise on that. I'm using it on 3.6.4
__________________
BSD

VIB-host
Reply With Quote
  #141  
Old 27 Nov 2006, 09:41
blankoboy blankoboy is offline
 
Join Date: Apr 2006
Originally Posted by GNDI View Post
the reason is, that some of the files/lines have been moved from vB you just have to do a little foot work yourself. it is working you have my promise on that. I'm using it on 3.6.4
Thanks for the reply GNDI! Glad to hear that, any chance that someone might document the necessary changes so any of us having problems can hop aboard the prefix loving train too?
Reply With Quote
  #142  
Old 28 Nov 2006, 01:57
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Putting

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

under

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in search.php seems to fix the search by prefix problem.
__________________
Kiwi Biker

SV1000 Portal
Reply With Quote
  #143  
Old 30 Nov 2006, 19:26
picardtux picardtux is offline
 
Join Date: Nov 2006
many thx
Reply With Quote
  #144  
Old 02 Dec 2006, 04:01
Amenadiel's Avatar
Amenadiel Amenadiel is offline
 
Join Date: Sep 2006
Installed.

Hope to see a version that can auto edit templates... I was very afraid to break something when editing the templates and files lol.
Reply With Quote
  #145  
Old 06 Dec 2006, 04:32
blankoboy blankoboy is offline
 
Join Date: Apr 2006
Originally Posted by SpankMe View Post
Putting

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

under

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in search.php seems to fix the search by prefix problem.
Is this the only change that needs to be done to make this hack fully compaitible with version 3.6.4? Can Mystics confirm on this by any chance? :classic:
Reply With Quote
  #146  
Old 08 Dec 2006, 04:04
Rabbitoh Warren's Avatar
Rabbitoh Warren Rabbitoh Warren is offline
 
Join Date: Sep 2003
Thanks for the mod, quite easy to install and easy to configure exactly to my liking. Would prefer to be able to set global prefixes instead of the forum-by-forum basis but I'll live with it.

It seems my only problem post-install of this mod is that the text/links for my similiar threads on the showthreads page are now blank. I don't need the prefixes to appear there, so any chance of getting the code I need to restore it to previous functionality?
Reply With Quote
  #147  
Old 13 Dec 2006, 00:00
Lyte's Avatar
Lyte Lyte is offline
 
Join Date: Nov 2005
NEVER mind...

I figured it out. lol :alien:

Thanks!

Lyte

Last edited by Lyte; 13 Dec 2006 at 00:04.
Reply With Quote
  #148  
Old 16 Dec 2006, 14:31
Limerick Limerick is offline
 
Join Date: Sep 2006
Hello All,

I'd like to know few points before installing :

- is it possible for Admin to change prefix if poster was wrong?
- or is it possible to let this hack used only by Admin (but seen by all users)?
- what happens if there is already a sticky prefix for sticky threads? Does Mystics prefix stand before or after the sticky one? (in case of no use of column, of course)

And finally, would it be hard to implement a default "Prefixed threads" button (or something about) in the navbar in order to display all these in one click while arriving on the board?

Thank you for your help.
Reply With Quote
  #149  
Old 20 Dec 2006, 00:26
itsid itsid is offline
 
Join Date: Oct 2006
Hi Limerick,

1) Sure every Mod can change the prefix if necessary
2) That just doesn't make any sense I'm afraid, you can deactivate the prefixes per forum, but not per usergroup
3) before

and finally:
in fact I don't think this is very easy, according to the changes you've made there will be differnet sets of prefixes for every forum.
You can filter searchresults by prefix, but you'll have to have a searchterm too.
To just find every thread just with a prefix would be a sql query with a huge result if not filtered by forum or searchterm or user or...

If you want to find threads with a prefix from admin control panel maybe my small add-on will help (see first-post)
but for users.... that one's useless

'sid
Reply With Quote
  #150  
Old 20 Dec 2006, 20:17
Limerick Limerick is offline
 
Join Date: Sep 2006
Hi Sid,

Thanks for your answer.

1) Ok, great.
2) That makes sense to me (or to my board, to be more accurate). In fact, it belongs to me to decide what prefix to set before thread title. It would be a way to define a thread "in course", "solved", "important", etc...
3) Humm... after would have been better...

4) (And finally... ) I would need all these prefixed thread (or some of them, by type), to be pinned at the top of the forumhome (plus to their own forum). I thought I've seen a board somewhere which had such feature... but I don't remember where...

I'm going to see your add-on,

Thank you anyway.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:20.

Layout Options | Width: Wide Color: