Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 08:38 pm EDT

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 EDT. The time is now 08:38 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