1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. To combat forum spam, we are temporarily disabling the ability to create new accounts for the forums. Please feel free to open a support ticket through out client area with any support issues. You can also search the forums for answers to many questions.

PHP-Nuke "module isn't active" when using nav buttons

Discussion in 'PHP-Nuke Integration' started by BoC_Gryphon, May 23, 2008.

Thread Status:
Not open for further replies.
  1. BoC_Gryphon

    BoC_Gryphon BoC_Gryphon

    When I hit any of the nav-buttons on the bottom of the normal calendar, it loads the new month properly, but none of the center / right column information loads (my calendar is in the left column). All of the left column information loads properly. The center columns displays the error message "Sorry, this module isn't active".

    Also, can you give an example of how I would add links below the navtable? I don't know PHP coding at all.

    Finally, is there a way to hide the userid/password from being displayed in the URL bar if I am using a link to Event Mgr that does not require signon?

    WebSite is www.bocsquad.com
    Contact me at boc.gryphonatgmaildotcom for site/ftp access if needed

    Thank you.
  2. BoC_Gryphon

    BoC_Gryphon BoC_Gryphon

    I found a fix for the navigation issue here http://www.easyphpcalendar.com/forums/showthread.php?t=4428 (update block-calendar.php file) and it worked for me. I'll keep searching the forums to see if I can find answers to the other questions.

    Is it possible to enable Event Manager access w/o signon based on phpbb forum group membership?
  3. ve9gra

    ve9gra Support Team

    Pretty much everything is possible, but it depends on the amount of work required to achieve this. Managing access to the Event Manager using PHPBB groups is one of those situations that would require a lot of work. There is nothing built in to EPC to allow for that, so you'd have to code your own solution using PHPBB techniques - which we're not versed in.

    As for hiding the username/password, you can send that info in POST instead of GET, but then the credentials would still be visible in the code.
  4. BoC_Gryphon

    BoC_Gryphon BoC_Gryphon

    I currently have my links to the event manager and setup manager in a separate block uisng a simple table. I read in another post that it's possible to add to these links to the calendar itself, below the nav table.


    This post did not show sample code of how to do so. I believe the code needs to be added to the /blocks/block-calendar.php file?
    Last edited: May 23, 2008
  5. ve9gra

    ve9gra Support Team

    That's exactly it. Add it like you'd add any other html to a PHP file.
  6. BoC_Gryphon

    BoC_Gryphon BoC_Gryphon

    OK. Since I don't know a lick of PHP, I took a stab at how to do this.

    Here's my code:

    if (eregi("block-Calendar.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    //required if you're going to use overLib
    $OL=1; require ("calendar/calendar.php");
    //makes the whole calendar point to a TOC link
    //unset($epcAltLink); $epcAltLink="modules.php?name=Calendar";
    //the line that shows the calendar
    require ("calendar/calendar.php");
    $content = ob_get_clean();
    <tr align=left valign=center>
    <td> <img src="http://bocsquad.com/images/arrow.gif"><a href="/calendar/events/index.php?name=demo&pwd=demo" target="_blank">&nbsp Use Calendar</td></tr>
    <tr align=left valign=center>
    <td> <img src="http://bocsquad.com/images/arrow.gif"><a href="/calendar/setup/index.php" target="_blank">&nbsp Configure Calendar</td></tr>

    The links are rendered above the calendar (instead of below the nav area) and outside the boundaries of the block itself. Any suggestions?
  7. ve9gra

    ve9gra Support Team

    Yeah, you can't have the <html> and <body> tags in a block.... here's what you should have

    if (eregi("block-Calendar.php"$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    if (!
    eregi("modules.php"$_SERVER['PHP_SELF'])) {
    //required if you're going to use overLib
    $OL=1; require ("calendar/calendar.php");
    //makes the whole calendar point to a TOC link
    //unset($epcAltLink); $epcAltLink="modules.php?name=Calendar";
    //the line that shows the calendar
    require ("calendar/calendar.php");
    $content ob_get_clean();
    $myLinks "<br>
    <tr align=\"left\" valign=\"center\">
    <td> <img src=\"http://bocsquad.com/images/arrow.gif\"><a href=\"/calendar/events/index.php?name=demo&pwd=demo\" target=\"_blank\">&nbsp Use Calendar</td></tr>
    <tr align=left valign=center>
    <td> <img src=\"http://bocsquad.com/images/arrow.gif\"><a href=\"/calendar/setup/index.php\" target=\"_blank\">&nbsp Configure Calendar</td></tr>
    $content .= $myLinks;
    Not 100% sure it'll work on the first try... I just did this quick.
  8. BoC_Gryphon

    BoC_Gryphon BoC_Gryphon

    Worked like a charm. Many thanks.
Thread Status:
Not open for further replies.

Share This Page