Advertisement Plugin for Yourls Shorten Url Script?

Posted 31 December 2012 - 08:00 AM

Hi,
Just registered here and hope gurus will help me in my issue as I'm totally a newbie in php/javascript.
I installed Yourls (Url Shorterning Script yourls.org), its working fine. But I want to add a feature which can show an Advertisement page for 5-10 seconds before redirecting user to the destination page.
I have read on their (Yourls) site that plugins are best way to add any feature. But unfortunately, my knowledge of php is zero.
I will be very grateful if any one can help me..
Any suggestions or advices are warmly welcome.
This is their latest version of Yourls script:

Re: Advertisement Plugin for Yourls Shorten Url Script?

Posted 31 December 2012 - 08:14 AM

Currently its working in this way you can check: http://taimoorsultan.com/url/k
It shows where user is going to be redirected and gives link to press for redirection. What I just want is to have some ads on that page basically.
Hope you understand it. Thank you!

Re: Advertisement Plugin for Yourls Shorten Url Script?

Posted 31 December 2012 - 08:24 AM

Sorry to say but I still can't get it.
You mean to say that I need to put my ad in <p></p> but I'm unable to place adsense or some other ad which have javascript with them, between <p></p>
Actually this is my current code of plugin which shows this warning/information before redirection:

Re: Advertisement Plugin for Yourls Shorten Url Script?

Sorry to say but I still can't get it.
You mean to say that I need to put my ad in <p></p>

I'm just going off your example.

taim, on 31 December 2012 - 10:24 AM, said:

How can I place adsense or bidvertiser ads on that page?

You want to place adsense on a site that you only display for five to ten seconds? That doesn't seem right...

Lets start from the beginning.

Someone clicks on a link, it takes them to your site (that you provided an example), you want that page to display for five to ten seconds, & then auto redirect? Yes?

If you are not collecting any data from the visitor, I wouldn't bother using PHP for this. You can redirect just as easily with Javascript. & if the visitor doesn't allow for Javascript, your timer won't work anyhow.

& yes, you can put your Javascript in the example file. Not in the paragraph tags, but your php doesn't need to only be two lines. I'm not going to write the entire thing for you, it was just an example.

Re: Advertisement Plugin for Yourls Shorten Url Script?

Posted 31 December 2012 - 08:41 AM

Yes, you are right.
Suppose I use YOURLS script (which is already installed on http://taimoorsultan.com/url) to shorten a long URL (suppose this: https://www.facebook.com/dreamincode), now I share this shorten link on my website or any other site saying its going to DreaminCode's Fb Page. When user clicks on the shorten link (http://taimoorsultan.com/url/l) he will be taken to my site, where he will se ads/banner for 5-10 seconds, and then Automatically or through Manual click, he will be redirected to the DreaminCode's FB Page.
This is the whole process I want to have.
What I'm missing in above process is to have a feature/Plugin, which will show ads/banners on Shorten link (http://taimoorsultan.com/url/l) for 5-10 seconds.
I know you can not write whole thing it its too heavy. But it will be helpful if you can tell me from where I can get it done for some money.
Thank you!