Resource icon

Post Content Find / Replace 1.0.0

No permission to download
I need to modify the code

Code:
[COLOR=\"#3964C2\"]Album anzeigen[/COLOR][/URL]

to

Code:
[COLOR="#3964C2"]Album anzeigen[/COLOR][/URL]

(removed the two "\") but i cannot figure it out.
Somebody has a solution for me? Thanks :)

so does the url tag have anything to do with it or did you just put that in there for no reason?

Also, xf does not use [COLOR="#b0b0b0"]gsggfd[/COLOR] ... it uses [COLOR=#b0b0b0]gsggfd[/COLOR]
 
Last edited:
so does the url tag have anything to do with it or did you just put that in there for no reason?

Also, xf does not use [COLOR="#b0b0b0"]gsggfd[/COLOR] ... it uses [COLOR=#b0b0b0]gsggfd[/COLOR]

Sorry, i forgot to remove the [/URL] tag.
It's part of the Google Picasa RSS feed of my albums.

Code:
[COLOR=\"#3964C2\"]Album anzeigen[/COLOR]

It would be fine to remove the two " and \ after the COLOR= code ;)
 
Sorry, i forgot to remove the [/URL] tag.
It's part of the Google Picasa RSS feed of my albums.

Code:
[COLOR=\"#3964C2\"]Album anzeigen[/COLOR]

It would be fine to remove the two " and \ after the COLOR= code ;)

Quick Find:
Code:
[COLOR


Regular expression:
Code:
#(\[COLOR=)\\"(\#[a-z0-9]+)\\"(])#siu


Replacement String:
Code:
\1\2\3
 
I got one more, it seems many links from my vb installation that were being generated live using the old vbgeek GAL addon, have been copied in my xenforo installation , and I need to remove them asap, as they point to nowhere.

All of these are links, and have the form of: http://www.mydomain.com/glossary.phpANYTHINGHEREOINCLUDINGSYMBOLS

or http://www.mydomain.com/glossary/againanythinghere

So I guess I need to remove the whole link tag for these entries.

I've decided to just remove all these links , can you please help me out? :)

Basically i want to remove the link code, the text itself obviously should remain as it's part of the post text
 
Hit edit on one of the posts...are all of these posts wrapped with some kinds of bbcode tag, if they are paste that here or let me know otherwise
 
Oh, yup, sure, here we go :)

Code:
[URL='http://www.travelstories.gr/glossary.php?do=item&id=42']Barcelona[/URL]

but they also come across like so:

Code:
[URL='http://www.travelstories.gr/glossary/whateverhereagain']Barcelona[/URL]

I want to remove the url bbcodes code and keep the text between it.
 
Last edited:
Oh, yup, sure, here we go :)

Code:
[URL='http://www.travelstories.gr/glossary.php?do=item&id=42']Barcelona[/URL]

but they also come across like so:

Code:
[URL='http://www.travelstories.gr/glossary/whateverhereagain']Barcelona[/URL]

I want to remove the url bbcodes code and keep the text between it.
See if this works for you. Test it first


Quick Find:
Code:
glossary


Regular expression:
Code:
#\[URL='http://(?:www\.)?travelstories\.gr/glossary(?:\.php[^']+|/[^']+)']([^\[]+)\[/url]#siu


Replacement String:
Code:
\1
 
It only produced results for the first type. So I didn't get any /glossary/ url's showing up.

Edit: Hmm, also for some reason it didn't catch all of the first ones. Not sure why...
 
Last edited:
I just, checked it catches both types as per the examples.

Note that if you applied the changes it wont catch anything anymore and if you did that the first time you caught both types.
 
No I did no "save" the first time, and it only found 58 results, I should have thousands of them. Lemme investigate more , perhaps they're different tags or something.
 
don't save anything but check this... how many does it come up with

Quick Find:
travelstories

Regular expression:
#travelstories\.gr/glossary(?:\.php[^']+|/[^']+)']([^\[]+)#siu
 
That gives me an error

Code:
Server Error

preg_match_all() [function.preg-match-all]: Delimiter must not be alphanumeric or backslash

XenForo_Application::handlePhpError()
preg_match_all() in PostReplace/ControllerAdmin/PostReplace.php at line 26
PostReplace_ControllerAdmin_PostReplace->actionReplace() in XenForo/FrontController.php at line 337
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/travelst/public_html/community/admin.php at line 13
 
That gives me an error

Code:
Server Error

preg_match_all() [function.preg-match-all]: Delimiter must not be alphanumeric or backslash

XenForo_Application::handlePhpError()
preg_match_all() in PostReplace/ControllerAdmin/PostReplace.php at line 26
PostReplace_ControllerAdmin_PostReplace->actionReplace() in XenForo/FrontController.php at line 337
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/travelst/public_html/community/admin.php at line 13
sorry I forgot to put the delimiters in the post, edited it
 
Top Bottom