Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 Jul 2010, 01:51
Ghostt Ghostt is offline
 
Join Date: Oct 2009
[REGEX-Cleaner.php] Replace all bbcode with a certain url

hi,
i have a problem with the REGEX and cleaner.php from impex tools.

what i want is to change the BBCode [IMG] of all images which have the "example.com" url to [AME] BBCode


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to -->>


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

so this is my idea, but dont work:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

are here experts that can fix this to a clean regexcode`?
Reply With Quote
  #2  
Old 01 Jul 2010, 02:34
Scootz Scootz is offline
 
Join Date: Sep 2008
As far as I know, preg_replace() needs the regexp surrounded by slashes. Your regexp seems a little malformed as well. Try this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I tested it and it works.
Reply With Quote
  #3  
Old 01 Jul 2010, 05:47
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Real name: Corey
Your best asking for help in the modification thread.
Reply With Quote
  #4  
Old 01 Jul 2010, 20:59
Ghostt Ghostt is offline
 
Join Date: Oct 2009
yes thanks Scootz ! it worked
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Posting Features Replace BBCode with URL in quote Marco vBulletin 3.8 Add-ons 19 28 Mar 2012 21:06



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:54.

Layout Options | Width: Wide Color: