• 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

Member List only for Members

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

it is possible to disable the member list for users (anonymous) which aren't log on?

If there is no config switch at which position can I change this in the source code?

Thanks for helping, Kai.
[originally posted on jforum.net by kj]
 
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

kj wrote:Hello everybody,

it is possible to disable the member list for users (anonymous) which aren't log on?

If there is no config switch at which position can I change this in the source code?

Thanks for helping, Kai.


The files named "user_list.htm" and "user_profile.htm" need to be edited.

The code below will show a nice box with the message, and a link back to the main JForum page. You can copy/paste the code snippets to the two files that need to be updated.

NOTE: you will need to change the "/jforum-2.1.8/" in the code sample to the directory name of your JForum install directory!!

At the top of the files, add the code in red below to the existing code (existing code is shown in black, new code in red):
<!-- <br /> <#include "js/utils.js"/> <br /> <br /> -->
</script>

<#if logged>

<#include "karma_search.inc.htm">



Then at the end of the files insert this code in red:

<table > <tr> <td ><#if thisPage?exists><@pagination.doPagination "${action}", -1/></#if></td> </tr> </table> <#else> <table border="0" > <tr> <td class="bodyline"> <table border="0" > <tr> <td class="nav">Forum Index</td> </tr> </table> <table class="forumline" border="0"> <tr><th> </th> </tr> <tr> <td class="row1"> <table border="0"> <tr> <td >Sorry, you must be logged in to see Member information!

</td> </tr> <tr> <td> </td> </tr> <tr> <td >Forum Index </td> </tr> </table> </td> </tr> </table> </td> </tr> </table>
</#if>


<#include "bottom.htm"/>


[originally posted on jforum.net by GatorBait3]
 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic