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-23-2004 12:42 AM

you can call this script from cron if you want to.

call rss.php .... thats the file that triggers everything.

Natch 06-23-2004 06:46 AM

I have a small modification to the admincp/rss_admin.php to make the listing of Bot's more intuitive in the RSS News Feed Manager => Modify Bots ...

Find:
PHP Code:

// ########################## EDIT USER DISPLAY ############################
} else if ($_REQUEST['do'] == 'editUsers') {
    
print_form_header('rss_admin''update_editUser');
    
print_table_header('Edit a Bot');
    
$var "<select name=\"rss_userid\" id=\"sel_rss_userid\" class=\"bginput\">";

    
$query $DB_site->query("SELECT * FROM " TABLE_PREFIX "rss_user");
    while(
$data $DB_site->fetch_array($query)) {
        
$rss_userid $data['rssuserid'];
        
$rss_username $data['userid']; 

Add after:
PHP Code:

        $rss_source $data['source']; 

Then Find [four lines down from the last modification]:
PHP Code:

        $var .= "<option value=\"$rss_userid\">$rss_username (id: $rss_userid)</option>"

Replace with:
PHP Code:

        $var .= "<option value=\"$rss_userid\">$rss_source (feed id: $rss_userid)</option>"

HTH

Intex 06-23-2004 01:08 PM

Slapyo - I'm lost. How is the duplication issue being resolved?



Quote:

Originally Posted by Slapyo
you can call this script from cron if you want to.

call rss.php .... thats the file that triggers everything.


Intex 06-23-2004 01:09 PM

Natch - very useful, thx :).



Quote:

Originally Posted by Natch
I have a small modification to the admincp/rss_admin.php to make the listing of Bot's more intuitive in the RSS News Feed Manager => Modify Bots ...

Find:
PHP Code:

// ########################## EDIT USER DISPLAY ############################
} else if ($_REQUEST['do'] == 'editUsers') {
    
print_form_header('rss_admin''update_editUser');
    
print_table_header('Edit a Bot');
    
$var "<select name=\"rss_userid\" id=\"sel_rss_userid\" class=\"bginput\">";
 
    
$query $DB_site->query("SELECT * FROM " TABLE_PREFIX "rss_user");
    while(
$data $DB_site->fetch_array($query)) {
        
$rss_userid $data['rssuserid'];
        
$rss_username $data['userid']; 

Add after:
PHP Code:

        $rss_source $data['source']; 

Then Find [four lines down from the last modification]:
PHP Code:

        $var .= "<option value=\"$rss_userid\">$rss_username (id: $rss_userid)</option>"

Replace with:
PHP Code:

        $var .= "<option value=\"$rss_userid\">$rss_source (feed id: $rss_userid)</option>"

HTH


Kraydl 06-23-2004 02:00 PM

The post duplication problem.

Quote:

Originally Posted by Slapyo
ya, this problem has been resolved.

Slap, does the latest version have that fix in it?
Thanks.

Slapyo 06-23-2004 02:37 PM

nope, but if intex doesn't mind i would like to add this into the full release version. intex?

Slapyo 06-23-2004 02:39 PM

Quote:

Originally Posted by Kraydl
The post duplication problem.



Slap, does the latest version have that fix in it?
Thanks.

actually the post duplicate problem hasn't been resolved yet and that code wouldn't help since it was mine. it was a really old version of the code and still has the same stuff in it, someone changed the "created by" in the top of the rss_update.php. what i meant, was the problem had been resolved from them hosting the file off of their site.

Kraydl 06-23-2004 02:42 PM

Ah okay. I'm going to hold off installing that yet till the dup thing is fixed. Great work on the effort you have put into it so far.

Slapyo 06-23-2004 03:24 PM

i'm gonna work on the dup thing today. check back later on, might be updated.

Slapyo 06-23-2004 05:59 PM

ok, i am at work and made some changes but can't test it out.

Version 1.26 (23 June 2004 - Slapyo, Natch)
- listing of bot's more intuitive (Natch)
- hopefully fixed duplicate problem (Slapyo)
- stripped html tags from title and description (Slapyo)

for comparing the RSS feed with whats in the database, i just applied the same things i do before inserting the post. so it should be the same. i also applied Natch's hack to make listing the bots easier.

files changed:
- rss_admin.php
- rss_update.php


All times are GMT. The time now is 11:50 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.01659 seconds
  • Memory Usage 1,761KB
  • 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
  • (8)bbcode_php_printable
  • (4)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