Back to vBulletin 3.6 Add-ons

Exclude stats from specific subforums on specific forums (e.g. index)
Mod Version: 1.00, by Adult SEO

This modification is in the archives.
vB Version: 3.6.4 Rating: (0 vote - 0 average) Installs: 6
Released: 23 Nov 2006 Last Update: Never Downloads: 27
Not Supported Uses Plugins Code Changes  

Hi!

I am developing a 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:
PHP Code:
function fetch_last_post_array()
{
 global 
$vbulletin$lastpostarray$counters
Add below:
PHP Code:
 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:
PHP Code:
if ($parentid == -OR !isset($vbulletin->forumcache["$parentid"])) 
Change into:
PHP Code:
if ($parentid == -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

Download

This modification is archived, downloads are still allowed.

File Type: %1$s product-exclude_rss_stats.xml (1.8 KB, 47 downloads)

Supporters / CoAuthors

  • Adult SEO

vblts.ru supports vBulletin®, 2022-2025