vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to do this (RSS include and exclude)? (https://vborg.vbsupport.ru/showthread.php?t=159425)

Cybershaolin 10-04-2007 02:50 AM

How to do this (RSS include and exclude)?
 
Actually, I have created a new module where I exclude all RSS sub-forums from the getnew or getdaily new messages.

This is how the module looks like:

Product: vbulletin
Hook location: search_getnew_process
Title: Forums included in the results of the getnew or getdaily process
Execution order: 5
Plugin PHP code: $forumids = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 ,19,20,21,22,23,24,25,26,27,);
Plugin is active: Yes

Some of my users (not all of them) would also like to have another link including my RSS sub-forums so they would have something like this in the navbar:

New messages
New messages with RSS

and they would have the choice of clicking on the link they do prefer.

How to do this?

Dismounted 10-04-2007 04:46 AM

Add a conditional with a superglobal, then use the superglobal in one link but not the other.

Cybershaolin 10-04-2007 05:16 AM

You're losing me! I'm not a coder... the hack I made first was provided by somebody else I can't find anymore.

Would you be able to guide me a little more please?

Cybershaolin 10-07-2007 06:05 PM

Could I get more details as I said in my previous post please?


All times are GMT. The time now is 07:09 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.00923 seconds
  • Memory Usage 1,706KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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