[RC1] RSS bbCode

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
BBnooby
Registered User
Posts: 20
Joined: Wed Mar 16, 2005 7:22 pm

Post by BBnooby » Wed Jun 15, 2005 3:36 pm

actually I get this error every time I do a reply now :(

tomythius
Registered User
Posts: 74
Joined: Sat May 28, 2005 3:05 pm
Location: Queniborough - Leicester - UK
Contact:

Post by tomythius » Wed Jun 15, 2005 3:41 pm

Jeez, that's not fun is it?
That looks like the problems I was getting when I was trying the different string patterns for urls.
What is on that line?
Tom says so, QED.

BBnooby
Registered User
Posts: 20
Joined: Wed Mar 16, 2005 7:22 pm

Post by BBnooby » Wed Jun 15, 2005 3:44 pm

Code: Select all

"'[rss:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/rss:$uid]'", $text);

User avatar
Lucas1510
Registered User
Posts: 47
Joined: Thu Sep 04, 2003 12:07 am
Location: Herne - Germany
Contact:

Post by Lucas1510 » Wed Jun 15, 2005 3:48 pm

@BBnooby

This should be (in) one line:

Code: Select all

$text = preg_replace("#\[rss\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(xml|php|rdf|rss|rss1|rss2|asp)))\[/rss\]#sie", "'[rss:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/rss:$uid]'", $text);

tomythius
Registered User
Posts: 74
Joined: Sat May 28, 2005 3:05 pm
Location: Queniborough - Leicester - UK
Contact:

Post by tomythius » Wed Jun 15, 2005 3:50 pm

Lucas1510 wrote: This should be (in) one line:

Code: Select all

$text = preg_replace("#\[rss\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(xml|php|rdf|rss|rss1|rss2|asp)))\[/rss\]#sie", "'[rss:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/rss:$uid]'", $text);

Yep, he's got it.
The line looks like it's been split in two, line 34 seems to be the end half, make sure you don't end up with duplicate half-formed instructions.
Tom says so, QED.

BBnooby
Registered User
Posts: 20
Joined: Wed Mar 16, 2005 7:22 pm

Post by BBnooby » Wed Jun 15, 2005 3:56 pm

OK, that is in one line, still get the error.

BBnooby
Registered User
Posts: 20
Joined: Wed Mar 16, 2005 7:22 pm

Post by BBnooby » Wed Jun 15, 2005 3:59 pm

the error is now on 293 ;)

Code: Select all

$text = preg_replace("#\[rss\]((http|ftp|https|ftps)://)(*))\[/rss\]#sie", "'[rss:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/rss:$uid]'", $text);

tomythius
Registered User
Posts: 74
Joined: Sat May 28, 2005 3:05 pm
Location: Queniborough - Leicester - UK
Contact:

Post by tomythius » Wed Jun 15, 2005 4:16 pm

OK.
I've been pulling my hair out on this one.
That line should read:

Code: Select all

	$text = preg_replace("#\[rss\]((http|ftp|https|ftps)://)([^ \"\n\r\t<]*?(\.)[^ \"\n\r\t<]*?)\[/rss\]#sie", "'[rss:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/rss:$uid]'", $text);
This has been tested on my forum and works well with any file extension.
Good luck once again.
Tom says so, QED.

BBnooby
Registered User
Posts: 20
Joined: Wed Mar 16, 2005 7:22 pm

Post by BBnooby » Wed Jun 15, 2005 4:32 pm

Cool, that seems to be working (at least on your blog) Thanks for the help!
Is there anyway for it to check for updates and create a new reply if there is an update?

tomythius
Registered User
Posts: 74
Joined: Sat May 28, 2005 3:05 pm
Location: Queniborough - Leicester - UK
Contact:

Post by tomythius » Wed Jun 15, 2005 4:47 pm

Yeah, this is the thread to post in.
The very first post in this thread has a link to the most recent version available.
I watch this thread and I think Lucas does too :P
Have fun.
Tom says so, QED.

SpittingKitty
Registered User
Posts: 24
Joined: Sun Dec 19, 2004 4:31 pm

Post by SpittingKitty » Tue Jun 21, 2005 12:47 am

I have two things going on that are problematic....

1. My bbc buttons no longer work for some reason

2. The RSS feeds aren't updating on the board. It will show the most current post when the feed is created using the rss bbcode, but if the LJ is updated, it isn't updating the feed.

Any ideas?

tomythius
Registered User
Posts: 74
Joined: Sat May 28, 2005 3:05 pm
Location: Queniborough - Leicester - UK
Contact:

Post by tomythius » Tue Jun 21, 2005 3:18 pm

SpittingKitty wrote: I have two things going on that are problematic....

1. My bbc buttons no longer work for some reason

2. The RSS feeds aren't updating on the board. It will show the most current post when the feed is created using the rss bbcode, but if the LJ is updated, it isn't updating the feed.

Any ideas?

Do you have a link?
Tom says so, QED.

SpittingKitty
Registered User
Posts: 24
Joined: Sun Dec 19, 2004 4:31 pm

Post by SpittingKitty » Tue Jun 21, 2005 4:36 pm

The general populace doesn't know I'm working on this, so this will be the best place to see it.

BTW, I see it's updating now, but the buttons are definitely not working still. Furthermore, the smilies "buttons" aren't working either...

http://www.jellywoodonline.com/bboard/v ... 9970#89970

tomythius
Registered User
Posts: 74
Joined: Sat May 28, 2005 3:05 pm
Location: Queniborough - Leicester - UK
Contact:

Post by tomythius » Wed Jun 22, 2005 6:31 am

Do you have a demo account I can use, or should I register?
Tom says so, QED.

SpittingKitty
Registered User
Posts: 24
Joined: Sun Dec 19, 2004 4:31 pm

Post by SpittingKitty » Wed Jun 22, 2005 5:22 pm

I actually just took the RSS button off the posting_body and everything is fine.

Post Reply

Return to “[2.0.x] MODs in Development”