This topic is locked

List minus

9/11/2006 4:24:07 PM
PHPRunner General questions
J
Jean author

Hello,

Is there a way to hide one or more columns to the guests when they run the list module ? Have I to modify the code or phprunner would help me ? I saw the way to list or to forbidd to list for the guests but not the way to hide just a part of the columns.

Jean

Sergey Kornilov admin 9/11/2006

You need to modify ..._list.php file for this purpose.
Open it in any text editor and find functions WriteTableHeader and LoopRs.
To hide a column from guest user use something like this:

<?php

if ($_SESSION["UserID"]!="Guest")

{

<td>
...
</td>

}

?>

J
Jean author 9/11/2006

You need to modify ..._list.php file for this purpose.

Open it in any text editor and find functions WriteTableHeader and LoopRs.
To hide a column from guest user use something like this:


Done, thank you !