Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 09-03-2009, 06:36 PM
medicalforums medicalforums is offline
 
Join Date: Jul 2009
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Selecting Threads for RSS Feeds

This seems to be a strange request but here's why;

Am pulling feeds from my vB forums website into Twitter, Facebook, and Widgetbox. More often than not, there are members who are posting silly new threads (which I think is the case in any forum site), these threads get fed into those pages I listed above which is quite embarrassing and downgrading my public pages. They will be there even after I delete them because I believe once the thread is published it will immediately go to the RSS feed.

I don't want to moderate new threads because this will hinder visitors from freely posting.
I don't want to create a special "hidden" forum (with good threads copied in it) and then use its RSS feed because then clicks on those public pages will land onto the hidden forum.

Is there any way that I can choose (manually, not by filters) which threads to be included in an RSS feed which then I can send to my public pages?

Thanks
Reply With Quote
  #2  
Old 09-03-2009, 06:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no default vb method to go pick and choose manually which threads get fed to the rss feed. You can choose to only feed from certain forums, but you cannot choose which threads.
Reply With Quote
  #3  
Old 09-03-2009, 06:58 PM
medicalforums medicalforums is offline
 
Join Date: Jul 2009
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's why am asking for a modification or hack or even any external software that can do the job!

Another mechanism that can help is to set the cron job to retrieve feeds once every 24 hours so that I have time to delete the spam and unwanted threads

Can you help me how to set that?
Reply With Quote
  #4  
Old 09-03-2009, 09:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the forum to ask for a modification to be written is the Modifications Requests forums - either Paid or Unpaid. This forum is the general "can I do this" or "what is the proper setting in vbulletin to do this..." forum and I was answering that you can't do it with default vbulletin. You will need to write a product to most likely - add a new column to the thread table and then modify the external.php page to only 'feed' threads where that column is set to true.

As for only retrieving feeds every 24 hours.... you said you were pulling the feeds from your vbulletin site. So, if you want to change how often you retrieve the feed, you need to modify the script that retrieves the feed, which is not a vbulletin script. I have no idea what script it is, but you can try asking for help on whatever site you got the script from to see about only pulling it every so often.
Reply With Quote
  #5  
Old 09-03-2009, 10:40 PM
medicalforums medicalforums is offline
 
Join Date: Jul 2009
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for posting in the wrong forum, I posted here because I did not intend to request for a mod but I was only looking for any possible solution.

So http://www.mysite.com/external.php?type=rss2 does not use a vBulletin script!
Reply With Quote
  #6  
Old 09-03-2009, 11:24 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

external.php is the vbulletin script for the rss feed, so I'm not sure what you mean it isn't using a vbulletin script.
Reply With Quote
  #7  
Old 09-03-2009, 11:42 PM
medicalforums medicalforums is offline
 
Join Date: Jul 2009
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
As for only retrieving feeds every 24 hours.... you said you were pulling the feeds from your vbulletin site. So, if you want to change how often you retrieve the feed, you need to modify the script that retrieves the feed, which is not a vbulletin script. I have no idea what script it is, but you can try asking for help on whatever site you got the script from to see about only pulling it every so often.
You said that retrieving feeds from vb site is not a vb sript

What am doing is using external.php to send feeds to my twitter account, in other words I entered the external.php URL in twitterfeed

Can I set external.php to send those feeds only once in 24 hours?
Reply With Quote
  #8  
Old 09-04-2009, 12:59 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are two scripts here needed.... one to send the rss feed, one to retrieve it and use it. Like in vbulletin, you can take another feed from another site (some.other.site/rssscript.xml) and then import it into your site via a vbulletin script (rssposter.php). So, one script to send, one to retrieve - in this case the retriever is a vbulletin script. In your case, you are sending from vbulletin (via external.php) and retrieving via some other script on twitter or facebook or wherever. If you have control of both scripts (both the sending and retrieving scripts), then you can modify either. If you only have control of the sending script (external.php), then you will have to modify it. Every time you 'call' that script, it runs the query for the new threads. So, you would have to somehow put some condition on the query to only grab threads that are no younger than 24 hours ago. Kinda a weird modification to the query. I suppose it could be done, but I don't write queries for others (I'm a trial and error query writer).
Reply With Quote
  #9  
Old 09-04-2009, 01:43 AM
medicalforums medicalforums is offline
 
Join Date: Jul 2009
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lynne,
I was able to modify twitterfeed to check the feed only once every 24 hours
Will be working on Facebook and Widgetbox for a similar solutions

I will definitely leave the vB sender alone (as I don't want to mess with queries )

You've been really helpful, thanks again
Reply With Quote
  #10  
Old 09-05-2009, 10:58 PM
medicalforums medicalforums is offline
 
Join Date: Jul 2009
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne,

You should have pointed me to this!

admincp > vboptions > external data provider

and set the Cache lifespan to 1440 minutes which means 24 hours
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04049 seconds
  • Memory Usage 2,247KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete