vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   who's online logos (https://vborg.vbsupport.ru/showthread.php?t=277774)

Cromags21 01-30-2012 12:49 PM

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.
http://desmond.imageshack.us/Himg515...png&res=medium

kh99 01-30-2012 01:26 PM

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.

Cromags21 01-30-2012 08:13 PM

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.

kh99 01-30-2012 08:21 PM

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.

Max Taxable 01-30-2012 08:25 PM

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.

Cromags21 01-31-2012 04:18 PM

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 ]

Cromags21 02-02-2012 02:25 PM

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?

http://img190.imageshack.us/img190/5253/ehlteam.png

kh99 02-02-2012 02:28 PM

If your user info is on the left side like in the picture, then you would want to edit postbit_legacy.

Cromags21 02-02-2012 06:20 PM

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.


All times are GMT. The time now is 10:41 PM.

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.03575 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete