Welcome to Geeklog, Anonymous Saturday, September 07 2024 @ 09:14 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....
11
8
Quote
CodaX
Anonymous
oops sorry forgot to login when posting that . . . .
7
6
Quote
All times are EDT. The time is now 09:14 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