PDA

View Full Version : ... Get thread prefixes to show on homepage under Recent Posts in CMPS?


Protonus
03-08-2007, 06:04 PM
Hi, I'm running the "Thread Prefixes" hack for vB - it's very popular and there have been a number of people asking how to integrate it, with CMPS, but I've found nothing on this forum or vb.org about how to do it. On the CMPS mainpage as you know there is a "recent posts" section - and it's this section that I need to get thread prefixes to work with... I'm assuming it's just a template change but I know not what to edit :-(

Here is a link to thread prefixes and how it work etc:
http://www.vbulletin.org/forum/showthread.php?t=99925

Thank you so much in advance for anyone willing to work on this!

Brian
03-09-2007, 11:00 AM
Look in your modules/latesttopics.php file for this code:
thread.forumid

Replace with this:
thread.forumid, NOT ISNULL(threadprefix) AS threadprefix

Then you should be able to use the variable $thread[threadprefix] within your adv_portal_latesttopicbits template to display the prefix.

Our Sponsors
 

Protonus
03-09-2007, 12:25 PM
Then you should be able to use the variable $thread[threadprefix] within your adv_portal_latesttopicbits template to display the prefix.

Ok, I got the first part done ok, and I can edit that template just fine but, I'm a newb to the code and I apologize but, which line/string in the aforementioned template do I need to edit or add the variable too? I'm afraid it's rather greek to me, I tried my hand at a few times but just managed to mess it up :D

Thank you so much in advance, I know this will help others too!

Brian
03-10-2007, 04:49 PM
You would need to add it before $thread[title] assuming you want it to appear in front of the title of the thread. Note that you will need to change it in 2 places since that module has an <if condition> to change the format if it's placed in the center column.