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)

jucs 05-28-2001 10:59 PM

I wish the documenation was updated. Now I don't trust myself as there are several "got ya's" due to inaccurate documention for V2.0 and you can't systematically follow exact directions. <sigh>

ForzaGrifo 05-29-2001 08:01 PM

Can someone update the hack install documentation so that 2.0 gold users will know exactly what to do? Thanks.

Sven 05-30-2001 06:47 AM

Well, that's what we're asking for.... I already send out a PM to Kier (about a week ago)... but got no response :(

You may want to do the same as I have the assumption that he doesn't look into this thread at the moment.

ForzaGrifo 05-30-2001 04:29 PM

hey, may be the guy is busy.:o

rebby 05-31-2001 06:05 PM

if this will be included in 2.1... i'm really curious on the 2.1 eta... would it be worth my time to hack 2.0???

CoolaShacka 06-05-2001 10:11 PM

updating the Instructions woukd be very nice.

Tnx

TooFastForYa 06-06-2001 03:12 AM

Quote:

Originally posted by Sharg
Kier, you know what ? :)
It would be GREAT to port this system to attached files to :)

I agree with Sharg...I have been looking for this hack for a long time no with no success. It should be made for the people with smaller databases with large webspace, that want to attach larger files. Please look into making this hack...It would be greatly appreshated!
Thanks,
TooFastForYa

jucs 06-06-2001 04:36 PM

I would just go for getting the documenation updated. :(

Dakota 06-07-2001 03:22 AM

Great hack, I love it, just been holding out on installing it. It installed without any problems. I really like the installer that is coming with these hack, it really saves time.

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

cditty 06-09-2001 06:44 AM

Would this be easily modified to allow users to serve their avatars from their web server?

Figure it might save a lot of bandwidth if I allow custom avatars and require them to be served elsewhere.

Chris

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

Mr. X 07-25-2001 08:23 AM

Quote:

Fatal error: Failed opening required './global.php' (include_path='') in /home/mx3dm1/public_html/vb/admin/install_db2fileavatars.php on line 2
This is what I get. Im using php3 files since vB refuses to install when I use .php.

Im wondering, can I just change the .php in your installer file to .php3?

Also, when you say:

Quote:

1) Firstly, you will need to create a new folder in your forums directory called custom_avatars and set the permissions on the folder to 777.
Do you mean create in the root forum folder, or in the /images folder? If not, do I need to move all the other avatars in my images/avatars folder to the new one?

Mr. X 07-29-2001 07:38 PM

Bump. Come on, no one?

VirtueTech 07-30-2001 04:15 AM

Doesn't 2.0.1 include this hack already?

Same with attachments?

Scoty 07-31-2001 04:01 AM

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin Control Panel: Invalid SQL: ALTER TABLE user ADD avatarrevision INT (6) UNSIGNED DEFAULT '0' not null AFTER avatarid
mysql error: Duplicate column name 'avatarrevision'
mysql error number: 1060

i have vBulletin 2.0

TheProfessor 08-07-2001 07:50 AM

How to apply this hack in vB 2.0.3?

showthread.php changed completly, I just cannot replace some code, because it is not there.

Kier or Freddi, please?

Greetings, The Professor!

eXtremeTim 08-07-2001 08:36 AM

in the newer version ov vb it seems that the users only have to hack member.php and admin functions.php and the hack seems to work fine.

TheProfessor 08-07-2001 11:32 AM

Yes, in fact it works fine, but just when viewing the member's profiles or private messages.

When showing threads, avatars will be still loaded from the SQL-Server.

Greetings, The Professor!

eXtremeTim 08-07-2001 12:26 PM

yea i just noticed that so you just have to hack the showthread file up.

eXtremeTim 08-07-2001 12:47 PM

i did some searching and found were the coding to hack up is at now so latter tonight i will see about releasing a new version of this hack for vbulletin 2.0.3

Castel 08-10-2001 12:07 AM

Any progress in getting this to work properly for 2.0.3 showthread?

HalfBreed 08-12-2001 07:00 PM

**BUMP**

Dakota 08-17-2001 06:14 AM

Here's how to get it working in 2.0.3

In admin/functions/php, announcement.php and private.php

Find:
PHP Code:

    if ($post[hascustomavatar] and $avatarenabled) {
      
$avatarurl="avatar.php?userid=$post[userid]&dateline=$post[avatardateline]"

and replace it with:
PHP Code:

      if ($post[hascustomavatar] and $avatarenabled) {
        if (
$usefileavatar$avatarurl="custom_avatars/avatar$post[userid]_$post[avatarrevision].gif";
        else 
$avatarurl="avatar.php?userid=$post[userid]"


Christian 08-17-2001 06:51 PM

Do you have to run the install again after upgrading?

If so, which one did you use?
The original or the one of the modified hack?

Castel 08-23-2001 05:07 PM

Dakota, that's the exact same code as the original hack. I am aware that the showthread.php changes are now in functions.php but this doesn't make it work.

Look at the source code of a thread with a custom avatar and you will see the avatar is still img src=avatar.php.... while on other pages that display the avatar it does indeed come for the custum_avatars folder.

Lordmusic 08-24-2001 11:39 PM

Keir, buddy. Please rerelease an update for your hack!!! It is needed.

dost 08-25-2001 01:41 AM

Yes please I also want to use this hack with vB 2.0.3

centris 08-25-2001 03:09 PM

Would someone PLEASE start a new thread for 2.03 hacks. I ran the install script and then found that the code did not match, now I have to wait for an update.

Sven 08-29-2001 04:54 PM

Mhmm, if just Kier would look into here and post something like:

Yes, I'm going to update, be patient

or at least

No, I'm too busy, sorry

pier 09-04-2001 01:14 PM

Any news yet ? My forum needs this mod to work!
thanks for your great feature

pier

tamarian 09-04-2001 11:05 PM

I have a guess why Kier didn't update the hack.

It's already done on the vB 2.0.4 waiting for release! :D


All times are GMT. The time now is 01:16 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.01535 seconds
  • Memory Usage 1,823KB
  • 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
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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