GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Advertisement between page redirection ?? (https://gfy.com/showthread.php?t=1029709)

Mamassita 07-10-2011 11:17 AM

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/

SmokeyTheBear 07-10-2011 01:29 PM

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?

SmokeyTheBear 07-10-2011 01:31 PM

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>


SmokeyTheBear 07-12-2011 12:21 PM

your welcome

Inter-Sex 07-12-2011 12:45 PM

bump 4 Smokey

marlboroack 07-12-2011 12:53 PM

Hell yah mon :rasta

EZRhino 07-13-2011 09:37 AM

Thanks Smokey.

Fenris Wolf 07-13-2011 06:16 PM

I was actually looking for something like this. Thanks Smokey.:thumbsup


All times are GMT -7. The time now is 09:59 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123