Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2013, 12:36 AM
Wajow-community Wajow-community is offline
 
Join Date: Dec 2009
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default online or offline in member info how to achieve?

Hi,

What I have seen on another vbulletin forum is that you are in the user info status offline or online are red in color, offline and online green. Seemed to me very useful instead of just an icon but also a text in the userinfo both show thread as member info. I think to myself User Profile Field to enter this?

But my question is how is this possible to achieve? 've Looked through the source code and saw this:

Quote:
<dl class="userinfo_extra">
<dt class="pbit1"> Status </ dt> <dd class="pbit2" style="color:#FF0000"> Offline </ dd>
what can I do to achieve this?

thanks
Reply With Quote
  #2  
Old 11-06-2013, 12:40 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this search link, https://vborg.vbsupport.ru/search.php?searchid=21402495
Reply With Quote
  #3  
Old 11-06-2013, 12:43 AM
Wajow-community Wajow-community is offline
 
Join Date: Dec 2009
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
I have see butt its only with button/images i want only text.. for example look this:

http://forums.hababam.nl/showthread....26#post6950426

You see status: Offline of a user howe to set like that?
Reply With Quote
  #4  
Old 11-06-2013, 12:49 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the template postbit_onlinestatus found in the group Postbit Templates, and replace everything in there with this:

Code:
<vb:if condition="$onlinestatus==0">Offline
<vb:elseif condition="$onlinestatus==1" />Online
<vb:elseif condition="$onlinestatus==2" />Invisible</vb:if>
Reply With Quote
  #5  
Old 11-06-2013, 12:51 AM
Wajow-community Wajow-community is offline
 
Join Date: Dec 2009
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Edit the template postbit_onlinestatus found in the group Postbit Templates, and replace everything in there with this:

Code:
<vb:if condition="$onlinestatus==0">Offline
<vb:elseif condition="$onlinestatus==1" />Online
<vb:elseif condition="$onlinestatus==2" />Invisible</vb:if>
thnx!!

en with color where to set the color code? End Status: like the link for example i give?
Reply With Quote
  #6  
Old 11-06-2013, 12:55 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should do it, but it is untested.

Code:
<vb:if condition="$onlinestatus==0"><span style="color: green;">Offline</span>
<vb:elseif condition="$onlinestatus==1" /><span style="color: red;">Online</span>
<vb:elseif condition="$onlinestatus==2" /><span style="color: orange;">Invisible</span></vb:if>
Reply With Quote
  #7  
Old 11-06-2013, 12:58 AM
Wajow-community Wajow-community is offline
 
Join Date: Dec 2009
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
This should do it, but it is untested.

Code:
<vb:if condition="$onlinestatus==0"><span style="color: green;">Offline</span>
<vb:elseif condition="$onlinestatus==1" /><span style="color: red;">Online</span>
<vb:elseif condition="$onlinestatus==2" /><span style="color: orange;">Invisible</span></vb:if>
Thnx for youre help..

This is what i search butt i want to set it under the avatar like this look the Status of the member:

http://forums.hababam.nl/showthread....26#post6950426

i want it like this

Status: Offline under the avatar above the registration time.

--------------- Added [DATE]1383721746[/DATE] at [TIME]1383721746[/TIME] ---------------

nobody?

--------------- Added [DATE]1383754986[/DATE] at [TIME]1383754986[/TIME] ---------------

where can i set this?

--------------- Added [DATE]1383772726[/DATE] at [TIME]1383772726[/TIME] ---------------

who can help me with this???
Reply With Quote
  #8  
Old 11-08-2013, 11:38 AM
Wajow-community Wajow-community is offline
 
Join Date: Dec 2009
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wajow-community View Post
thnx!!

en with color where to set the color code? End Status: like the link for example i give?
can sameone help?
Reply With Quote
  #9  
Old 11-08-2013, 08:14 PM
Krusty1231's Avatar
Krusty1231 Krusty1231 is offline
 
Join Date: Jul 2010
Location: Canada
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your postbit legacy find:

Code:
{vb:raw post.onlinestatus}
and place it where you want it.

For exaMPLE:

Find:

Code:
{vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
			</a>
			</vb:if>
put the
Code:
{vb:raw post.onlinestatus}
under that.

You might have to play with to find exactly where you want it.
Reply With Quote
  #10  
Old 11-09-2013, 12:39 AM
Wajow-community Wajow-community is offline
 
Join Date: Dec 2009
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont get it like tha forum what i have give link of..

I want with Status: online
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07549 seconds
  • Memory Usage 2,264KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (7)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete