vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can I include thread prefix and topic tag filters to external.php feeds? (https://vborg.vbsupport.ru/showthread.php?t=298641)

SBlueman 06-02-2013 12:48 AM

Can I include thread prefix and topic tag filters to external.php feeds?
 
I would love to know if it's possible to build such a URL string to create RSS feeds:

PHP Code:

http://yourforum.com/forums/external.php?type=RSS2&forumids=108,112&prefixid=prefix_id_goes_here&tag=tag_here 

So basically IF the story is in X forum AND has a specific prefix id AND has a specific topic tag, then show the thread. Best part? I am using the Zoints topic tag mod. I might consider disabling the modification and using the default tag system if this would facilitate the url string.

Lynne 06-02-2013 01:38 AM

You would not be able to do what you want without actually editing the external.php file itself.

SBlueman 06-02-2013 03:22 AM

Well I am game, I just don't know what to edit and how. Anyone have any insight as to what to edit in external.php to make this work?

Lynne 06-03-2013 01:25 AM

Your have to edit the query which gets the thread information to include the prefix and tags that you include. Be sure to 'clean' your passed variables (article in the articles forum about that) before you use them in your query.

SBlueman 06-03-2013 03:46 AM

Which query would that be? And how do I include the prefix and tags? You'll have to forgive me and deal with me with kid gloves, I am not the most tech savvy guy out there.

Lynne 06-03-2013 04:55 PM

It looks like the query is around line 297 and just above it is the hook external_query, so I guess you may be able to write a plugin to insert the extra lines for the query. As for adding the prefix... there is thread.prefixid, so if you have the id, you could just use that. And for the tags is thread.taglist.


All times are GMT. The time now is 02:15 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.00953 seconds
  • Memory Usage 1,717KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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