Questions Answered

Have a question? Try a search:

[show/hide replies]
[all]
[Auto FollowUp]
[Fantasy Betting]
[TextOnly]
[Crossword]
[Dictionary]
[iTreePad]
[AlbumAdvanced]
[VirtualTour]
[BookViewer]
[ShoppingCart]
[Petition]
[RSS Fetch]
[Random Text]
[SiteShadow]
[CounterMail]
[Misc]
[Questionnaire]
[MP3 Database]
[MillionDollarPixels]
[FreeBusy]
[ESC]
[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 = "http://movies.yahoo.com/showtimes/showtimes.html?z=32607&r=sim/";

into

$url_to_fetch = "http://movies.yahoo.com/showtimes/";

it is still working, but if I change to

$url_to_fetch = "http://movies.yahoo.com/";

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="http://thefullurl.com/images/directory/graphic.jpg"]

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


 Sure,

%REPLACEMENTS = (
'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.
~Jason

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.

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?    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:

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

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



[admin]

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