• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

How to restrict access to Member Listing page

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm thinking of using Jforum for our internal company forum, hence would not like non-members to see the member listing.
Is there a way to restrict permissions on the member listing page, or is ther no other way but to delte the link to it.
If so, how do I do it?

Thanks in advance.
[originally posted on jforum.net by goldhorse]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can make a small change to the template: open the file templates/default/user_list.htm, and there restrict the access to logged users using this:



Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should also add this in the "user_profile.htm" file too.
[originally posted on jforum.net by GatorBait3]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rafael, GatorBate3

Thanks for the quick reply.
I'm not very familiar with coding, as we don't have webmaster per se.
Could you help me out a little further here?
What specifically do I have to put in between the if statement?
Do you mean I have to go to the member listing page, right click and show the source, and copy and paste the whole thing in there?

Regards,
[originally posted on jforum.net by goldhorse]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

goldhorse wrote:Hi Rafael, GatorBate3

Thanks for the quick reply.
I'm not very familiar with coding, as we don't have webmaster per se.
Could you help me out a little further here?
What specifically do I have to put in between the if statement?
Do you mean I have to go to the member listing page, right click and show the source, and copy and paste the whole thing in there?

Regards,


No. You need access to the server and JForum application files on the server where JForum is installed. Then you will need to edit the YOUR_JFORUM_INSTALL_PATH_GOES_HERE/templates/default/user_list.htm and user_profile.htm files. You may want to talk to the person that installed and configured JForum for you to get further details on how to do that.

[originally posted on jforum.net by GatorBait3]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

GatorBait3 wrote:

goldhorse wrote:Hi Rafael, GatorBate3

Thanks for the quick reply.
I'm not very familiar with coding, as we don't have webmaster per se.
Could you help me out a little further here?
What specifically do I have to put in between the if statement?
Do you mean I have to go to the member listing page, right click and show the source, and copy and paste the whole thing in there?

Regards,


No. You need access to the server and JForum application files on the server where JForum is installed. Then you will need to edit the YOUR_JFORUM_INSTALL_PATH_GOES_HERE/templates/default/user_list.htm and user_profile.htm files. You may want to talk to the person that installed and configured JForum for you to get further details on how to do that.




Hi GatorBait3,

Actually I'm the one who installed it.
I know how to go to the files and edit them, I just don' understand what to put inside "html code of user listing goes here".

Could you help me out on that part?

Thank You,
[originally posted on jforum.net by goldhorse]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please disregard my last question, I think I got it. ops:
Thanks for your help.
[originally posted on jforum.net by goldhorse]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For the benefit of others wanting to do this in the future...

It's more user friendly if you also disable the "Member Listing" item in the header when you have the functionality disabled. Add the same #if block around the img, a, and nbsp for that item in templates/default/header.htm.
[originally posted on jforum.net by blaine]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

goldhorse wrote:Please disregard my last question, I think I got it. ops:
Thanks for your help.



Could you please show me the "html code of user listing", Thanks.
[originally posted on jforum.net by collin_chu]
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic