Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Dropdown menu navigation help!

Asked Modified Viewed 1,976 times
W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
asked
Junior Member

phpfusion v7.02

I have made a dropdown navigation menu see here https://www.odsclan.net/portal/menu..../menu.html

I put it in a panel and it works but, the restrictions doesn't work as is permissions to who can see what links note is does restrict unwanted from using the link as i have it set. Again trying to hide links according to permissions.
.
is there a menu infusion that does this kind of navigation for my site or can this be edited to do so?


TIA
Edited by Woody on 03-03-2017 06:58,
0 replies

6 posts

W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
answered
Junior Member

tx again i will play with it and let ya know
0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

You really have it all up there, don´t be afraid to fiddle. Just add 1+1 and result is clear. But ok , One Last example,

Pay attention to the first div that wraps this container. You want it last and outside of brackets.
Each element that comes with terms need to be inside bracket, as displayed below. Please note. These are untested examples.
Open the container
echo '<div id="CollapsiblePanel1" class="CollapsiblePanel">';


This section is only displayed for Admin here

if (iADMIN) {
echo '
<div class="CollapsiblePanelTab" tabindex="0">Read</div>
<div class="CollapsiblePanelContent">
<p><a href="https://www.odsclan.net/portal/viewpage.php?page_id=26"><img src="https://www.odsclan.net/portal/themes/xdc_gaming/images/bullet.png" alt="+" /> DoD Weapons</a></p>
<p><a href="https://www.odsclan.net/portal/viewpage.php?page_id=17"><img src="https://www.odsclan.net/portal/themes/xdc_gaming/images/bullet.png" alt="+" /> DoD v1.3 History</a></p>
<p><a href="https://www.odsclan.net/portal/infusions/wrapper/wrapper.php?wrapper_id=17"><img src="https://www.odsclan.net/portal/themes/xdc_gaming/images/bullet.png" alt="+" /> DoD Players Manual</a></p>
';
echo '</div>';
}


Fiddle for member
if (iMEMBER) {
echo '<div class="CollapsiblePanelTab" tabindex="0">Read</div>
<div class="CollapsiblePanelContent">';
echo 'Hi only member stuff';
echo '</div>';
}


Close the open div container
echo '</div>';
0 replies
W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
answered
Junior Member

i'll play with it tx ...

can you show me example of the guest , member, admin and group plz.

i really need to dig into coding. i think it would be fun. also i think it would be nice for 9 to have that kinda menu available for long winded links like on my site.
Edited by Woody on 04-03-2017 16:09,
0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

yeah you need to do it for each section you want to control.
to make it easy on your self you can terminate and echo with single quotes

Since your html is in double quotes


Simple example so you see the concept.


echo '<div id="CollapsiblePanel1" class="CollapsiblePanel">';
echo '
<div class="CollapsiblePanelTab" tabindex="0">Read</div>
<div class="CollapsiblePanelContent">
<p><a href="https://www.odsclan.net/portal/viewpage.php?page_id=26"><img src="https://www.odsclan.net/portal/themes/xdc_gaming/images/bullet.png" alt="+" /> DoD Weapons</a></p>
<p><a href="https://www.odsclan.net/portal/viewpage.php?page_id=17"><img src="https://www.odsclan.net/portal/themes/xdc_gaming/images/bullet.png" alt="+" /> DoD v1.3 History</a></p>
<p><a href="https://www.odsclan.net/portal/infusions/wrapper/wrapper.php?wrapper_id=17"><img src="https://www.odsclan.net/portal/themes/xdc_gaming/images/bullet.png" alt="+" /> DoD Players Manual</a></p>
';

echo '</div></div>';
0 replies
W
Woody
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions
answered
Junior Member

ok so i would have to do it for each and every one that i want to control

here is on tab and 3 links for this nav menu

Quote

<div id="CollapsiblePanel1" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0">Read</div>
<div class="CollapsiblePanelContent">
<p><a href="https://www.odsclan.net/portal/viewpage.php?page_id=26"><img src="https://www.odsclan.net/portal/themes/xdc_gaming/images/bullet.png" alt="+" /> DoD Weapons</a></p>
<p><a href="https://www.odsclan.net/portal/viewpage.php?page_id=17"><img src="https://www.odsclan.net/portal/themes/xdc_gaming/images/bullet.png" alt="+" /> DoD v1.3 History</a></p>
<p><a href="https://www.odsclan.net/portal/infusions/wrapper/wrapper.php?wrapper_id=17"><img src="https://www.odsclan.net/portal/themes/xdc_gaming/images/bullet.png" alt="+" /> DoD Players Manual</a></p>
</div>
</div>


can i do that to this?
... note i made this menu in dreamweaver cs6
0 replies
F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

If you have the links hardcoded you also need to hardcode the permissions.
For members only it is iMEMBER as example.
if (iMEMBER) {
echo "hi link for members";
}


For guests only it is iGUEST as example.
if (iGUEST) {
echo "hi link for guests";
}


For Admins only it is iADMIN as example.
if (iADMIN) {
echo "hi link for Administrators";
}

For groups you can do something like
if (checkgroup(1)) {
echo "hi link for user group 1";
}

You will find the group number next to the group name in the group administration.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
W
W
Woody 10
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 14 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet