|
|
|
|
|
|
|
|
|
Posted: Fri Nov 11, 2005 1:07 pm
Badloki makes me snicker with evil intent. XD
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Fri Nov 11, 2005 8:34 pm
::spits out soda::
Holy crap RSJ is Robin.
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Fri Nov 11, 2005 10:18 pm
NeoBlue ::spits out soda:: Holy crap RSJ is Robin. HI! Welcome the AYGGS! XD
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sat Nov 12, 2005 7:36 am
I vote that we use them all in rotation! That way noone will complain about their banners not receiving the love. 3nodding
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sat Nov 12, 2005 10:06 am
magnumT I vote that we use them all in rotation! That way noone will complain about their banners not receiving the love. 3nodding I agree... .... How do we do that again?
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sat Nov 12, 2005 11:05 am
RSJ Badloki makes me snicker with evil intent. XD That means my satellite mind control devices are all performing to standard.
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sat Nov 12, 2005 11:10 am
RSJ magnumT I vote that we use them all in rotation! That way noone will complain about their banners not receiving the love. 3nodding I agree... .... How do we do that again? Double post bitches! In order to do this I present you with this code... bitches ninja : Myspoonistoobig I wrote this for my own guild. don't care if you do or don't use it, I wrote it for me, but maybe it will be helpful to other captains wink It's your basic random image script, with one difference: you can choose a different set of images for different pages. In this case, you can choose a different set for the 4 different types of pages they might be viewing your banner from: the 'myguilds' page, the guild forum, the guild home, or the search (which is, as far as this script is considered, the same as viewing the list of a certain users' guilds) of course, if you only put 1 image in the list, then only that image will display on that page. So you can take advantage of the random part of this as much or little as you like Why? well, again, I made this for me. I wanted a random image script, but only in the guild forum, no-where else. I decided it would be easy enough to write it up the way I did, and still acheive this:
error_reporting(0)
// This is what you edit: // place URLs to images here // put the URLs inside single quotes as shown // for multiple URLs, separate them by commas. // commas go outside the quotes // no comma after the last one in the list. // spacing, tabs, etc don't matter here. they only matter inside the URLs, outside they don't $imgs_homepage = array('http://tinypic.com/fbjqx5.png') $imgs_myguilds = array('http://tinypic.com/fbjqx5.png') $imgs_search = array('http://tinypic.com/fbjqx5.png') $imgs_forum = array('http://img.photobucket.com/albums/v62/superfungoodness/gaia_mpl/200x40/Banner2.jpg', 'http://img.photobucket.com/albums/v62/superfungoodness/gaia_mpl/200x40/fbmhja.jpg', 'http://img.photobucket.com/albums/v62/superfungoodness/gaia_mpl/200x40/fbvvi1.jpg', 'http://img.photobucket.com/albums/v62/superfungoodness/gaia_mpl/200x40/Banner0.jpg', 'http://img.photobucket.com/albums/v62/superfungoodness/gaia_mpl/200x40/Banner3.jpg')
$imgs_default = $imgs_forum; $ref_url = $_SERVER['HTTP_REFERER'] if ( stristr($ref_url, 'guild_id') ) { $img_out = $imgs_homepage[array_rand($imgs_homepage)] } elseif ( stristr($ref_url, 'myguilds') ) { $img_out = $imgs_myguilds[array_rand($imgs_myguilds)] } elseif ( stristr($ref_url, 'gmode=search') ) { $img_out = $imgs_search[array_rand($imgs_search)] } elseif ( stristr($ref_url, 'viewforum') ) { $img_out = $imgs_forum[array_rand($imgs_forum)] } else { $img_out = $imgs_default[array_rand($imgs_default)] } // try to disable caching header("Cache-Control: no-cache, must-revalidate") // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT") // Date in the past header("Location: $img_out") ?>
- this is PHP, so if you don't have a server that can run that....well...sorry, this isn't for you I guess. There's a few free hosts out there that run PHP, you'll have to look up in the stickies in the C&T for getting that set up So, if we have someone around here who can host PHP files, we should be good to go. There is also a simpler version that most people around here use to randomize images in their sigs. I can dig that one out as well if you'd rather use that one.
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sat Nov 12, 2005 1:03 pm
Err... yeah... someone get on that one... >.> sweatdrop
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sat Nov 12, 2005 1:06 pm
I think, if given some time..... maybe later tonight after my kids are asleep, I can write up a completed code with the banners we have so far.
I can then send the finished code to someone who has some webspace with PHP hosting abilities (Frontpage extensions, blah).
I'd host, but I have naught any webspace of my own.
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sat Nov 12, 2005 1:15 pm
Damn PHP and CGI. DAMN!! *Working on it* EDITHere's the URL for a crappy, slapped together randomizer from http://www.cutandpastescripts.com/ . Just paste that into your banner area on your Guild Settings page. It should randomize the banners we have. http://www.cutandpastescripts.com/cgi-bin/randomimages/randomimages.pl?username=badloki It's not as fancy as a PHP version, but it'll work for now. I'll still write up a proper PHP code later this evening and then post it up with the corresponding instructions. 3nodding
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sat Nov 12, 2005 2:21 pm
Hmmm... I gave it a try, but it seems to return more red [x]'s than it does banners... and it's really slow.
I have webspace, but not PHP know how.
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sat Nov 12, 2005 2:38 pm
Yeh, that's what I figured would happen with a free CGI bin service. Sorry 'bout that. cutandpaste.com is the suck for sure.
I will work on the PHP goodness later tonight and post it up for you to host. And lo there shall be fanciness!
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sat Nov 12, 2005 9:14 pm
I'm seeing the rotation eek
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Sun Nov 13, 2005 11:25 am
It rotates, but suckily and slow.
I did not get to work on the PHP scrpt last night. I had some unexpected plans come up. But I will work on it today and get it posted up. The PHP script will be muuuuch faster and more reliable than the cutand paste.com thing.
Yay! When I loaded up the guild, my banner was in rotation! xd
|
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Mon Nov 14, 2005 1:59 pm
It seems to load alot faster for me now. Awesome job! :3
|
 |
 |
|
|
|
|
|
|
|
|
 |
|
|
|
|
|
|