View Full Version : Thread Prefix not showing in News Archive
ibaker
02-01-2009, 04:15 AM
Brian
I see that there isn't any option to allow for the showing of the thread prefix in the News Archive module however it is available in the straight news module.
This is really needed on my site so can you advise how this can be done?
Brian
02-02-2009, 12:01 PM
You should be able to use the variable $news[prefix] within either of the adv_portal_news_archivebits_* templates.
ibaker
02-02-2009, 12:17 PM
You should be able to use the variable $news[prefix] within either of the adv_portal_news_archivebits_* templates.
Thanks Brian however there isn't any templates titled:
adv_portal_news_archivebits
5076
The closest is:
adv_portal_archivebits_exp
but if I insert the variable in there nothing appears yet I know it is this template that is being used - tested with some text "test" in place of where I inserted the variable and it shows up on the page. I even tried the variable $thread[prefix] on the offchance but that didn't work either
5077
Any other suggestions?
Brian
02-02-2009, 12:24 PM
Sorry, there must have been some old templates left over in the Admin CP here. Those are the correct templates though.
If that's not working, try adding a new plugin to the 'vba_cmps_module_news_archivebits' hook location with the following code:
if ($news['prefixid'])
{
$news['prefix'] = $vbphrase['prefix_' . $news['prefixid'] . '_title_rich'];
}
ibaker
02-02-2009, 02:23 PM
Thanks Brian - worked perfectly
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.