PDA


View Full Version : navbar links


Lionel
03-06-2005, 01:48 AM
In Advanced cmps there is a very convenient option for navbar links and globals options. Is such options available for links? If yes, how? I know I can always hardcode the navbar links, but the globals ...

KW802
03-06-2005, 02:08 AM
Lionel,

According to this thread [ http://www.vbadvanced.com/forum/showthread.php?t=5934 ] it looks like that if you integrate Links with CMPS then the globals will get picked up from your CMPS settings. To integrate CMPS with links use this thread [ http://www.vbadvanced.com/forum/showthread.php?t=1714 ].

It sounds like if you integrate the two then you can take advantage of the global settings in CMPS 1.0.1 -- You could then turn all of the modules except for the custom content module on your new Links page and it should give the same look as before (assuming that you don't want any new modules on your Links pages). :)

Lionel
03-06-2005, 03:03 AM
Thanks. I had already tried them both. I've just installed gallery and it is picking all the extras php and globals no problems.

However, links directory is picking up only the vbulletin generic navbar link, not the php I added in the cmps settings navbar box. Like I said, a hardcode should take care of it, but there is a global without the $ in there that I do not know how to handle.

What's happening, it is putting the directory in the path /forums/directory whereas it should be /forums

All paths are correct and as reported above, regular vb navbar links work fine.

Lionel
03-06-2005, 06:10 AM
OK I found how to hardcode the php in functions_links (better to do it in there once than to hardcode the same for many links with same php).

Now, the portal output global variables is my remaining problem

Lionel
03-06-2005, 11:26 AM
duh! I just added the global in functions_links.php and that worked.