You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 439 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Add Kalender 2 Waiting Content Block [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
LunaFaye
Nuke Soldier
Nuke Soldier


Joined: Jun 12, 2005
Posts: 20

Location: Columbus OH

PostPosted: Fri Nov 17, 2006 5:45 pm Reply with quoteBack to top

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>&middot;</big></strong>&nbsp;<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>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=CalendarAdmin\">"._EVENTS."</a>: $event</font>";

So it should now look like this:
$content .= "<strong><big>&middot;</big></strong>&nbsp;<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>&middot;</big></strong>&nbsp;<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
Find all posts by LunaFayeView user's profileSend private messageVisit poster's website
NoviceScotty
Nuke Soldier
Nuke Soldier


Joined: Nov 23, 2004
Posts: 32


PostPosted: Mon Nov 20, 2006 3:01 am Reply with quoteBack to top

Thanks - I have had the same problem, forgetting to check regularly, so this was a really useful modification. Wored for me no problem! Very Happy
Find all posts by NoviceScottyView user's profileSend private message
LunaFaye
Nuke Soldier
Nuke Soldier


Joined: Jun 12, 2005
Posts: 20

Location: Columbus OH

PostPosted: Tue Nov 21, 2006 9:38 am Reply with quoteBack to top

Glad to hear it! Very Happy

Luna Faye

_________________
Oracle of Pæthieon
Find all posts by LunaFayeView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.036 Seconds - 511 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::