Talk Arcades: Forum for Arcade Webmasters    

  Talk Arcades > Arcades > Webmastering

Welcome to Talk Arcades, the premier forum for arcade webmasters.

You are currently viewing our boards as a guest. By joining our community you will be able to make posts, communicate privately with other arcade webmasters and participate in our Live Marketplace. Registration is easy, so please join us today!

Reply
 
LinkBack Thread Tools Display Modes
Old 10-05-2008, 05:22 PM   #11 (permalink)
hawkal
Senior Member
 
Join Date: May 2007
Posts: 211
hawkal is on a distinguished road


Default

Could you paste the code here. I cannot see why there would be a problem there is nothing wrong with the php code.
__________________
www.ownage.us

www.Allarcade.us

hawkal is offline  
Digg this Post!
Reply With Quote
Old 10-06-2008, 11:25 AM   #12 (permalink)
gameserpent
Senior Member
 
Join Date: Apr 2007
Posts: 344
gameserpent is on a distinguished road


Default

Hawkals code altered. try this:

Don't know why hawkals code is not working for you but try this:

Code:
<?php $r = rand(1,3); if($r == 1){ echo "funklicks code"; }elseif($r == 2){ echo "gamecetera code"; }elseif($r == 3){ echo " mibbi code"; } ?>
You might need to escape the quotes in your banner exchange codes in each echo instance with a "\" but this logic seems to work.


See an example at http://gameserpent.com/tabrandom.php
__________________
~
gameserpent is online now  
Digg this Post!
Reply With Quote
Old 10-06-2008, 10:22 PM   #13 (permalink)
evilfurby
Senior Member
 
Join Date: Nov 2006
Location: Texas, US
Posts: 421
evilfurby is on a distinguished road
Send a message via MSN to evilfurby


Default

I agree you're probably having some echo problems

You could also use this method:

Create a php file called banner.php
with this code in it:
Quote:
<?

srand((double)microtime()*1000000);
$num = rand(1,5);

include ('exchange'.$num.'.html');

?>
Then you can create 5 html files called exchange1.html exchange2.html etc. Just add the banner exchange code to each html file. No need for echo's.

If you want to use more or less than 5 banners change the rand(1,5);.

To add this to your site include this php file like this: include_once("banner.php");
evilfurby is offline  
Digg this Post!
Reply With Quote
Old 10-07-2008, 10:06 AM   #14 (permalink)
archgames
Senior Member
 
archgames's Avatar
 
Join Date: Jan 2008
Posts: 923
archgames is on a distinguished road
Send a message via MSN to archgames


Default

wildfxp i can help you in this if you still need... PM me if you do....
__________________
Best Ad Networks : ValueClickMedia | Adsense
Arcades : Free Flash Games
Best arcade Host : HostGator | Hostmonster 4.95$ a mo great stuff!
Webmaster? : Trade 1:1 Traffic
Best Arcade Script : PHParcadeScript (includes 2.7k Games)

/\/\ My Recommendations....







archgames is offline  
Digg this Post!
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
88x31 banner exchanges and link exchanges monkey Link Exchanges 5 05-22-2008 01:42 PM
88x31 and 100x100 sitewide banner exchanges monkey Link Exchanges 5 04-17-2008 06:45 PM
Other Banner Exchanges sizes peter_anderson Marketing 21 04-07-2008 01:36 PM
Easy Banner Exchanges arcadehopper Promotional Tools 2 04-02-2008 01:49 PM
Easy Banner Exchanges arcadehopper Promotional Tools 0 01-01-2008 04:33 PM


All times are GMT -6. The time now is 01:43 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC6
© TalkArcades.com
Forum - Register - Calendar - Memberlist - FAQ - Search