vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - GTOnline - Online Status on Member List (https://vborg.vbsupport.ru/showthread.php?t=129307)

stomph 01-22-2007 01:38 PM

Quote:

Originally Posted by Distance (Post 1161692)
Hey this adds to the right hand side of the username, any way to have it on the left?

To get the status on the left of the username, I changed the plugin 'GTOline: Template Changes On Member List' to this:

Code:

/*
// status right of username
$vbulletin->templatecache['memberlist_resultsbit'] = str_replace(
        '$userinfo[musername]</a>',
        '$userinfo[musername]</a> $userinfo[onlinestatus]',
        $vbulletin->templatecache['memberlist_resultsbit']
);
*/
// status left of username
$vbulletin->templatecache['memberlist_resultsbit'] = str_replace(
        '<a href=\"member.php',
        '$userinfo[onlinestatus] <a href=\"member.php',
        $vbulletin->templatecache['memberlist_resultsbit']
);


Princeton 01-22-2007 08:31 PM

thank you stomph :up:

jasbell 02-28-2007 02:01 PM

Will this show up next to the user names on the forum posts as well? Or is that a different hack? VBGeek has this on forum posts.

Princeton 02-28-2007 02:08 PM

??

the online status is already displayed in forum posts

jasbell 02-28-2007 02:40 PM

Sorry, I meant next to the name in a forum post. EX:

The Geek (Offline)
Princeton (Online)

See Example page @ The VB Geek. Click here

Princeton 02-28-2007 02:50 PM

the online status is already displayed in forum posts - vb default

https://vborg.vbsupport.ru/external/2010/01/8.gif online
https://vborg.vbsupport.ru/external/2010/06/1.gif offline

he just doesn't show the image (edit postbit_onlinestatus)

jasbell 02-28-2007 02:55 PM

Ok. Sorry. (Newbie)

Also, I have a custom style and followed your instructions above:
custom style maybe??

manually add $userinfo[onlinestatus] to memberlist_resultsbit

FIND:
$userinfo[musername]</a>

REPLACE WITH:
$userinfo[musername]</a> $userinfo[onlinestatus]


I placed "$GARS_addon_member_top" above the $footer as suggested (just to see if it worked). When I go to /forums/memberlist.php I dont see this status.

Princeton 02-28-2007 05:37 PM

this modification has nothing to do with $GARS_addon_member_top

try a manual template edit

FIND IN memberlist_resultsbit;

Code:

$userinfo[musername]</a>
REPLACE WITH:

Code:

$userinfo[musername]</a> $userinfo[onlinestatus]

leducq 03-01-2007 02:53 PM

I am no programmer by any means, so forgive my ignorance, but can someone tell me in detail how I can get the status over the user name? I think it stretches the cell too wide for long user names because of the status image I use.
Thanks in advance.

Tralala 03-01-2007 04:05 PM

/installed

Thanks!


All times are GMT. The time now is 12: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.01288 seconds
  • Memory Usage 1,734KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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