vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Off Site Avatar Hack (https://vborg.vbsupport.ru/showthread.php?t=39296)

g-force2k2 05-31-2002 10:00 PM

Off Site Avatar Hack
 
As requested [ Here ] 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:

PHP Code:

// +++++++ Offsite Avatar Hack by g-force2k2 +++++++
  
$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,styleid,parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invisible,usertitle,customtitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,lastpost,posts,timezoneoffset,emailnotification,receivepm,emailonpm,ipaddress,pmpopup,options,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','$daysprune',$lastvisit,$lastactivity,$lastpost,'$posts','$timezoneoffset','$emailnotification','$receivepm','$emailonpm','".addslashes($aipaddress)."','$pmpopup','$options','$birthday',$height','$width')");
// +++++++ Offsite Avatar Hack by g-force2k2 +++++++ 

replace it with:

PHP Code:

// +++++++ Offsite Avatar Hack by g-force2k2 +++++++
  
$DB_site->query("INSERT INTO user (userid,usergroupid,username,password,email,styleid,parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invisible,usertitle,customtitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,lastpost,posts,timezoneoffset,emailnotification,receivepm,emailonpm,ipaddress,pmpopup,options,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','$daysprune',$lastvisit,$lastactivity,$lastpost,'$posts','$timezoneoffset','$emailnotification','$receivepm','$emailonpm','".addslashes($aipaddress)."','$pmpopup','$options','$birthday','$height','$width')");
// +++++++ 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

TECK 06-15-2002 04:06 AM

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

Quote:

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

Quote:

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:
PHP Code:

<td bgcolor="#13486D"><normalfont>$userinfo[usertitle]&nbsp;<img src="$userinfo[avatarurl]border="0" align="middle"></normalfont></td

Change to:
PHP Code:

<td bgcolor="#13486D"><normalfont>$userinfo[usertitle]&nbsp;<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:

Code:

if ($post[homepage]!="" and $post[homepage]!="http://") {
          eval("\$post[homepage] = \"".gettemplate("postbit_homepage")."\";");
} else {
          $post[homepage]="";
                }


ADD:

Code:

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:

Code:

<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:

Code:

$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

Quote:

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/showthrea...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/showthrea...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, :(


All times are GMT. The time now is 04:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01222 seconds
  • Memory Usage 1,835KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete