RSS Feed Poster

Started by SMFHacks.com Team, January 11, 2007, 07:46:04 PM

Previous topic - Next topic

luuuciano

No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

GhostHunter

Quote from: phantomm on November 23, 2011, 01:52:01 PM

I changed:

if ($feed['html'])
{
$msg_body =  $smcFunc['htmlspecialchars']($context['feeditems'][$i]['description'], ENT_QUOTES);

to


if ($feed['html'])
{
$msg_body =  ($context['feeditems'][$i]['description']);


And now HTML is parsed correctly :D

Thanks, phantomm! This seems to work (SMF 1.1.15). I've been using it for several days, with no ill effects observed.

GH

Adrek

@up, there's one error after this edit. In outgoing URLs from RSS there's always \ before ", but I can live with it because for me that's better than nothing...
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

MrMike

User strip_slashes() to clean up the data.

Quote from: phantomm on December 01, 2011, 05:00:29 AM
@up, there's one error after this edit. In outgoing URLs from RSS there's always \ before ", but I can live with it because for me that's better than nothing...

GhostHunter


New info, on a feed today that had "quotation marks" in the text, they were replaced with &# number codes. It's a low volume feed, so it's no biggie to have to edit it.


snyperthugs

Anyone solved the HTML Tag issue other than manually input the HTML tags into each post?   I would really appreciate it, I been searching and searching, still nothing
www.4mydjs.com - Get Your Music Heard!

Adrek

Quote from: MrMike on December 01, 2011, 09:04:30 AM
User strip_slashes() to clean up the data.

Quote from: phantomm on December 01, 2011, 05:00:29 AM
@up, there's one error after this edit. In outgoing URLs from RSS there's always \ before ", but I can live with it because for me that's better than nothing...

how to use it? I'm not good at php... ;/
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

MrMike

I think strip_slashes($msg_body) would do it.

Quote from: phantomm on December 08, 2011, 03:56:37 PM
Quote from: MrMike on December 01, 2011, 09:04:30 AM
Use strip_slashes() to clean up the data.

Quote from: phantomm on December 01, 2011, 05:00:29 AM
@up, there's one error after this edit. In outgoing URLs from RSS there's always \ before ", but I can live with it because for me that's better than nothing...

how to use it? I'm not good at php... ;/

snyperthugs

So is there a way to automatically add [ html] in the begining?  and [/ html] at the end??
www.4mydjs.com - Get Your Music Heard!

MrMike

Quote from: snyperthugs on December 09, 2011, 01:31:41 PM
So is there a way to automatically add [ html] in the begining?  and [/ html] at the end??

I would guess that you could probably add a bit of code like:

$msg_body = "[ html] $msg_body [/ html]";

to do it.

snyperthugs

Quote from: MrMike on December 09, 2011, 01:40:10 PM
Quote from: snyperthugs on December 09, 2011, 01:31:41 PM
So is there a way to automatically add [ html] in the begining?  and [/ html] at the end??

I would guess that you could probably add a bit of code like:

$msg_body = "[ html] $msg_body [/ html]";

to do it.






Where? to what file?  I thought that code was already in the mod?
www.4mydjs.com - Get Your Music Heard!

Adrek

Quote from: snyperthugs on December 09, 2011, 01:31:41 PM
So is there a way to automatically add [ html] in the begining?  and [/ html] at the end??
yes, HTML tags are at beginning and at the end

@MrMike, thanks ;) I'll check this later :)
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

snyperthugs

Quote from: phantomm on December 09, 2011, 02:20:56 PM
Quote from: snyperthugs on December 09, 2011, 01:31:41 PM
So is there a way to automatically add [ html] in the begining?  and [/ html] at the end??
yes, HTML tags are at beginning and at the end

@MrMike, thanks ;) I'll check this later :)




They're not at the beginning and end of mine? I have to go through and manually do it everyday
www.4mydjs.com - Get Your Music Heard!

Adrek

And did you checked "Enable HTML" in settings (in RSS channel) ?
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

snyperthugs

www.4mydjs.com - Get Your Music Heard!

Zirc

When I try to add a new feed after I hit the Add Feed button i get this error...

XML error: Mismatched tag at line 21

Any idea where I should look to correct it?

snyperthugs

So is it still not possible to have the [ html] tages automatically added? or I have to continue doing it manually
www.4mydjs.com - Get Your Music Heard!

snyperthugs

Quote from: phantomm on November 23, 2011, 01:52:01 PM
thanks for tip :)

I changed:

if ($feed['html'])
{
$msg_body =  $smcFunc['htmlspecialchars']($context['feeditems'][$i]['description'], ENT_QUOTES);

to


if ($feed['html'])
{
$msg_body =  ($context['feeditems'][$i]['description']);


And now HTML is parsed correctly :D




What file are you editing???
www.4mydjs.com - Get Your Music Heard!

Adrek

Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

snyperthugs

oh well thats why, Im using Subs-RSS.php     Well if there something I can edit for this to work??  Do you think it might be the [html ] mod??  This is driving me stupid!.   

I even added
Quote$msg_body = html_entity_decode($msg_body,ENT_QUOTES);
after 
Quoteif ($feed['html'])
                        {
                           //echo "body: " . $context['feeditems'][$i]['description'];
                           $msg_body =  $func['htmlspecialchars']($context['feeditems'][$i]['description'], ENT_QUOTES);
                           $msg_body = $func['htmltrim']($msg_body);
                           preparsecode($msg_body);
                           $msg_body = '' . $msg_body . '';

but now the crons dont work with it.
www.4mydjs.com - Get Your Music Heard!

Advertisement: