taim's Profile
Reputation: 0
Apprentice
- Group:
- New Members
- Active Posts:
- 14 (0.1 per day)
- Joined:
- 31-December 12
- Profile Views:
- 47
- Last Active:
Jan 01 2013 04:53 AM- Currently:
- Offline
Previous Fields
- Country:
- AE
- OS Preference:
- Windows
- Favorite Browser:
- FireFox
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- XBox
- Your Car:
- Infiniti
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Advertisement Plugin for Yourls Shorten Url Script?
Posted 31 Dec 2012
Yes, its working after I play with it a little.
Now, this code is working exactly how I wish..
<?php /* Plugin Name: Ad Redirect */ // Hook our custom function into the 'pre_redirect' event yourls_add_action( 'pre_redirect', 'warning_redirection' ); // Our custom function that will be triggered when the event occurs function warning_redirection( $args ) { $url = $args[0]; $code = $args[1]; // Print the message header( "refresh:5;url=$url" ); echo 'You\'ll be redirected in about 5 secs.'; ?> <div style="margin:auto;"> <script type="text/javascript"><!-- google_ad_client = "ca-pub-3096305097062678"; /* 125x125, created 1/21/11 */ google_ad_slot = "3050924195"; google_ad_width = 125; google_ad_height = 125; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div> <?php // Now die so the normal flow of event is interrupted die(); }
Thank you very much...
-
In Topic: Advertisement Plugin for Yourls Shorten Url Script?
Posted 31 Dec 2012
<?php /* Plugin Name: Ad Redirect */ // Hook our custom function into the 'pre_redirect' event yourls_add_action( 'pre_redirect', 'warning_redirection' ); // Our custom function that will be triggered when the event occurs function warning_redirection( $args ) { $url = $args[0]; $code = $args[1]; // Print the message header( "refresh:5;url=$url" ); echo 'You\'ll be redirected in about 5 secs.'; // Now die so the normal flow of event is interrupted die(); }
Well, thanks to you.
I some how managed to make it wait for 5 seconds, but don't know to show ads on that page.
As, this link http://taimoorsultan.com/url/o is going to twitter after 5 secs.
Oh, Happy New Year..
-
In Topic: Advertisement Plugin for Yourls Shorten Url Script?
Posted 31 Dec 2012
I have posted this question in lot of forums but still not a single reply from any of them. And I want to thank you for your time, as till now we have a long conversation.
Thanks -
In Topic: Advertisement Plugin for Yourls Shorten Url Script?
Posted 31 Dec 2012
same output with that code.
ok, if I give your ftp and Yourls login details, can you check it then?
Thanks again! -
In Topic: Advertisement Plugin for Yourls Shorten Url Script?
Posted 31 Dec 2012
$url contains the destination url for every shorten url.
This is the output of the url after placing the code you have given.
http://taimoorsultan.com/url/n
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
- Location:
- UAE
- Years Programming:
- 1
Contact Information
- E-mail:
- Private
Friends
taim hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
taim has no profile comments yet. Why not say hello?