Adult SEO
11-22-2006, 10:00 PM
Hi!
I am developing a parrot forum (http://www.papegaaienforum.com/) and I am importing aprox. 1000 parrot auctions a day via the RSS feed reader from vBulletin. This made all the last post notifications on the forum index show auctions wich is not what I wanted. So I developed this mod to be able to exclude stats from the RSS feeded auction forums on the forum index.
Code change required (vB3.6.4):
Find in includes/functions_forumlist.php on line 41:
function fetch_last_post_array()
{
global $vbulletin, $lastpostarray, $counters;
Add below:
eval('$rss_forums = array('.$vbulletin->options["rss_exclude_forums"].');');
eval('$noupdate_forums = array('.$vbulletin->options["rss_exclude_from_forums"].');');
Find within the same function on line 88:
if ($parentid == -1 OR !isset($vbulletin->forumcache["$parentid"]))
Change into:
if ($parentid == -1 OR !isset($vbulletin->forumcache["$parentid"]) OR (in_array($forumid,$rss_forums) AND in_array($parentid,$noupdate_forums)))
Enter the ID's of all RSS feeded forums and forums to exclude stats from in the Exclude RSS from forum stats admin and you're done!
Have Fun!
Jan Jaap
I am developing a parrot forum (http://www.papegaaienforum.com/) and I am importing aprox. 1000 parrot auctions a day via the RSS feed reader from vBulletin. This made all the last post notifications on the forum index show auctions wich is not what I wanted. So I developed this mod to be able to exclude stats from the RSS feeded auction forums on the forum index.
Code change required (vB3.6.4):
Find in includes/functions_forumlist.php on line 41:
function fetch_last_post_array()
{
global $vbulletin, $lastpostarray, $counters;
Add below:
eval('$rss_forums = array('.$vbulletin->options["rss_exclude_forums"].');');
eval('$noupdate_forums = array('.$vbulletin->options["rss_exclude_from_forums"].');');
Find within the same function on line 88:
if ($parentid == -1 OR !isset($vbulletin->forumcache["$parentid"]))
Change into:
if ($parentid == -1 OR !isset($vbulletin->forumcache["$parentid"]) OR (in_array($forumid,$rss_forums) AND in_array($parentid,$noupdate_forums)))
Enter the ID's of all RSS feeded forums and forums to exclude stats from in the Exclude RSS from forum stats admin and you're done!
Have Fun!
Jan Jaap