|
Post by acoolie530 on Feb 5, 2006 4:10:41 GMT
Everyone gets to make one. ExampleSourceOk, it is powered by PHP and OOP. It can look through directories recursively and normally, weight images and directories so certain ones come up more often, and resize by a maximum size. My old avatar was powered by a crap one I made so I decided I'd make this, also under partial request by Igi.
|
|
|
Post by Josh on Feb 8, 2006 20:44:33 GMT
I tried it and all that happen is a bunch of gray boxes appeared in the size of the avatars. :-\ I have no idea how to fix it either. abloggedlife.info/av/avatar.phpThe image shows up as the favicon in Fx, but doesn't show up for real in the browser.
|
|
|
Post by Luke on Feb 8, 2006 21:52:49 GMT
Seems that your old one works better than the new.
|
|
|
Post by acoolie530 on Feb 8, 2006 23:23:49 GMT
Sorry about that. I only tested it with png's larger than 100 x 100. I also fixed a few other bugs.
Also, on the weights, it is a 1-10 rating, 10 being the most often and 1 being the least often.
|
|
|
Post by Josh on Feb 9, 2006 0:38:35 GMT
Thanks for fixing it ACoolie. Now, one final question and I'm done bugging you, how do you place it into your avatar spot? I'm a n00b, I know. lol
|
|
|
Post by Eric on Feb 9, 2006 2:21:28 GMT
Just plugin the URL to the page in the avatar URL Good job ACoolie
|
|
|
Post by acoolie530 on Feb 9, 2006 2:29:22 GMT
Nah, that doesn't work. You have to use mod_rewrite. I posted some code over at PBS, I'll go get it.
For signatures, just add ?.gif to the end of the url. For avatars, set this up in your .htaccess Options +FollowSymlinks RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^tux\.[A-z]+$ tux.php [NC,L]
|
|
|
Post by Eric on Feb 10, 2006 3:13:21 GMT
Nah, that doesn't work. You have to use mod_rewrite. I posted some code over at PBS, I'll go get it. For signatures, just add ?.gif to the end of the url. For avatars, set this up in your .htaccess Options +FollowSymlinks RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^tux\.[A-z]+$ tux.php [NC,L]So they disabled that.
|
|
|
Post by acoolie530 on Feb 10, 2006 14:07:23 GMT
Nah, that doesn't work. You have to use mod_rewrite. I posted some code over at PBS, I'll go get it. For signatures, just add ?.gif to the end of the url. For avatars, set this up in your .htaccess Options +FollowSymlinks RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^tux\.[A-z]+$ tux.php [NC,L]So they disabled that. Yes.. in your avatar, it has to be .jpg, .jpeg, .png, or .gif (I might have missed one) In your signature, it can be anything.
|
|
|
Post by Eric on Feb 10, 2006 16:17:46 GMT
So they disabled that. Yes.. in your avatar, it has to be .jpg, .jpeg, .png, or .gif (I might have missed one) In your signature, it can be anything. Oh well, at least there are tons of avoidance methods .
|
|
|
Post by Luke on Feb 10, 2006 23:09:54 GMT
Okay, I'm a n00b at coding, where do you place it. I'm gussing signature. -hides-
|
|
|
Post by acoolie530 on Feb 10, 2006 23:13:47 GMT
No, make a file named image.php and place that code in there. Add all the image directories at the bottom, then link to the image in your sig.
|
|
|
Post by Luke on Feb 10, 2006 23:16:59 GMT
No, make a file named image.php and place that code in there. Add all the image directories at the bottom, then link to the image in your sig. When you say "That code" you mean in your avatar?
|
|
|
Post by acoolie530 on Feb 10, 2006 23:22:41 GMT
Take the code from acoolie.mfhosting.com/tux.phps and place it in a file named "image.php" Place all of the images you want in a directory named "images" I am guessing that you do not want all of the signatures resized, so replace the line var $resize = true; with var $resize = false;Now, at the bottom, replace the following lines $Random -> add('images/Dir/', 3); $Random -> add('images/OtherDir/', 5); $Random -> add('images/avatar.gif', 1); $Random -> add('images/avatar.png', 2);with $Random -> add('images/', 10);Now, add this code into your signature and replace the url with the url to image.php [img src="http://example.com/path/to/you/image.php"]
|
|
|
Post by Luke on Feb 11, 2006 4:23:52 GMT
Take the code from acoolie.mfhosting.com/tux.phps and place it in a file named "image.php" Place all of the images you want in a directory named "images" I am guessing that you do not want all of the signatures resized, so replace the line var $resize = true; with var $resize = false;Now, at the bottom, replace the following lines $Random -> add('images/Dir/', 3); $Random -> add('images/OtherDir/', 5); $Random -> add('images/avatar.gif', 1); $Random -> add('images/avatar.png', 2);with $Random -> add('images/', 10);Now, add this code into your signature and replace the url with the url to image.php [img src="http://example.com/path/to/you/image.php"]Okay, I gotcha. Thanks.
|
|
|
Post by Jake on Feb 14, 2006 7:39:22 GMT
Well, I got it too work. Nice job ACoolie.
|
|
|
Post by T¥pØ_#2 on Feb 16, 2006 23:58:23 GMT
Nah, that doesn't work. You have to use mod_rewrite. I posted some code over at PBS, I'll go get it. For signatures, just add ?.gif to the end of the url. For avatars, set this up in your .htaccess Options +FollowSymlinks RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^tux\.[A-z]+$ tux.php [NC,L]Hmm, http://yoursite.com/image.jpg/index.php then use [img src="http://yoursite.com/image.jpg"] no?
|
|
|
Post by acoolie530 on Feb 17, 2006 2:17:14 GMT
I think just putting it in a .php file and calling it like this would work: [size=1][img src="http://example.com/path/to/you/image.php/image.jpg"][/size]
|
|
|
Post by 11823 on Feb 17, 2006 16:01:40 GMT
As I mentioned on ProBoards Support, Nice script
|
|
|
Post by remixxx on May 6, 2006 0:22:52 GMT
All the links are down.
|
|