Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mini-Avatars Hack Released Details »»
Mini-Avatars Hack Released
Version: 1.00, by Mystikal Mystikal is offline
Developer Last Online: May 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-12-2002 Last Update: Never Installs: 23
Is in Beta Stage  
No support by the author.

I've re-released this hack with a completely re-written database independent version Enjoy.

The mini-avatars system will enable users to have their own 16x16 image in front of their username in threads, and in the who's online portion of the website. The hack creates 1 table and alters a few files, with 2 new files created.

I'm working on the the new modifications to the admin panel, but this will get you up and running so far =)

Show Your Support

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

Comments
  #52  
Old 10-27-2002, 11:35 AM
Mystikal Mystikal is offline
 
Join Date: Apr 2002
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whoa... that's weird... what version of vbulletin are you using?
Reply With Quote
  #53  
Old 11-05-2002, 12:38 AM
edwardandtubbs1 edwardandtubbs1 is offline
 
Join Date: Oct 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what template do I change to add the avatar to next to the users names in the forums?

also I am new to this so can you tell me what part of code I am looking for.
Reply With Quote
  #54  
Old 11-05-2002, 01:18 AM
edwardandtubbs1 edwardandtubbs1 is offline
 
Join Date: Oct 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also I have this problem

my userid is 1 so anyone with a 1 at the start of they userid has my miniavatar. Also a member uploaded a miniavatar userid 27 and it jst shows the default avatar, just my database doesnt like the querys ERROR: Unclosed quote @ 94
STR: '
SQL: DELETE FROM `usericons` WHERE `userid` = '1' AND `filename` = 'indifference.gif' AND `data` = 'GIF89a2 LIMIT 1

Error

SQL-query :

DELETE FROM `usericons` WHERE `userid` = '1' AND `filename` = 'indifference.gif' AND `data` = 'GIF89a2 LIMIT 1

MySQL said:

You have an error in your SQL syntax near ''GIF89a2 LIMIT 1' at line 1

Can I have the querys it install please
Reply With Quote
  #55  
Old 11-05-2002, 06:38 AM
Zombie Zombie is offline
 
Join Date: Oct 2001
Location: Florida
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For "Active Users" on the forum home you would use:
<img src="icon.php?userid=$userid" height="16" width="16">

For the "Who's Online" page you would use
<img src="icon.php?userid=$userinfo[userid]" height="16" width="16">

For your postbit you would use:
<img src="icon.php?userid=$post[userid]" height="16" width="16">

Hope that helps!

Nice little hack btw
Reply With Quote
  #56  
Old 11-08-2002, 01:00 AM
auz1111's Avatar
auz1111 auz1111 is offline
 
Join Date: Nov 2002
Location: columbia, sc
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! I got it to work after a little tinkering. Make sure to tell installers to change:

<img src="../icon.php?userid=$uservariable[userid]" height="16" width="16"align="absmiddle" border="0">

to:

<img src="../icon.php?userid=$userid[userid]" height="16" width="16"align="absmiddle" border="0">

I kept getting the default icon until changing this. Thanks!
Reply With Quote
  #57  
Old 11-23-2002, 12:13 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea

Satan
Reply With Quote
  #58  
Old 01-02-2003, 07:12 PM
ChrisLohman ChrisLohman is offline
 
Join Date: Mar 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, I must have completely missed something with this hack as I can't make it work at all on 2.2.9. The install instructions left me very unclear on what to do in some instances.

So...care to help me figure out how to make this work? :nervous:

I went through the miniavatar_install.txt several times and double checked everything.

First: I don't see any edit miniavatar link in my user control panel; nor do I understand in these install instructions where that's supposed to happen. Is that part of the member.php stuff? If so, can you be more specific as to where to add this to member.php? I tried adding at the end (just before the closing php tag) and in the middle, but it made no difference.

Second: I tried entering my control panal, edition options, and then in my address bar I changed the action to miniavatar. This pulled a miniavatar upload page. I created a 16x16 flat image in photoshop that is 1kb in size. When I attempt to upload it it say the following: "the mini-avatar you attempted to upload is too large. Please limit sizes to 2 KB. The image you tried to upload was 0 KB"

Third:
Quote:
forumhome_loggedinuser

add forumhome_loggedinuser at the very beginnign, which by default should be in front of the persons name.
All I can say after reading that is, Huh? I assume I'm editing the forumhome_loggedinuser template: what does "add forumhome_loggedinuser" translate to code wise? Did you mean to say add the <img src="icon.php?userid=$post[userid]" width="16" height="16"> into the forumhome_loggedinuser template some where?

Fourth: I see people talking about SQL errors. Did I miss some step where something was updated in SQL? I don't see any instructions to alter SQL in any way.

Fifth: The default_mini_avatar.gif is not being used. It's not replacing the ../icon.php... code with the actual image source. You can see this on my forumhome at http://www.sonsofvalor.com/community

I've installed many, many hacks from vb.org and this one looks awesome; but I'm just stumped. I can't code in PhP (thus I can't read your code to figure out what is happening) but I've been able to handle every other hack I've come across. Obviously others have made it work so my brain must just be turned off today or something.

Obviously you don't have to help so anything would be greatly appreciated.
Reply With Quote
  #59  
Old 01-02-2003, 08:17 PM
Mystikal Mystikal is offline
 
Join Date: Apr 2002
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm working on it.. there is something wrong with the code.. but it should be updated...
Reply With Quote
  #60  
Old 01-02-2003, 10:38 PM
ChrisLohman ChrisLohman is offline
 
Join Date: Mar 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh, ok thx
Reply With Quote
  #61  
Old 01-04-2003, 07:46 PM
Christy Christy is offline
 
Join Date: Oct 2001
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, nice job!
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 06:58 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.05167 seconds
  • Memory Usage 2,313KB
  • 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_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
  • (4)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_onlinestatus
  • (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
  • postbit_imicons
  • 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