Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

How to show a text instead of - in mybb ?

Ads
banner
banner
banner
lion Offline referral

Posts: 122
Joined: May 2014
Reputation: 0

#1
Member
Hello
when a forum has no thread/post in it, it shows this : -
How can I change this character to my text for example : no post

Best Regards
seo123 Offline referral

Posts: 427
Joined: Mar 2014
Reputation: 16

#2
Senior Member
Couldn't find it in PHP neither in language files so we are going to nail it with template conditional Smile

Open forumbit_depth2_forum template and wrap:

PHP Code:
{$threads}{$unapproved['unapproved_threads']}
{
$posts}{$unapproved['unapproved_posts']}
{
$lastpost


With this conditional:

PHP Code:
<if $forum['threads'] == 0 then>your message goes here<else>the code above goes here!</if> 

It should look like this:

PHP Code:
<if $forum['threads'] == 0 then>your message goes here<else>{$threads}{$unapproved['unapproved_threads']}</if>
<if 
$forum['threads'] == 0 then>your message goes here<else>{$posts}{$unapproved['unapproved_posts']}</if>
<if 
$forum['threads'] == 0 then>your message goes here<else>{$lastpost}</if> 
lion Offline referral

Posts: 122
Joined: May 2014
Reputation: 0

#3
Member
Thanks, but it didn't work
seo123 Offline referral

Posts: 427
Joined: Mar 2014
Reputation: 16

#4
Senior Member
Well it's strange because it works for me! Make sure that the forum has 0 threads otherwise it will not work. It won't work if the forum is locked on private only if it has no threads as you wanted!!!!
lion Offline referral

Posts: 122
Joined: May 2014
Reputation: 0

#5
Member
oh !
it works, It didn't work because I had disabled the plugin
Thanks
+1 rep
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#6
Support Team
Simply open: inc/functions_forumlist.php find and change:

PHP Code:
$posts "-";
$threads "-"





User(s) browsing this thread: 1 Guest(s)