Version: 1.00, by Logikos
Developer Last Online: Sep 2023
Category: Miscellaneous Hacks -
Version: 3.0.3
Rating:
Released: 04-13-2004
Last Update: Never
Installs: 124
No support by the author.
vBSigHosting v1.0.0
====================
Author: Ken 'LiveWire' Iovino
Site: www.vbhacks.us
Version: 1.0.1 ====================
Updates
Fixed bug with profile pic showing avatar.
If your using 1.0.0 please read upgrad_from_1.0.0.txt for the bug fixes
What this does
vBSigHosting is a free image hosting hack for remote hosting of signatures for your forums. This will allow members to upload there signature to your site and use it on your site. Each user gets one upload, with a file width, height, and size limit that you specified in the admin cp.
Features:
Completely Admin CP controlled.
Turn on/off for diffrent usergroups.
File sizes, width, and height restrictions (pixels) via ACP.
One user equals one signature image at a time.
When user uploads new signature, old signature will erase.
All images are stored in database.
And more...
To do list...
Time to install: 15-20 minutes
Queries to run: 2
File Mods: 5
/admincp/usergroup.php
/includes/init.php
/includes/functions_upload.php
/forum/profile.php
/forum/image.php
Templates to edit: 1
Templates to add: 1
New Phrases: 14
Click It
Please read carefully and make all the necessary changes at stated. This is will work if installed properly. I've tested this hack on 3 diffrent vBulletin boards running version 3.0.0. PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack, please be kind and click on the "Install" button, i will have some updated versions soon.
Help & Support Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply.
Please post bugs and errors here. Hope you like, feedback welcomed.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Yeah, it's a simple fix. I'm not even a "coder," but I managed to find out what was causing it.
In the instructions of the mod, it tells you this..
PHP Code:
Open: /forum/image.php & Find (around line 177):
if ($_REQUEST['type'] == 'profile')
{
$data = 'profilepicdata';
$table = 'customprofilepic';
// No permissions to see profile pics
if (!$vboptions['profilepicenabled'] OR (!($permissions['genericpermissions'] & CANSEEPROFILEPIC) AND $bbuserinfo['userid'] != $userid))
{
header('Content-type: image/gif');
readfile("./$vboptions[cleargifurl]");
exit;
}
}
Under Add:
if ($_REQUEST['type'] == 'siguploader')
{
$data = 'siguploaderdata';
$table = 'customsiguploader';
}
Doing that divides an "else" code from the profile picture code. So instead of adding that code there, add it under..
PHP Code:
if ($_REQUEST['type'] == 'profile')
{
$data = 'profilepicdata';
$table = 'customprofilepic';
// No permissions to see profile pics
if (!$vboptions['profilepicenabled'] OR (!($permissions['genericpermissions'] & CANSEEPROFILEPIC) AND $bbuserinfo['userid'] != $userid))
{
header('Content-type: image/gif');
readfile("./$vboptions[cleargifurl]");
exit;
}
}
else
{
$data = 'avatardata';
$table = 'customavatar';
}
That way, the code stays together, the profile pictures work, and the signature uploader works too, or so I think..
Which brings me to my problem.. if a user is in multiple usergroups, s/he cannot upload a picture (uploading just refreshes the page, showing no error and no confirmation).
It would be very cool if this hack could adopt some options from the old vB2 hack that allows me to have 2 images and it has an insert option so when they click one of the images it will be inserted in the signature.
Yeah, it's a simple fix. I'm not even a "coder," but I managed to find out what was causing it.
In the instructions of the mod, it tells you this..
PHP Code:
Open: /forum/image.php & Find (around line 177):
if ($_REQUEST['type'] == 'profile')
{
$data = 'profilepicdata';
$table = 'customprofilepic';
// No permissions to see profile pics
if (!$vboptions['profilepicenabled'] OR (!($permissions['genericpermissions'] & CANSEEPROFILEPIC) AND $bbuserinfo['userid'] != $userid))
{
header('Content-type: image/gif');
readfile("./$vboptions[cleargifurl]");
exit;
}
}
Under Add:
if ($_REQUEST['type'] == 'siguploader')
{
$data = 'siguploaderdata';
$table = 'customsiguploader';
}
Doing that divides an "else" code from the profile picture code. So instead of adding that code there, add it under..
PHP Code:
if ($_REQUEST['type'] == 'profile')
{
$data = 'profilepicdata';
$table = 'customprofilepic';
// No permissions to see profile pics
if (!$vboptions['profilepicenabled'] OR (!($permissions['genericpermissions'] & CANSEEPROFILEPIC) AND $bbuserinfo['userid'] != $userid))
{
header('Content-type: image/gif');
readfile("./$vboptions[cleargifurl]");
exit;
}
}
else
{
$data = 'avatardata';
$table = 'customavatar';
}
That way, the code stays together, the profile pictures work, and the signature uploader works too, or so I think..
Which brings me to my problem.. if a user is in multiple usergroups, s/he cannot upload a picture (uploading just refreshes the page, showing no error and no confirmation).