View Full Version : Post icons not showing up in news on front page...
Torqued
06-06-2005, 01:35 AM
Upgraded to v2.0rc1.
Post icons are not showing up on the News items on the front page.
I tried disabling and re-enabling in the config, but still no worky.
Post icons show up fine in the Latest Topics module.
My site is @ http://www.torqued.org/news
FightRice
06-06-2005, 02:56 AM
Run the installer again, and edit your paths.Make sure they are correct for everything
Torqued
06-06-2005, 09:37 AM
Run the installer again, and edit your paths.Make sure they are correct for everything
I already did that.
Besides, the post icons are showing up correctly in the Latest Topics module.
And the icons were showing up in the News module before the upgrade.
Brian
06-06-2005, 11:08 AM
If you'll look in your news.php file for this code:
if ($mod_options['portal_news_legacy'])
Add this right above it:
$blockbullet = $vba_style['portal_blockbullet'];
if ($mod_options['portal_news_showicon'])
{
$vba_style['portal_blockbullet'] = '';
if ($news['threadiconpath'])
{
$vba_style['portal_blockbullet'] = '<img alt="" border="0" src="' . $news['threadiconpath'] . '" title="' . $news['threadicontitle'] . '" />';
}
}
Then find:
else
{
eval('$newsbits .= "' . fetch_template('adv_portal_newsbits') . '";');
}
And add this right below:
$vba_style['portal_blockbullet'] = $blockbullet;
Then look in your adv_portal_newsbits template for this code:
<td class="thead"><a href="$vboptions[bburl]/showthread.php?t=$news[threadid]">$news[title]</a></td>
Replace with this:
<td class="thead"><if condition="$mod_options['portal_news_showicon']">$vba_style[portal_blockbullet]</if> <a href="$vboptions[bburl]/showthread.php?t=$news[threadid]">$news[title]</a></td>
And that should take care of the problem.
Torqued
06-06-2005, 12:26 PM
That did it! Thanks Brian! :D
MotoUp
06-06-2005, 12:54 PM
Thanks. I like having the icons there.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.