Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Off Site Avatar Hack Details »»
Off Site Avatar Hack
Version: 1.00, by g-force2k2 g-force2k2 is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-31-2002 Last Update: Never Installs: 45
 
No support by the author.

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

g-force2k2

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 07-12-2002, 11:47 PM
AviationForum AviationForum is offline
 
Join Date: Apr 2002
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you query the database?
Reply With Quote
  #23  
Old 07-16-2002, 01:14 AM
LanciaStratos's Avatar
LanciaStratos LanciaStratos is offline
 
Join Date: Oct 2001
Location: somewhere you're not
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #24  
Old 08-01-2002, 06:14 PM
karreman karreman is offline
 
Join Date: Apr 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #25  
Old 09-07-2002, 11:36 AM
MarkB's Avatar
MarkB MarkB is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!)
Reply With Quote
  #26  
Old 09-15-2002, 01:19 PM
MarkB's Avatar
MarkB MarkB is offline
 
Join Date: Oct 2001
Location: London, UK
Posts: 324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #27  
Old 11-03-2002, 10:12 AM
Kuipo's Avatar
Kuipo Kuipo is offline
 
Join Date: Oct 2002
Location: WA
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahhhh Sweetness!! Great hack, and thanks a BUNCH MarkB for fixing that little problem with the space and broken images!
Reply With Quote
  #28  
Old 11-03-2002, 12:54 PM
Kuipo's Avatar
Kuipo Kuipo is offline
 
Join Date: Oct 2002
Location: WA
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #29  
Old 01-09-2003, 03:42 PM
drumsy's Avatar
drumsy drumsy is offline
 
Join Date: Nov 2001
Location: Charlotte, NC
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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???
Reply With Quote
  #30  
Old 01-09-2003, 06:20 PM
Kuipo's Avatar
Kuipo Kuipo is offline
 
Join Date: Oct 2002
Location: WA
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 =(
Reply With Quote
  #31  
Old 01-09-2003, 08:41 PM
drumsy's Avatar
drumsy drumsy is offline
 
Join Date: Nov 2001
Location: Charlotte, NC
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately this seems to create compatibility issues with my Private Messages.

https://vborg.vbsupport.ru/showthrea...threadid=47536
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08145 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete