Results 1 to 10 of 25
Hybrid View
-
5th Sep 2011, 08:27 PM #1OPMemberWebsite's:
porndex.eu massprchecker.comIMG iFrame code with redirect
Or atleast i think thats what i need...
I have an Image Hosting website and at the moment if the thumbs are clicked it redirects via an ad.fly short code..
Its getting 1000+ UV's a day and only making me around $2
So what i want to do is get rid of the adf.ly link and have it so when an end user clicks the thumb in a forum or where ever its posted, it redirects to my site where a forced 5 second add is displayed then the link will display and off they go to the image.
Now im not very clever at code, but i can muddle through when needed, im not asking for someone to do it for me or being lazy ,I just need a pointer in the right direction.
Thanks all
RRroadrunner Reviewed by roadrunner on . IMG iFrame code with redirect Or atleast i think thats what i need... :facepalm: I have an Image Hosting website and at the moment if the thumbs are clicked it redirects via an ad.fly short code.. Its getting 1000+ UV's a day and only making me around $2 So what i want to do is get rid of the adf.ly link and have it so when an end user clicks the thumb in a forum or where ever its posted, it redirects to my site where a forced 5 second add is displayed then the link will display and off they go to the image. Rating: 5
-
5th Sep 2011, 09:31 PM #2OPMemberWebsite's:
porndex.eu massprchecker.comOk so i have found what i want BUT im unsure how to implement it.
URL:
http://tih.me/test.php <---- This does what i want
Im stuck on
1/ How to make it so it lands there from the thumb click
2/ Redirect to the correct image
Thanks
RR
-
5th Sep 2011, 09:35 PM #3MemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comi get "404 Not Found - The page or file you requested does not exist." on that link??
JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
5th Sep 2011, 09:41 PM #4OPMemberWebsite's:
porndex.eu massprchecker.comyeah it redirects to what ever url i put in there, but what i want to do is make it redirect to the original path.
So for instance you click this image:
[IMG][/IMG]
It would take you to the picture
What i want is for the test.html to show then goto http://tih.me/?pm=16J1 but the end picture ID changes per picture so is there a way that the test.html page can show then travel on to where its ment to, with out me having to make a page for every image upploaded.
If you test it again http://tih.me/test.html it will bring you right back here, but i have had to manually add the url..
Cheers
RR
-
5th Sep 2011, 09:53 PM #5MemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comah, so you need test.php not html
and do something like the following code:
PHP Code:<?php
if(isset($_GET['pm'])){ ?>
<html>
<head>
<title>Webcoding Easy Advertisment</title>
<script type="text/ecmascript">
// <![CDATA[
function skip_page()
{
var attachform = document.getElementById("seconds");
var form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", "");
var inp = document.createElement("input");
inp.setAttribute("type", "hidden");
inp.setAttribute("value", "true");
inp.setAttribute("name", "pop_under_skip");
form.appendChild(inp);
attachform.appendChild(form);
form.submit();
}
var seconds = "5";
function redirect()
{
window.location = "http://tih.me/?pm=<?php echo $_GET['pm']; ?>";
}
function update ()
{
if(seconds > 0)
{
seconds--;
document.getElementById("seconds").innerHTML = seconds + " seconds left";
setTimeout("update();", 1000);
}
else
{
document.getElementById("seconds").innerHTML = "Redirecting";
setTimeout("redirect();", 1000);
}
}
window.onload = function ()
{
setTimeout("update();", 1000);
}
// ]]>
</script>
</head>
<body>
<table style='height:80px; width:100%; text-align: center; border: 0;'>
<tr>
<td style='width: 70%'>
<h3>Webcoding Easy</h3>
</td>
<td style='width: 30%'>
<p id='seconds'>Waiting for page to load</p>
</td>
</tr>
</table>
<iframe name='content' src='http://webcodingeasy.com' width='100%' height='100%'/>
<noframes>
<p><a href='/my_classes/pop_under_class/example.php?id=1'>Continue to page</a></p>
</noframes>
</body>
</html>
<?php }
else {
//redirect to home or show an error or something
}
?>JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
5th Sep 2011, 10:00 PM #6OPMemberWebsite's:
porndex.eu massprchecker.comYes i can see how this would work BUT all im getting is a blank page,
I have entered your code into test1.php
http://tih.me/test1.php
And thanks for your help
-
5th Sep 2011, 10:11 PM #7MemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comyes because you should call http://tih.me/test1.php?pm=imageid
JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
5th Sep 2011, 10:33 PM #8OPMemberWebsite's:
porndex.eu massprchecker.comOk cool i understand that .....so now im in my config.php trying to make the output look right.
The original is this:
Code:return (!is_null($linkaddress)?'':'').'[IMG]'.$imageaddress.'[/IMG]'.(!is_null($linkaddress)?'':'');
Code:return (!is_null($linkaddress)?'':'').'[IMG]'.$imageaddress.'[/IMG]'.(!is_null($linkaddress)?'':'');
Any ideas ?
Cheers
RR
-
5th Sep 2011, 10:47 PM #9MemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comi think they are the same??
besides, it will be easier to help you if you provide more detailsJokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
5th Sep 2011, 10:52 PM #10OPMemberWebsite's:
porndex.eu massprchecker.comSorry my mistake mine reads:
Code:return (!is_null($linkaddress)?'':'').'[IMG]'.$imageaddress.'[/IMG]'.(!is_null($linkaddress)?'':'');
http://tih.me/?pm=Y655
You will see under "BBCode (Forums):" the output, its missing the "?pm=Y655"
And i cant figure out how to get it there
Thanks
RR
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Need help code for prevent iFrame
By MediaStar in forum Web Application/Script SupportReplies: 2Last Post: 7th Jul 2012, 02:52 AM -
Code needed for redirect
By Sponge Bob in forum Webmaster DiscussionReplies: 2Last Post: 18th Jul 2011, 03:07 PM -
scripter needed for redirect code
By kuzukuzu in forum Completed TransactionsReplies: 11Last Post: 11th Dec 2010, 11:22 AM -
iFrame code or object help need
By lib3rty1 in forum Web Development AreaReplies: 2Last Post: 24th Nov 2010, 06:13 AM -
Redirect Code
By Nano in forum Webmaster DiscussionReplies: 8Last Post: 22nd Aug 2009, 06:27 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...