Logged Out
Create an Account
Login:
Password:

Forgot your password?
Conditional Formatting

Conditional Formatting
[Back to Index]
Thread Tags
Primary: [General]
Secondary: None

Ok, I have created a DHTML menu for my site to replace the standard Menu, but....

If I use a simple IfRank:3 to pop up the menu with the Admin option, I have no way to test if the user is not Rank 3 to pop up the menu without the Admin menu.

What I have is:
<!--System:IfRank:3-->
<script type="text/javascript" language="JavaScript1.2" src="http://dkpfiles.com/tnb/files/Menu.js"></script>
<!--System:EndIfRank-->

Any ideas?


--
Eleipher, The Warlock Extraordinaire
The New Beginning
Thorium Brother Hood



Guild Webmaster
Quote by carlpalmer
Ok, I have created a DHTML menu for my site to replace the standard Menu, but....

If I use a simple IfRank:3 to pop up the menu with the Admin option, I have no way to test if the user is not Rank 3 to pop up the menu without the Admin menu.

What I have is:
<!--System:IfRank:3-->
<script type="text/javascript" language="JavaScript1.2" src="http://dkpfiles.com/tnb/files/Menu.js"></script>
<!--System:EndIfRank-->

Any ideas?


As the admin on my site I have 2 accounts. Mine and a test account just for things like this. Joerank1 tells me he can't see something. I'm like really. Make my test account the same rank. Oh really I can see it just fine or wow I can replicate the problem. Guess I have to go fix something.


--
Six Demon BagRefresh This Item
Jack Burton: Hey, what more can a guy ask for?
Egg Shen: Oh, a six-demon bag!
Jack Burton: Terrific, a six-demon bag. Sensational. What's in it, Egg?
Egg Shen: Wind, fire, all that kind of thing!
That is a beautiful idea, and it kills me that I didn't think about that.

I think that you misunderstand my question though. What I need is

If Rank <=3 then
Display Menu #1
else
Display Menu #2
end if

I can get If Rank <=3 then, but what I need is the else part of the statement. Any ideas?


--
Eleipher, The Warlock Extraordinaire
The New Beginning
Thorium Brother Hood



Guild Webmaster
That's not something I've even thought of, but is indeed something that should be implemented. I'll add to add some kind of "else" functionality.

You COULD do soemthing like this if you're using the javascript stuff like above

Make two files:

Menu.js

and MenuAdmin.js (this is the file that shows up for Admins)

Then do this:

<script type="text/javascript" language="JavaScript1.2" src="http://dkpfiles.com/tnb/files/Menu<!--System:IfRank:3-->Admin<!--System:EndIfRank-->.js"></script>



--
It's all in the reflexes.
What a nice and elegant solution! Thank you.


--
Eleipher, The Warlock Extraordinaire
The New Beginning
Thorium Brother Hood



Guild Webmaster


[Back to Index]