Top Poster
#1 ramon fincken 399
#2 Site admin 3
#3 Ber|Art 2
#4 braddmark 1
#5 accentmedia 1
#6 Xarzu 1
#7 pEcosespedex 1
#8 khadish 1
#9 moxxx 1
#10 nistelrock 1
find replace html tag



Rating : 3 / 5

Tags:

 
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> CMS-ses (Joomla, WordPress, etc..)
Beta
Want to be notified by email when this topic gets a reply?  
View previous topic :: View next topic  
Author Message
accentmedia


Get a free globally recognized avatar
It's free!


Joined: 13 Apr 2010
Posts: 1
Location: Italy

PostPosted: Tue Apr 13, 2010 10:33 am    Post subject: find replace html tag Reply with quote

Hi.

I downloaded and installed the wordpress plugin FIND REPLACE.

It is very nice indeed with 2.9.2. However, I would like to change the size of images of all my posts because I am planning to modify the template.

so from <a><img></a>

I want to find: -300x200.jpg" width="300" height="200"
and replace with: .jpg" width="525" height="300"

The problem is the plugin inserts slash / to the text being searched. So it could not be found and replaced.

Any ideas how to solve this?


Thanks in advance.

D
Back to top
View user's profile Send private message
Google adsense
Advertisement





PostPosted: Tue Apr 13, 2010 10:33 am    Post subject: find replace html tag

Advertisement
Back to top
GravityForms
Advertisement





PostPosted: Tue Apr 13, 2010 10:33 am    Post subject: find replace html tag

Advertisement
Gravity Forms Plugin for WordPress
Back to top
ramon fincken
Site's programmer

Get a free globally recognized avatar
It's free!


Joined: 03 Aug 2007
Posts: 399
Location: A'dam/Diemen, The Netherlands

PostPosted: Wed Apr 14, 2010 7:34 am    Post subject: Re: find replace html tag Reply with quote

Hi Accentmedia,

I will take a look at that tonight!
The slashes are needed to ensure database security.


Regards,

Ramon
Back to top
View user's profile Send private message Visit poster's website
ramon fincken
Site's programmer

Get a free globally recognized avatar
It's free!


Joined: 03 Aug 2007
Posts: 399
Location: A'dam/Diemen, The Netherlands

PostPosted: Fri Apr 16, 2010 3:41 pm    Post subject: Re: find replace html tag Reply with quote

Hmm no time yet Sad I have a solution for you this weekend.
Back to top
View user's profile Send private message Visit poster's website
ramon fincken
Site's programmer

Get a free globally recognized avatar
It's free!


Joined: 03 Aug 2007
Posts: 399
Location: A'dam/Diemen, The Netherlands

PostPosted: Sun Apr 18, 2010 7:37 am    Post subject: Re: find replace html tag Reply with quote

Are you sure?
I just tested this and no problem here. Did you select the right post type?


All instances of
Code:
1271341996237-300x129.png" alt="" width="300" height="129"

will be replaced with
Code:
1271341996237-300x129.png" alt="" width="25" height="35"

when server resources are available.


Query:

Code:
UPDATE LOW_PRIORITY xxxtable_posts SET post_content = REPLACE(post_content, '1271341996237-300x129.png\" alt=\"\" width=\"300\" height=\"129\"', '1271341996237-300x129.png\" alt=\"\" width=\"25\" height=\"35\"') WHERE post_type = 'page' OR post_type = 'post' or post_type = 'trash'



Resulted post snipplet:
Code:
title="_1271341996237" src="http://www.domain.com/wp-content/uploads/2010/04/1271341996237-300x129.png" alt="" width="25" height="35" />
</a>
Back to top
View user's profile Send private message Visit poster's website
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> CMS-ses (Joomla, WordPress, etc..) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
General forums
The world of freelance
Programming
Other projects
Poll
I love gifts

Yes goodies and presents! [3]
No but I love polls ! [1]

Related google ads