Hide quote (or other table) for guest ? - Posted (565 Views)
Starting Member
Manx
Posts: 2
2
Hello everybody,

I seek/search to hide quote (or other table) in the post for the guest.
There is a solution, a MOD ?

Thanks.
Manx

<moved to="MOD Add-On Forum (W/O Code)" by="Shaggy" /><
The force is with me ; )
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Junior Member
ILLHILL
Posts: 341
341
You should find out where the Quote table is displayed in which file exactly, then
add:

if mlev = 0 then
response.write "please register and/or log in"
end if

if mlev > 0 then

display the quote code part

That should do the trick

Greets, Dominic
<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
Easiest way to do it would be to move the parsing of the [quote] tags to the extraTags function and use a check on mlev to determine whether or not to display the quote. Alternatively, you can use the same method to do as Ill' suggested and display a custom message instead of the quote.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Starting Member
Manx
Posts: 2
2
Thanks. I thought of doing that.
@+<
The force is with me ; )
Posted
Support Moderator
Shaggy
Posts: 6780
6780
Note, though, that any quotes you have in existing posts before you make this change will still be displayed to guests as they were parsed when the record was created in the database.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
 
You Must enter a message