View Full Version : Off Site Avatar Hack
g-force2k2
05-31-2002, 10:00 PM
As requested [ Here ] (https://vborg.vbsupport.ru/showthread.php?s=&threadid=39274) by Takara ;)
Thanks guys... re-released... and i'll try and offer full support here and also if you'd like to see any additions just ask and i'll see what i can fix up for ya guys ;)
What does the hack do? Allows users to user offsite avatars to save transfer and storage... it was asked whether this could be done so here it is again :) And it doesn't work with any of the avatar hacks... b/c why would you want avatars if you don't want to use the transfer ;) enjoy... and i'll keep helping the member with requests too:p
g-force2k2
Chris M
06-01-2002, 09:48 AM
I must say that this hack is different...
*Installed*
Satan
Velocd
06-01-2002, 01:36 PM
sounds cool, but probably doesn't work with avatar categories hack or some of the other avatar hacks out there, or does it?
Kumaro
06-03-2002, 08:17 PM
yeah, will it work with the avatar categories hack?
WizyWyg
06-05-2002, 09:44 PM
?????????????????????
WizyWyg
06-06-2002, 11:22 PM
Geforce, WHY'D YOU DELETE THIS!!!
bluecat
06-09-2002, 07:17 PM
Yeah, why?
g-force2k2
06-10-2002, 02:00 AM
No this hack won't work with avatar categories or any of the sort... it was meant so that avatars wouldn't be stored on the server... as for some users they're just unappreciative...
As for an update... for those that have installed here's a minor error that was fixed... (if you didn't notice it)
open admin/user.php
find:
// +++++++ Offsite Avatar Hack by g-force2k2 +++++++
$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,stylei d,parentemail,coppauser,homepage,icq,aim,yahoo,sig nature,adminemail,showemail,invisible,usertitle,cu stomtitle,joindate,cookieuser,daysprune,lastvisit, lastactivity,lastpost,posts,timezoneoffset,emailno tification,receivepm,emailonpm,ipaddress,pmpopup,o ptions,birthday,height,width) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchars($ausername))."','".addslashes(md5($apassword))."','".addslashes(htmlspecialchars($email))."','$userstyleid','".addslashes(htmlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($homepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialchars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signature)."','$adminemail','$showemail','$invisible','".addslashes($usertitle)."','$customtitle',$joindate,'$cookieuser','$dayspru ne',$lastvisit,$lastactivity,$lastpost,'$posts','$ timezoneoffset','$emailnotification','$receivepm', '$emailonpm','".addslashes($aipaddress)."','$pmpopup','$options','$birthday',$height','$wid th')");
// +++++++ Offsite Avatar Hack by g-force2k2 +++++++
replace it with:
// +++++++ Offsite Avatar Hack by g-force2k2 +++++++
$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,stylei d,parentemail,coppauser,homepage,icq,aim,yahoo,sig nature,adminemail,showemail,invisible,usertitle,cu stomtitle,joindate,cookieuser,daysprune,lastvisit, lastactivity,lastpost,posts,timezoneoffset,emailno tification,receivepm,emailonpm,ipaddress,pmpopup,o ptions,birthday,height,width) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchars($ausername))."','".addslashes(md5($apassword))."','".addslashes(htmlspecialchars($email))."','$userstyleid','".addslashes(htmlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($homepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialchars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signature)."','$adminemail','$showemail','$invisible','".addslashes($usertitle)."','$customtitle',$joindate,'$cookieuser','$dayspru ne',$lastvisit,$lastactivity,$lastpost,'$posts','$ timezoneoffset','$emailnotification','$receivepm', '$emailonpm','".addslashes($aipaddress)."','$pmpopup','$options','$birthday','$height','$wi dth')");
// +++++++ Offsite Avatar Hack by g-force2k2 +++++++
It's a minor fix but a big error... sorry about that ;_;
g-force2k2
Takara
06-10-2002, 03:05 AM
Hey g-force, this is a great hack. Thanks for all your hard work. You should just ignore people, hehe.
It was working nice, but then I upgraded my board a bit and lost it, just to discover you deleted it. Oh well. Thanks for the effort g-force ^^
MarkB
06-13-2002, 06:11 AM
This is exactly what I'm needing! Can you please re-add it, or email it to me??
Thanks! :)
bonnmac
06-13-2002, 06:41 AM
I'd love to use this one also. I don't know why you removed it but hopefully you'll add it again. Thanks :)
theprankst3r
06-13-2002, 10:26 PM
I'd like to have this one too ... Can you email it to me at theprankst3r@xtvt.net ?
Takara
06-14-2002, 12:12 AM
come on gforce2001, re-release it ^_^
DemiNeo0101
06-14-2002, 10:42 PM
ahh man i need this. PLEASE re-release it.
g-force2k2
06-15-2002, 01:53 AM
download re-added ;) enjoy ppls :) thanks again Takara for the idea ;)
g-force2k2
can you please attach also a text install file?
thanks alot.
Takara
06-15-2002, 11:29 AM
The file isnt a .hack.php file, inside it is a manual install ^^
g-force2k2
06-15-2002, 08:04 PM
Originally posted by nakkid
can you please attach also a text install file?
thanks alot.
yeah sorry Nakkid :p i just use php scripts for regular files... so if you open it in wordpad you'll find the instructions there... sorry bout that ;)
g-force2k2
MarkB
06-20-2002, 04:28 AM
WOO-HOO! :D
Bro_Joey_Gowdy
06-22-2002, 06:33 AM
great hack !!
AviationForum
07-12-2002, 11:47 PM
How do you query the database?
LanciaStratos
07-16-2002, 01:14 AM
Originally posted by AviationForum
How do you query the database? PHPMyAdmin is the best way if you don't want to mess around in SSH/Telnet. ;)
karreman
08-01-2002, 06:14 PM
Find:
<td bgcolor="#13486D"><normalfont>$userinfo[usertitle] <img src="$userinfo[avatarurl]" border="0" align="middle"></normalfont></td>
Change to:
<td bgcolor="#13486D"><normalfont>$userinfo[usertitle] <img src="$userinfo[field#]" width="$post[width]" height="$post[hieght]" border="0" align="middle"></normalfont></td>
Mind that little mistake.
Its $post[height] instead of $post[hieght]
Installed it, works like a charme..
finaly question, how can i show a preview of there avatar, once they have change it and they visit the usercp again?
(like the old one)
MarkB
09-07-2002, 11:36 AM
An addition to this. If for some reason the person deletes the default code without putting in a URL, and their avatar shows as a broken image, you can add this code to get around it:
In admin/functions.php - under:
if ($post[homepage]!="" and $post[homepage]!="http://") {
eval("\$post[homepage] = \"".gettemplate("postbit_homepage")."\";");
} else {
$post[homepage]="";
}
ADD:
if ($post[field#]!="" and $post[field#]!="https://vborg.vbsupport.ru/greentek/clear.gif") {
eval("\$post[off_avatar] = \"".gettemplate("postbit_off_avatar")."\";");
} else {
$post[off_avatar]="";
}
(where # is the field number)
Create a new template called postbit_off_avatar using the following:
<img src="$post[field#]" width="$post[width]" height="$post[height]" border="0"><br>
And in your postbit template, where before you had the above code, put simply:
$post[off_avatar]
And you should now have no broken avatar images (unless someone's using Geocities!:))
MarkB
09-15-2002, 01:19 PM
This is also helps, if you have a blank image for people not using an avatar, and the postbit is stretched even when they make only a one word post (for example), then this will set it up the blank image doesn't show up.
Kuipo
11-03-2002, 10:12 AM
Ahhhh Sweetness!! Great hack, and thanks a BUNCH MarkB for fixing that little problem with the space and broken images!
Kuipo
11-03-2002, 12:54 PM
I just notcied that it stretches pictures to be whatever size you set in the db. Is there a way to make it only resize the picture if it is larger than the set size.
And i know this is asking a bit much, but how hard would it be to make an image limit. I think that might be really dificult seeing as its on a different server, and i think it would have to ask all the sites what size the picture is if i'm correct in thinking of how to do it.
Anyways, if thats too hard forget it ;)
But the resizing is somthing that can be done, i just dont know how. >.< :lick:
drumsy
01-09-2003, 03:42 PM
Originally posted by Kuipo
I just notcied that it stretches pictures to be whatever size you set in the db. Is there a way to make it only resize the picture if it is larger than the set size.
And i know this is asking a bit much, but how hard would it be to make an image limit. I think that might be really dificult seeing as its on a different server, and i think it would have to ask all the sites what size the picture is if i'm correct in thinking of how to do it.
Anyways, if thats too hard forget it ;)
But the resizing is somthing that can be done, i just dont know how. >.< :lick:
Bump to the top for a re-size fix! How do I go about correcting this???
Kuipo
01-09-2003, 06:20 PM
Just so you know, what i did, was use this hack... and just removed the lines that size the image. Then i used... https://vborg.vbsupport.ru/showthread.php?s=&threadid=45343 that to to make sure no one uses an avatar that is too large. I would love a size limiter, but i think it's too hard if it's on another server =(
drumsy
01-09-2003, 08:41 PM
Unfortunately this seems to create compatibility issues with my Private Messages.
https://vborg.vbsupport.ru/showthread.php?s=&threadid=47536
predatoryfish
02-15-2003, 06:20 AM
has anyone installed this on 2.2.9 or 2.3.0?
I cant seem to find the getinfo template..
:cry:
sonic3d
03-03-2003, 09:42 PM
for some reason, the avatars doesn't work in the profile. everything it spelled correctly.
ne help?
l8er
sonic
nintendo
07-08-2003, 06:49 PM
Is it possible to get this to work on 2.3.0??
0zone
07-13-2003, 03:28 PM
I'm running 2.3.0 and it works perfectly, except I am a little confused about the re-sizing bit.
Could someone explain it in a little more detail please. Some of my users have small avatars and well, they are complaining now becuase their avatars are now stretched.
Thanks in advance for your help.
- 0zone
0zone
08-19-2003, 04:23 PM
Does anyone not know how to fix this? This is almost a month old now and nothing, :(
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.