Snake Posted January 18, 2011 Posted January 18, 2011 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 Quote
Jordan Palmer Posted January 18, 2011 Posted January 18, 2011 event_add($val['USERID'], "TEXT"); Replace $val with the selection + text with what you wanna say, Also no it's the wrong section but I'll move for you =) MCCodes v2 already has events for them though. Quote
Snake Posted January 18, 2011 Author Posted January 18, 2011 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 Quote
Djkanna Posted January 18, 2011 Posted January 18, 2011 ***Needs to read things*** Use what Equinox posted below. Quote
Snake Posted January 18, 2011 Author Posted January 18, 2011 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 Quote
Equinox Posted January 19, 2011 Posted January 19, 2011 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. Quote
Diesl Posted January 21, 2011 Posted January 21, 2011 I believe it's $ir['new_events'] Take what Equinox wrote and add it to your header, or wherever you are displaying the Events link on your interface. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.