Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Control of GfxMenu Display by JavaScript

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
r.c.griffith@verizon.net Posted - 09 Jul 2009 : 14:57:28
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?
1   L A T E S T    R E P L I E S    (Newest First)
s.dav Posted - 09 Jul 2009 : 18:31:25
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.

Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000