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)
-   -   Avatar As Link2 (https://vborg.vbsupport.ru/showthread.php?t=36462)

Scheccia 03-22-2002 10:00 PM

Avatar As Link2
 
This hack display avatar through link... and not stored avatar in your database or server.

This hack is completely various from the first version , now it is integrated with the function avatar of vbulletin.

To integrate with welcome pannel
in index.php
instead
############################
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='images/avatars/noavatar.gif';
}
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0"></a>';
}
############################

put

############################
if ($bbuserinfo[userid]!=0) {


$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarlink=$DB_site->query_first("SELECT avatar2 FROM avatarlink WHERE userid=$bbuserinfo[userid]");
$avatar2=$avatarlink[avatar2];
if ($avatar2=='') {
$avatarurl='images/noavatar.gif';
}else{
$avatarurl=$avatar2;
}
}
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/guestavatar.gif" border="0"></a>';
}
############################

Scheccia 03-23-2002 11:25 AM

Screen shoot
in admin --> option

Scheccia 03-23-2002 11:27 AM

screen shoot in admin--> edit user

Scheccia 03-23-2002 11:28 AM

screen shoot
in user cp --> modify avatar

ZiRu$ 03-23-2002 08:22 PM

I'll do it! thanks

wooolF[RM] 03-24-2002 01:38 PM

]Fatal error: Call to a member function on a non-object in /home/wooolf/WWW/forum/member.php on line 1048

on line 1048: I could see }ELSE{
I have changed it to } else {

next step:
Parse error: parse error in /home/wooolf/WWW/forum/member.php on line 1199

on line 1199: }
nothing more...
Code:

  $DB_site->query("UPDATE user SET avatarid='".addslashes($avatarid)."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");

  eval("standardredirect(\"".gettemplate("redirect_updatethanks")."\",\"usercp.php?s=$session[sessionhash]\");");

}

// ############################### start get info ###############################
if ($action=="getinfo") {
  $templatesused = "getinfo_sendpm,aol,icq,yahoo,getinfo_birthday,getinfo_customfields,getinfo";
  include("./global.php");


I think u forgot { or } somewhere... :(

The Keeper 03-24-2002 07:31 PM

Does the script allow people to post giant avatars? Or can a dimension restriction be imposed?

wooolF[RM] 03-24-2002 08:12 PM

U restrict your dimenions under ADMIN CP

Scheccia 03-24-2002 08:38 PM

what kind of installation you make?
control the edited file

wooolF[RM] 03-25-2002 01:02 AM

have controlled twice + made compared two files with one programm to make sure I have edited file right.


All times are GMT. The time now is 04:22 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.01122 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete