Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Apr 2015, 14:56
tamsin tamsin is offline
 
Join Date: May 2007
Display a List of forum sections

I'd like to write a simple list of forum section names and links to use as navigation e.g.

<ul>
<li><a href="forumdisplay.php?30-section-one">Section One</a></li>
<li><a href="forumdisplay.php?31-section-two">Section Two</a></li>
</ul>

Any advice on how to do that? It would need to take into account which sections a user has permission to see.

Thank you
Reply With Quote
  #2  
Old 21 Apr 2015, 15:40
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Where do you want these links to be shown? If it is in the nav bar, you can do that with the navigation manager in the AdminCp
Reply With Quote
  #3  
Old 22 Apr 2015, 15:58
tamsin tamsin is offline
 
Join Date: May 2007
I'm trying to add a drop down menu with the forum sections to the mobile template.

I think I've got half way there by copying the code from the quick links at the bottom of the desktop:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I'd like to exclude the sub forums though, there seems to be a data.forum.depth value which I can write to the screen, but I can't work out how to check it it the if statement... <vb:if condition="$data['depth'] == 1"> doesn't work.
Reply With Quote
  #4  
Old 22 Apr 2015, 16:08
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Originally Posted by tamsin View Post
I'd like to exclude the sub forums though, there seems to be a data.forum.depth value which I can write to the screen, but I can't work out how to check it it the if statement... <vb:if condition="$data['depth'] == 1"> doesn't work.
Try checking $data['forum']['depth'].
Reply With Quote
  #5  
Old 22 Apr 2015, 16:31
tamsin tamsin is offline
 
Join Date: May 2007
Originally Posted by kh99 View Post
Try checking $data['forum']['depth'].
Brilliant, it works, thank you so much, that's been bugging me all afternoon!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:12.

Layout Options | Width: Wide Color: