Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:01 am EST

Geeklog Forums

GL alternative to gl menu


Status: offline

orepa

Forum User
Chatty
Registered: 11/07/07
Posts: 35
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
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
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:
Text 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:
Text 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
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
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
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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 available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

orepa

Forum User
Chatty
Registered: 11/07/07
Posts: 35
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.
 Quote

Status: offline

orepa

Forum User
Chatty
Registered: 11/07/07
Posts: 35
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.
 Quote

Status: offline

orepa

Forum User
Chatty
Registered: 11/07/07
Posts: 35
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.
 Quote

Status: offline

orepa

Forum User
Chatty
Registered: 11/07/07
Posts: 35
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
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
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?
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello orepa,

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

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


and function is

Text 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
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
I had a client who used dreamweaver to edit/upload php files and it was corrupting those files and throwing identical errors.

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

All times are EST. The time is now 01:01 am.

  • 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