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

Thread: 

How to show "No birthday" in index?

Ads
banner
banner
banner
Midori Offline referral

Posts: 41
Joined: Apr 2014
Reputation: 1

#1
Junior Member
Hi
I want to show "No birthdays today" in index When someone's birthday is not registered.
Thanks , specially Dear Marcus.Heart
marcus_avrelius Offline referral

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

#2
Support Team
Could you please tell us little bit more about what you need? Are you talking about forum statistics?

Do you want to show a message to a user whenever it did not specified birthday?
Looking for ways to make money fast? Read this article and start earning money todya fast, easy or for free.
Midori Offline referral

Posts: 41
Joined: Apr 2014
Reputation: 1

#3
Junior Member
In index_boardstats , Mybb have a section that show members birthday (if Username is there). I set it to show birthdays in everyday .Sometimes that a birthday is not registered will not show anything . I installed "Upcoming Events" plugin too " h t t p ://mods.mybb.com/view/upcoming-events". In this plugin if calendar no have any event, show in board "no event" . i want this for birthdays section. thanks.
marcus_avrelius Offline referral

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

#4
Support Team
What you want is to show "No birthdays today" whenever the field is empty?

Log into your admin control panel >> templates & style >> templates >> Global Templates click on Add Template button paste this code in there and save:

Code:
<tr><td class="tcat"><span class="smalltext"><strong>{$lang->todays_birthdays}</strong></span></td></tr>
<tr>
<td class="trow1"><span class="smalltext">No birthdays today</span></td>
</tr>

For Template Name enter: stats_nobirthdaystoday

Open index.php find:

PHP Code:
// If there are one or more birthdays, show them.
    
if($bdaycount || $hiddencount 0)
    {
        eval(
"&#092;$birthdays = &#092;"".$templates->get("index_birthdays")."&#092;";");
    }


Replace with:

PHP Code:
// If there are one or more birthdays, show them.
    
if($bdaycount || $hiddencount 0)
    {
        eval(
"&#092;$birthdays = &#092;"".$templates->get("index_birthdays")."&#092;";");
    }
    else
    {
        eval(
"&#092;$birthdays = &#092;"".$templates->get("stats_nobirthdaystoday")."&#092;";");
    }

Looking for ways to make money fast? Read this article and start earning money todya fast, easy or for free.
Midori Offline referral

Posts: 41
Joined: Apr 2014
Reputation: 1

#5
Junior Member
This work like a charm . Good job . Thanks again Dear Marcus and +1 . Time to cheers now Heart001_tt1





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