Welcome, Guest. Please Login or Register.
May 14, 2025, 06:51:12 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  how about a rotateing banner mod?? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: how about a rotateing banner mod??  (Read 550 times)
chad
Jr. Member
**
Posts: 77


I'm a llama!

how about a rotateing banner mod??
« on: March 17, 2003, 11:24:59 PM »
Reply with quote

how about a rotateing banner mod??

This would be kewel!!

Chad
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:how about a rotateing banner mod??
« Reply #1 on: March 17, 2003, 11:35:05 PM »
Reply with quote

there are lots of banner rotation scripts out there, in php/javascript, shouldnt be hard to find on google
maybe some nice ppl will give some urls... i dont have any in my bookmark...
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:how about a rotateing banner mod??
« Reply #2 on: March 18, 2003, 12:53:21 AM »
Reply with quote

<?php

// Change this to the base URL of the images.
define('WHERE_THEY_ARE''http://gbaetc.homeip.net/theme/');

// List the banners here.
$available_banners = array(
   
'metroid/selogo.gif',
   
'zelda/selogo.gif',
   
'xp/selogo.gif',
// Or use a full URL....
   
'http://www.yabbse.org/community/YaBBImages/selogo.gif'
);

$image = &$available_banners[rand(0count($available_banners) - 1)];
if (
strpos($image'http://') === false)
   
$image WHERE_THEY_ARE $image;

//echo '<img src="' . urlecnode($image) . '" alt="' . $image . '" />';
echo '<img src="' urlencode($image) . '" alt="' htmlspecialchars($image) . '" />';

?>


Or similar....

-[Unknown]
« Last Edit: March 18, 2003, 12:55:04 AM by [Unknown] » Logged
lilb
Noobie
*
Posts: 29


Never mess with a 5foot2 readheaded Sicilian!

Re:how about a rotateing banner mod??
« Reply #3 on: March 30, 2003, 09:40:02 PM »
Reply with quote

[unknown] - being that I'm in the midst of banner rotation he** at the moment, I'm curious about something....would that code be included in an existing php file within the forum directory, or should a completely new file be created?  

Thanx in advance,
lilb
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:how about a rotateing banner mod??
« Reply #4 on: March 30, 2003, 09:42:17 PM »
Reply with quote

i think u're safe to put that in template.php
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:how about a rotateing banner mod??
« Reply #5 on: March 30, 2003, 09:42:21 PM »
Reply with quote

That was meant to be put in the existing file....

You would use header('Location: ' . urlencode($image)); at the bottom if you wanted it to be seperate.

-[Unknown]
Logged
lilb
Noobie
*
Posts: 29


Never mess with a 5foot2 readheaded Sicilian!

Re:how about a rotateing banner mod??
« Reply #6 on: March 30, 2003, 09:45:19 PM »
Reply with quote

Wow, ya'll were quick!  Thanx bunches!

Off to try that right now.  Stick around, I may need ya to stop me from tossing this box out th ewindow...heheh!   ;D
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  how about a rotateing banner mod?? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.013 seconds with 21 queries.