vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Football Club Crests Next To Username On forum Home WOL (https://vborg.vbsupport.ru/showthread.php?t=133637)

mcyates 12-10-2006 08:45 AM

Football Club Crests Next To Username On forum Home WOL
 
I would like someone "if possible" to creat a modification where people can select there club logo from a usercp and it appears next to their name on the forumhome whos online list.

Like this forum:
http://www.totalfootballforums.com/forums/

Thanks in advance.

mcyates 05-27-2007 11:49 AM

Bump :)

Carlos2 05-27-2007 07:31 PM

WOWWWW. I want it too!!!

mcyates 05-28-2007 07:19 AM

Yes this would be SO GOOD.

Its a pretty simple thing to do also "I think", if only I knew how to code.

All you have to have is a folder full of football vrests, and an option in the user profile which has a drop down list "like the user flag hack" so if you selected Middlesbrough then your name would have a tiny crest next to it in the users online.

Also a list saying:

We have 300 members supporting 87 teams: [club crests here]

Carlos2 05-28-2007 05:46 PM

I think it could be possible, i dont know how but also here we have the WOL Whos online plugin that put there firefox, opera, or internet explorer like here: www.mushofutbol.com

mcyates 06-01-2007 02:33 PM

yeah I've had that installed, but I removed it for the time being. It must be really easy to do but as I know nothing about SQL databases and / or php, I am willing someone will be able to do something.

Just look at how good it looks:
http://www.totalfootballforums.com/forums/index.php?

With all the football crests next to the username.

mcyates 06-07-2007 10:41 AM

I've just created about 20 joinable usergroups at the moment which can be seen at the bottom of the site with the crest next to their username.

It looks much better, but an option in the usercp would be soooooooo much easier. Such as a drop down list like the flag hack has.

Thanks in advance.

brand0n 07-19-2007 01:02 PM

this would be a great mod to have.

magnus 07-20-2007 02:18 PM

This is readily available without any third-party modifications simply by utilizing an additional User Profile Field with a single-selection menu.

brand0n 08-11-2007 05:01 AM

I understand that but how would you be able to add an image to it?

brand0n 08-12-2007 05:26 AM

I figured out how to add the selection box and use an image but how do you get the image next to the persons username in the who's online box.

ringleader 08-14-2007 01:34 PM

Gather up some of images of these football clubs.
Upload them to your images/avatars folder.

Create a new profile field in your admin panel.
Use a single-selection menu and add the names of
Make sure the list of options matches the name of the images you got earlier (without the .gif or .jpg bit at the end).
Select the Display Page as Options:Other

Go to 'User Profile Field Manager' in Admin Panel
Find the profile field you made and note its number (i.e. field12)

Go to Styles/Templates in the Admin Panel

In forumhome_loggedinuser template
FIND
Code:

$loggedin[musername]
PLACE BEFORE
Code:

<if condition="$post[field12]">
<img src="images/avatar/$post[field12].gif" />
</if>

Don't forget to replace the 12 in $post[field12] with the number of your profile field.

sunilvarma 08-15-2007 05:24 PM

the above code won't work. do everything as said in the above post except the template edit part.

first create a new plugin under the forumhome_loggedinuser hook and add the below code: (thanks Opserty for the tip)

Code:

$online_userinfo = fetch_userinfo($loggedin['userid']);
give it some name and set its status to active and save.

now open up the forumhome_loggedinuser template

FIND
Code:

$loggedin[musername]
ADD BEFORE
Code:

<if condition="$online_userinfo[field6]"><img src="images/clubs/$online_userinfo[field6].gif" border="0" /></if>
change the field number to that of your profile field.

mcyates 03-19-2008 08:36 PM

I can't get this to work. Its not showing anything!!!

IGNORE

My Mistake Was I used the forumdisplay_loggedinuser tamplate instead of forumhome_loggedinuser

Thanks

Jibba Jabbas 05-15-2008 08:20 PM

This just isn't working for me, could really do with some help. Followed the instructions exactly.

Using 3.7.0

I'm using forumhome not forumdisplay.. i've put the right field number in, the image location is fine and working.. i just don't understand why it's not doing it though.

Any ideas?

mcyates 07-13-2008 05:30 PM

can these work so they are shown wherever the username is displayed like whos online, member list

mcyates 08-06-2008 01:10 PM

bump


All times are GMT. The time now is 02:07 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.01203 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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