vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Avatar hack v0.9 released (https://vborg.vbsupport.ru/showthread.php?t=981)

06-08-2000 04:23 AM

Hi all

Well, I finally got the bugs zapped, and am releasing v0.9

What's done:
  • Admin modification panel now sets the $avimage field properly
  • Admin modification panel now has new options: text entry field to enter a custom image path and file. Over-ride selector (which lists the publically available avatars), setting the avatar image to the custom one.
  • Admin Add User panel has the $avimage field bug fix, and the custom image settings.
  • Removed Javascript from templates, making them more browser compatible, and managing to cleverly avoid having to demonstrate my abject lack of knowledge with dHTML by not having to debug the image selector Javascript :)
  • Added new option to Edit Profile selector. Now, if a file exists in images/avatar/private, called $userid.gif, the selector box will list "Your Custom Avatar" at the top of the selector box.

This means that private avatars will be available, but the admin will have to upload it and rename it to $userid.gif for it to show up in a user's options.

What's coming up for v1.0?
  • Option to allow users to upload their own custom avatar images, with byte size limits, toggled from the control panel.
  • Option to set a default Avatar image for Usergroups, over-riding avatarshow in control panel (So you can allow certain user groups to have avatar images, while restricting it from others).

Instructions for applying this hack from scratch are available at http://www.moonwolf.net/cgi-bin/vb_m...structions.cgi

Those of you who have already applied v0.8, you only need to change:

member.php
user.php
and the three templates: registeradult, registercoppa, updateprofile.

You also need to run the following mini script to update the database fields:
Code:

<?php
require("./global.php");
$DB_site->query("ALTER TABLE user ADD avcustom SMALLINT (6) DEFAULT '0' not null ");
echo "Table 'user' updated<br>";
?>

Save this to a file in your forum/admin directory, then call it from your browser.

You should be able to go through the instructions and spot where you need to change, but if people have problems upgrading, I'll post specific instructions up on my site on request.

Here's hoping I remembered all the changes this time :)

Kath

06-08-2000 05:11 PM

Hello,

This is awesome. I am going to upgrade to vBulletin ASAP!

Thanks for your hack!

06-08-2000 05:15 PM

Great job Kath!

I'm going to add it to my Beta site and see how it works for me :)

I think I'm gonna wait on the 1.0 before going public with it, tho. what a pain in the patootie to upload and rename 3000+ icons

hehehe

again, super job!

06-08-2000 05:22 PM

Hello,

Shoot. I read it wrong. I thought the features coming in 1.0 were out in this version.

Looks like I have time. Oh well.

Thanks again Kath. Great job!

06-09-2000 01:06 AM

heh

Sorry for not getting the avatar upload for users and usergroup avatar functions out in 0.9, but I wanted to get the bug fixed version out as soon as I could.

Martin, are your icons names for the UBB Avatar hack? i.e. _ in names that were converted to " " in the select boxes?

If they were I could write you a little script that will scan the avatars directory and insert their names into the database for you, saving time ...

Kath

06-09-2000 03:13 AM

Kath,
I appreciate hte thought, but I never bothered to hack it into my UBB because it was such a pain and relied heavily on JavaSrcipt. I have a lot of Mac and WebTV users and I hate for them to feel left out:)

06-09-2000 03:23 AM

0.9 and 1.0 have no javascript now :)

Kath

06-09-2000 10:53 AM

Does anyone have a forum running the latest released version of this hack so we can see it in action before applying it to our own?

The underlight.com forum seems to be using a dynamic selector still...

06-09-2000 08:09 PM

This hack keeps getting better :)
I'll implement it as soon as I have some time

06-12-2000 11:32 AM

I've got the implementation working.

Also fixed a bug in the original which was messing up the user table when I used the control panel to edit a user.

Code:

Original Instruction
$DB_site->query("UPDATE user SET usergroupid=$usergroupid,username='".addslashes($username).

Should be

Code:

$DB_site->query("UPDATE user SET usergroupid=$usergroupid,username='".addslashes($ausername).
Shri


All times are GMT. The time now is 04:30 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.01162 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)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