
|
View Full Version : News/Ads update accross all web pages
dantol 01-07-2005, 12:10 AM I am planning to install simple javascript so when I have important news, I can display the link of this news accross all web pages comprising my website (e.g. news.js).
Do you have any suggestions (good script recomendation or any other useful suggestion)?
dantol 01-07-2005, 12:13 AM Also, would it be possible to do the same for ads (e.g. ads.js)? So every time I change my advertising agency, instead of putting their script directly into ALL my web pages, I could put simple javascript into all web pages and their ads into "ADS.JS", so update is instant with no pain. Did anybody had any experience doing this? If so, then please give some opinion of how everything went (did you have any technical problems, errors, difficulties, etc).
the_pm 01-07-2005, 12:24 AM How about using an include? PHP, ASP, SSI, etc. They are much more efficient, much more reliable and require almost no special scripting.
geesh.net 01-07-2005, 01:55 AM The best way would to build your page within a php template with header/footer files. Though that may noyt work for you, you could also use a php include as was already said. With the include, you would simply include whatever file you want, right into any location of your page, and you could implement this site-wide. When you go to change your ads, you just change the one file that was "included".
designboy 01-08-2005, 01:33 AM you can also make use of "iframe" tag for the adv or news in the website , and it does not require any javascript....just simple HTML...
datums 01-08-2005, 02:03 AM I would recommend cutenews
It can be found here
http://cutephp.com/
You simply include show_news.php in what ever page you want to display news.
It has a admin interface, uses no DB.
Very configurable.
dantol 01-08-2005, 09:34 PM Originally posted by the_pm
How about using an include? PHP, ASP, SSI, etc. They are much more efficient, much more reliable and require almost no special scripting.
I don't have any experience with PHP and ASP, is it too hard to work with it? When you mentioned SSI, did you mean SHTML?
Originally posted by geesh.net
The best way would to build your page within a php template with header/footer files. Though that may noyt work for you, you could also use a php include as was already said. With the include, you would simply include whatever file you want, right into any location of your page, and you could implement this site-wide. When you go to change your ads, you just change the one file that was "included".
Yeah, that would be my dream - to implement the changes site-wide. But as I said, I never worked with PHP. Do I need any special HTML tags for that?
Originally posted by designboy
you can also make use of "iframe" tag for the adv or news in the website , and it does not require any javascript....just simple HTML...
Wow. Cool. Is iframe tag supported by all browsers?
Originally posted by datums
I would recommend cutenews
It can be found here
http://cutephp.com/
You simply include show_news.php in what ever page you want to display news.
It has a admin interface, uses no DB.
Very configurable.
I am certainly going to look at that link.
geesh.net 01-09-2005, 12:49 AM http://www.hardcoder.com/scripting/php/include_files.php
http://www.tizag.com/phpT/include.php
http://www.xentrik.net/scripts/include.php
There's a great start for you.
When including advertising on one of my websites, I use SHTML. One "include" could be "468x60_top.shtml". Then include your ad in that and update when you want. For me, I do something just like that, but I also use phpadsnew and include that into the code. I would just use the phpadsnew code, but if I ever decide to change how I display ads, I won't need to go through hundreds of pages. I'll just have to change the "468x60_top.shtml".
Remember though, with SHTML, if you intend on having subdomains, you must put those included files in each subdomain in order for those subdomains to include the file. If there's a way for subdomains to "include" files on the main domain, I'd love to learn how.
dantol 01-09-2005, 07:12 PM Originally posted by geesh.net
http://www.hardcoder.com/scripting/php/include_files.php
http://www.tizag.com/phpT/include.php
http://www.xentrik.net/scripts/include.php
There's a great start for you.
Thank you! I am going there to learn!
Originally posted by RMF
When including advertising on one of my websites, I use SHTML. One "include" could be "468x60_top.shtml". Then include your ad in that and update when you want. For me, I do something just like that, but I also use phpadsnew and include that into the code. I would just use the phpadsnew code, but if I ever decide to change how I display ads, I won't need to go through hundreds of pages. I'll just have to change the "468x60_top.shtml".
Gret idea, thank you!
Voxxit 01-09-2005, 07:18 PM Use phpAdsNew and include the script in a little .php file, put it in a folder somewhere, and do this:
<?php include("folder/file.php"); ?>
Put that where you want ads. :)
Cheers!
Josh
dantol 01-12-2005, 06:32 PM Interesting... I can't rename ".html" files on my computer to ".shtml" files. It can only be done on the server. Can you rename these files on your coputer? It would be great to be able to test these files on local computers before uploading them to the server.
Regarding PHP - I went to www.php.com/downloads and downloaded php for windows, then I installed free web server on my computer (as you could see from one of my previous posts). And again, I could not rename my files to ".shtml" or ".php". Interesting and mind boggling.
|