I use the Kalender Module by kalender@pragmamx.org. (Yeah, it's probably out of date, but it still works.)
Anyway, I'm lazy and sometimes forget to check my Administration Menu before the date for submitted events passes. I was looking for a hack or tutorial on how to add the Kalender Event Submissions to the Waiting Content Block. I couldn't find one, so I made it myself. Maybe this will help someone else too. (Running on PHPNuke V7.6)
As always, back up your files before messing with them!
In mainfile.php find:
function adminblock()
(Around line 850ish)
The end of this section should look like this:
$content .= "<strong><big>·</big></strong> <a href=\"admin.php?op=DownloadsListBrokenDownloads\">"._BROKENDOWN."</a>: $brokend</font>";
themesidebox($title, $content);
Change </font> to <br>.
Then above line:
themesidebox($title, $content);
Add:
$event = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_events WHERE activ != '1'"));
$content .= "<strong><big>·</big></strong> <a href=\"admin.php?op=CalendarAdmin\">"._EVENTS."</a>: $event</font>";
So it should now look like this:
$content .= "<strong><big>·</big></strong> <a href=\"admin.php?op=DownloadsListBrokenDownloads\">"._BROKENDOWN."</a>: $brokend<br>";
$event = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_events WHERE activ != '1'"));
$content .= "<strong><big>·</big></strong> <a href=\"admin.php?op=CalendarAdmin\">"._EVENTS."</a>: $event</font>";
themesidebox($title, $content);
In Root Directory / language / lang-english.php add:
define("_EVENTS","Calendar Events");
Luna Faye
_________________ Oracle of Pæthieon
NoviceScotty Nuke Soldier
Joined: Nov 23, 2004
Posts: 32
Posted:
Mon Nov 20, 2006 3:01 am
Thanks - I have had the same problem, forgetting to check regularly, so this was a really useful modification. Wored for me no problem!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum