• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic