Jump to content
MakeWebGames

Recommended Posts

Posted

not sure this is in the right place for this post....if not please move it....never made a new thread before....anywho....was wondering if anybody could tell me how to add the new event code for when courses are done making your event word get bold telling you,you have an event from courses being done....i'm thinking it's in the cronday file where it's added,but not sure what the event_add needs to look like....any help would be greatly appreciated....Thanks in advance

Snake

Posted

event_add for courses done

yeah the event shows,but it doesn't get bold to show you have an event from courses done....is what i was talking about...also the cronday takes care of the message....it just the event not getting bold when it needs to for the course being finished

Posted

event_add for courses done

guess nobody in this whole forum knows what the hell i'm talking about.....i am getting the event from the courses being finished,but the word Event does not get bold letting you know you have an event from courses being finished....never mind i guess....i'll figure it out myself....which i'm sure you will comment on me doin anyway....keep that crap to yourself

Posted

You don't need to cry about it.

 

if($ir['events'] > 0) {
echo '[b]Events('.$ir['events'].')[/b]';
} else {
echo 'Events (0)';
}

 

Or

 

echo ''.($ir['events'] > 0) ? '[b]Events ('.$ir['events'].')[/b]' : 'Events(0)').'';

 

Edited for the people who prefer ternary methods

I'm not sure if $ir['events'] is correct however.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...