TiKiRoKhaN 0 Report post Posted March 18, 2006 Like seen on http://www.trap17.net/ I have been trying to put static ads on all of my site without having to type include (file.php)and stuff like that, I want my ads to appear on HTML to!How is it possible to make it like Xisto.net did it, please help I need this bad ;( Share this post Link to post Share on other sites
gaea 0 Report post Posted March 18, 2006 Sorry, but you weren't completely clear in what you wanted. Do you want to have one specific ad banner (being "static"?) in each area on your site? If so why don't you just use html to add the images in?e.g. <img src="/images/ad1.jpg">Then, if you wanted to change the ad displayed later you'd just upload another banner with the same name.Another alternative would be to use iframes, which is, in essence, like embedding a second webpage within the first.Your code would look something like: <IFRAME src="adbanner.html" width="400" height="500" frameborder="1"> [Your web browser doesn't support iframes...lucky you!] </IFRAME>Then you'd just make adbanner.html with the add you wanted it. Or you could iframe to a php document if you wanted it to randomly display an ad.Hope that was helpful. If not, please try and clearify your question. Share this post Link to post Share on other sites
TiKiRoKhaN 0 Report post Posted March 18, 2006 I want my google adsense to be static on every page, thats what i was asking, on PHP and HTML Share this post Link to post Share on other sites
gaea 0 Report post Posted March 19, 2006 I want my google adsense to be static on every page, thats what i was asking, on PHP and HTML Ah, ok. Then your best bet is to use Iframes like i suggested. Basicly, just make a webpage (html, php, whatever) that just displays adsense. Then use an iframe to include it where you want it.Some guy did something kinda like that with SSI (https://forums.digitalpoint.com/threads/howto-ssi-google-adsense-in-static-html-pages.3255/) but i havn't tried that method myself. Share this post Link to post Share on other sites
antwill 0 Report post Posted March 19, 2006 What are static ads? Do you mean the ads that are stuck in one place on everypage, like with some of those free web hosts how they place ads on your site? im sorry if its a stupid question but i do not understand what you mean. Can someone please tell me? Share this post Link to post Share on other sites
TiKiRoKhaN 0 Report post Posted March 19, 2006 That was what I kind've meant antwill Share this post Link to post Share on other sites
gaea 0 Report post Posted March 19, 2006 (edited) Sorry, I miss understood you then searched around on google for a little bit and i found: [syntax: ]auto_prepend_file string Specifies the name of a file that is automatically parsed before the main file. The file is included as if it was called with the include() function, so include_path is used. The special value none disables auto-prepending. Code looks something like: AddType application/x-httpd-php htm html < FilesMatch "\.(html?)$" > php_value auto_append_file "/the/path/that/leads/to/count.php " </FilesMatch > Hope that helped Edited March 19, 2006 by gaea (see edit history) Share this post Link to post Share on other sites
antwill 0 Report post Posted March 19, 2006 Oh now i get what you mean, that seems like a pretty interesting subject i might add an ad on my site if i get the coding correct, but im not that good with coding so i will probably have alot of questions and problems. Share this post Link to post Share on other sites
TiKiRoKhaN 0 Report post Posted March 19, 2006 Sorry, I miss understood you then searched around on google for a little bit and i found: Code looks something like: Hope that helped So do I put that in a ht access file, and the PHP file is what the ads should be on? Share this post Link to post Share on other sites
gaea 0 Report post Posted March 19, 2006 (edited) I'm not 100% certain because i've never done this before. From what i saw it looks like you can either put that into your php.ini, or into a .htaccess. AddType application/x-httpd-php .php .htm .html//Tells the server to treat html and htm files as php files.< FilesMatch "\.(php?)$" >php_value auto_prepend_file "/the/path/that/leads/to/count.php "</FilesMatch >//Adds your adpage (e.g. /the/path/that/leads/to/count.php) to beginning of all php files.Might not have everything perfect, but i think that's close. Edited March 19, 2006 by gaea (see edit history) Share this post Link to post Share on other sites
TiKiRoKhaN 0 Report post Posted March 19, 2006 I'm not 100% certain because i've never done this before. From what i saw it looks like you can either put that into your php.ini, or into a .htaccess. AddType application/x-httpd-php .php .htm .html//Tells the server to treat html and htm files as php files.< FilesMatch "\.(php?)$" >php_value auto_prepend_file "/the/path/that/leads/to/count.php "</FilesMatch >//Adds your adpage (e.g. /the/path/that/leads/to/count.php) to beginning of all php files.Might not have everything perfect, but i think that's close. 3 Words INTERNAL SERVER ERROR! Share this post Link to post Share on other sites
TiKiRoKhaN 0 Report post Posted March 23, 2006 Turns out it uses htaccess!http://forums.xisto.com/no_longer_exists/Enjoy! Im so glad, now i dont have to do a whole bunch of other stuff! ^^Oh and if you wanted static google ads... Put this in the header html <center><script type="text/javascript"><!--google_ad_client = "pub-0154875139772011";google_ad_width = 468;google_ad_height = 60;google_ad_format = "468x60_as";google_ad_type = "text_image";google_ad_channel ="1290573937";//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js;</script></center><hr> Or w/e ur settings are Share this post Link to post Share on other sites
iGuest 3 Report post Posted February 19, 2008 What do you mean by static page? How Do You Have Static Ads? 2.What do you mean by Dynamic page? 3.What do you mean by Activ page? 4.What is/are limitation a static page and how it will be overcome by dynamic page.Explain the role of a acti page? 5.Explain client/server side scripting and give the advantage/disadvantage of both? 6.Explain get and post method with example? -reply by Nita patel Share this post Link to post Share on other sites