|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
Joined: Apr 2002
Posts: 474 |
Add this to the ubbthreads.tmpl this makes it easy to find the most recient posts instead of having to scroll to bottom to get the link.
Put this at the top...
echo <<<UBBTPRINT <table width="{$theme['tablewidth']}" align="center" class="tablesurround" cellpadding="1" cellspacing="1"> <tr> <td> <table width="100%" class="tableborders" cellpadding="{$theme['cellpadding']}" cellspacing="{$theme['cellspacing']}"> <tr> <td colspan="3" class="tdheader"><b>{$ubbt_lang['VIEW_PAST']}</b> </td> </tr> <tr class="lighttable"> <td width="33%" valign="top"> <div align="right">
<a href="{$config['phpurl']}/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=&Match=Entire+Phrase&Old=1day&Limit=25"> {$ubbt_lang['PAST24']} </a>
</div> </td> <td align="center" width="33%" valign="top">
<a href="{$config['phpurl']}/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=&Match=Entire+Phrase&Old=2days&Limit=25"> {$ubbt_lang['PAST48']} </a>
</td> <td width="33%" valign="top"> <div align="left">
<a href="{$config['phpurl']}/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=&Match=Entire+Phrase&Old=1week&Limit=25"> {$ubbt_lang['PAST7']} </a>
</div> </td> </tr> </table> </td> </tr> </table> <br />
UBBTPRINT;
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
I was thinking the other day that I wish I didn't have to scroll to the bottom for that link Nice work, I'll see what we can do.
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
I like the way the recent topics ("Show Topics") are a part of the header menu here at UBB Dev. How was it done?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
I added them to the ubbt_registerednav.tmpl: code:
<td align="right" valign="middle" class="menubar"> Show Topics: <a href="{$config['phpurl']}/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=&Match=Entire+Phrase&Old=1day&Limit=25"> <img src="{$config['images']}/24.gif" alt="{$ubbt_lang['PAST24']}" border="0" /></a> <a href="{$config['phpurl']}/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=&Match=Entire+Phrase&Old=2days&Limit=25"> <img src="{$config['images']}/48.gif" alt="{$ubbt_lang['PAST48']}" border="0" /></a> <a href="{$config['phpurl']}/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=&Match=Entire+Phrase&Old=1week&Limit=25"> <img src="{$config['images']}/7D.gif" alt="{$ubbt_lang['PAST7']}" border="0" /></a> </td>
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
Cool. I'm thinking of doing something close to what you've done, only with just the last 24 hours link. Thanks!
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 5,833
Joined: January 2000
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|