UBB.Dev
Posted By: smilesforu Recent posts link for 6.4 - 11/04/2003 9:02 AM
Just did the upgrade to 6.4 and had this hack.. I used this one all the time to keep up with the many forums I have.
THanks for the upgrade Josh... it is sweet!!
Posted By: JoshPet Re: Recent posts link for 6.4 - 11/04/2003 10:01 AM
Actually you can do that with a link in the menu bar like this:

<a href="{$config['phpurl']}/dosearch.php?Cat=0&Forum=All_Forums&Words=&Searchpage=0&Limit=25&where=bodysub&newerval=&newertype=d&olderval=&oldertype=&daterange=1&bodyprev=1&Name=">Recent Topics</a>

That link is supposed to pull only search results within 1 day - but somehow it pulls more. Need to investigate what might be a 6.4 search bug.
Posted By: JoshPet Re: Recent posts link for 6.4 - 11/04/2003 10:04 AM
Correction:

<a href="{$config['phpurl']}/dosearch.php?Cat=0&Forum=,,All_Forums,,&Words=&Searchpage=0&Limit=25&where=bodysub&newerval=1&newertype=d&olderval=&oldertype=&daterange=1&bodyprev=1&Name=">Active Topics</a>

This works - ignore above. No bug.
Posted By: smilesforu Re: Recent posts link for 6.4 - 11/05/2003 10:50 AM
this in the post list?

I also need to add a post link when viewing a post... really improves posting from the members.
Posted By: JoshPet Re: Recent posts link for 6.4 - 11/05/2003 10:52 AM
That code I posted above would go in your menu bar
ubbt_registerednav.tmpl and ubbt_unregisterednav.tmpl

A post link could be put in showflat/showthreaded templates.

I think <a href="{$config['phpurl']}/newpost.php?Board=$Board">Post</a>
should do it
Posted By: smilesforu Re: Recent posts link for 6.4 - 11/05/2003 11:24 AM
That does it but the format looks really bad on the post link.

<a href="{$config['phpurl']}/newpost.php?Board=$Board">Post</a>
 

<!-- prevoption is previous.gif or greyprevious.gif -->

<td class="navigation" nowrap="nowrap">

$prevlinkstart

<img src="{$config['images']}/$prevoption" alt="{$ubbt_lang['PREV_THREAD']}" border="0" {$images['previous']} $imagestyle />

{$ubbt_lang['PREV_ICON']}

$prevlinkstop

 

</td>

Posted By: JoshPet Re: Recent posts link for 6.4 - 11/05/2003 7:23 PM
Yeah, that was just a link, you probably want to put it inside a td cell like the othere buttons

<td class="navigation nowrap="nowrap"
LINK
</td>
© UBB.Developers