Fork me on GitHub

Custom navigation menu issues..  Bottom

  • Ive searched the forum and I cant find anything that would explain this..

    I did find many users that wanted their own navigation going horizontally.. but noone addressed my one issue.. I can do that.. but I cant link things like [web_links] or [gallery] I have to enter the full URL, and thats where the problem occurs.. with gallery, if you link /modules/gallery it just shows that page, rather than actually formatting it to your theme. But if you call it from a menu block as [gallery] it formats it.

    My question is, is there a way to use the horizontal navigation AND the PN linking? or do I have to go and edit my gallery files to call the PN theme through a PHP header/footer?
  • If you simply use all of the correct links gallery wont give you any problems. You use the module link not the direct path link. That would be why you are getting it shown by itself as it is designed to do that when you link directly.

    Either use the Core munu block to make the links using [gallery] then copy the output.
  • Hi there,

    You can make it easy for user to update your navbar by adding this array loop to your theme.php file

    Code

    $currentlang = pnUserGetLang();
        include $themepath."lang/".$currentlang."/navbar.php";
        while (list ($key, $value) = each ($usernav))
            echo"<font class=\"nav\">&nbsp;::&nbsp;<a href=\""
                .$value
                ."\">"
                .$key
                ."</a></font> \n";


    Make sure you add this file to yourtheme/lang/eng (wahtever langauge you have). Name it navbar.php

    Code

    <?php
    //You can add more of these, just copy and paste a new line.
    //MAKE SURE THE LAST LINE IN EACH ARRAY HAS NO COMMA!

    //Links at the top of the page.
    $usernav = array (
    "My Account"    => "user.php",
    "Submissions"   => "modules.php?op=modload&name=Submit_News&file=index",
    "Write a Review"    => "modules.php?op=modload&name=Reviews&file=index&req=write_review",
    "Add an Interesting Web link"   => "modules.php?op=modload&name=Web_Links&file=index&req=AddLink",
    "Logout"        => "user.php?module=NS-User&op=logout"
    );
    ?>


    Regards

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment

This list is based on users active over the last 60 minutes.