vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Exclude stats from specific subforums on specific forums (e.g. index) (https://vborg.vbsupport.ru/showthread.php?t=132278)

Adult SEO 11-22-2006 10:00 PM

Exclude stats from specific subforums on specific forums (e.g. index)
 
Hi!

I am developing a parrot forum 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

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


All times are GMT. The time now is 10:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01142 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete