wolfman24 wrote: naijand wrote:
- When I click on gallery, it makes my ''board index'' button active [as well as] itself
- The second and biggest problem is that when you are in 'gallery' and want to go to index and you click 'index' it stays on gallery and refuses to go to index, even with several clicks
- Now after the above you click on any other button on the menu it returns a 404 page not found error
For 2 and 3, they have nothing to do with this mod. This happens because you used relative links in your LinkBar (linke index.php). So if you are in tha gallery (in subfolder gallery/) and you press index (index.php) you will sure load gallery/index.php, the same is for the blog then (e.g. blog.php and then after the click it tries to load gallery/blog.php). So all you have to do is to make the links relativ to the root directory. Try using ./index.php instead of index.php.
Thank you very much wolfman24,
./ didnt work but ../ worked for the root path. I no longer have the no
2 & 3 problems again.
I also used ../gallery/index.php for the subfolder path, I hope this is correct?.
For the no
1 problem, I however had to remove the menu_active_button code from 'index' menu code as it still makes both gallery and index active in spite of the above changes. I think it gets confused seeing 2 indexes in the codes, it couldn't differentiate the gallery index from the main index script I suppose:
<!-- IF SCRIPT_NAME == "../index.php" -->
<!-- IF SCRIPT_NAME == "../gallery/index.php" -->
For the gallery menu code, Nic suggested <!-- IF S_IN_GALLERY --> and I have used it instead of the above lower.
However I cant find replacement for the above top. <!-- IF S_IN_INDEX --> didnt work (i.e didn't make the index button active)
Would you know any other way of coding it
Thanks once again.