Add options to Navigator Bar

thorpen

Joined: 2004-03-01
Posts: 13
Posted: Sun, 2004-03-14 21:55

All I want to do is add a link to my guest book and a Links link - surely it's not that hard - or is it ??

 
montymessex

Joined: 2004-02-24
Posts: 62
Posted: Sat, 2004-03-20 00:58

let me know when you find out. i would like to do the same.

 
JadeDragon
JadeDragon's picture

Joined: 2003-02-15
Posts: 332
Posted: Sat, 2004-03-20 03:09

it's late & I'm just about off, so the file you want to look at is
/layout/breadcrumbs.inc That's the one that shows gallery: abcde > Album: abcdef

Or else look at Pixel Poets tutorial at the top of the page to add links in the header.

sorry I can't give you more details. I'm off for the night. I'll check in tomorrow if you haven't figured it out.

=)
Jade

 
thorpen

Joined: 2004-03-01
Posts: 13
Posted: Sun, 2004-03-21 19:36

Thanks for your help - I'm afraid I'm quite new to all this - I have looked in the file, but cannot find any reference to the menu bar - I want to add a newsgroup link and alinks link next to slideshow and login links.

Any help would be appreciated.

Thanks. :o

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2004-03-22 02:48

thorpen, Since you are new to this...
The best way to go about this is to add your own navigation in a wrapper file. Read PixelPoets tutorial http://tutorials.eclecticpixels.com/gallerytips/

There you will be able to add links to you home page other pages in you site like guest book etc.
You can add more links to where the page numbers are displayed but it looks awkward. Other places to add are beside the login link & slide-show but that does not have room form more than one or two links either.

The best way is to make a navigation bar in plain html and put it in a wrapper file.

If you REALLY want to put a link where the [login] link is Post back and we can walk you through those steps.

Dave

 
thorpen

Joined: 2004-03-01
Posts: 13
Posted: Tue, 2004-03-23 22:09

Thanks for your post - I would prefer to add an additional couple of links next to the login option and would appreciate any help you could provide.

Many Thanks,

Nick.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2004-03-23 23:38

thorpen,
Save albums.php for backup.
Open albums.php and look around line 163 you will see:$adminCommands = "<span class=\"admin\">"; edit that line to look like:$adminCommands = "<span class=\"admin\"><a href=\"http://example.com/dir/page.php\">[Your page]</a> ";
This will add a link beside the slideshow and login link.
You can add more links but don't forget to escape the quotes.

Similar code in view_album.php if you want the link when you view the album.

Dave

 
thorpen

Joined: 2004-03-01
Posts: 13
Posted: Thu, 2004-03-25 22:28

You are a star - thanks very much. :D

 
iwantpbg

Joined: 2003-12-02
Posts: 17
Posted: Sun, 2004-06-20 22:38

Thanks Floridave I successfully added two links next to the slideshow and login links. See example. Now I would like to do the same thing on the subsequent album pages and everywhere else the slideshow and login links exist. Would kindly tell me how?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2004-06-21 00:29

iwantpbg,
In view_albums.php look for $adminbox["commands"] = "<span class =\"admin\">" . $adminCommands .
addd your links like$adminbox["commands"] = "<span class =\"admin\"><a href=\"home.html\">home</a>" . $adminCommands .
and in view_photo.php look for $adminCommands = "<span class=\"admin\">$adminCommands</span>"; and add links like:$adminCommands = "<span class=\"admin\"><a href=\"home.html\">home</a> $adminCommands</span>";

You might want to add some html spaces: & n b s p ;
without the spaces between....

Dave

 
iwantpbg

Joined: 2003-12-02
Posts: 17
Posted: Mon, 2004-06-21 17:16

Thanks Maestro!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2004-06-21 20:36

Glad I could help.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2004-12-23 01:26
 
moliu

Joined: 2004-04-25
Posts: 20
Posted: Sat, 2005-05-07 04:41

I've just upgraded to 1.5 I noticed that the file structure is slightly different. Now there's a navigator.inc which seems to be the navigator bar. How can I add the link on the navigator bar like before?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2005-06-11 20:36
 
iwantpbg

Joined: 2003-12-02
Posts: 17
Posted: Wed, 2009-09-02 02:38

Dave:

When I upgraded to 1.5.10 I lost the custom navigation links on the main Gallery page next to login and slideshow. I looked in albums.php for the following. Not having found the same I'm wondering what I need to modify to add those links back? Interestingly tho the links added to view album and view photo still work.

TIA

floridave wrote:
iwantpbg,
In view_albums.php look for $adminbox["commands"] = "<span class =\"admin\">" . $adminCommands .
addd your links like$adminbox["commands"] = "<span class =\"admin\"><a href=\"home.html\">home</a>" . $adminCommands .
and in view_photo.php look for $adminCommands = "<span class=\"admin\">$adminCommands</span>"; and add links like:$adminCommands = "<span class=\"admin\"><a href=\"home.html\">home</a> $adminCommands</span>";

You might want to add some html spaces: & n b s p ;
without the spaces between....

Dave

I got my gallery hosted at Uncensored-Hosting