4
Below works if the text will be entered with the standard editor within xoops.
The below code is usable within every module when you enter text by standard xoops editor.
Add BBcode [hide]your text hide for guests, but visible for logged registered users[/hide]
Text within hide brackets will only be visible for logged in registered users.
Open: xoops/class/module.textsanitizer.php
Look for line 344
function xoopsCodeDecode( $text, $allowimage = 1 )
{
$patterns = array();
$replacements = array();
Replace the above code with
This is an old trick I grabbed somewhere. Don't know where I got it from but saved it.
Cannot garanteu if this trick still works.
Dont forget to upload a new image hidden.gif in the appropiate dir.
Otherwise mamba's code works very well.