Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Javascript] Forum Protect v1.02507014-jq1.9.1



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  Shadow

avatar
Administrator
Administrator


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



- 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 ForumName = 'Name of forum';[/ic] - Set the name of the wanted for to be protected. For example: Announcements.
[ic]var Message = 'Forum Protected!';[/ic] - This is the message which will appear on protected forum.

- Preview:





© PunBB Design


If you have any questions related to this topic create a topic with the following title:
Forum Protect

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

2
Offline

  Van-Helsing

avatar
★Moderator★
★Moderator★
Thank you very much is very usefull.

Powered by PunBB
Currently 0 users have thanked Van-Helsing for this post:

3
Offline

  matonskie23

avatar
Newbie
Newbie
not working in me...

Powered by PunBB
Currently 0 users have thanked matonskie23 for this post:

4
Offline

  Google Bot

avatar
Newbie
Newbie
thanks

Powered by PunBB
Currently 0 users have thanked Google Bot for this post:

5
Offline

  Virus

avatar
★Moderator★
★Moderator★
@matonskie23 wrote:not working in me...

[infos="Questions and Problems"]Hello,

You have to create a new topic to Questions & Problems referring to this post. That way other members with the same question will find the answers easier in the correct category.[/infos]

Powered by PunBB
Currently 0 users have thanked Virus for this post:

6
Offline

  tommycoo

avatar
Punbb Senior
Punbb Senior
this is just works for guest is this possible to make it like VIP subforum like this forum

Powered by PunBB
Currently 0 users have thanked tommycoo for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum