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] How can I add the text protected forum in the board index?



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

1
Offline

  Van-Helsing

Van-Helsing
★Moderator★
★Moderator★
  • Description:
Hi,
How can I add the text protected forum in the board index like this http://prntscr.com/460dsx ?

  • Information:
Forum:http://linux-team.forumgreek.com/Version:PUNBB
Type:Request a codeTags:protected,forum,board,index?

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

2
Offline

  Shadow

Shadow
Administrator
Administrator

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

3
Offline

  nanako

nanako
Punbb Guru
Punbb Guru
I can help but I don't know if shadow allow me to do this...

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

4
Offline

  Van-Helsing

Van-Helsing
★Moderator★
★Moderator★
Hello,
I was follow the Shadow's tutorial https://punbb-design.forumotion.com/t550-javascript-forum-protect-v102507014-jq191#3287 but it is not working. Can you help me please?

Best Regards,
Dark-Avenger

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

5
Offline

  Shadow

Shadow
Administrator
Administrator
I don't think you followed it right, since for me it's working as intended.

[Solved] How can I add the text protected forum in the board index? UHTmlyw

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

6
Offline

  Van-Helsing

Van-Helsing
★Moderator★
★Moderator★
Hello Shadow,
I put this code in javascript:
Code:
/*
* 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 = 'Kάδος Ανακύκλωσης';
            var Message = 'Forum Protected!';
            $('.pun .main-content .statused tr:contains("' + ForumName + '") td.tcr').html('<b>' + Message + '</b>');
        }
    });
and checked In the HomePage.

How can I fix it?
Is it only for guests? Can I set it for members too using the userlevel?

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

7
Offline

  Shadow

Shadow
Administrator
Administrator
Forum with name Kάδος Ανακύκλωσης doesn't exist on forum list.
PS: This tutorial applies only to guests.

[Solved] How can I add the text protected forum in the board index? HOXwEjB

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

8
Offline

  Van-Helsing

Van-Helsing
★Moderator★
★Moderator★
OK I found where is the problem the forum must have the permissions to be visible on guests to work the javascript. So that is solved.

But now the problem is the userlevel I need some forums with this option.

Update1:
I have adapted the javascript.

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

9
Offline

  Van-Helsing

Van-Helsing
★Moderator★
★Moderator★
Hello,
I have solved the problem, please close this topic.

With Best Regards,
Dark-Avenger

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

10
Offline

  Guest

Anonymous
Guest
[sucesso="Marked as Solved"]The question(s) in this topic have been answered and the owner has been able to solve the problem. Because of this, the topic has been marked as Solved.

If you have further questions, please open a new topic.[/sucesso]

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

11
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