Search Query
Display results as : Posts Topics
Advanced Search
Come as guest, stay as family.
Display results as :PostsTopics
Tags
You are not connected. Please login or register
Board Index » Forumotion » [Read Only] Questions & Problems »[Solved] [How to] Members only Note
Message [Page 1 of 1]
Hancki wrote:To PunBBJS: $(function() { if (document.getElementById('logout') == null) { var sCategory = 'POSITION OF THE CATEGORY'; $('.main-content:eq(' + sCategory + ')').addClass('hanckiprotected'); }}); In red, that's the number of your category. Imagine that the category that you want to protect is the third in your board, so you put the number 3. CSS: Code: .hanckiprotected:after { background: none repeat scroll 0px 0px rgba(255, 255, 255, 0.7); bottom: 0px; content: "Forum Protected"; font-size: 30px; left: 0px; line-height: 310px; position: absolute; right: 0px; text-align: center; top: 0px; z-index: 10;}.hanckiprotected { position: relative;} Cheers
$(function() { if (document.getElementById('logout') == null) { var sCategory = 'POSITION OF THE CATEGORY'; $('.main-content:eq(' + sCategory + ')').addClass('hanckiprotected'); }});
.hanckiprotected:after { background: none repeat scroll 0px 0px rgba(255, 255, 255, 0.7); bottom: 0px; content: "Forum Protected"; font-size: 30px; left: 0px; line-height: 310px; position: absolute; right: 0px; text-align: center; top: 0px; z-index: 10;}.hanckiprotected { position: relative;}
Rapid wrote:I found tutorial by Hancki Hancki wrote:To PunBBJS: $(function() { if (document.getElementById('logout') == null) { var sCategory = 'POSITION OF THE CATEGORY'; $('.main-content:eq(' + sCategory + ')').addClass('hanckiprotected'); }}); In red, that's the number of your category. Imagine that the category that you want to protect is the third in your board, so you put the number 3. CSS: Code: .hanckiprotected:after { background: none repeat scroll 0px 0px rgba(255, 255, 255, 0.7); bottom: 0px; content: "Forum Protected"; font-size: 30px; left: 0px; line-height: 310px; position: absolute; right: 0px; text-align: center; top: 0px; z-index: 10;}.hanckiprotected { position: relative;} Cheers
Rapid wrote:I've just tested on demo forum and it works, then it must be some kind of template errors in your forum.
Topic URL's
Similar topics
Permissions in this forum: You cannot reply to topics in this forum
Jump to: