Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-08-2000 Last Update: Never Installs: 0
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-12-2000, 02:34 PM
Guest
 
Posts: n/a
Default

Hello,

I'm not trying to be pushy

I was just curious what your expected release date was for version 1.0?

Preferably the release of custom user images and byte size limitations.

Thanks.
Reply With Quote
  #13  
Old 06-14-2000, 02:18 AM
Guest
 
Posts: n/a
Default

I don't know whether it will have any problem
when the uploaded user private avatar images have
over 3000 or more in a single directory?

Will it slow the server speed when too many files
stored in a single directory?

I had ever set 2 fields to store image-file-name and image-file-path (ex. image-file-path="1000-3000") when I had
huge user image-files data uploaded!

[Edited by PaulLin on 06-14-2000 at 11:40 AM]
Reply With Quote
  #14  
Old 06-15-2000, 04:43 AM
Guest
 
Posts: n/a
Default

One of the things I'm looking into with 1.0 is storing the custom images direct in the database itself, rather than as files.

Kath
Reply With Quote
  #15  
Old 06-15-2000, 01:36 PM
Guest
 
Posts: n/a
Default

Image files are often huge!
Will it not slow down the mysql searching speed when you
put many image files in mysql database?
You may get 1000 user images files uploaded and get 80mg
file space used!
Reply With Quote
  #16  
Old 06-15-2000, 01:59 PM
Guest
 
Posts: n/a
Default

Hello,

Not if you use image magick and mogrify.

http://www.imagemagick.org/

I use this for a gallery hack that Code Warrior made for the UBB. It will resize an image for you, thus lowering the KB of the image.

Check out an example on my boards at:
http://www.paintballcity.com/cgi-loc...owse&number=35

You'll see that all the images uploaded were copied to a thumbnail image around 90 x 90 so that users can get a preview of the users uploads and then click on them for the original image. It works great. I had to modify the code a bit to encode the file name if a space was in it but that was easy.

Image Magick is great, but not many hosting companies will allow you to use it. I'm pretty sure Communitech.com does and some others though. I'm running on a dedicated so it makes it easier.
Reply With Quote
  #17  
Old 06-16-2000, 01:08 AM
Guest
 
Posts: n/a
Default

I'd still advise against storing the binary in the database.

Although databases are fast, it is much simpler for the web servers file system to serve up an image. You can still use mogrify to thumbnail it if you need to.

IMO, just store the path (or filename) in the database, and use the call to find it, then the file system to retreive it.
Reply With Quote
  #18  
Old 06-17-2000, 06:24 AM
Guest
 
Posts: n/a
Default

For some reason, none of the avatars will appear in the select box for new registers. Any ideas?

They'll appear when you go to edit a profile, but not otherwise
Reply With Quote
  #19  
Old 11-17-2000, 10:32 AM
Guest
 
Posts: n/a
Default

Hi,

I am using vB 1.1.4. Apply the hack, I can choose the icon but it will not show up on post. It is blank?

Got any ideas???
Reply With Quote
  #20  
Old 11-17-2000, 12:09 PM
Guest
 
Posts: n/a
Default

<a href="http://www.vbulletin.com/forum/showthread.php?threadid=2127" target="_blank">http://www.vbulletin.com/forum/showt...?threadid=2127</a>
Reply With Quote
  #21  
Old 11-21-2000, 05:29 PM
Guest
 
Posts: n/a
Default

Sorry about my absence, and what happened to this whole hack.

Basically, I had a life explosion (One loud enough to warrant three articles in the Washington Post about it, even), and am clawing my way out of it slowly but surely.

So if there's still a need for this hack, I'll complete it. If not, I'll drop it

Sorry again.

Katherine
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:36 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.04817 seconds
  • Memory Usage 2,279KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete