CompleteGFX Home Contact Site Map

Go Back   Web Proxy Forum > Web Proxy Talk > Proxy Webmasters > Other Scripts

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-31-2008, 03:53 AM
Super Mods
 
Join Date: Nov 2007
Posts: 441
Rep: 12
WPT Credits: 989.93
Downloads: 0
Uploads: 0
Dollar is on a distinguished road
Default Very Simple Banner Rotation Script

I have found a script that makes for easy banner rotation.
Perfect for Glype!
Download it below.


To use:

Take the content.txt file and put into your root directory. But first open it with notepad and put inbetween each ~
Your banner codes. You could put Adbrite,widgetbucks,Globalinteractive etc.


Then open Frameform.inc.php and put into there

Code:
<?PHP

//opening the text file, if this line gives you error when compiling 
//then you need to chmod 755 your text file 
$fcontents = join ('', file ('content.txt')); 

//Spliting contents of file by looking for ~ mark between contents 
//and storing everything into an array. 
$s_con = split("~",$fcontents); 

//getting a random number which will be within the limit of the 
//contents of the file, means if 5 different banners/ads/contents then the number 
//will be between 0-4 (total 5 ) 
$banner_no = (rand()%(count($s_con)-1)); 

//simple echo the content 
echo $s_con[$banner_no]; 

?>
Upload the framedform.inc.php file back to your theme, and upload the content.txt file to your root directory and CHOMOD to 755 and your done.

You could rotate Adversal in it so there would be a % chance of the code being on the proxified page. So you can annoy your users less so then don't get pops on every page or whatever else your creative mind could think of.
Enjoy, no I didn't write the script. Buts it free for public use then credits are in the readme file.
Reply With Quote
  #2 (permalink)  
Old 02-01-2008, 04:26 PM
Proxy Warrior
 
Join Date: Dec 2007
Posts: 42
Rep: 0
WPT Credits: 35.98
Downloads: 0
Uploads: 0
pipp22
Default RE: Very Simple Banner Rotation Script

Nice! Thanks.
Reply With Quote
  #3 (permalink)  
Old 02-07-2008, 04:54 PM
Proxy Warrior
 
Join Date: Feb 2008
Posts: 30
Rep: 0
WPT Credits: 28.01
Downloads: 0
Uploads: 0
Mr.Proxy
Default RE: Very Simple Banner Rotation Script

You say perfect for glype but can it be used for other scripts?
Reply With Quote
  #4 (permalink)  
Old 02-07-2008, 09:54 PM
Proxy Warrior
 
Join Date: Nov 2007
Posts: 76
Rep: 1
WPT Credits: 90.20
Downloads: 0
Uploads: 0
llamafier
Default RE: Very Simple Banner Rotation Script

Quote:
Originally Posted by Mr.Proxy
You say perfect for glype but can it be used for other scripts?
As long as it is a PHP script.
Reply With Quote
  #5 (permalink)  
Old 07-31-2008, 12:17 PM
Proxy Junior
 
Join Date: Jul 2008
Posts: 25
Rep: 0
WPT Credits: 50.65
Downloads: 0
Uploads: 0
dezine_gen
Default RE: Very Simple Banner Rotation Script

Quote:
Originally Posted by Dollar
I have found a script that makes for easy banner rotation.
Perfect for Glype!
Download it below.


To use:

Take the content.txt file and put into your root directory. But first open it with notepad and put inbetween each ~
Your banner codes. You could put Adbrite,widgetbucks,Globalinteractive etc.


Then open Frameform.inc.php and put into there

Code:
<?PHP

//opening the text file, if this line gives you error when compiling 
//then you need to chmod 755 your text file 
$fcontents = join ('', file ('content.txt')); 

//Spliting contents of file by looking for ~ mark between contents 
//and storing everything into an array. 
$s_con = split("~",$fcontents); 

//getting a random number which will be within the limit of the 
//contents of the file, means if 5 different banners/ads/contents then the number 
//will be between 0-4 (total 5 ) 
$banner_no = (rand()%(count($s_con)-1)); 

//simple echo the content 
echo $s_con[$banner_no]; 

?>
Upload the framedform.inc.php file back to your theme, and upload the content.txt file to your root directory and CHOMOD to 755 and your done.

You could rotate Adversal in it so there would be a % chance of the code being on the proxified page. So you can annoy your users less so then don't get pops on every page or whatever else your creative mind could think of.
Enjoy, no I didn't write the script. Buts it free for public use then credits are in the readme file.
I can't download the script. Can anybody help me. Thanks in advance.
Reply With Quote
  #6 (permalink)  
Old 08-04-2008, 09:47 PM
Super Mods
 
Join Date: Nov 2007
Posts: 441
Rep: 12
WPT Credits: 989.93
Downloads: 0
Uploads: 0
Dollar is on a distinguished road
Default RE: Very Simple Banner Rotation Script

Quote:
Originally Posted by dezine_gen
I can't download the script. Can anybody help me. Thanks in advance.
ya I don't know whats wrong with it. But you can simply just copy and paste the code in the "code" tags. Thats all there is to it.
__________________
Submit your new proxies.
Hidefinder's new proxies pages, ranks Top10 on Google for new proxies!
Reply With Quote
  #7 (permalink)  
Old 08-04-2008, 10:29 PM
Proxy Junior
 
Join Date: Jul 2008
Posts: 25
Rep: 0
WPT Credits: 50.65
Downloads: 0
Uploads: 0
dezine_gen
Default RE: Very Simple Banner Rotation Script

Hi thanks,
you when I'm trying to download it the following message appears: any idea why?

You do not have permission to access this page. This could be because of one of the following reasons:

1. Your account has either been suspended or you have been banned from accessing this resource.
2. You do not have permission to access this page. Are you trying to access administrative pages or a resource that you shouldn't be? Check in the forum rules that you are allowed to perform this action.
3. Your account may still be awaiting activation or moderation. (Resend Activation Code)


You are currently logged in with the username: 'dezine_gen'
Reply With Quote
  #8 (permalink)  
Old 08-05-2008, 01:22 AM
WPT Founder & Webmaster
 
Join Date: Nov 2007
Location: In the proxified world where ambiguity is certain.
Posts: 1,741
Rep: 5
WPT Credits: 2,973.27
Downloads: 3
Uploads: 1
Swank is an unknown quantity at this point
Default RE: Very Simple Banner Rotation Script

Dezine, have you activated your account yet?
Reply With Quote
  #9 (permalink)  
Old 08-05-2008, 04:04 AM
Proxy Junior
 
Join Date: Jul 2008
Posts: 25
Rep: 0
WPT Credits: 50.65
Downloads: 0
Uploads: 0
dezine_gen
Default RE: Very Simple Banner Rotation Script

I tried but activation mail is not delivered to my e-mail address, not even in bulk folder.
Would you please look into this issue.
Thanks in advance for your help.
Reply With Quote
  #10 (permalink)  
Old 08-05-2008, 05:04 AM
WPT Founder & Webmaster
 
Join Date: Nov 2007
Location: In the proxified world where ambiguity is certain.
Posts: 1,741
Rep: 5
WPT Credits: 2,973.27
Downloads: 3
Uploads: 1
Swank is an unknown quantity at this point
Default RE: Very Simple Banner Rotation Script

Try downloading that attachment now. Should work for you.
Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:09 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios