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)
-   -   Custom Avatars as Files (updated for vBulletin 2.2.2) (https://vborg.vbsupport.ru/showthread.php?t=11760)

huythuy 06-10-2001 07:44 PM

Thanks for this hack .

How can I have "custom_avartars" in another folder not the vBB fodler ? Coz I want a share avatars folder with another forum and gallery .

Thanks in advance

huythuy 06-15-2001 07:19 PM

Please anyone ?????? :(

Tolitz 06-23-2001 07:20 AM

Has anyone been able to make this work on VB 2.0.1? What changes in the instructions did you do? I "really" like to incorporate this hack coz it'll save me valuable database space, as well as protect my avatar images with mod_rewrite ...

Anyone care to update the instructions? please? :(

ztsky 06-23-2001 02:12 PM

Quote:

Originally posted by Tolitz
Has anyone been able to make this work on VB 2.0.1? What changes in the instructions did you do? I "really" like to incorporate this hack coz it'll save me valuable database space, as well as protect my avatar images with mod_rewrite ...

Anyone care to update the instructions? please? :(

Check my board

ztsky 06-23-2001 02:34 PM

See this,I edit this hack from Kier.
It works well on my board vb2.0.1.
this zip include two files. install_db2fileavatars.php adn install.txt.
Unzip this zip,upload and run install_db2fileavatars.php in your board admin dir.Then edit and upload your file as install.txt.
Good luck!

Christian 06-26-2001 09:52 AM

When the hack is installed and all files are stores in the folder, is it safe to empty the custom_avatar table then?

Dimitri 06-29-2001 10:25 PM

Only problem with ztsky's version of this hack is that the avatar will no longer display on the profile page, whether it's your edit profile page or someone else's view profile page. Can you modify the 'hack' in the members.php file so it still shows it in profile pages? Works fine otherwise. ;)

ztsky 07-02-2001 07:00 PM

Quote:

Originally posted by Dimitri
Only problem with ztsky's version of this hack is that the avatar will no longer display on the profile page, whether it's your edit profile page or someone else's view profile page. Can you modify the 'hack' in the members.php file so it still shows it in profile pages? Works fine otherwise. ;)
just like this
in member.php,
1??find :
Code:

$userinfo[avatarurl]=getavatarurl($userinfo[userid]);
  if ($userinfo[avatarurl]=="") {
    $userinfo[avatarurl]="images/clear.gif";

replace with this:
Code:

$userinfo[avatarurl]=getavatarurl($userinfo[userid]);
  if ($userinfo[avatarurl]=="") {
  if ($userinfo[avatarrevision]>0) {
                  $userinfo[avatarurl]="custom_avatars/avatar$userinfo[userid]"."_$userinfo[avatarrevision].gif";
    }          else
    $userinfo[avatarurl]="images/clear.gif";

2??find

Code:

if ($bbuserinfo[avatarurl]=="") {
    $bbuserinfo[avatarurl]="images/clear.gif";

replace with this:
Code:

if ($bbuserinfo[avatarurl]=="") {
  if ($bbuserinfo[avatarrevision]>0) {
                  $bbuserinfo[avatarurl]="custom_avatars/avatar$bbuserinfo[userid]"."_$bbuserinfo[avatarrevision].gif";
        }  else
    $bbuserinfo[avatarurl]="images/clear.gif";


ForzaGrifo 07-16-2001 06:39 AM

Quote:

Originally posted by Dakota

the dateline you guys are talking about didn't affect it when I installed it. I just acted like it wasn't there, and just put what is in the installation instructions. It works fine without the dateline stuff.

I've got 2.0.0. So do I just ignore the dateline stuff and put what's in the installation instruction? Will it really work?

I'm hesitant of hacking the code unless I'm 100% sure it will work and not crash.

btw can somebody update the instruction for 2.0.x users?

ztsky 07-16-2001 10:02 AM

Quote:

Originally posted by ForzaGrifo


I've got 2.0.0. So do I just ignore the dateline stuff and put what's in the installation instruction? Will it really work?

I'm hesitant of hacking the code unless I'm 100% sure it will work and not crash.

btw can somebody update the instruction for 2.0.x users?

http://161.58.84.213/forum/showthrea...threadid=22115


All times are GMT. The time now is 11:08 AM.

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.01397 seconds
  • Memory Usage 1,744KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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