Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free. Whatever your game interest may be, you'll find information here where people realize that games are more than just poker online.


Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Blizzard Gaming Forums > General > Member Introductions

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 07-01-2004, 06:16 PM   #1 (permalink)
BattleForums Newbie
 
FuLouZero-'s Avatar
 
Join Date: Jun 2004
Age: 18
Posts: 12
PHP in Sigs

-Edit 2-
All I need now is a site that will host ftp for free any one got one?
or is willing to let me host them on there site














How would I get it to have a random sig every New view?
I've seen it done before here, I just dont know the code of how to do it or how to do it
So Question is how do you give php code to images and what code would I use for to pick a Image randomly out of a directory?
Edit: Found Script
PHP Code:
<?php/* * Name your images 1.jpg, 2.jpg etc. * * Add this line to your page where you want the images to  * appear: <?php include "randomimage.php"; ?> */ // Change this to the total number of images in the folder$total = "11";// Change to the type of files to use eg. .jpg or .gif$file_type = ".jpg";// Change to the location of the folder containing the images$image_folder = "images/random";// You do not need to edit below this line$start = "1";$random = mt_rand($start, $total);$image_name = $random . $file_type;echo "<img src=\"$image_folder/$image_name\" alt=\"$image_name\" />";?>
now Do I put it on a website make a php file with only the script and Image tag the php link?
__________________


"You wanna go smoke a fag?"
"Hey Banana Bread Man Fly...Twist and spin to the other side"
"So why don't you take their Advice and grow some pubes?
You should it's fun. My nuts look like a chia pet. -VC "


Aim: FuLouZero

Last edited by FuLouZero-; 07-01-2004 at 07:10 PM.
FuLouZero- is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 07-01-2004, 07:04 PM   #2 (permalink)
BattleForums Senior Member
 
Sicloan's Avatar
 
Join Date: May 2003
Location: visualdesigncore
Age: 22
Posts: 2,104
you'll need to change the php script to do a redirect to the image itself... so after the random, instead of echo'ing the <img src=" you would need to redirect to the image path itself.. then just put the php file on a webserver, and go [img]http://yourdomain.com/randomimage.php[./img] and once you do that, it'll work
__________________
LayoutCave.com - MySpace Layouts
Graphic Design Community
Photoshop Tutorials

1 2 3 4 5 6 7 8 9 10 11 12 13 14
Sicloan is offline   Reply With Quote
Old 07-03-2004, 12:31 AM   #3 (permalink)
Respected Member
 
Crookedfoot's Avatar
 
Join Date: Aug 2002
Location: Middle of Nowhere
Age: 44
Posts: 1,075
While we don't have a definate rule against using a php to place random pictures into your signature, keep in mind the each and every picture used is subject to the signature rules.
__________________

The Silent One
Crookedfoot is offline   Reply With Quote
Old 07-04-2004, 08:39 AM   #4 (permalink)
BattleForums Senior Member
 
FuLouZero's Avatar
 
Join Date: Jul 2003
Age: 18
Posts: 1,342
Ok new problem
I've got it done but it wont work on the forums
http://www.hostinganime.com/fulouzero/images.php






Edit-
They dont allow hotlinking apparently...
__________________
Message me on MSN

R.I.P AXL

Last edited by FuLouZero; 07-04-2004 at 09:27 AM.
FuLouZero is offline   Reply With Quote
Old 07-05-2004, 08:10 PM   #5 (permalink)
BattleForums Member
 
Aternyth's Avatar
 
Join Date: Dec 2003
Location: New Jersey
Posts: 376
http://www.wolfness.com/upload

it takes like 5 secs + unlimited bandwith
Aternyth is offline   Reply With Quote
Old 07-05-2004, 09:35 PM   #6 (permalink)
BattleForums Senior Member
 
Beer $lut's Avatar
 
Join Date: Oct 2003
Location: teds pants
Posts: 2,900
Does Battleforums allow dynamic images? I have the random.php script if you want it.
__________________
Beer $lut is offline   Reply With Quote
Old 07-06-2004, 12:45 AM   #7 (permalink)
Respected Member
 
Crookedfoot's Avatar
 
Join Date: Aug 2002
Location: Middle of Nowhere
Age: 44
Posts: 1,075
We've yet to disallow it, so far we only had one member use it.

The issue would be that a member would have to use it in compliance with forum rules.
That would mean that all pics used would have to be the correct pixel size and file size and the proper content.
By content I mean that if you have 200 random pics, and one is porn, that member gets banned and the forums settings may get changed as well, ruining it for many.
__________________

The Silent One
Crookedfoot is offline   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« ahoy there! | Hello »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off


All times are GMT +1. The time now is 07:27 AM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0