Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 16 Hours, 17 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

Replacing HTML codes?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Replacing HTML codes?
#10180
Replacing HTML codes? 1 Year, 6 Months ago  
I tried to use DB replacer to change some HTML codes I knew were embedded in content. I wanted to change {readmorelink} More... {/readmorelink} to {readmorelink} <strong>More... </strong>{/readmorelink}

I discovered that EasySQL strips out the HTML commands when updating a column. Unfortunately, it appears DB Replacer does as well! Is there anyway I can get DB replacer to NOT strip out anything between '< >' ?

Thanks,

Mike
Mike Hersee
Posts: 4
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#10184
Re: Replacing HTML codes? 1 Year, 6 Months ago  
I've sent you a new version to test out...
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#10188
Re: Replacing HTML codes? 1 Year, 6 Months ago  
That's brilliant thanks, that's done the job. Over 600 articles changed, and the result works as expected.

The only minor point (get-roundable) is that when it first shows the list of replacements, the green text shows the corrected full text as I entered it, and then when I click 'replace', it does it. As there were more than 100 articles, it then comes back with an opportunity to do another 100, but this time it has edited out the HTML tags again in both the 'replace' box and in the list of intended replacements. I didn't try continuing the replace to see what it actually does, I instead changed the setting to allow 1000 replacements and reset it with the correct full replacement text I wanted. That worked.

So if you do all the records at once it works, but if you do it in batches of records, you need to reset the replace string to include the HTML tags for each batch.
Mike Hersee
Posts: 4
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#10189
Re: Replacing HTML codes? 1 Year, 6 Months ago  
Ok, thanks... I'll look into that.
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#10542
Re:Replacing HTML codes? 1 Year, 5 Months ago  
Peter, any chance that you can provide a link to that version that replaces html tags as well? DB Replacer is fantastic by the way...
kent chan
Posts: 1
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#10553
Re:Replacing HTML codes? 1 Year, 5 Months ago  
I'll publish new version today
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#12177
Re:Replacing HTML codes? 1 Year, 2 Months ago  
Where is this version that does not replace anything inside < >? I'm using version 0.2. If that's the right one, how do I search and replace text outside of html tags?
Randy Garbin
Posts: 3
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#12179
Re:Replacing HTML codes? 1 Year, 2 Months ago  
There is no version that "does not replace anything inside tags".
To do what you want is pretty tricky, you would need some complex regular expression if at all doable.
What is it you are trying to replace?
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#13663
Re:Replacing HTML codes? 1 Year ago  
I want to remove <hr id="system-readmore" />from my article but DBReplacer doesn't find this HTML code.
Shajib Salehin
Posts: 2
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#13753
Re:Replacing HTML codes? 1 Year ago  
Your articles do not have that in them.
Joomla stors the intro in the field introtext and the rest in fulltext.
The two are placed together in the editor again separated by a <hr id="system-readmore" />, but that isn't actually in the database.
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#13929
Re:Replacing HTML codes? 1 Year ago  
Hello, I've over 1400 articles in my database. I put <hr id="system-readmore" /> to separate many articles. I wonder, where does Joomla save this <hr id="system-readmore" /> tag if it is not in the database. How does Joomla pick this HTML tag to show in the front-end everytime.
Shajib Salehin
Posts: 2
User OfflineClick here to see the profile of this user
Last Edit: 2011/02/10 17:21 By peter.
The administrator has disabled public write access.
 
#13930
Re:Replacing HTML codes? 1 Year ago  
Read previous reply!
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
hosting joomla
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support