Subject: GL alternative to gl menu

Posted on: 07/05/09 02:32pm
By: orepa

Hi,

I'm in need of an alternative menu plugin that is no GL Menu. I can't get that plugin to work and have tried multiple installations. is there an alternative?

Thanks in advance

Re: GL alternative to gl menu

Posted on: 07/05/09 11:54pm
By: suprsidr

I've been known to use something a little different.
Using a staticpage to hold my css and one to hold the menu structure.
This sample menu was created using jQuery hosted by google ajax apis so this is all the javascript and css references the page requires:
PHP Formatted Code
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="/staticpages/index.php?page=menu_css">
<script type="text/javascript">
    $(document).ready(function(){
        $("#nav-one li").hover(function(){
            $("ul", this).fadeIn("fast");
        }, function(){
        });
        if (document.all) {
            $("#nav-one li").hoverClass("sfHover");
        }
    });
   
    $.fn.hoverClass = function(c){
        return this.each(function(){
            $(this).hover(function(){
                $(this).addClass(c);
            }, function(){
                $(this).removeClass(c);
            });
        });
    };
</script>
 

and to place the menu in header.thtml I call my staticpage holding the menu structure:
PHP Formatted Code

<div class="static-menu" align="left">
<?php @readfile('http://www.flashyourweb.com/staticpages/index.php?page=menu_xml'); ?>
</div>
 


This keeps everything editable online from within my staticpage editor which is very handy.
Of course you can spend some time and pimp it out with some nice background images and colors Wink

(did I get enough links in there?)

-s

Re: GL alternative to gl menu

Posted on: 08/05/09 05:07am
By: beewee

Quote by: orepa

Hi,

I'm in need of an alternative menu plugin that is no GL Menu. I can't get that plugin to work and have tried multiple installations. is there an alternative?


Why not try to get it working. What is the problem? Are you using the new plugin from Blain or the very old one?

@suprsidr: nice layout, hard to recognise it´s a Geeklog-ed site! Big Grin

Re: GL alternative to gl menu

Posted on: 08/05/09 07:27am
By: ::Ben

Quote by: suprsidr

I've been known to use something a little different.
-s


@ suprsidr Very good job. Thanks for sharing this.


@ Orepa You can make gl menu work. Let us know what is going wrong?

::Ben

Re: GL alternative to gl menu

Posted on: 08/05/09 09:52am
By: orepa

Quote by: suprsidr

I've been known to use something a little different.

-s



Thanks for the information. When I get to the point of fully learning PHP, I will remember your assistance and refer back to your post but I am not yet at that level, still learning GL.

I've installed the gl Menu on several other CMS and it worked fine but for some reason or another, it is not installing properly on a new site.

Re: GL alternative to gl menu

Posted on: 08/05/09 11:00am
By: orepa

Quote by: cordiste

Quote by: suprsidr

I've been known to use something a little different.
-s


@ suprsidr Very good job. Thanks for sharing this.


@ Orepa You can make gl menu work. Let us know what is going wrong?

::Ben



I'm going to try reinstalling the program again and will post the error code.

Re: GL alternative to gl menu

Posted on: 08/05/09 11:02am
By: orepa

Quote by: beewee

Quote by: orepa

Hi,

I'm in need of an alternative menu plugin that is no GL Menu. I can't get that plugin to work and have tried multiple installations. is there an alternative?


Why not try to get it working. What is the problem? Are you using the new plugin from Blain or the very old one?

@suprsidr: nice layout, hard to recognise it´s a Geeklog-ed site! Big Grin



I downloaded the most recent version. I've been trying to get the plugin installed over a week now. I'm beginning to think there may be a problem related to the "Clean" them cause this issue. But I am going to try installing it again.

Re: GL alternative to gl menu

Posted on: 08/05/09 11:43am
By: orepa

Ok, I'm still getting the same error message:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/sharo36/public_html/plugins/glmenu/glmenu.class.php on line 170

Re: GL alternative to gl menu

Posted on: 09/05/09 03:31am
By: beewee

Hi, you better ask for support on Portalparts from Blain, the developer of this plugin.

EDIT: you already did that, I see. How did you unpack the file (please use Winrar, and nothing else), and where did you upload the files exactly?

Re: GL alternative to gl menu

Posted on: 09/05/09 09:08am
By: ::Ben

Hello orepa,

In a working version glmenu.class.php line 170 is

PHP Formatted Code
 public function initMenuItems($pid=0)


and function is

PHP Formatted Code

    public function initMenuItems($pid=0) {
        global $_TABLES;

        $sql = "SELECT id,menutype as type,label,url,grp_access,image FROM {$_TABLES['glmenu']} ";
        $sql .= "WHERE pid=$pid AND is_enabled=1 AND location='{$this->_type}' ";
        $sql .= "AND grp_access IN ({$this->_groupAccessList}) ";
        $sql .= "ORDER BY menuorder";
        $query = DB_query($sql);
        $this->_menuitemCount = DB_numRows($query);
        unset($this->_menuitems);
        $this->_menuitems = array();
        while ($A = DB_fetchArray($query,false)) {
            array_push($this->_menuitems, $A);
        }

    }


Can you check if it is the same in your version?

::Ben

Re: GL alternative to gl menu

Posted on: 09/05/09 09:33am
By: suprsidr

I had a client who used dreamweaver to edit/upload php files and it was corrupting those files and throwing identical errors.

-s

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=87327