![]() |
|
#1
|
|||
|
|||
|
Here's a simple modification that combines the ability to let users know when there are new posts and to quickly get to them.
Basically, what this does is cause threads with new posts to be displayed in bold. When a thread has new posts clicking the thread title will take the use to the new posts. If the thread is not in bold then clicking the title will take the user to the first post in the thread. While I'm not normally an advocate of using different behaviors when clicking the "same" thing this one seems pretty intuitive. See the screen shots for more information. In the adv_portal_latesttopicbits template find Code:
<span class="smallfont"><strong><a href="$vboptions[bburl]/showthread.php?t=$thread[threadid]" title="<if condition="$thread[preview]">$thread[preview] </if>$vbphrase[by] $thread[postusername] <if condition="$vba_options['portal_threads_showdate']">$thread[postdate] $thread[posttime]</if>">$thread[title]</a></strong></span> Code:
<span class="smallfont"><a href="$vboptions[bburl]/showthread.php?t=$thread[threadid]<if condition="$show['gotonewpost']">&goto=newpost</if>" title="<if condition="$thread[preview]">$thread[preview] </if>$vbphrase[by] $thread[postusername] <if condition="$vba_options['portal_threads_showdate']">$thread[postdate] $thread[posttime]</if>"><if condition="$show['gotonewpost']"><strong>$thread[title]</strong><else />$thread[title]</if></a></span> In the latesttopics module find Code:
$thread = process_thread_array($thread, '', $vba_options['portal_threads_showicon']);
$getbgrow = exec_switch_bg();
Code:
$thread = process_thread_array($thread, '', $vba_options['portal_threads_showicon']);
// show new posts in thread
$show['gotonewpost'] = false;
$lastread = $bbuserinfo['lastvisit'];
if ($thread['lastpost'] > $lastread)
{
$threadview = fetch_bbarray_cookie('thread_lastview', $thread['threadid']);
if ($thread['lastpost'] > $threadview)
{
$show['gotonewpost'] = true;
}
}
$getbgrow = exec_switch_bg();
__________________
Tom Morris Porsche Boxster discussion forum. Today's Conservative discussion forum. |
|
#2
|
|||
|
|||
|
Did the above, but still aint getting bold titles in my latest posts..
To bad, would really like to have those.. its simply a must have... |
|
#3
|
||||
|
||||
|
Tom, nice idea.
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Organize "latest forum topics" by date of thread creation (rather than last post) | Noah | Troubleshooting / "How do I..." Questions | 3 | 12-26-2004 12:28 PM |
| Signature Updates all "old" and "New" posts? | boo | Chit Chat | 2 | 12-04-2004 05:38 PM |
| Problem with "Latest Topics from specific forum" module | Bergman | Troubleshooting / "How do I..." Questions | 1 | 11-15-2004 03:53 PM |