Questions Answered

Have a question? Try a search:

[show/hide replies]
[Auto FollowUp]
[Fantasy Betting]
[RSS Fetch]
[Random Text]
[MP3 Database]
[Auto Followup]

Found 3 possible answers in category SiteShadow.You may choose another category in the menu on the right.

Displaying results 1 to 3.
1. If I change

$url_to_fetch = "";


$url_to_fetch = "";

it is still working, but if I change to

$url_to_fetch = "";

it stops working.

Anything I can do to bring it to work?    Cat: SiteShadow

 Yahoo! uses a lot of JavaScript to show it's pages, and the JavaScript code might not be transferring to your browser properly.

With SiteShadow, you need to know a little about how HTML and JavaScript work-- just enough to understand why pages aren't loading.

For example, JavaScript may be referenced with a relative URL, and if you import that bit of HTML, the browser will try to find that JavaScript code on your site. However, you don't have it, do you. So you'll need to change references to the code to be a full URL.

Let's say there's some code that says:

[img src="/images/directory/graphic.jpg"]

You want to use SiteShadow to change it to

[img src=""]

The same is true for JavaScript which is being referenced.

I hope this helps you track down the problems.

2. In the read me file, you stated that I should use the source of this code: copy and paste selections I wish to remove into the 'REPLACEMENTS' database at the top of the script.

Could you give an example how to accomplish that? There's a string %REPLACEMENTS... what do i copy in there?    Cat: SiteShadow


'item to replace in quotes' => 'the text you want instead',
"another item" => 'it's replacement',

" => "p"

Be sure to pay attention to commas and quotes... double are okay, and should be used if there's an apostrophe in the string. Use single if there is a quote in the string.

3. 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.

if the HTML source code is [a href=].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?    Cat: SiteShadow

 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:


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


FAQSearch Script - Create a Frequently Asked Questions search engine on your site.

Can't find your answer? Ask a new question.


In the Spotlight

Shopping Cart $0.00
Add to Cart
 If your products are saved in spreadsheet format, just export them as delimited files and your shopping cart is ready. A simple text file database serves this shopping cart.
[more & download links]

What People Say

PrayerWall $0.00
Add to Cart We have been using this script for several months now. It seems flawlwss and our website visitors love it!

[more & download links]

Post Page Comment