Status
Not open for further replies.

Dylan

Former Developer
Starting with Dragonbyte Gallery 1.2.0 you will be able to add Navigation Manager entries and have the permissions work for them. It's not the easiest to do so here are some instructions.

First thing is to get the shortname for the gallery you are creating the links for and keep it handy. The default one is gallery, for this example, lets say you have a Gallery Instance setup and the shortname is called imglink

First create your main Navigation Entry

In Navigation Manager click Add Tab

Product: Dragonbyte Gallery
Title: Your Nav Name
Target URL: dbtgallery.php?gal=imglink
Active: Yes
Display Order: 50 (or whatever you want for order)
Show Permission Name: imglink_view
Append 'tabid' to URL: No
Tab Script(s): dbtech_gallery

Notice the show permission name. The main tab has the show permission name of <your gallery shortname>_view
Also the gal= at the end of the target url has the same shortname

Now for the sub nav

On the Edit dropdown for the Gallery nav link, select Add Link

Title: Main Page
Target URL: dbtgallery.php?gal=imglink&do=main
Active: Yes
Display Order: 10
Show Permission Name: imglink_view

Notice the same permission and gal=

Now repeat it for the rest of the links

Title: Add Album
Target URL: dbtgallery.php?gal=gallery&do=add_album
Active: Yes
Display Order: 20
Show Permission Name: imglink_album

Title: Upload Images
Target URL: dbtgallery.php?gal=imglink&do=add_image
Active: Yes
Display Order: 30
Show Permission Name: imglink_upload
Title: My Profile
Target URL: dbtgallery.php?gal=imglink&do=profile
Active: Yes
Display Order: 40
Show Permission Name: member

Title: Add Profile Image
Target URL: dbtgallery.php?gal=imglink&do=add_prof_image
Active: Yes
Display Order: 50
Show Permission Name: member

After you do this you can now edit the Gallery instance and set the Navigation Link? to No

Hope this helps, let me know if you have any questions.
 
No, those are only instructions for adding to the navigation manager. Earlier versions will create the navigation link automatically.
 
Dylan I've been trying to go through this and set it up, but I just can't the tab to display. The only reason I'm trying this, is because when I view our home tab ( running vbcmps ) the gallery tab goes into default mode when viewing our home page. I read on vb.org that this would fix, but for the life of me I can't get it to work.

Dave
 
Dylan I've been trying to go through this and set it up, but I just can't the tab to display. The only reason I'm trying this, is because when I view our home tab ( running vbcmps ) the gallery tab goes into default mode when viewing our home page. I read on vb.org that this would fix, but for the life of me I can't get it to work.

Dave

It looks like it's setup right to me? Did you fix it since you posted?
 
Sorry Dylan, yes got it sorted. Couldn't get my head round it until I change img to gallery, then it worked 100%

Good guide :)

Dave
 
Status
Not open for further replies.
Back
Top