Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2012, 01:49 PM
Cromags21 Cromags21 is offline
 
Join Date: Jun 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default who's online logos

I am trying to figure out how i can add 2 things to my site.

1- is a logo next to each member name when they are online,I would like it to show up in the Who's online at the bottom of my forums.

2- I will have to post a picture of this next thing I seen this on another site which I thought was awesome. I run a gaming site and we have usergroup for each league and teams that members are on. But we have no way of telling what league members are in. This picture will show you what I mean.

here is the picture of what I am looking to do.
Reply With Quote
  #2  
Old 01-30-2012, 02:26 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For the logo, is that allowing a user to choose from a set of logos, or do they have to be able to upload their own? If they choose from a set then you could create a custom profile field for them to choose, then use that to decide which image to display.

I'm not sure I understand the second one, but maybe the same kind of custom profile field thing?

ETA: ...or were you hoping for an existing mod? Someone else might know of one.
Reply With Quote
  #3  
Old 01-30-2012, 09:13 PM
Cromags21 Cromags21 is offline
 
Join Date: Jun 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No it's actually pre-set when you add the user to the usergroup the logo automatically shows up to let the user/users know he is in that league and that's the team he is on.

I already have the team logo mod set up on my forums. With that MOD anyone can set the team logo in their profile. Which we are trying to get away from users just using it when they are not in any league on our site.

--------------- Added [DATE]1327961952[/DATE] at [TIME]1327961952[/TIME] ---------------

In the 2nd one, The side images are the leagues the members is in...example This member plays in 2 leagues, Fifa and NHL.
Reply With Quote
  #4  
Old 01-30-2012, 09:21 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, if I understand what you're saying then that sounds even easier - you just need some code that checks which usergroups a user is a member of and displays some images. You could do that in a template with vb:if tags, but it's probably easier in a plugin.
Reply With Quote
  #5  
Old 01-30-2012, 09:25 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Keep in mind each image is going to be a request, and if you have a hundred or so users online, might cause some slow loading.
Reply With Quote
  #6  
Old 01-31-2012, 05:18 PM
Cromags21 Cromags21 is offline
 
Join Date: Jun 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, I have been looking through the templates,Just not sure which template to edit.

I looked in who's online template,Just have to figure out where to put the coding. I wish someone would make a mod for the usergroup images. If I do come up with something or figure it out. I'll post the information for other members to use.

--------------- Added [DATE]1328034039[/DATE] at [TIME]1328034039[/TIME] ---------------

I will try the [ vb: if tags ]
Reply With Quote
  #7  
Old 02-02-2012, 03:25 PM
Cromags21 Cromags21 is offline
 
Join Date: Jun 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok guys I find a mod that uses usergroup ranking for team images. Here is a picture of what it looks like.

Just 1 question, If I wanted to add the coding to members post like in the picture above, Do I edit the postbit template for this?

Reply With Quote
  #8  
Old 02-02-2012, 03:28 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If your user info is on the left side like in the picture, then you would want to edit postbit_legacy.
Reply With Quote
  #9  
Old 02-02-2012, 07:20 PM
Cromags21 Cromags21 is offline
 
Join Date: Jun 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well we would like to have it on the right side of a post,The Left side is where I have it now.

Thanks I will look at the coding an see where I can change things around.
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 07:45 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.04259 seconds
  • Memory Usage 2,231KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete