vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How can I get this profile field shown everywhere (https://vborg.vbsupport.ru/showthread.php?t=185211)

mcyates 07-13-2008 02:57 PM

How can I get this profile field shown everywhere
 
<a href="https://vborg.vbsupport.ru/showthread.php?t=173543&page=2" target="_blank">https://vborg.vbsupport.ru/showt...=173543&page=2</a>

<if condition="$online_userinfo[field6]"><img src="images/clubs/$online_userinfo[field6].gif" border="0" /></if>

This shows the users chosen icon next to their username but it only shows on the whos online on forumhome. I would like this to be shown on the top 5 stats, on the who visited in the past 24hrs and on the postbit template, basically everywhere the username is shown.

Any help will be much appreciated.

Opserty 07-14-2008 07:22 AM

You have to edit every template where the username is listed then remember to alter the variable name if you need to.

mcyates 07-14-2008 09:47 AM

Thank you for your reply.

So for the members online in 24hr on the forum home. this is the code on the template which shows the usernnames who have been online the past 24hrs:

Code:

<a rel="nofollow" href="member.php?$session[sessionurl]u=$today[userid]" title="$today[wrdate]">$today[opentag]$today[username]$today[closetag]</a>$today[markinv]
The code below is the code used on the whos online bit on forumhome to add the football crest it to the current member who are online:

Code:

<if condition="$online_userinfo[field15]"><img src="images/crests/$online_userinfo[field15].gif" border="0" /></if>
It used a plugin which I called Football Crests, the hook location is, forumhome_loggedinuser. The pugin php code is:

Code:

$online_userinfo = fetch_userinfo($loggedin['userid']);

mcyates 07-25-2008 08:25 PM

Erm, thanks for your help lol.

Still wondering how to do this.

mcyates 08-06-2008 12:09 PM

still need this doing?


All times are GMT. The time now is 06:54 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.02043 seconds
  • Memory Usage 1,713KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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