As John doesn`t have vbindex, I decided to see if I could get the news on the vbindex frontpage.. firstly I, found:
Code:
// latest threads
'vbindex_latestthreads',
'vbindex_latestthreadbit',
and replaced it with:
Code:
// latest threads
'vbindex_latestthreads',
'vbindex_latestthreadbit',
// arcade latest
'vbindex_arcadenews',
'vbindex_arcadenews_bit',
then, find:
Code:
// ####################### PROCESS vBindex WOL ##########################
and above it placed:
Code:
$newsresult = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "gamenews ORDER BY datestamp DESC LIMIT 4");
while ($news = $DB_site->fetch_array($newsresult)) {
$news['time'] = vbdate($vboptions['dateformat'],$news['datestamp'],true);
exec_switch_bg();
eval('$vbinewsbits .= "' . fetch_template('vbindex_arcadenews_bit') . '";');
}
$DB_site->free_result($newsresult);
eval('$vbiarcadenews = "' . fetch_template('vbindex_arcadenews') . '";');
next add a custom block, and replace the default code with (edit the next three templates to suit your own sites, this is just the way I have it laid out you might want something else, feel free to play around, that`s the beauty of vBulletin)
Code:
<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%">
<tr>
<td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td class="tcat" style="text-align: center" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('vbindex_customblock$box')"><img id="collapseimg_vbindex_customblock$box" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_vbindex_customblock.gif" alt="" border="0" /></a>
<span class="smallfont"><b>Latest Arcade News</b></span></td>
</tr>
<tbody id="collapseobj_vbindex_customblock$box" style="$collapseobj_vbindex_customblock">
<tr><td class="thead" style="text-align: center"><span class="smallfont"><a href="forums/arcade.php?">Enter the Arcade</a></span></td></tr>
<tr>
<td class="alt1">
<div class="smallfont">$vbiarcadenews</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<br />
create a new template called
vbindex_arcadenews and populate it with:
Code:
<table cellpadding="2" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
$vbinewsbits
</table>
next create a template called
vbindex_arcadenews_bit and populate it with:
Code:
<tr>
<td class="$bgclass" align="left" valign="middle" width="80%">
<li><span class="smallfont"><b>$news[time]</b>: $news[newstext]</span></li>
</td>
</tr>
and voila.. your latest arcade news on your frontpage.. Screenshot is attached to show you how this looks, but like I said eariler play around with the templates to get it to look the way you want..