2014-07-25, 13:37
Tutorial: Forum Protect |
Like category protect, this will give you permissions to set protect message for your forum individually.
--> Tutorials, tips and tricks <--
Forum Protect
Forum Protect
1º - Javascript:
Placement: In homepage
- Code:
[panda=js]/*
* Application: Forum Protect
* Description: Forum protect, similar to category protect.
* Version: 1.02507014-jq1.9.1
* Copyright (c) 2014 PunBB.biz
*/
$(function () {
if (_userdata["session_logged_in"] == 0) {
var ForumName = 'Name of forum';
var Message = 'Forum Protected!';
$('.pun .main-content .statused tr:contains("' + ForumName + '") td.tcr').html('<b>' + Message + '</b>');
}
});
[ic]var Message = 'Forum Protected!';[/ic] - This is the message which will appear on protected forum.
2º - Preview:
© PunBB Design
If you have any questions related to this topic create a topic with the following title: Forum Protect |