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
  #32  
Old 01-30-2003, 01:18 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

I just still can't see the upload your own options.

Upload optiosn is #30, there is no 31
Reply With Quote
  #33  
Old 01-30-2003, 04:56 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upload is #30 yes but there should at least be a #31 (Who's online) which is with a default installation of vBulletin.

See the picture (attachment). Note that row #32 is another hack I installed and row #33 is the icon hack.

Now could you export the data of the tables setting and settinggroup and attach the files to a reply? In your admin cp just go to "back up database" and only set the tables setting and settinggroup to "yes", then click "do backup". Post that file here and I'll check it.
Reply With Quote
  #34  
Old 01-30-2003, 05:31 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I forgot to include the step that says you need to edit the postbit template to include icons in your posts. Here it is:

18.3 postbit
-----------------------------------------------------------------
Put $post[iconavatar] whereever you want the icon to appear in a post. I suggest putting it left or right next to the member's name.
-----------------------------------------------------------------

Attachment updated.
Reply With Quote
  #35  
Old 01-30-2003, 07:37 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

30 tables only, no who's online

Why woudl the who's onlinet hing matter anyway?

And also i can't upload my table because it won't allow me to upload .sql files
Reply With Quote
  #36  
Old 01-30-2003, 07:39 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

actually, i just opened up my settinggroup.sql file in editpad and it shows the #31 who's online table along wit 40 others. I just don't see that option in phpadmin for some reason . . . that's odd
Reply With Quote
  #37  
Old 01-30-2003, 07:40 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

here it is
Reply With Quote
  #38  
Old 01-30-2003, 08:08 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well that's really odd. It should work. I just tested it again on a default board and even after changing the id and display order to whatever it showed up. The instructions can't be wrong or incomplete either since you don't need to do anything else besides inserting some data in those 2 tables. If anyone else knows what's wrong please assist but I have no idea. :ermm:

Edit: Well I tested it by putting the stuff exactly like you have it. Well look at the attached pic, the category does show up. And I added a row in the table setting with settinggroupid 37 and it showed up too.
Reply With Quote
  #39  
Old 01-30-2003, 11:16 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

hmmmm . . .give me the exact edits and queries that went along wit getting that option to be in the vbulletin options page.
Reply With Quote
  #40  
Old 01-30-2003, 11:25 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uh I just ran the same query as you did for the table settinggroup. Which is

INSERT INTO settinggroup VALUES('37', 'User Icons', '32');

This should be fine. Now run the following queries:

-----------------------------------------------------------------
INSERT INTO setting VALUES (NULL, 37, 'Enable User Icons', 'iconavatarenabled', '1', 'Use this option to enable/disable the overall use of usericons.<br><br>User icons are small images displayed next to usernames in thread display, the who\'s online and user info pages.', 'yesno', 1);
-----------------------------------------------------------------
INSERT INTO setting VALUES (NULL, 37, 'Minimum custom posts', 'iconavatarcustomposts', '1000000', 'Minimum number of posts that a user required before they can specify a custom user icon for use.', '', 2);
-----------------------------------------------------------------
INSERT INTO setting VALUES (NULL, 37, 'Allow uploads', 'iconavatarallowupload', '1', 'Allow user to upload their own custom user icon if they have enough posts?', 'yesno', 3);
-----------------------------------------------------------------
INSERT INTO setting VALUES (NULL, 37, 'Allow website uploads', 'iconavatarallowwebsite', '1', 'Allow user to upload their own custom user icon from another website if they have enough posts?', 'yesno', 4);
-----------------------------------------------------------------
INSERT INTO setting VALUES (NULL, 37, 'Maximum Dimensions', 'iconavatarmaxdimension', '16', 'Maximum width and height (in pixels) that the custom user icon image can be.', '', 5);
-----------------------------------------------------------------
INSERT INTO setting VALUES (NULL, 37, 'Maximum File Size', 'iconavatarmaxsize', '2000', 'The maximum file size (in bytes) that an avatar can be.\r\n\r\n1 KB = 1024 bytes\r\n1 MB = 1048576 bytes', '', 6);
-----------------------------------------------------------------
INSERT INTO setting VALUES (NULL, 37, 'Display Height', 'numiconavatarshigh', '10', 'How many rows of user icons do you wish to display to the user when selecting an user icon?', '', 7);
-----------------------------------------------------------------
INSERT INTO setting VALUES (NULL, 37, 'Display Width', 'numiconavatarswide', '10', 'How many columns of user icons do you wish to display to the user when selecting an user icon?', '', 8);
-----------------------------------------------------------------
Reply With Quote
  #41  
Old 01-31-2003, 12:03 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

oh dude! it worked

The option was there and it seemed that the custom posts needed was set to like 100000

GREAT 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 12:26 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.04548 seconds
  • Memory Usage 2,308KB
  • 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)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