Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 09:40 pm EST

Geeklog Forums

Bold Past Events in Event Admin.


Anonymous

Anonymous
This code changes past events to bold so you know you can delete them. In your |geek_log|/public_html/admin/event.php .. search for: $event_templates->set_var('event_title', $A['title']); and replace it with: $eventformat = $A['dateend'] . ' ' . $A['timeend']; $eventtime = strtotime($eventformat); $currenttime = strtotime(date('Y-m-d H:i:s')); if ($eventtime < $currenttime) { $event_templates->set_var('event_title', '<b>' . $A['title'] . '</b>'); } else { $event_templates->set_var('event_title', $A['title']); } that's it....
 Quote

CodaX

Anonymous
oops sorry forgot to login when posting that . . . .
 Quote

All times are EST. The time is now 09:40 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content