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
  #72  
Old 03-28-2003, 09:11 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
03-25-03 at 08:44 PM Dark Jim said this in Post #62
Yes, you can set the maximum size under vBulletin Options -> User Icons.

See here
sorry jim i was being dumb, got excited before even checking it over properly
Reply With Quote
  #73  
Old 03-28-2003, 02:03 PM
DigitalDesktops DigitalDesktops is offline
 
Join Date: Mar 2003
Location: Scotland, UK
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 10:51 AM Dark Jim said this in Post #70
I noticed you forgot to do step 19.4a. Under edit options in your user cp I didn't notice the option to show or not show icons. Do that step, set the option to "yes" and then see if the icons show up.
It shows up in Who's Online, member.php, memberlist.php, forumdisplay.php.

But it doesn't show up in showthread.php, and private.php.
Reply With Quote
  #74  
Old 04-30-2003, 02:51 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I updated this again. I had a few 100 private messsages and it caused a few 100 queries too. Now I changed it to not use any additional queries. Everyone who uses this hack I suggest you redo step 10. I also added a step I forgot to add the whole time so your icons would never show up in private messages. The only thing I can think of that still needs to be done is optimize online.php.
Reply With Quote
  #75  
Old 06-01-2003, 05:49 AM
kevinnguyen kevinnguyen is offline
 
Join Date: Feb 2003
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is the longest hack i've ever done
very nice thoe
thanx
Reply With Quote
  #76  
Old 06-01-2003, 02:26 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The last update is not working right. While it does reduce the queries, the icons are not showing correctly or not at all. Other than that it works fine. I'll need to figure out how to get this working sometime. Help is appreciated. I also need to optimize the code for online.php.
Reply With Quote
  #77  
Old 06-03-2003, 06:37 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, i got a problem

iam using the 2.3.0, i installed it and i shows up everything correctly but not at the index.php

This is my original-code:
Code:
    if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
      	$username = "<b><i>$loggedin[username]</i></b>";
      } else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
      	$username = "<b>$loggedin[username]</b>";
      } else {
				$username = $loggedin['username'];
			}
and this is my current code:
Code:
   if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
      	$username = "$iconavatar<b><i>$loggedin[username]</i></b>";
			} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
				$username = "$iconavatar<b>$loggedin[username]</b>";
			  } else {
				$username = "$iconavatar$loggedin[username]";
			}
the problem is: the icon isn't shown up by a mod... Normal User and admin works fine, even the mod at the online.php works fine, but there is NO icon for a mod at the index.php... what have i done wrong?

I downloaded the 1.2.1, did you change that number after fixing the instructions?


now, the part in the index.php looks like this, but the icon is shown up by a normal only... but iam the admin and iam the only one with an icon
Code:
 if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
      	$username = "<b><i>$loggedin[username]</i></b>";
      } else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
      	$username = "<b>$loggedin[username]</b>";
      } else {
				$username = $loggedin['username'];
			}
Reply With Quote
  #78  
Old 06-05-2003, 06:13 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no one

now, it is not shown up by the moderator group...

demo @ www.sportboard.de (german )
Reply With Quote
  #79  
Old 06-05-2003, 08:53 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That piece of code appears twice in index.php. Did you make changes to both?
Reply With Quote
  #80  
Old 06-06-2003, 07:33 AM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah i think iam blind or there is something missing in your instruction
you have to place $iconavatar just before <b>$loggedin[username]</b> also (2 times in index.php)

I didn't see that in your instruction and i forgot to include but now i added it and it works, thanks for that beautiful hack, my users like it

*clicking install*
Reply With Quote
  #81  
Old 03-17-2004, 10:50 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've enjoyed using this with vb2, are there any plans to port to vb3?
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 04:49 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.04643 seconds
  • Memory Usage 2,315KB
  • 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
  • (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