Logged Out
Create an Account
Login:
Password:

Forgot your password?
IfRank on Advanced Layouts

IfRank on Advanced Layouts
[Back to Index]
Thread Tags
Primary: [Tickets]
Secondary: None

IfRank on Advanced Layouts
Go To This Ticket's Page
Creator Krellin
Public or Private Public
Private tickets are only accessible to you and to DKPSystem.com staff
Public Tickets are visible to everyone)
Status Open
Type Support
Section of the Site Advanced Layout Options and CSS
Urgency (3 votes)
Rating (3 votes)
Description:
If you look at my website, you will see that I have an image of Thrall in the upper left-hand corner. This is something I intend only for a 'Non-member' to see. It presents them with a quest from Thrall for recruitment purposes.

What I want is a way in which to stop this from being shown if they're already a member of the guild and perhaps replace it with something else.
Quote
<!--System:IfRank:XXX-->
This is used to determine if the current user is at least rank XXX.

Is there a way you can add the ability to specify that only a certain rank can view something without forcing all of the higher level ranks to see it as well? I would appreciate this greatly.
Official DKPSystem.com Comments
No official comments yet
I came up with a workaround for this on my own, but something less hackish would be preferable. It may also be beneficial to others.
This is a cool suggestion. I always liked the idea of having the litle quest thing appear over Thrall.


--
Ieyasu - Organizer, Ex Cineribus
If you don't mind sharing, how did you accomplish this?

I tried using IfRank in the html of a menu item I created on the side of the site... but it's not working there.


--
Followers of Nobility
<!--System:IfRank:8-->
<!-- 
<!--System:EndIfRank-->
INSERT HTML HERE
(everyone will see this)
<!--System:IfRank:8-->
 -->
INSERT HTML HERE
(only ranked people see this)
<!--System:EndIfRank-->

This is how I got around the problem I mentioned above. Are you trying to do something similar or did you just not know how to properly use the IfRank command? The rank number will depend on how you have the rankings setup on your site.
Alrighty, a fix is posted.

<!--System:IfNotRank:8-->
Stuff to show all ranks lower than 8, but not including 8
<!--System:EndIfNotRank-->


--
It's all in the reflexes.
I made a menu on the right side of my site using Menu Administration. Right now I have it set to be visible to Officer+. It's function is a 'quick admin panel' to access the most common Admin functions from anywhere on the site, without having to go into the normal Admin menu.

I wanted to put some Admin functions in there that officers don't have access to, like the site layout, because right now I have a separate menu for Admins. I was looking to combine the two and use the IfRank to show only what they have access to... I wanted the DKP section and Misc Admin to only show to those with rank 2 on the site. Officers would see News & User Account Admin with rank 5.

However, no matter how I set it, everything in the menu is visible to everyone. It seems to just be checking the Menu setting on who can see it and then ignoring any IfRanks inside. Have you tried anything like this?

Quote
News:
Create - Edit

User Account Admin:
Read Me First!
Accounts - Characters
Site Access History

DKP:
Upload Raid - Attendence
Purchases - Adjustments
Need Help? - Issues

Misc Admin:
Menu - OAdm - SAdm - Files
Prog - Rules - GSG - WoS
Wiki - LBP - Status Updates


I also have a News post set to be visible to everyone and stickied, and in the post I have the following:
<!--System:IfNotRank:20-->
<div style='background:#530404;color:#ffffff;height:100%;width:100%'>New Members: Please be sure to <a href="dynpage.php?id=45">read this guide</a> before registering or asking questions.</div>
<!--System:EndIfNotRank-->
<!--System:IfRank:20-->
<br><div style='background:#530404;color:#ffffff;height:100%;width:100%'>We need your help to keep the Ventrilo server and the website up and running. If you are interested in helping out, please <a href="dynpage.php?id=54">click here</a> for more information.</div>
<!--System:EndIfRank-->

However, it's not working either. Is it because the site does not check permissions inside of something already set? If not, can it be made to do so? Trying to save space and not clutter the site up with too many stickies and menus.


--
Followers of Nobility
Quote
However, it's not working either. Is it because the site does not check permissions inside of something already set? If not, can it be made to do so? Trying to save space and not clutter the site up with too many stickies and menus.


The commands only work inside the advanced layout options. They don't work inside custom HTML in menus, or in new HTML pages.


--
It's all in the reflexes.
Ahh, that explains it then. Any chance for this to be added or is it not possible?


--
Followers of Nobility
Quote by Chops
Alrighty, a fix is posted.

<!--System:IfNotRank:8-->
Stuff to show all ranks lower than 8, but not including 8
<!--System:EndIfNotRank-->


Can you use a combination of these to produce something like 'show this to everyone flagged full member thru and counting officer'?


--
Followers of Nobility
Yup.


<!--System:IfRank:8-->
	<!--System:IfNotRank:3-->
		Show this text to anyone with rank 8,7,6,5, or 4
	<!--System:EndIfNotrank-->
<!--System:EndIfRank-->



--
It's all in the reflexes.


[Back to Index]