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-06-2000 Last Update: Never Installs: 0
 
No support by the author.

Hi all

OK, at long last, I think this is ready for everyone else to poke at

To make things easier, I've put the instructions up on my site, using a program someone gave me a long time ago that's designed specifically for posting hacks with. At one point I thought about doing a PHP version of it, I guess I have motivation now

This release is still not completely clean. There are a few things not yet coded that I want to get in before it makes it to 1.0. the to-do list is:
  • Allow Private Avatars
  • Allow usergroup-wide Avatars (like the custom usertitles)
  • Clean up the template work for when Avatar images isn't running. Right now, if $avatarshow is off, the templates will display the start of the selector, just with no images. This is mostly because the way the table row formatting gets tweaked adding in the selector, it's easier to just put the blank there.

As always, use at your own risk. It's recommended you back up your vB PHP files before implementing this hack. The database modifications won't affect anything if you back the hack out.

Anyway, you can find the instructions for applying the hack at http://www.moonwolf.net/cgi-bin/vb_m...structions.cgi

To see it in operation, I have a version of it running at http://www.underlight.com/VBB

Enjoy!

Kath

[Edited by Moonwolf on 06-06-2000 at 12:04 PM]

Show Your Support

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

Comments
  #12  
Old 06-06-2000, 04:18 AM
Guest
 
Posts: n/a
Default

Fixed the javascript problem...

In the modifyprofile template...

Call the form "dynamicselector"

Call the avatar selection box "dynamicselector2" and it will be compatible with the avatar.js thats in the hack.
Reply With Quote
  #13  
Old 06-06-2000, 04:20 AM
Guest
 
Posts: n/a
Default

Ok, both would work. I was checking my fix while you must have been adding the updated instructions.

Cannot display the avatar with my posts .. looking at it as we speak.
Reply With Quote
  #14  
Old 06-06-2000, 04:24 AM
Guest
 
Posts: n/a
Default

OK, once the hack is in, you need to set avatarshow in options to yes, and make sure you have $avatar in your postbit template.
Reply With Quote
  #15  
Old 06-06-2000, 04:38 AM
Guest
 
Posts: n/a
Default

Ok, fixed the problem where the database was not getting updated.

That was due to my mod on the javascript.

Now looking into why userinfo[avimage] is a null value in showthread
Reply With Quote
  #16  
Old 06-06-2000, 04:44 AM
Guest
 
Posts: n/a
Default

I think you missed one step in the mod for showthread.php

Change
Code:
    $userinfo=$DB_site->query_first("SELECT userid,email,username,usertitle,signature,showemail,homepage,icq,aim,yahoo,joindate,posts FROM user WHERE userid=$userid");
To this ... (add the avimage into the select statement)
Code:
    $userinfo=$DB_site->query_first("SELECT userid,email,username,usertitle,signature,showemail,homepage,icq,aim,yahoo,joindate,posts,avimage FROM user WHERE userid=$userid");
Before you add this piece...
Code:
/*  Avatar Hack by Moonwolf  */
    if ($userinfo[avimage] and $showavatars==1 and is_file($userinfo[avimage])) {
         clearstatcache();
Reply With Quote
  #17  
Old 06-06-2000, 04:44 AM
Guest
 
Posts: n/a
Default

One of the things I'm looking at for 1.0 is a toggleable user upload of private images. That will have a byte size restriction on it. As for display dimensions, those can be controlled by $aheight and $awidth through the control panel.

Kath

Quote:
Originally posted by Martin
Nice hack

I like this idea. I just wish it could upload with restrictions to size and weight, but I think that would require an extra table and profile field.

I think it could be done without that, though, if the icons were referenced from an upload directory and forced to be named username.gif

I ramble...

nice hack
Reply With Quote
  #18  
Old 06-06-2000, 04:54 AM
Guest
 
Posts: n/a
Default

Yep, I did, thanks for finding it.

I've changed the templates a little bit, and the avatardb.php file that inserts the first image also. Now the selector will default to ----- None ----- if there's no image set. Makes it a little cleaner. In each of the three templates that have the selector, delete the <option>'s that are in the template, and let the PHP do all the work filling them out.

Kath

Quote:
Originally posted by shri
I think you missed one step in the mod for showthread.php
[Edited by Moonwolf on 06-06-2000 at 01:59 PM]
Reply With Quote
  #19  
Old 06-06-2000, 04:58 AM
Guest
 
Posts: n/a
Default

Nice - John can you get this added to a release when it is all smoothed out?
Reply With Quote
  #20  
Old 06-06-2000, 09:20 AM
Guest
 
Posts: n/a
Default

Hi,

great hack - but the download-link on moonwolfs instructions doesn't work - could anyone attach this on an email to me?

Thanx - this is the hack for vB!
Reply With Quote
  #21  
Old 06-06-2000, 09:34 AM
Guest
 
Posts: n/a
Default

I'm not sure, but there seems to be something wrong with the dHTML in the selector. In Netscape, it refuses to display any form elements after the selector, and refuses to display the images.

-Why- this is happening I have no idea, but I'm working on it. It doesn't affect MSIE at all.

TB2: Try the link now.

Kath
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 12:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04433 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
  • (3)bbcode_code
  • (2)bbcode_quote
  • (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