PDA


View Full Version : Manual Scrolling Latest Forum Topics


LEAD_WEIGHT
05-26-2005, 06:17 PM
1: You will need to create a template called adv_portal_latesttopics and include the following code:



<!-- Latest Threads -->

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] <span class="smallfont"><strong>$vbphrase[latest_forum_topics]</strong></span></strong></span></td>
</tr>
</thead>
<tr>
<td class="$getbgrow" width="100%">
<A name="scrollingCode"></A><div style="vertical-align: top; height: 200px; overflow:auto;padding-right: 5px; width:100%;">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<if condition="$mods['modcol'] == 0">
<tr> <if condition="$vba_options['portal_threads_showicon']">
<td class="thead" width="5">&nbsp;</td>
</if>
<td class="thead" width="100%"><span class="smallfont">$vbphrase[title_username_date]</span></td>
<if condition="$show['lastpost']">
<td align="center" class="thead" nowrap="nowrap" width="25%"><span class="smallfont">$vbphrase[last_post]</span></td>
</if>
<td class="thead" width="15"><span class="smallfont">$vbphrase[replies]</span></td>
<td class="thead" width="15"><span class="smallfont">$vbphrase[views]</span></td>
<if condition="$vba_options['portal_threads_showforum']">
<td align="center" class="thead" width="10%"><span class="smallfont">$vbphrase[forum]</span></td>
</if> </tr>
</if>$threadbits
</table>
</div>
</td>
</tr>
</table>
<br />

<!-- End Latest Threads -->




2: Create a module

Module Title: Latest Forum Topics
File to Include: latesttopics.php
OR Template to Include: latesttopics (If you named the template above adv_portal_latesttopics)
Active: Yes
Templates Used:adv_portal_latesttopics, adv_portal_latesttopicbits





I take no credit for most of the coding since I only contribute the code in red. ;)

Borgs8472
05-28-2005, 01:23 PM
Cool

/me installs as he couldn't get the auto scrolling version working anyhow :D

brizzad
05-28-2005, 01:30 PM
It won't scroll on my site.. the actual block is created, however no topics scroll through :(

LEAD_WEIGHT
05-28-2005, 07:51 PM
It won't scroll on my site.. the actual block is created, however no topics scroll through :(

This is MANUEL SCROLLING :)
This should work if u do everything it says cause I have tested it and it worked fine.

I tested on IE not any other browser.

UserName : test
Password : test
Test link stlye default
http://www.theundergroundsource.com/?styleid=1

Borgs8472
05-31-2005, 03:05 PM
It works fine in Firefox :)