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)

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 01:31 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.00994 seconds
  • Memory Usage 1,725KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete