Member
Member
chuubenettes   2009-05-11, 05:01
#1

Hi,

Is there any way to format the printalbummenu function so that it creates a horizontal navigation list, rather than a vertical list?

Thanks!

Member
Member
chuubenettes   2009-05-11, 06:23
#2

one other question-

I have the following code as another way to make a horizontal nav menu. How could I make it so the last menu title doesnt have the "|" character on it? ex of how it currently looks: 1 | 2 | 3 | 4 |

`

" title="View album: ">   |   

`

Administrator
Administrator
acrylian   2009-05-11, 08:53
#3
  1. That is possible. The album menu prints a unordered html list (which is semantic for menus) that you can style via CSS to be horizontally. Please try a web search on that, there are plenty of tutorials.

  2. Try something like if(next_album()) { echo " | "; }

Member
Member
chuubenettes   2009-05-13, 21:15
#4

When I inserted the statement as:
`

">   |   

`
it printed an endless navigation list (browser crash, oops)

How would I write that correctly, so it inserts a | only if there is another album?
This I know I wrote incorrectly, but improving on understanding..
`

">   |   

`
Thanks for your help!

Member
Member
sbillard   2009-05-13, 23:29
#5

Your test should be if (is_null(getNextAlbum()) { echo 'null'; } else { echo | ; }

Member
Member
chuubenettes   2009-05-14, 05:31
#6

this is the final code i used

``

thank you so much for your help

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.