Problem with Interstitial Ads in index.php
-
I have write a small hacks for index.php file to display an interstitial advertising, however it did not work in the right way.
– People need to click 2 times to go inside.
– Feeds was not working any more.<?php session_start(); if (!empty($_SESSION['count'])) { define('WP_USE_THEMES', true); require('./wp-blog-header.php'); } else if(empty($_SESSION['count'])){ $_SESSION['count'] = 1; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Refresh" content="7; url=index.php"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Advertising</title> </head> <body> Advertising goes here. Click <a href="index.php">here</a> to go inside or you will be redirected after 7 seconds. </body> </html> <?php } ?>
Is there any better way to display an interstitial advertising as above ? Please help me, thank you very much
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Problem with Interstitial Ads in index.php’ is closed to new replies.