Brad
10-12-2002, 10:00 PM
(This has been upgraded to verson 2.0 :))
What this dose:
This will add since your last visit" XX posts and XX threads have been posted to the main page of your vBulletin.
This is based off the hack at vBulletin.org, this one adds it without hacking the index.php file. For reference, the original hack can be found here: https://vborg.vbsupport.ru/showthread.php?s=&threadid=31957
Screenshot in the next post.
Download: Here (http://www.vbulletintemplates.com/mods/attachment.php?s=&postid=23616)
Upgrading from 1.2 to 2.0
Verson 2.0 has been released, 2.0 will cut down the time it takes to run the querys added by this modification.
To upgrade:
---------------------------------
Run this SQL query:
---------------------------------
ALTER TABLE `post` ADD INDEX(`dateline`) ;
Upgrading from 1.0 to 2.0
Verson 2.0 has been released, 2.0 will cut down the time it takes to run the querys added by this modification.
1.0 also ran the querys on EVERY page generated by vBulletin. 1.2 and 2.0 only run these querys on /root/forum/index.php.
If you have already installed this modification upgrade ASAP.
To upgrade:
---------------------------------
Run this SQL query:
---------------------------------
ALTER TABLE `post` ADD INDEX(`dateline`) ;
----------------------------------
Open template phpinclude
----------------------------------
---------
Find:
---------
$loonewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
$loonewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
-----------------
Replace with:
-----------------
// Start thread and post scence last vist modification
if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
$loonewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
$loonewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
}
What this dose:
This will add since your last visit" XX posts and XX threads have been posted to the main page of your vBulletin.
This is based off the hack at vBulletin.org, this one adds it without hacking the index.php file. For reference, the original hack can be found here: https://vborg.vbsupport.ru/showthread.php?s=&threadid=31957
Screenshot in the next post.
Download: Here (http://www.vbulletintemplates.com/mods/attachment.php?s=&postid=23616)
Upgrading from 1.2 to 2.0
Verson 2.0 has been released, 2.0 will cut down the time it takes to run the querys added by this modification.
To upgrade:
---------------------------------
Run this SQL query:
---------------------------------
ALTER TABLE `post` ADD INDEX(`dateline`) ;
Upgrading from 1.0 to 2.0
Verson 2.0 has been released, 2.0 will cut down the time it takes to run the querys added by this modification.
1.0 also ran the querys on EVERY page generated by vBulletin. 1.2 and 2.0 only run these querys on /root/forum/index.php.
If you have already installed this modification upgrade ASAP.
To upgrade:
---------------------------------
Run this SQL query:
---------------------------------
ALTER TABLE `post` ADD INDEX(`dateline`) ;
----------------------------------
Open template phpinclude
----------------------------------
---------
Find:
---------
$loonewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
$loonewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
-----------------
Replace with:
-----------------
// Start thread and post scence last vist modification
if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
{
$loonewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
$loonewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
}