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 09-05-2011, 08:04 PM
kNeeLy's Avatar
kNeeLy kNeeLy is offline
 
Join Date: Nov 2008
Location: ohio
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to change postbit_onlinestatus? (Solved!)

Hi all...

Well..I finally upgraded to 4.1.5. My question is, can anyone re-write this code from the 3.8 series for postbit_onlinestatus to work on 4.1.5?

I already have installed the mod that makes the postbit line up to look more like the 3 series...but I would like to get rid of the little green dot...lol..and have it like this..


^^Online

^^Offline
Reply With Quote
  #2  
Old 09-05-2011, 08:21 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replace the contents of your postbit_onlinestatus template with:
HTML Code:
<vb:if condition="$onlinestatus==0">{vb:rawphrase x_is_offline, {vb:raw user.username}}</vb:if>
<vb:if condition="$onlinestatus==1">{vb:rawphrase x_is_online_now, {vb:raw user.username}}</vb:if>
<vb:if condition="$onlinestatus==2">{vb:rawphrase x_is_invisible, {vb:raw user.username}}</vb:if>
Reply With Quote
Благодарность от:
kNeeLy
  #3  
Old 09-06-2011, 12:11 AM
kNeeLy's Avatar
kNeeLy kNeeLy is offline
 
Join Date: Nov 2008
Location: ohio
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HMBeaty View Post
Replace the contents of your postbit_onlinestatus template with:
HTML Code:
<vb:if condition="$onlinestatus==0">{vb:rawphrase x_is_offline, {vb:raw user.username}}</vb:if>
<vb:if condition="$onlinestatus==1">{vb:rawphrase x_is_online_now, {vb:raw user.username}}</vb:if>
<vb:if condition="$onlinestatus==2">{vb:rawphrase x_is_invisible, {vb:raw user.username}}</vb:if>
Worked like a charm..now...how can I add bold and color...?
Reply With Quote
  #4  
Old 09-06-2011, 12:42 AM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use something like:
HTML Code:
<span style="font-weight: bold;color:blue">
</span>
Reply With Quote
  #5  
Old 09-06-2011, 01:05 AM
kNeeLy's Avatar
kNeeLy kNeeLy is offline
 
Join Date: Nov 2008
Location: ohio
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HMBeaty View Post
Use something like:
HTML Code:
<span style="font-weight: bold;color:blue">
</span>
Thank you..no dice tho....(of course, I tried it at the beginning and at the end of the code, would that be correct?)

If I show you the 3.8 code, will that help at all?

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

Here's the 3.8 series code..

PHP Code:
<span class="smallfont">
<if 
condition="$onlinestatus==0">
<
phrase 1="$user[username]">$vbphrase[x_is_offline]</phrase>
</if>

<if 
condition="$onlinestatus==1">
<
font color="#FF0000"><strong><phrase 1="$user[username]">$vbphrase[x_is_online_now]</phrase></strong></font>
</if>

<if 
condition="$onlinestatus==2">
<
phrase 1="$user[username]">$vbphrase[x_is_invisible]</phrase>
</if>
</
span
Reply With Quote
  #6  
Old 09-07-2011, 01:05 PM
kNeeLy's Avatar
kNeeLy kNeeLy is offline
 
Join Date: Nov 2008
Location: ohio
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bu-ump.. :-)
Reply With Quote
  #7  
Old 09-07-2011, 01:09 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You did it like this?
HTML Code:
<vb:if condition="$onlinestatus==0"><span style="font-weight: bold;color:blue">{vb:rawphrase x_is_offline, {vb:raw user.username}}</span></vb:if>
Reply With Quote
  #8  
Old 09-07-2011, 01:24 PM
kNeeLy's Avatar
kNeeLy kNeeLy is offline
 
Join Date: Nov 2008
Location: ohio
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HMBeaty View Post
You did it like this?
HTML Code:
<vb:if condition="$onlinestatus==0"><span style="font-weight: bold;color:blue">{vb:rawphrase x_is_offline, {vb:raw user.username}}</span></vb:if>
No, I was trying to relate the 3 code to the 4. It only has to highlight the "online" status. The rest is regular text.

I'll give it a shot..

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

I ended with this...and it worked...

PHP Code:
<vb:if condition="$onlinestatus==0">{vb:rawphrase x_is_offline, {vb:raw user.username}}</vb:if>

<
vb:if condition="$onlinestatus==1"><span style="font-weight: bold;color:blue">{vb:rawphrase x_is_online_now, {vb:raw user.username}}</span></vb:if>
<
vb:if condition="$onlinestatus==2">{vb:rawphrase x_is_invisible, {vb:raw user.username}}</vb:if> 
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:26 PM.


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.05844 seconds
  • Memory Usage 2,263KB
  • 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
  • (6)bbcode_html
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete