Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Control of GfxMenu Display by JavaScript
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

r.c.griffith@verizon.net
Novice

USA
1 Posts

Posted - 09 Jul 2009 :  14:57:28  Show Profile  Visit r.c.griffith@verizon.net's Homepage  Reply with Quote
On our site we have a "restricted" members area. Within this page we need to control what members see via their access level (1-9).
Currently we are using HTML code to do this but we want to use GfxMenu to keep thing clean and consistant.
<script type="text/javascript">
  if ('%%seclvl%%' == '9') 
  {
  document.write('<a href=search.cgi?temp_page=mbr&temp_table=mbr_table&temp_table_next=mbr_table_next&sortby=lastname&in_any=%5Cn&rpp=200&session=%%session%%>:) Admin 9</a>')
  }
  else if ('%%seclvl%%' == '8')
  {
 document.write('<a href=search.cgi?temp_page=mbr8&temp_table=mbr8_table&temp_table_next=mbr8_table_next&sortby=lastname&in_any=%5Cn&rpp=200&session=%%session%%>:) Admin 8</a>')
  }
  else if ('%%seclvl%%' == '7')
  {
   document.write('<a href=search.cgi?temp_page=mbr7&temp_table=mbr7_table&temp_table_next=mbr7_table_next&sortby=lastname&in_any=%5Cn&rpp=200&session=%%session%%>:) Admin 7</a>')
  }
</script>

How can we control what GfxMenu options they see and have access to?

Griff

s.dav
Site Admin

Italy
3364 Posts

Posted - 09 Jul 2009 :  18:31:25  Show Profile  Visit s.dav's Homepage  Reply with Quote
The only method you can use is the one you used. If you have any idea on how I can permit you to insert conditions on the GfxMenu items let me know; no idea here.

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000