Pages: 1 2 3 [4] 5 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Tigerclaw64
|
Posted - 2007.05.18 20:25:00 -
[91]
Greetings from geordieland england testing my sig what you think
|
Liachi
|
Posted - 2007.05.24 19:10:00 -
[92]
Edited by: Liachi on 24/05/2007 19:13:46 Edited by: Liachi on 24/05/2007 19:09:52
(Alt account since my main acct expired and I cant seem to get it activated again )
I found one example that worked but cant figure out how to get the sig to display in forum - it just displays the text [i m g] http://sigrotateurl.etc [/i m g] .
Update - It seems to be a phpBB problem as it works on ikonboard forums ok once php extension is allowed for images. Any tips to get it working?
|
Ronny Hendriks
FireStar Inc FATAL Alliance
|
Posted - 2007.06.20 09:54:00 -
[93]
test -------------------------------------------------------------------------------------
|
Lilith Nex
State War Academy
|
Posted - 2007.07.07 10:56:00 -
[94]
.
|
Kyle Frost
Caldari Phoenix Knights Dark Nebula Galactic Empire
|
Posted - 2007.07.27 12:08:00 -
[95]
testing
|
Draaken
Caldari Infinitus Odium The Church.
|
Posted - 2007.08.02 23:16:00 -
[96]
Edited by: Draaken on 02/08/2007 23:18:50 Edited by: Draaken on 02/08/2007 23:16:22 Hmz. Can someone tell me why neither the asp (as posted by Chribba) nor the php (as posted by Joshua) works for me? I hosted all stuff on evewebspace.com - but all I'm getting is the "image error" you can see below in my sig.. Edit: that's using the php - with the asp i get nothing.
Edit2: I used this one instead and now it works. Hmz. _____
|
Michelle Desller
|
Posted - 2007.08.05 19:11:00 -
[97]
test
|
Turix
Interstellar eXodus R0ADKILL
|
Posted - 2007.09.12 07:16:00 -
[98]
Originally by: Crumplecorn
Originally by: Jo McLoli stuff
While I could make my script a little smaller, PHP is simply never going to be able to do it in as few characters as perl I think. But PHP still isn't ugly.
The smallest iv managed to get the php is: --start-- <?$f=array_merge(glob("./*.jpg"),glob("./*.gif"),glob("./*.png")); header("Status:302Found"); header("Location:".$f[rand(0,count($f)-1)]);?> --end--
142 bytes (vs 210) = 68% 3 lines (vs 6) = 50%
(Those are vs the smallest php file cept this one, i cant see a way of making php run it in a smaller space than perl)
| Image Hosting | My Movies | |
Turix
Interstellar eXodus R0ADKILL
|
Posted - 2007.09.12 07:20:00 -
[99]
Originally by: Turix
Originally by: Crumplecorn
Originally by: Jo McLoli stuff
While I could make my script a little smaller, PHP is simply never going to be able to do it in as few characters as perl I think. But PHP still isn't ugly.
The smallest iv managed to get the php is: --start-- <?$f=array_merge(glob("./*.jpg"),glob("./*.gif"),glob("./*.png")); header("Status:302Found"); header("Location:".$f[rand(0,count($f)-1)]);?> --end--
142 bytes (vs 210) = 68% 3 lines (vs 6) = 50%
(Those are vs the smallest php file cept this one, i cant see a way of making php run it in a smaller space than perl)
Hmmmm this is getting really anal now for php but you can also put it all onto one line to squeeze those extra bytes out:
--start-- <?$f=array_merge(glob("./*.jpg"),glob("./*.gif"),glob("./*.png"));header("Status:302Found");header("Location:".$f[rand(0,count($f)-1)]);?> --end--
138 bytes (vs 142) = 97% 1 line (vs 3) = 33.3%
| Image Hosting | My Movies | |
Turix
Interstellar eXodus R0ADKILL
|
Posted - 2007.09.12 07:30:00 -
[100]
Originally by: Turix
Originally by: Turix
Originally by: Crumplecorn
Originally by: Jo McLoli stuff
While I could make my script a little smaller, PHP is simply never going to be able to do it in as few characters as perl I think. But PHP still isn't ugly.
The smallest iv managed to get the php is: --start-- <?$f=array_merge(glob("./*.jpg"),glob("./*.gif"),glob("./*.png")); header("Status:302Found"); header("Location:".$f[rand(0,count($f)-1)]);?> --end--
142 bytes (vs 210) = 68% 3 lines (vs 6) = 50%
(Those are vs the smallest php file cept this one, i cant see a way of making php run it in a smaller space than perl)
Hmmmm this is getting really anal now for php but you can also put it all onto one line to squeeze those extra bytes out:
--start-- <?$f=array_merge(glob("./*.jpg"),glob("./*.gif"),glob("./*.png"));header("Status:302Found");header("Location:".$f[rand(0,count($f)-1)]);?> --end--
138 bytes (vs 142) = 97% 1 line (vs 3) = 33.3%
lol ok i stripped a bit more out and it still works, not sure how much effect on compatability its had though, still works in my firefox & IE though.
--start-- <?$f=array_merge(glob("./*.jpg"),glob("./*.gif"),glob("./*.png"));header("Location:".$f[rand(0,count($f)-1)]);?> --end--
112 bytes (vs 138) = 81% 1 line (vs 1) = 100%
| Image Hosting | My Movies | |
|
Turix
Interstellar eXodus R0ADKILL
|
Posted - 2007.09.12 12:29:00 -
[101]
Edited by: Turix on 12/09/2007 12:31:02
Originally by: Turix
lol ok i stripped a bit more out and it still works, not sure how much effect on compatability its had though, still works in my firefox & IE though.
--start-- <?$f=array_merge(glob("./*.jpg"),glob("./*.gif"),glob("./*.png"));header("Location:".$f[rand(0,count($f)-1)]);?> --end--
112 bytes (vs 138) = 81% 1 line (vs 1) = 100%
Ye i found another way to shrink it
Merged all the globs into one command:
--start-- <?$f=array_merge(glob("*.{gif,jpg,png}",GLOB_BRACE));header("Location:".$f[rand(0,count($f)-1)])?> --end--
98 bytes (vs 112) = 87.5% 1 line (vs 1) = 100%
| Image Hosting | My Movies | |
Captain Ferros
Caldari Expeditionary Fleet 1 Te-Ka
|
Posted - 2007.09.14 19:48:00 -
[102]
Edited by: Captain Ferros on 14/09/2007 19:53:45 Edited by: Captain Ferros on 14/09/2007 19:48:42 I spent all my time figuing out how to do the random image for sig, to see someone beat me to it, and then I see people having issues still lol.
for the forums, you MUST have the image ending in a image extention. this is to prevent you from running invalid scripts.
put all your pics in a folder (mine is http://www.bkoa.us/ef1/images/banner)
create a php file called random.php that contains
<?php $dir = opendir('.'); $files = array();
while($file = readdir($dir)){ if(strpos($file, ".gif") != false || strpos($file, ".jpg")!=false || strpos($file, ".png")!=false){ array_push($files, $file); } } $index = mt_rand(0, count($files)-1); $filename = $files[$index]; $ext = substr($filename, strrpos($filename, ".")+1);
$file = file_get_contents($files[$index]); header("content-type: image/".$ext); echo $file; ?>
make sure it is in the same file as the images.
now, you want to link to
http://www.bkoa.us/ef1/images/banner/random.php/1.jpg
that 1.jpg does NOT interfere with the random, but allows the forum to see it as a valid picture format
This method WILL work on other formats as well
----------------
|
Turix
Interstellar eXodus R0ADKILL
|
Posted - 2007.09.15 23:14:00 -
[103]
Edited by: Turix on 15/09/2007 23:15:58
Originally by: Mike Vernon -------------------- #!/usr/bin/perl print"Status:302 Found\nLocation:$f[rand(@f=<*.{jpg,png,gif}>)]\n\n"; --------------------
bytes: 86 (vs 90) = 96% lines: 2 (vs 2) = 100%
This is kinda anal tho, but works with my perl and my Firefox.
Dunno if Status:302 w/o that space is according to standard. The space between rand and ( I'm ok with getting rid of tho, the space between print and it's expression looks damn ugly, but it ok too.
I raise you, php > perl for size this time
---start--- <?$f=glob("*.{gif,jpg,png}",GLOB_BRACE);header("Location:".$f[rand(0,count($f))])?> ---end---
83 bytes (vs 86)= 96% 1 line (vs 2) = 50%
| Image Hosting | My Movies | |
Casey Windstrom
Gallente Barts of all Trades
|
Posted - 2007.10.07 15:59:00 -
[104]
test
|
Laura Baretta
Minmatar Omega Fleet Enterprises Executive Outcomes
|
Posted - 2007.10.15 21:01:00 -
[105]
Originally by: Turix ...
I think it's just fair to tell you that you got a typo in your sig ;) Insterstellar eXodus sounds funny tho.
|
SHAWN QUEST
|
Posted - 2007.10.22 03:20:00 -
[106]
test
|
Evil Bunnies
Yonder Mountain Productions PROBABLE CAUSE
|
Posted - 2007.10.22 12:50:00 -
[107]
Test. Like the sig?
|
Hilabana
Minmatar Sebiestor tribe
|
Posted - 2007.10.27 19:47:00 -
[108]
i think it works
¦=knast CCP st÷=va Fj÷lvi og ISK seljandi |
ZegTheBrick
Center for Advanced Studies
|
Posted - 2007.11.27 02:35:00 -
[109]
test
Yes, these are my ships. Yes, I'm an empire hugging mission runner. |
Nong Jinsun
|
Posted - 2007.12.01 07:09:00 -
[110]
I can get the randomizing to work. As in each refresh it changes the images.
What I cant get to work is the different image per post if you manage to post more than once on the same page.
|
|
Angela Toren
Amarr Toren Shipyards
|
Posted - 2007.12.03 21:16:00 -
[111]
Edited by: Angela Toren on 03/12/2007 21:18:14
_____________
Originally by: Kanye West CCP doesn't care about roleplaying people.
|
Nadun'Hagar
N00bs With Guns
|
Posted - 2007.12.05 01:25:00 -
[112]
Edited by: Nadun''Hagar on 05/12/2007 01:28:44
Originally by: Nong Jinsun I can get the randomizing to work. As in each refresh it changes the images.
What I cant get to work is the different image per post if you manage to post more than once on the same page.
It should be /random.php?random=[=RND=] But since its how the forums work, You have to remove the "=" signs from it in order to get to work. If I remove the = signs this is what it looks like /random.php?random=493114 now hit refresh on the page and see the numbers change! :P
|
JamNVan
|
Posted - 2007.12.27 04:36:00 -
[113]
test
|
Andreon047
|
Posted - 2008.02.09 08:00:00 -
[114]
nice!
|
Sgt Blade
An Eye For An Eye Rule of Three
|
Posted - 2008.02.16 02:20:00 -
[115]
testy
Hypnotic Pelvic Thrusting Level 5 |
Ven Uk
|
Posted - 2008.03.13 12:42:00 -
[116]
Ah ha testing and more testing
|
PleaseInsertInMyAlt
|
Posted - 2008.05.29 00:32:00 -
[117]
I'm really not understanding this... :(
|
Kyle Frost
Caldari Infusion. The Firm.
|
Posted - 2008.08.23 09:06:00 -
[118]
mhm --------------
Let the gun do the talking ! |
Wretched
Caldari Beach Boys
|
Posted - 2008.10.10 01:08:00 -
[119]
Uhhh.. nice.. I can't even make gifs with invisible colors let alone anims. Any suggestions on a simple application that can get the job done quickly and intuitively?
Rgds, Wretch
|
Dark Volt
DarkSide Industries The Black Alliance
|
Posted - 2008.11.17 04:30:00 -
[120]
Test.
|
|
|
|
|
Pages: 1 2 3 [4] 5 :: one page |
First page | Previous page | Next page | Last page |