What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Help-Random sig

Pages: (3): « First « 1 [ 2 ] 3 » Last »
Help-Random sig
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: Help-Random sig
php 4 method , also no offence but I find kmas way too complex for such a simple thing
code:
<?php
error_reporting(E_ALL ^ E_NOTICE);


$folderdir = "./pics"; //EDIT THIS
$types = array('jpeg','.png','.bmp','.jpg','.gif');

//------ dont edit--------
$dir = array();
$folder=opendir($folderdir);
while ($file = readdir($folder)) $dir[] = $file;
closedir($folder);
$files = array();
for ($i=0;$dir[$i];$i++){
$ext=strtolower(substr($dir[$i],-4));
if (in_array($ext,$types)){
$files[]=$dir[$i];
    }
}

$image =  $files[rand(0,count($files)-1)];
$ext=strtolower(substr($image,-4));
$ext = str_replace('.','',$ext);

Header ("Content-type: image/$ext");
readfile($folderdir . '/' .$image);


?>

[Image: dt2.0v2.png]      Happy Birthday, WDZ
07-06-2005 04:07 AM
Profile PM Web Find Quote Report
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
Joined: Aug 2004
O.P. RE: Help-Random sig
well I would still like to try it out...how do I find it?
[Image: msghelp.net.png]
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
07-06-2005 10:16 PM
Profile PM Web Find Quote Report
ipab
Veteran Member
*****

Avatar
Design Evolved

Posts: 1017
Reputation: 32
35 / Male / Flag
Joined: May 2004
RE: Help-Random sig
http://sourceforge.net/projects/ksmas
56656E692C 20566964692C 2056696369
07-07-2005 12:30 AM
Profile E-Mail PM Web Find Quote Report
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
Joined: Aug 2004
O.P. RE: Help-Random sig
* Lou loves the script

This post was edited on 07-07-2005 at 01:16 AM by Lou.
[Image: msghelp.net.png]
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
07-07-2005 01:11 AM
Profile PM Web Find Quote Report
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
RE: Help-Random sig
quote:
Originally posted by ipab
http://sourceforge.net/projects/ksmas
quote:
Originally posted by lou_habs
* lou_habs loves the script
KSMAS has some known problems like you cant login again after adding your avatars and sigs. Yeah it happened to me and i told KS. He said that he knew that problem and its all gonna be ok (seemingly) in the new CBC which should be (hopefully) released in a few months.

Btw for those who are new ....
KSMAS = KeyStorm's Multi Avatar Script
CBC = Chameleon Board Companion
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
07-07-2005 11:22 AM
Profile E-Mail PM Web Find Quote Report
KeyStorm
Elite Member
*****

Avatar
Inn-sewer-ants-pollie-sea

Posts: 2156
Reputation: 45
38 / Male / –
Joined: Jan 2003
RE: Help-Random sig
Thanks for stating this, john. I'm extremely idle lately and didn't notice this thread.

As for CBC it's on its way and it will fix all issues concerning login and setup as well as opening the script to a new plugin-based concept.

quote:
Originally posted by -dt-
I find kmas way too complex for such a simple thing
The quick fact that a large amount of people doesn't even know what PHP means explains why KSMAS was taken to a higher coding complexity level to ensure everything is easy to set up and to offer as many options as possible to cope with most dynamic image needs. ;)

That and I was kinda sick of making custom dynamic avatar scripts for every single case having to tell people to upload images, create folders and whatsoever :P
07-12-2005 02:40 PM
Profile E-Mail PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: Help-Random sig
ksmas does not work well for me i dont know which version yo use and i cant delete it from ftp :cry: which one did hobbes use :P i sent you an e-mail about it :P
07-12-2005 03:00 PM
Profile PM Find Quote Report
KeyStorm
Elite Member
*****

Avatar
Inn-sewer-ants-pollie-sea

Posts: 2156
Reputation: 45
38 / Male / –
Joined: Jan 2003
RE: Help-Random sig
You can use the uninstaller you'll find on the project page.
07-12-2005 05:21 PM
Profile E-Mail PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: Help-Random sig
quote:
Originally posted by KeyStorm
You can use the uninstaller you'll find on the project page.

yeh i just found it :P which is the most stable and the one yu gave hobbes :)

thanks
07-12-2005 05:27 PM
Profile PM Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
39 / Male / Flag
Joined: Aug 2004
Status: Away
RE: Help-Random sig
KS, I hope the new version supports remote images. :P

I had to make a mini-script to be able to use the images at photobucket.com :P

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

07-12-2005 10:20 PM
Profile PM Find Quote Report
Pages: (3): « First « 1 [ 2 ] 3 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On