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_mods/avatar/instructions.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:
<?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
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_mods/avatar/instructions.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:
<?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