The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Latest Threads On Forum Home Details »» | |||||||||||||||||||||||||
[high]Installation Instructions[/high]
Step 1: Upload the .xml file to the Product Manager Step 2: Modify the [high]FORUMHOME[/high] template Find: HTML Code:
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td> </tr> </tbody> </if> HTML Code:
<!-- latest threads --> <if condition="$show['latestthreads']"> <tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestthreads')"><img id="collapseimg_forumhome_latestthreads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_latestthreads].gif" alt="" border="0" /></a> $vbphrase[latest_threads] </td> </tr> </tbody> <tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]"> <tr> <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" /></td> <td class="alt1"><div class="smallfont">$threadbits</div></td> </tr> </tbody> </if> <!-- /latest threads --> [high]Credits[/high] NTLDR - For allowing me to port his vB3 hack of this [high]Updates[/high] Version 1.1.0: Simple update to make this work with vBulletin 3.5.0 Beta 2 - If you are installing for the first time, follow the installation instructions - If you are upgrading, please delete the previous plugin, and upload the new one - This new plugin also has the uncached template fix Version 1.1.1: Simple update to fix a permissions bug - Wasn't showing on my board because I had already fixed it and forgot about it lol - To upgrade, simply replace the plugin with the one attached Version 1.1.2: Simple update to fix a permissions bug again - To upgrade, simply replace the plugin with the one attached Chris Show Your Support
|
Comments |
#162
|
|||
|
|||
Thank you
*installed* |
#163
|
|||
|
|||
Is anyone else seeing a problem with new post icons? I'm seeing posts marked as new in the latest threads display, but if I click on "new posts" it says "Sorry, there are no new threads to view." That is correct - the new post icon in latest threads is wrong for me. Thus far the only way I've found to clear the new posts icon is to mark my forums read.
For example, I can log in as a test user and see 10 threads as unread using "new posts". If I click on a thread title it takes me to the thread. If I click on "new posts" again the thread is no longer listed, but if I go to my forum home the thread is still showing up as unread in the latest threads block. I'm using the database with automatic thread marking to track unread items. I'm guessing that I need to modify the SQL to look at the threadread table for each post and add it to the show goto new post section (listed below). Code:
// show goto new post $show['firstnew'] = false; $bbforumview = fetch_bbarray_cookie('forum_view', $thread['forumid']); if ($bbforumview > $vbulletin->userinfo['lastvisit']) { $lastread = $bbforumview; } else { $lastread = $vbulletin->userinfo['lastvisit']; } if ($thread['lastpost'] > $lastread) { $threadview = fetch_bbarray_cookie('thread_lastview', $thread['threadid']); if ($thread['lastpost'] > $threadview) { $show['firstnew'] = true; $show['icon'] = false; } } |
#164
|
|||
|
|||
I've pretty much figured out that the problem I'm seeing has to do with the forum_view cookie not being set, thus causing my unread status to fall back to using lastvisit instead. The forum_view cookie is only set in two places in all of the VB3.5 code and in both cases it's only set if you **are not** using threadmarking.
function_bigthree.php Code:
if ($vbulletin->options['threadmarking'] AND $userid) { $db->query_write(" REPLACE INTO " . TABLE_PREFIX . "forumread (forumid, userid, readtime) VALUES ($foruminfo[forumid], $userid, $time) "); if (!$check_parents) { return; } // check to see if any parent forums should be marked as read as well $parents = array(); $parents_sql = $db->query_read(" SELECT forum.forumid FROM " . TABLE_PREFIX . "forum AS forum LEFT JOIN " . TABLE_PREFIX . "forumread AS forumread ON (forum.forumid = forumread.forumid AND forumread.userid = $userid) WHERE forum.forumid IN ($foruminfo[parentlist]) AND forum.forumid NOT IN ($foruminfo[forumid], -1) AND (forum.lastpost = 0 OR IF(forumread.readtime IS NULL, " . (TIMENOW - ($vbulletin->options['markinglimit'] * 86400)) . ", forumread.readtime) > forum.lastpost ) "); while ($parent = $db->fetch_array($parents_sql)) { $parents[] = "($parent[forumid], $userid, $time)"; } if ($parents) { $db->query_write(" REPLACE INTO " . TABLE_PREFIX . "forumread (forumid, userid, readtime) VALUES " . implode(', ', $parents) ); } } else { set_bbarray_cookie('forum_view', $foruminfo['forumid'], $time); } |
#165
|
|||
|
|||
Does this work with 3.5.0 Gold ?
|
#166
|
||||
|
||||
Quote:
|
#167
|
||||
|
||||
It should do, but it's untested on my end - I haven't had time to install 3.5 Gold yet
Chris |
#168
|
|||
|
|||
ya it does work
|
#169
|
|||
|
|||
will this hack work if i put it in the header or footer?
|
#170
|
||||
|
||||
You will need to make it a global plugin location not a forumhome location
Chris |
#171
|
|||
|
|||
And how would I do that?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|