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)
-   -   RSS News Feed Hack (https://vborg.vbsupport.ru/showthread.php?t=60899)

rockergrrl 04-11-2004 04:39 AM

How would I got about replacing the   tags in the post feeds

I tried putting something like " - " put it doesn't want to take.
or even " " with a space - nothing.

Suggestions?
Thanks

Slapyo 04-11-2004 05:11 AM

@aws ... thanks, i will look into this and see if it works. from the sounds of it, it should! how exactly would i go about making a replacement variable? forgive the silly question, i just bought vB and am very new to it.

@rockergrrl ... this function should replace all those.

PHP Code:

$rss_title html_entity_decode($rss_titleENT_NOQUOTES); 
$rss_description html_entity_decode($rss_descriptionENT_NOQUOTES); 


rockergrrl 04-11-2004 05:35 AM

I have that already in the rss_update.php file...

Still getting   tags showing up in posts. :/

Check attachment

Slapyo 04-11-2004 06:15 AM

what about this?

PHP Code:

$rss_title str_replace(" "" "$rss_title); 
$rss_description str_replace(" "" "$rss_description); 


redlabour 04-11-2004 12:00 PM

And when is the Version 2 coming ?

If i use : http://www.redlabour.de/vbulletin/in...RSS/rss_update

i get

Fatal error: Call to a member function on a non-object in /is/htdocs/53751/www.redlabour.de/vbulletin/includes/RSS/rss_update.php on line 10

on line 10 is : $query = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "rss_settings");

And i even have the Problem with no updates for the Feeds.

Can somebody post a new install.txt or post a complete *.zip with all corrections for this Hack ? :tired:

Slapyo 04-11-2004 12:54 PM

Quote:

Originally Posted by redlabour
And when is the Version 2 coming ?

If i use : http://www.redlabour.de/vbulletin/i.../RSS/rss_update

i get

Fatal error: Call to a member function on a non-object in /is/htdocs/53751/www.redlabour.de/vbulletin/includes/RSS/rss_update.php on line 10

on line 10 is : $query = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "rss_settings");

And i even have the Problem with no updates for the Feeds.

Can somebody post a new install.txt or post a complete *.zip with all corrections for this Hack ? :tired:

i might have something ready tonight. i'm not at my machine so i can test the final thing out. but i will be out there later tonight and can give it a shot. if everything is good, i will package it up and include a install.txt file as well.

vau7 04-11-2004 01:55 PM

Quote:

Originally Posted by Slapyo
what do you mean? i have no problems with it at all and i didn't touch index.php ... what are these cryptical signs you are talking about? do you have a screenshot or link so we can see. but like i said, i've made these changes and have had no problems at all with the bot making posts, users making posts/polls. the only problem i am running into, is pretty much getting the newlines to actually be newlines instead of just the text \n\n in the posts.


In the description of the first post are Modifications at the index.php.
Why do you wrote
Quote:

i have no problems with it at all and i didn't touch index.php ...
?

I've mixed up your edits and the Hack from the #1 Post. Wrong?
If i only do yours there is no abilty do the options in the acp?

I'm so confused now. Please tell it me slowly :disappointed:

rockergrrl 04-11-2004 02:35 PM

Quote:

Originally Posted by Slapyo
what about this?

PHP Code:

$rss_title str_replace(" "" "$rss_title); 
$rss_description str_replace(" "" "$rss_description); 


Nope, that didn't work :/

Now I have a problems with bold and italics in posts as well...

I tried:
PHP Code:

// change <b> tags
$rss_description str_replace("<b>""[b]"$rss_description);
$rss_description str_replace("</b>""[/b]"$rss_description);
 
// change <i> tags
$rss_description str_replace("<i>""[i]"$rss_description);
$rss_description str_replace("</i>""[/i]"$rss_description); 

But that didn't work. Should I just do a replacement var for those?

Thanks again!

redlabour 04-11-2004 03:03 PM

I wrote a PM to Xyphen - maybe he can tell us when V2 is coming out.

For the first i uninstall this Hack - i wait for a stable version or some stable feedbacks from other Users of the changes from "Slapyo" !

redlabour 04-11-2004 03:41 PM

Quote:

Originally Posted by vau7
In the description of the first post are Modifications at the index.php.
Why do you wrote
?

I've mixed up your edits and the Hack from the #1 Post. Wrong?
If i only do yours there is no abilty do the options in the acp?

I'm so confused now. Please tell it me slowly :disappointed:

:rolleyes:

Hey is not the Coder of the first posting !

The original ist from 'Xyphen' - his name is 'Slapyo' !! :tired:


All times are GMT. The time now is 04:10 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.01372 seconds
  • Memory Usage 1,758KB
  • 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
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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