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)

rocket98 04-13-2004 02:03 PM

[QUOTE=mirdin]You'll have to ask your host to upgrade to a more recent version of PHP.

Or if you follow the link to the php function I posted before, it shows this code:

PHP Code:

// For users prior to PHP 4.3.0 you may do this:
function unhtmlentities($string
{
   
$trans_tbl get_html_translation_table(HTML_ENTITIES);
   
$trans_tbl array_flip($trans_tbl);
   return 
strtr($string$trans_tbl);
}

$c unhtmlentities($a);

echo 
$c// I'll "walk" the <b>dog</b> now

?> 

If upgrading PHP is not possible for you then you could try to replace the html_entity_decode function using this example.


-----
I read the install instructions for this hack, it specified no where that certain version number dependencies were required before implementing ... it just said whoopee let's go!!!


It may not be possible for some of us to "TELL" our ISP to UPGRADE some ISP's don't give a rat's a$$ about what we do on their systems they just want their $4.95 a month.

Replace this CODE WHERE?

Thank you.

Acido 04-13-2004 02:12 PM

Quote:

Originally Posted by Slapyo
ok, i think i have solved the problem with the duplicate posts. after acido mentioned that there were blank fields for the rss_feed and rss_date i realized that the vB function doesn't insert the new data.

so, to fix it i have uploaded v1.22 ... this includes the following changes:
- one more modification to functions_newpost.php (edit and upload)
- one fix to rss_update.php (just upload new one)

I'm getting a Database conflict when i run the cron on the task manager:

Quote:

Database error in vBulletin 3.0.0:

Invalid SQL:
INSERT INTO thread(title, lastpost, forumid, open, replycount, postusername,
postuserid, lastposter, dateline,
iconid, visible, attach, similar, rss_feed, rss_date)
VALUES
('Rod++++ bati? su propio r?cord de velocidad en el saque', 1081868007, 1060,
1, 0, 'Deportes', 4573,
'Deportes', 1081868007, 0, 1,
0, ', 1, ')

mysql error: Column count doesn't match value count at row 1

mysql error number: 1136
New threads are created, but i need rebuild forum information to see the last post in the forum display. Also, the field rss_date is still null .

Hope help.

SnowBot 04-13-2004 02:37 PM

Quote:

Originally Posted by Slapyo

so, to fix it i have uploaded v1.22 ... this includes the following changes:
- one more modification to functions_newpost.php (edit and upload)
- one fix to rss_update.php (just upload new one)

The Zip still says 1.21. Are the new files within this zip?

Host Visions 04-13-2004 03:48 PM

Thanks for this. Any idea how to not have duplicate posts?

mirdin 04-13-2004 04:13 PM

Quote:

Originally Posted by Slapyo
so, to fix it i have uploaded v1.22 ... this includes the following changes:
- one more modification to functions_newpost.php (edit and upload)
- one fix to rss_update.php (just upload new one)

Downloaded 1.22, took the original functions_newpost.php and made the changes and uploaded it, also uploaded the new rss_update.php and still it is not recognizing already posted articles.

rss_feed fields values are all 0, rss_date fields are still empty.

SnowBot 04-13-2004 05:03 PM

i have installed this but hhhmm nothing is being posted :( any ideas?

The forum is set corectly as i have just click the delete all news posts and wiped the forum completely :( But i guess that part works......

So the bot / user isnt posting

SnowBot 04-13-2004 07:16 PM

OK i re traced my steps and now when i try and run the scedual task i get this

rss.php

ChannelData($leftOvers,$x); } return; } /* * void parse ( string data ) */ function parse($data="") { $channels = $this->parseChannels($data); if(empty($channels)) { return; } $this->parseItems($channels); return; } /* * Finito */ } ?>d); } } } } // // ------------------------------ // End of RSS News Hack ?>

Help :)

Slapyo 04-13-2004 07:51 PM

sorry guys, i tried to get the new one up before i left for class for the day and found an error so i pulled it quickly and put back 1.21. i will fix the problem and get it back up when i get home from classes for the day.

also, i will make note of the problem with php version and include a fix for those that maybe have a lower version and can't change it.

i wasn't aware of that problem, and since it was working on mine i figured it was good to go. will include that in the next fix.

i'm still at school right now between classes, won't be home till later tonight though. hopefully i will have it checking for duplicate posts and i will have the fix for lower php versions in the install.

Slapyo 04-13-2004 09:00 PM

ok, i have fixed the duplicate post problem. it now inserts the data into the rss_feed and rss_date fields. it should check the post and not post it if it is a duplicate.

also, i have included in the rss_update.php file a section of commented code. if you use a version of PHP prior to 4.3.0 you will need to uncomment this section out, and then comment the 2 lines above it.

Slave 04-13-2004 09:08 PM

Thanks Slapuo .. :)

Any news about the \ problem?

(not tried 1.22 yet so don't know if still doing it :) .. yep it is)


All times are GMT. The time now is 09: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.01558 seconds
  • Memory Usage 1,749KB
  • 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
  • (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