Resource icon

Staff Only! Staff Only!

Matthew Hawley

Well-known member
Matthew Hawley submitted a new resource:

Staff Only! Staff Only! - Places a block over a node.

Okay, so the title and description might be a little confusing, so hopefully this picture will make it clearer.

StiH6zW.png


1. Go to forum_list and find:
Code:
<xen:hook name="forum_list_nodes">

2. Add this right above it:
Code:
<xen:if is="{xen:helper ismemberof, $visitor, 2}"><div class="staffOnly">
<h3 style="font-size:20px;color: white;font-weight: bold;margin-left: 23%;padding-top: 40px !important;">Only cool people get to come in here.</h3>...

Read more about this resource...
 
This certainly a good idea will use this not so much for staff forums but will change to members upgrades blanking out nodes users don't have access to, this way they will see the node they are aspiring to become
 
eLYk0ZS.png

This is what I'm actually using as the text. I figured most people wouldn't put that there so i used "Staff Only! Staff Only!"

I'm trying to think of something funnier to use...
 
I have played with the code a bit but can't get it to work properly.

After following the instruction I get a white gap on the top of the node list about the size of the cover. Even after putting the css in place correctly over the private forum the white gap stays.

Secondly when i resized the browser (i am on responsive) the cover moved away from the forum I was hiding. Does this only work on non-responsive forums?

The idea is very cool though (y)
 
Top Bottom