vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to change postbit_onlinestatus? (Solved!) (https://vborg.vbsupport.ru/showthread.php?t=269722)

kNeeLy 09-05-2011 08:04 PM

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..

https://vborg.vbsupport.ru/external/2011/09/74.jpg
^^Online
https://vborg.vbsupport.ru/external/2011/09/75.jpg
^^Offline

HMBeaty 09-05-2011 08:21 PM

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>


kNeeLy 09-06-2011 12:11 AM

Quote:

Originally Posted by HMBeaty (Post 2242331)
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...?

HMBeaty 09-06-2011 12:42 AM

Use something like:
HTML Code:

<span style="font-weight: bold;color:blue">
</span>


kNeeLy 09-06-2011 01:05 AM

Quote:

Originally Posted by HMBeaty (Post 2242393)
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


kNeeLy 09-07-2011 01:05 PM

bu-ump.. :-)

HMBeaty 09-07-2011 01:09 PM

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>

kNeeLy 09-07-2011 01:24 PM

Quote:

Originally Posted by HMBeaty (Post 2243001)
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> 



All times are GMT. The time now is 06:51 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.01132 seconds
  • Memory Usage 1,749KB
  • 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
  • (6)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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