View Full Version : Rich Text display of Thread Prefix in Recent Threads Module
trbothead
02-14-2008, 12:58 PM
Hi,
I was wondering if there was any way to get the Rich Text display of a Thread Prefix to show up in the Recent Threads Module? The way that it is now, it is pretty ugly because it displays what is displayed in the physical list that users choose from when the create a new thread.
thanks,
Brian
02-14-2008, 01:53 PM
Thanks for pointing this out. I must not have realized that vB included the rich text part when coding this. If you'll look in your modules/recentthreads.php file for this code though:
$thread['prefix'] = htmlspecialchars_uni($vbphrase['prefix_' . $thread['prefixid'] . '_title_plain']);
And replace with this:
$thread['prefix'] = $vbphrase['prefix_' . $thread['prefixid'] . '_title_rich'];
That should take care of the issue and display the rich text instead.
trbothead
02-14-2008, 02:10 PM
thanks for the quick reply Brian!
That fix however shows the raw html markup itself, not what is displayed from that field.
Brian
02-14-2008, 02:17 PM
Did you make sure to make that exact change as listed above? If the raw HTML is showing and not being parsed, then it sounds like the htmlspecialchars_uni() function that's wrapped around the original code is still present.
trbothead
02-14-2008, 02:21 PM
haha, whoops:o I gotta remember to stop skimming and start reading.
thanks Brian, it works great!
I love easy fixes!
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.