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

Reply
 
Thread Tools
User Icons Details »»
User Icons
Version: 1.00, by Dark Jim Dark Jim is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 01-27-2003 Last Update: Never Installs: 35
 
No support by the author.

Current version: 1.2.1 (Last updated:4/30/03)
------------------------------------------------------------------
New features/fixes since the last update:
- Optimized code so it uses much less queries on private.php.
- Added instructions I forgot for private.php.
------------------------------------------------------------------

With this hack members have icons next to their name in posts, announcements, private messages, on the who's online and on the forumdisplay page. Users can use a public icon list or upload their own icon just like avatars. They can also choose to not display icons in the user cp. Administrators have various icon options exactly like with avatars.

This is based upon the mini avatars hack but I liked it more if it was exactly like how avatars are handled. A whole lot of the code is a copy from the avatar code except all variables are changed and only a few other changes/additions. But I wrote a full instruction for your convenience.

You can see it in action here: http://forums.thegaminguniverse.com.

Screenshots
Screenshot of icons on the who's online on index.php.
Screenshot of icons on the who's online on online.php.
Screenshot of icons in the posts on showthread.php (also in private messages and announcements).
Screenshot of icons on the thread list on forumdisplay.php.
Screenshot of the edit icon option in your user cp.
Screenshot of icon options in the admin cp under.

Show Your Support

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

Comments
  #12  
Old 01-28-2003, 11:08 PM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OMG!! ++++in a. This is the BIGGEST hack i've ever installed. The instructures took me at least an hour . . . . damn it's like 20 pages. God i don't even wanna know how long that took u to write Dark J .. . anywas, GREAT JOB!
Reply With Quote
  #13  
Old 01-28-2003, 11:11 PM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey i'm having a problem. I installed the hack but then when i go into edit options and click the button, it just goes to a blank page. somethin wrong wit member.php?
Reply With Quote
  #14  
Old 01-28-2003, 11:22 PM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh wait my bad i didn't add any of the templates
Reply With Quote
  #15  
Old 01-28-2003, 11:22 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You mean totally blank? Did you add all templates because it must be a template is missing. I will check if I included all templates.

Edit: Ok so it was a missing template.
Quote:
Originally posted by Vivi Ornitier
OMG!! ++++in a. This is the BIGGEST hack i've ever installed. The instructures took me at least an hour . . . . damn it's like 20 pages. God i don't even wanna know how long that took u to write Dark J .. . anywas, GREAT JOB!
Well it took a lot of time looking up all avatar code in all files, copying it and modifying it, making some more changes where neccesssary, adding some more stuff.... but like I said a whole lot of the code is almost exactly like that avatar code, I didn't write it from scratch.
Reply With Quote
  #16  
Old 01-29-2003, 12:15 AM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay the icon isn't showing up anywhere in my forums except for the announcements. I't snot goin on in index.php and not online.php or forumdisplay.php

if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "$iconavatar<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin

That's my little code for the colors for admin part. I have the color online hack.

I'm on 2.2.6 and this code is NOT in index.php

} else {
$username = $loggedin[username];
}
Reply With Quote
  #17  
Old 01-29-2003, 12:29 AM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you set to show icons for you in your user cp. I forgot to include these queries in the instructions.

ALTER TABLE user CHANGE options options smallint(6) NOT NULL default '31';

UPDATE user SET options=options+16;

I have 2.2.7 but no default installation of it anymore. I will look at a default 2.2.9.

Edit: I see the code is:
PHP Code:
      } else {
                
$username $loggedin['username'];
            } 
Change that to
PHP Code:
      } else {
                
$username "$iconavatar$loggedin[username]";
            } 
Reply With Quote
  #18  
Old 01-29-2003, 12:38 AM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahhh those queries made the difference. I still didn't see the index.php code but it's good it works, now i gotta find some pics, can u just give me the ones ur using? i need smaller pics.
Reply With Quote
  #19  
Old 01-29-2003, 12:42 AM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also in announcement.php step 2.3 should be:

2.3. Below that add:
-----------------------------------------------------------------
if ($post[iconavatarid]!=0) {
$iconavatarurl=$post[iconavatarpath];
} else {
if ($post[hascustomiconavatar] and $iconavatarenabled) {
$iconavatarurl="iconavatar.php?userid=$post[userid]&dateline=$post[iconavatardateline]";
} else {
$iconavatarurl="";
}
}
if ($iconavatarurl=="") {
$post[iconavatar]="";
} elseif ($bbuserinfo[userid]>0 and !($bbuserinfo[showiconavatars])) {
$post[iconavatar]="";

} else {
eval("\$post[iconavatar] = \"".gettemplate("postbit_iconavatar")."\";");
}
-----------------------------------------------------------------

I assume you had icons set to not display and becauase I forgot the red line it still displayed there. I will update the instructions.
Reply With Quote
  #20  
Old 01-29-2003, 12:48 AM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And the icons on my public icon list are some of my smilies which you can find here: at the bottom. You willl need to ask permission though and link to the site like I did and is done on this site. The others you may see are custom icons.
Reply With Quote
  #21  
Old 01-29-2003, 03:15 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea!
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:35 PM.


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.05257 seconds
  • Memory Usage 2,317KB
  • 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
  • (2)bbcode_php
  • (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
  • (3)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