PDA

View Full Version : Exclude stats from specific subforums on specific forums (e.g. index)


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

maxicep
11-25-2006, 07:39 AM
thanks, adult seo . i need this hack. installed.

emmanuel132
12-09-2006, 06:01 PM
live demo? it didnt work i did evey thing u typed up and didnt see it under my forum :(

Adult SEO
12-09-2006, 06:11 PM
<a href="http://www.papegaaienforum.nl/" target="_blank">http://www.papegaaienforum.nl/</a>

There are aprox. 1000 auctions imported via RSS every day but they are not visible on the mainpage.

StOOOsH
12-17-2006, 09:59 PM
does this change your global post/thread count aswell?

Adult SEO
12-17-2006, 10:05 PM
Hi!

No, it will just not show the latest posts in forums you want to exclude so that if you import thousants of messages to multiple forums via RSS it won't be visible on the index.

Best Regards,
Jan Jaap

StOOOsH
12-18-2006, 01:59 AM
is there a way that this could be integrated or you could create this mod, i would be happy to donate some money if needed

Adult SEO
12-18-2006, 02:02 AM
Well, it's possible but really not verry easy to do so it might get expensive (like 50/100 euro).

If you don't mind to pay this I am willing to develop it otherwise you could request it on the Mod Request forum on this site.

Best Regards,
Jan Jaap