Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2015, 11:10 PM
SᴩiDᴇЯ SᴩiDᴇЯ is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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" />



You can see it live here

I just need to remove it.

Thank you in advance.
Reply With Quote
  #2  
Old 02-09-2015, 11:51 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Благодарность от:
SᴩiDᴇЯ
  #3  
Old 02-10-2015, 02:21 AM
SᴩiDᴇЯ SᴩiDᴇЯ is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
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?
Reply With Quote
  #4  
Old 02-10-2015, 03:54 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
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ᴇЯ View Post
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.
Reply With Quote
  #5  
Old 02-10-2015, 04:27 AM
SᴩiDᴇЯ SᴩiDᴇЯ is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HM666 View Post
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

Reply With Quote
  #6  
Old 02-10-2015, 05:12 AM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about this "modern" method?
Code:
<span class="online">Online</span>
and in additional.css
Code:
.online{
color:lime;
font-weight:bold;
}
Reply With Quote
  #7  
Old 02-10-2015, 06:28 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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.
Reply With Quote
  #8  
Old 02-10-2015, 08:36 AM
SᴩiDᴇЯ SᴩiDᴇЯ is offline
 
Join Date: Sep 2009
Location: Australia
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Replicant View Post
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:



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

Quote:
Originally Posted by HM666 View Post
@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:



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:

Reply With Quote
  #9  
Old 02-10-2015, 10:21 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 02-10-2015, 01:41 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
Благодарность от:
SᴩiDᴇЯ
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 05:28 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.12767 seconds
  • Memory Usage 2,292KB
  • 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
  • (12)bbcode_code
  • (3)bbcode_html
  • (1)bbcode_php
  • (6)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
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete