Version: 1.00, by NTLDR (Coder)
Developer Last Online: Oct 2004
Version: 3.0.0
Rating:
Released: 03-11-2004
Last Update: Never
Installs: 6
Is in Beta Stage
No support by the author.
Signature Image System v1.0
Firstly if you use profile pictures on your forum, this hack isn't for you. Basicly this hack uses the user profile picture option in vB3 to upload an image for users to use in there signature on your site only.
This has been tested on vB3 Gamma, but should work on the RC's too.
Upload signature.php to your forums directory and make the following changes:
// EDIT ########################################################################
// do sig image
if ($vboptions['profilepicenabled'] AND ($permissions['genericpermissions'] & CANPROFILEPIC)) {
$previewmessage = preg_replace('/\[signatureimage\]/i', fetch_signature_url($bbuserinfo['userid']), $previewmessage);
}
<if condition="$show['profilepic'] AND $never_show_this">
Now you will need to visit the edit profile picture page in the User CP (profile.php?do=editprofilepic) and edit the phrases in the phrase manager to suit your needs. Searching for the text is easy so I'm not going to list all the phrases.
Now users can use [signatureimage] in there signature where they want the uploaded image to appear. Note you'll need to edit the usergroups permissions for Profile Pictures in the Usergroup Manager, where you can specify image size and file size restrictions.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Whats the URL for the image? Note that the URL changes every request and that your browser must send the HTTP_REFERER variable and the referrer in the URL must match this and that it must be within ~60 of the URL being generated.
If you comment out lines 43-46 in signature.php and the image shows then thats the problem.
Works flawlessly for me on both 3.0.0 Gamma and 3.0.0.
i've created a .txt for this hack that includes the phrase edits (there's 6 of them) and a USERCP_SHELL edit as well (to move the signature image link up to just under the signature edit link).
hope it helps some ppl.
as for me, i'm on 3.0.1, and i get the dreaded redX with this. i do feel, however, that it's a great hack for ppl not interested in profile pics. hopefully someone will be able to correct the redX problem for those of us currently experiancing it.
additionally, if somehow the [signatureimage] could be auto added to the signature, so that it was a one step deal (i.e. you upload a sig image, it's placed in your signature automatically) that would be awesome.
Try removing the following if block from signature.php:
PHP Code:
// check the request is from a valid referer, if not send a 404 header
if (TIMENOW > $_REQUEST['sig'] || ($_REQUEST['sig'] > (TIMENOW + 30)) || $_REQUEST['req'] !== md5($_SERVER['HTTP_REFERER'])) {
header('HTTP/1.1 404 Not Found');
exit;
}
Thats the part that checks if the image is allowed to be shown or not. Note that this will enable hotlinking etc unless you add other measures to protect against it.