Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Adding Weather (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Adding Weather
#241
webby (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Anita's Web Design Location: Ontario, Canada
Adding Weather 3 Months, 1 Week ago Karma: 0  
Hi everyone!

Just wanted to say I love this script!!! I've installed and tried a few but keep coming back to DewNewPHPLinks. I'm sticking with you guys!

I want to add a weather script to my directory; how and where would I add it?

Thanks
 
Report to moderator   Logged Logged  
 
\"surfing the world with Anita\'s Web Design\"
  The administrator has disabled public write access.
#244
jnasta (User)
Senior Boarder
Posts: 59
graphgraph
User Offline Click here to see the profile of this user
Gender: Male John Nasta Photography Location: Brooklyn, NY
Re:Adding Weather 3 Months, 1 Week ago Karma: 1  
That depends on where you want it to be on your site.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#251
Dewed (User)
Administrator
Posts: 165
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:Adding Weather 3 Months, 1 Week ago Karma: 6  
QUOTE:
I'm sticking with you guys!


Well, it's pretty much just me, and a couple of very helpful people here on the forums.

but it's true, what file to edit depends on where you want it to appear.

On every page ?
On the header or footer ?
Only the main page ?
Only on certain categories ?
Maybe you want weather for a different city on each category ?

The possibilities are literally endless.

Basically, you would be appending your javascript snippet to an existing variable.

For the most part the script assembles HTML by appending it to a variable
Code:

$html = "Some HTML code ": $html .= "Some more HTML code appended to the previous code": $html .= "Even more HTML code with \"quotations\" in it ":
Eventually the $html variable is sent to the browser, and erased to free up server memory
Code:

echo $html; unset $html;
Your java script snippet to fetch and display weather will almost certainly have quotes in it, be sure to escape them with the backslashes when appending them, like I did to the word quotations above.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#253
webby (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Anita's Web Design Location: Ontario, Canada
Re:Adding Weather 3 Months, 1 Week ago Karma: 0  
Thanks, I'll give it a try.
 
Report to moderator   Logged Logged  
 
\"surfing the world with Anita\'s Web Design\"
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008