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

[Solved] what is the code for this members only in category ?



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

1
Offline

  KiNGphx

avatar
Punbb Guru
Punbb Guru
-Details: hello punbb iwant to know how to do this and what code is this ? thanks Smile



-Forum Address: Jangkeunsukmindanao

-Forum Version: Punbb

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

2
Offline

  Guest

avatar
Guest
Use search before asking a question.

Thanks.

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

3
Offline

  Cesar

avatar
Punbb Junior
Punbb Junior
Hello.
Add this to you Javascript management:
Code:
[panda=js]$(function() {
if (document.getElementById('logout') == null) {
var sCategory = 'POSITION OF THE CATEGORY';
$('.main-content:eq(' + sCategory + ')').addClass('hanckiprotected');
}
});
And this your CSS
Code:
[panda=css].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;
}

Don't forget to modify "position of the category" with a valid number.

PS : For me doesn't work so good , i mean is still "protected" when i'm logged in.

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

4
Offline

  KiNGphx

avatar
Punbb Guru
Punbb Guru
Thanks its work Wink

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

5
Offline

  Cesar

avatar
Punbb Junior
Punbb Junior
@KiNGphx wrote:[link="/t377-what-is-the-code-for-this-members-only-in-category#2236"]Thanks its work Wink
You're welcome. Smile

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

6
Offline

  Shadow

avatar
Administrator
Administrator
Solved => Locked.

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

7
Offline

  Sponsored content



Powered by PunBB
Currently 0 users have thanked Sponsored content 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