vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   NEW Modified RSS News Feed Hack (https://vborg.vbsupport.ru/showthread.php?t=63798)

Slapyo 06-03-2004 08:46 PM

lol cool.

Intex 06-04-2004 10:16 AM

After a bit of searching, I've found a basic way to exclude selected forums from the new posts listing.


Search.php find:

PHP Code:

WHERE forumid IN(" . implode(', ', $forumids) . "


Replace with:

PHP Code:

WHERE forumid IN (". implode(',', $forumids).") AND forumid NOT IN(x

X above should be replaced with the forum you want to exclude. If you want to exclude more than one forum, then simply separate each forum with a comma.

However, this would mean that your members who do want to see new posts regarding these RSS forums, won't see them. A solution to this would be to create a separate search.php file. Just copy the existing search.php and rename it to something like search-rss.php.

You can then add another link to your NAVBar or whereever you like to call this particularly search script and show new posts, i.e.



I know this isn't an ideal solution, but it's a solution nonetheless. As already discussed, it would be better to have it prompt you if you want to include RSS feeds. Then again, for users that don't and never do, this would be undesirable as well :).

I've just changed my NAVBar menu so that 'New Posts' was renamed 'Posts' and this has a drop-down menu, which allows me to select 'New Posts (No RSS)', 'New Posts (with RSS)' , 'Mark Posts Read' etc.

Hope you find this useful until another solution is developed. Maybe it will also help Slapyo on the query side anyway.

The Realist 06-04-2004 10:24 AM

I'll stick mine all in a drop down menu, makes life a lot easier. For the time being I have excluded all RRS posts from the new posts search.

Laters

PAINTBALLM 06-06-2004 05:52 PM

before i install this. one question.

Can I make a category on my forums JUST for news feeds, and have it post a new thread for every new topic? (for people to discuss and such).

Let me know

Intex 06-06-2004 06:00 PM

Not sure what you mean by category. If you mean post into a particular forum or sub-forum, then yes - this is exactly what the hack does. It will pull feeds from other websites and it will create a new thread for every headline.

For example, I have a forum called RSS Feeds which has many sub-forums. I've created numerous bots that retrieve content from other websites and it automatically posts threads into each of these sub-forums.


Quote:

Originally Posted by PAINTBALLM
before i install this. one question.

Can I make a category on my forums JUST for news feeds, and have it post a new thread for every new topic? (for people to discuss and such).

Let me know


PAINTBALLM 06-06-2004 06:43 PM

Thats what I mean, sorry. Nice... Installing now ;)

PAINTBALLM 06-06-2004 07:22 PM

wjen I run rss.php I get

Parse error: parse error in /www.pbmessage.com/forums/includes/functions_newpost.php on line 1188

Fatal error: Call to undefined function: build_new_post() in /www.pbmessage.com/forums/includes/RSS/rss_update.php on line 103

The Realist 06-06-2004 08:27 PM

Recheck your edits of the files again, you have done something wrong.

rsuplido 06-07-2004 07:41 PM

Cool Hack! Here'a a suggestion though. Can it be done so that clicking on a thread will redirect to a page split into two frames horizontally? the main news is at the top, the thread discussion is at the bottom. Possible?

Deimos 06-09-2004 12:32 PM

Hmm i've got a problem here :(
After it's all installed, no errors show up, but when I goto Enable the mod, every user (Including me) who accesses the forums shows logged in AS the news bot? And the forum listing doesn't show up AT ALL
If I disable the mod, it returns to normal................!?


All times are GMT. The time now is 10:26 PM.

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.03311 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete