Questions Answered

Have a question? Try a search:

[back]

I've just checked your SiteShadow script. It's a wonderful script. Congratulations! on making such a useful script. It works fine but I can not find how to use "Replacements" option in the script.

e.g.
if the HTML source code is [a href=http://www.domain.com/filename].html Text[/a]

Now, I want to remove the HTML code and not the text. Can u please give me one sample of accomplish this?

If you want to remove all HTML code, then there is a special line of code you can add the following right after &replacements; around line number 62:

$content =~ s/<(?:[^>'"]*|(['"]).*?\1)*>//gs

If you want to remove selective HTML text, the format is "old value", "new value". You need to do it like this:

%REPLACEMENTS = (

'[a href="a site"]a name[/a]', '[a href="a new site"]a name[/a]'
'[font face=arial]', '[font face=tahoma]'

); # NO COMMA AFTER THE LAST ONE.





FAQSearch Script - Create a Frequently Asked Questions search engine on your site. Does this answer your question to your satisfaction?
[yes] [no]
Next Question & Response Display All

In the Spotlight

AFU Form Submit $0.00
Add to Cart
 This script gives you form processing power! Request any information from your user and have it emailed to you automatically in text and HTML format. But it also forwards the fields you specify to any list in your auto responder!
[more & download links]

What People Say

Dictionary $0.00
Add to Cart Thanks for a great script--very usefull!
[more & download links]

Post Page Comment