Support Forums

Accordion menu item if user logged in

This is a discussion on Accordion menu item if user logged in within the TemplateCodes forums, part of the Third Party Support category; I'd like to have a page that is only viewable if a user is logged in. I've made a page ...


Go Back   68 Classifieds Forums > Third Party Support > TemplateCodes

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-20-2009, 03:51 AM   #1
Customer
 
Join Date: Feb 2009
Location: Hong Kong
Posts: 30
Rep Power: 8
skekum is on a distinguished road
Default Accordion menu item if user logged in

I'd like to have a page that is only viewable if a user is logged in.

I've made a page via the "Page Editor" in 68C Admin section.

I've added the link to the page (layout.tpl) in the horizontal tab menu, and it only shows up if the user is logged in.

The problem i'm having is with the Accordion menu. The page shows in the menu even if the user is logged out. I know why, and I can see the code that fetches the pages:
Code:
{foreach from=$templatepages item="entry"}
							<li><a class="page" href="{$smarty.const.URL}/pages.php?page={$entry.pageID}">{$entry.pPageTitle}</a></li>
						{/foreach}
This fetches all the pages if the user is logged out.

I could add this bit of code below and place it within the "IF user logged in" part but then the same page will still appear if logged out due to the previous statement above:
Code:
<li><a class="member_benefit" href="{$smarty.const.URL}/pages.php?page=6">{$smarty.const.LLANG_TMP_MEMBER_PAGE_LINK}</a></li>
How can I get this to work?

Can you restrict the first statement to not retrieve a particular page?

Thanks
Glenn
__________________
68 Classifieds Developer v4.1.10

Template - Fluid-Ocean
Modules - adpack, debug, freecap, image_upload, listingfilter, maintenance, markitup, payment_providers, quick_search, statistics, tc_jcarousel, tc_site_map, template_switcher, templatezones.

http://www.themarketplace.com.hk
skekum is offline   Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Sub Category in Accordion hel68c Modules / Plugins / Modifications 7 01-10-2010 07:28 AM
How can I append a dynamic class to a menu item? jonahcoyote Technical Support 4 06-25-2008 08:26 PM


All times are GMT -4. The time now is 03:41 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0