• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Disable Member Listing Option

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to disable or hide the Member Listing menu option until after a person has logged into JForum? From a "security" type point of view, an anonymous user shouldn't be able to see the entire member list before registering / logging in.

PS - Very nice forum software - you're doing a great job with this!
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, thanks for the eulogies

About your question: there is no core support to it, but you can easily fix it yourself: open the file "templates/default/user_list.htm", and add the code



before



until the last <table> table (used for the pagination). Then close the statement adding



it will look like



Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rafael,

That works fine! Even though the "Member Listing" menu item still appears, clicking on it yields a blank page rather than a member listing.

Thanks for the fast response!!


[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And, rather than just having a blank page, added this to the bottom of the user_list.htm file:

<#if ! logged>

Sorry, you must be logged in to see the Member List!


</#if>

[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same works for Member profile

Tony
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it does! And that's a good idea too!

So the files named "user_list.htm" and "user_profile.htm" need to be edited (for those that can't find where this should go).

And rather than doing another <#if ! logged> clause, I changed to an <#else> for the message, which is also more "generic" to fit either file:

<#if logged>
.
. . . existing code is here ...
.

<#else>

Sorry, you must be logged in to see Member information!


</#if>

[originally posted on jforum.net by GatorBait3]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!