View Full Version : Signature Image Upload-Hack??
Kars10
10-29-2002, 02:07 PM
Hello!
Yesterday i think about a signature image upload-hack.
Used like a Avatar but placed under the sig-line (or wherever youre sig is placed).
Top would be a admin-controlled feature, where admins can set the max size of the image. And a deleting-feature (for the user-cp) is importend!
Any ideas would be welcome!! ;)
Please excuse my bad english... :p
Chris M
10-29-2002, 02:37 PM
Basically, you mean like a "signature" version of an avatars?
Satan
Kars10
10-29-2002, 02:48 PM
Originally posted by hellsatan
Basically, you mean like a "signature" version of an avatars?
Satan
Not exactly. I request for a standalone hack, where youre users can upload signature-pics (or choice pics from a list like the avatarlist)... :classic:
Chris M
10-29-2002, 02:56 PM
I see...But the same kind of thing...
Sounds complicated:alien:
Satan
It isn't complicated really, anyone who knows enough PHP can take much of the code from the avatar upload part, and impliment it itno this kind of thing, it would just take an additional table in the DB, and you could call images from it just like avatars and play a variable in the signature part of the postbit template!
Easier said than done of course, but I don't know much, if any PHP!
Chris M
10-29-2002, 03:30 PM
Lol...
I could probably take a look at it:)
Satan
Kars10
10-29-2002, 04:00 PM
Thankx satan! That would be pretty cool!!;)
If i can help you in any way, please let me know!! :)
Chris M
10-29-2002, 04:10 PM
Ive come on quite a long way:)
Ive yet to edit member.php, admin/functions.php or admin/user.php, and make/edit templates, but I have the root script and admin script working:)
Ive attached a screenshot of the signature admin bit - It looks exactly like the avatar;)
Satan
Erwin
10-29-2002, 05:27 PM
This hack has been done.
https://vborg.vbsupport.ru/showthread.php?s=&threadid=28520
Chris M
10-29-2002, 06:11 PM
This is not the same as I am doing...
This uploads it to the database, and displays it in the postbit SEPERATE to the signature;)
This way you can disable IMG tags as well;)
Satan
Chris M
10-29-2002, 06:43 PM
Right : News!!!
Ive done all the file editing (i think), all the queries, and all the "add new" templates...
The only thing left is for Template editing:)
I should be complete tomorrow for a Beta Hack release:)
Satan
Erwin
10-29-2002, 07:14 PM
Originally posted by hellsatan
This is not the same as I am doing...
This uploads it to the database, and displays it in the postbit SEPERATE to the signature;)
This way you can disable IMG tags as well;)
Satan
It's better if it's not in the database - because you can .htaccess protect the directory they are in to prevent leeching.
Chris M
10-29-2002, 07:26 PM
But with this, Ive included a bit of code which stops users using outside your specified domain...
Its kind of the same thing, except I dont know how to do it with .htaccess, so I did it this way instead;)
Here is the code im using Erwin:
$referers = array ('www.yoursite.com','yoursite.com','ip address here');
function check_referer($referers){
if (count($referers)){
$found = false;
$temp = explode('/',getenv("HTTP_REFERER"));
$referer = $temp[2];
for ($x=0; $x < count($referers); $x++){
if (ereg ($referers[$x], $referer)) {
$found = true;
}
}
if (!$found){
exit;
}
return $found;
} else {
return true;
}
}
check_referer($referers);
You can add that to attachment.php and avatar.php too;)
Satan
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.