Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-10-2011, 11:17 AM   #1
Mamassita
Confirmed User
 
Join Date: Nov 2009
Posts: 252
Advertisement between page redirection ??

Hi,
i need to display an add in between two pages.....i.e. when i post data from 1st page to 2nd page than, i want to display an add before redirecting the 2nd page

How can it be insert into my code ?

PHP Code:
<h2>Title</h2>
        <?php foreach ($this->recommended as $link): ?>
        <div class="box">
            <h3><a href="<?php echo RELATIVE_URL?>/out/?id=<?php echo $link['link_id']; ?>&amp;url=<?php echo e($link['url']); ?>"<?php if ($link['target'] == 'blank'): echo ' target="_blank"'; endif; ?>><?php echo strtoupper(e($link['title'])); ?></a></h3>
            <div class="left">
                <a href="<?php echo RELATIVE_URL?>/out/?id=<?php echo $link['link_id']; ?>&amp;url=<?php echo e($link['url']); ?>"<?php if ($link['target'] == 'blank'): echo ' target="_blank"'; endif; ?>><img src="<?php echo RELATIVE_URL?>/media/images/<?php echo $link['link_id'],'.',$link['ext']; ?>" width="<?php echo $this->lcfg['thumb_width']; ?>" height="<?php echo $this->lcfg['thumb_height']; ?>" alt="<?php echo e($link['title']); ?>" /></a>
            </div>
Thanks!

Something like on this site http://www.poguide.com/

Last edited by Mamassita; 07-10-2011 at 11:28 AM..
Mamassita is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2011, 01:29 PM   #2
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
looks like you only have 2 variables , so you make a simple php page in the out folder say called ad.php

Code:
<?php
$url = $_GET["url"];
$id = $_GET["id"];
?>
<html>
<head>
<meta http-equiv="refresh" content="15; url=index.php?url=<?php echo $url; ?>&amp;id=<?php echo $id;?>">
</head>
<body>
this is where you would see an ad, this page will automatically refresh to target in 15 seconds

<a href="index.php?url=<?php echo $url; ?>&amp;id=<?php echo $id;?>">CLICK HERE TO SKIP AD</a>
</body>
</html>
then change the existing link code you have from /out/? to /out/ad.php?
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2011, 01:31 PM   #3
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Code:
<h2>Title</h2> 
        <?php foreach ($this->recommended as $link): ?> 
        <div class="box"> 
            <h3><a href="<?php echo RELATIVE_URL; ?>/out/ad.php?id=<?php echo $link['link_id']; ?>&amp;url=<?php echo e($link['url']); ?>"<?php if ($link['target'] == 'blank'): echo ' target="_blank"'; endif; ?>><?php echo strtoupper(e($link['title'])); ?></a></h3> 
            <div class="left"> 
                <a href="<?php echo RELATIVE_URL; ?>/out/ad.php?id=<?php echo $link['link_id']; ?>&amp;url=<?php echo e($link['url']); ?>"<?php if ($link['target'] == 'blank'): echo ' target="_blank"'; endif; ?>><img src="<?php echo RELATIVE_URL; ?>/media/images/<?php echo $link['link_id'],'.',$link['ext']; ?>" width="<?php echo $this->lcfg['thumb_width']; ?>" height="<?php echo $this->lcfg['thumb_height']; ?>" alt="<?php echo e($link['title']); ?>" /></a> 
            </div>
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-12-2011, 12:21 PM   #4
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
your welcome
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-12-2011, 12:45 PM   #5
Inter-Sex
Confirmed User
 
Industry Role:
Join Date: Nov 2005
Location: Spain :)
Posts: 2,231
bump 4 Smokey
Inter-Sex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-12-2011, 12:53 PM   #6
marlboroack
So Fucking Banned
 
Industry Role:
Join Date: Jul 2010
Location: ☣
Posts: 9,327
Hell yah mon
marlboroack is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2011, 09:37 AM   #7
EZRhino
Confirmed User
 
EZRhino's Avatar
 
Industry Role:
Join Date: Jul 2003
Location: couch
Posts: 6,258
Thanks Smokey.
EZRhino is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2011, 06:16 PM   #8
Fenris Wolf
Confirmed User
 
Industry Role:
Join Date: Nov 2005
Posts: 1,029
I was actually looking for something like this. Thanks Smokey.
__________________
Email: fenris_wolf3000 (a t ) yah00 . c 0 m
Fenris Wolf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.