vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   vbphrase not working right. (https://vborg.vbsupport.ru/showthread.php?t=317239)

SᴩiDᴇЯ 02-09-2015 11:10 PM

vbphrase not working right.
 
Hi everyone, i was wondering if someone could just help me with this issue below please.

in my phrase manager under: currently_active_users i have added this line below:

DigiWeb Members <font color="lime">Online</font> i also tried this line: DigiWeb Members <span style="color: lime; font-weight: bold;">Online</span> but same result.

but as per picture it comes out showing: Online" />DigiWebs Members Online, so how do i remove or fix this part of the line: Online" />

https://vborg.vbsupport.ru/external/2015/02/15.jpg

You can see it live here

I just need to remove it.

Thank you in advance.

ForceHSS 02-09-2015 11:51 PM

You have spaces in your code but I dont think that coding will work there
Here it is without spaces
HTML Code:

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

SᴩiDᴇЯ 02-10-2015 02:21 AM

Quote:

Originally Posted by ForceHSS (Post 2536810)
You have spaces in your code but I dont think that coding will work there
Here it is without spaces
HTML Code:

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

Hi Force thank you for the quick reply.
I copied the full line like this:
<span style="color:lime;font-weight:bold;">Online</span>

But it still looks the same.

http://snag.gy/byFE1.jpg

Is there another way of fixing the issue?

HM666 02-10-2015 03:54 AM

Quote:

Originally Posted by ForceHSS (Post 2536810)
You have spaces in your code but I dont think that coding will work there
Here it is without spaces
HTML Code:

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

Spaces make no difference in CSS code like that. :)

Quote:

Originally Posted by SᴩiDᴇЯ (Post 2536816)
Hi Force thank you for the quick reply.
I copied the full line like this:
<span style="color:lime;font-weight:bold;">Online</span>

But it still looks the same.

http://snag.gy/byFE1.jpg

Is there another way of fixing the issue?

However, there is a fix. :) Try using BB Code instead. Sometimes for whatever reason in the Phrases you have to use BB Code instead of HTML. So your code would look like this:

Code:

DigiWeb Members [B ][ COLOR = Lime ] Online [ / COLOR ] [ / B ]
Copy that above WITHOUT the spaces. :)

SᴩiDᴇЯ 02-10-2015 04:27 AM

Quote:

Originally Posted by HM666 (Post 2536823)
Spaces make no difference in CSS code like that. :)



However, there is a fix. :) Try using BB Code instead. Sometimes for whatever reason in the Phrases you have to use BB Code instead of HTML. So your code would look like this:

Code:

DigiWeb Members [B ][ COLOR = Lime ] Online [ / COLOR ] [ / B ]
Copy that above WITHOUT the spaces. :)

Hi HM i have copy the code like this:
PHP Code:

DigiWebs[B][COLOR=Lime]Online[/COLOR][/B

and still same issue

https://vborg.vbsupport.ru/external/2015/02/14.jpg

Replicant 02-10-2015 05:12 AM

How about this "modern" method?
Code:

<span class="online">Online</span>
and in additional.css
Code:

.online{
color:lime;
font-weight:bold;
}


HM666 02-10-2015 06:28 AM

@Replicant that does not work either.

I'm trying these on my site and none of them work. OK fine let's try this then. Probably the only way to change this is to edit the template code instead.

Open your FORUMHOME template and find:

Code:

<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</h3>
Change it to...

Code:

<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />DigiWeb Members <font color="lime">Online</font></h3>
I like your idea I'll probably leave it on y site lol.

The reason most likely that it did not work is because the phrase is found inside a header tag a h3 tag. The h3 tag has CSS of its own so there was a conflict most likely that was causing it to give that error. But the code in the template works well and gets the job done. :)

SᴩiDᴇЯ 02-10-2015 08:36 AM

Quote:

Originally Posted by Replicant (Post 2536832)
How about this "modern" method?
Code:

<span class="online">Online</span>
and in additional.css
Code:

.online{
color:lime;
font-weight:bold;
}


Hi Replicant.

I followed your instruction and added it all like:

In Phrase section added this:
<span class="online">Online</span>


Aditional.css last line added this:
.online{
color:lime;
font-weight:bold;
}

and still didn't work properly look:

https://vborg.vbsupport.ru/external/2015/02/11.jpg

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

Quote:

Originally Posted by HM666 (Post 2536838)
@Replicant that does not work either.

I'm trying these on my site and none of them work. OK fine let's try this then. Probably the only way to change this is to edit the template code instead.

Open your FORUMHOME template and find:

Code:

<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</h3>
Change it to...

Code:

<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />DigiWeb Members <font color="lime">Online</font></h3>
I like your idea I'll probably leave it on y site lol.

The reason most likely that it did not work is because the phrase is found inside a header tag a h3 tag. The h3 tag has CSS of its own so there was a conflict most likely that was causing it to give that error. But the code in the template works well and gets the job done. :)

That also didn't work look:

https://vborg.vbsupport.ru/external/2015/02/12.jpg

I added your line to Forumhome replacing the old one, I then deleted replicants code from additional.css and then i removed code from phrase and it showed the default settings on the page like this:

https://vborg.vbsupport.ru/external/2015/02/13.jpg

kh99 02-10-2015 10:21 AM

The reason you're having a problem is because if you look at where that phrase is used in the FORUMHOME template, it looks like this:
Code:

<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</h3>

so you can see that it's used both as the text you see and as the 'alt' attribute, so you cannot include html in that phrase. What you would need to do is put your <span> tag in FORUMHOME instead of in the phrase.

HM666 02-10-2015 01:41 PM

Sorry my bad try this...

Code:

<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="DigiWeb Members <font color="lime">Online</font>" />DigiWeb Members <font color="lime">Online</font></h3>
Make sure that your phrase is still put back to the default original before making the change and this should work. It works fine on my site. Link Here (Its an adult webmasters site just so you know before you click)


All times are GMT. The time now is 07:23 AM.

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.01120 seconds
  • Memory Usage 1,760KB
  • 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
  • (12)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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