MyBB Community Forums

Full Version: Prefix bug need help sorting it out
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just installed MyBB and am trying to make a forum for my friend. I wanted to incorporate the built in Prefix function.

Here is what you see when I add a prefix to the topic:

[Image: 2ujmyjg.png]

Here is what you see when there isn't a prefix:

[Image: avPNPEN.png]

The two posts can be found here: http://digitalforensics.comuv.com/forumd...php?fid=17

What I would like to do and I would also like to know, is why there is
[Official] Testing prefix" />
showing when the topic is being shown. I want to get rid of this.

EDIT:

It appears that it only happens when I add code to change the color of the prefix and make it bold.

Here's my code I have to change the color and bold it:

<span style="color: #5dba00;font-weight: bold;">[Official]</span>
you can try using this method
(2013-09-27, 05:08 AM).m. Wrote: [ -> ]you can try using this method

Thanks for the quick answer, .m..

But the same thing happens. I think it happens when the <span></span> tags are placed in there.

Do you have any other suggestions?
It is most likely caused by open HTML tag in one of Navigation Templates. Check all of them thoroughly and carefully and in case you don't find it, post their whole codes here.
Here are all of the navigation templates.

nav
<div class="navigation boardstats_icons">
<img src="images/acenavy/homenav.png" alt="{$navbit['name']}" /> {$nav}{$activesep}{$activebit}
</div>

nav_bit
<a href="{$navbit['url']}">{$navbit['name']}</a>{$sep}

nav_bit_active
<span class="active">{$navbit['name']}</span>

nav_sep
&nbspĀ»&nbsp

nav_sep_active
&nbspĀ»&nbsp

I looked over them and I didn't see any open tags. Could it be caused by the /> in the nav template after the alt attribute?
In nav change:
alt="{$navbit['name']}"
to
alt=""
Ah it works.

Thanks a lot!