Raised This Month: $ Target: $400
 0% 

strange signature from some users


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-30-2008 , 10:10   strange signature from some users
Reply With Quote #1

Hi i saw in users signature, when you refresh the page userbar is changing in another userbar like YamiKaitou signature... what's the point? xD
I want a sig like that! :-"
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-30-2008 , 10:17   Re: strange signature from some users
Reply With Quote #2

I have a folder of userbars that are picked from randomly and displayed. It is a very simple PHP script that is doing it.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-30-2008 , 10:33   Re: strange signature from some users
Reply With Quote #3

and can you put the script here or in PM please...look nice that sig
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-30-2008 , 10:35   Re: strange signature from some users
Reply With Quote #4

PHP Code:
<?php

$count 
1;
while (
file_exists($count.'.png'))
    
$count++;
$count--;

header('Content-type: image/png');
$im imagecreatefrompng(rand(1,$count).'.png');
imagepng($im);

?>
The images are all named #.png
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-30-2008 , 10:40   Re: strange signature from some users
Reply With Quote #5

Oh thank you Yami but i don't know how to use this.. maybe a little tutorial ? ..i'm dump in PHP :\
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Rafael
Member
Join Date: Dec 2007
Location: localhost
Old 12-31-2008 , 05:47   Re: strange signature from some users
Reply With Quote #6

Let's suppose you saved this php script as sig.php. After uploading it to your webserver, you will be able to use your dynamic signature by inserting this at your signature details:

<img src="http://www.yourdomain.com/path/to/script/sig.php" />

Do not forget to put the png files at the same folder where the script is located.

This should work
__________________
Rafael is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-31-2008 , 12:38   Re: strange signature from some users
Reply With Quote #7

Except that you have to use [img]path[/img] for forums. And if you know what you are doing, you can save the script the same way I do, as userbar.png
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 12-31-2008 , 21:51   Re: strange signature from some users
Reply With Quote #8

Ownt? I never even knew that, but i will hound Yami for that now.
__________________
bmann_420 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-01-2009 , 19:59   Re: strange signature from some users
Reply With Quote #9

How did you make it work as a .png file?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-01-2009 , 20:14   Re: strange signature from some users
Reply With Quote #10

.htaccess file

Code:
<FilesMatch "userbar.png">
    SetHandler application/x-httpd-php5
</FilesMatch>
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 02:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode