Hide quote (or other table) for guest ? - Postet den (567 Views)
Starting Member
Manx
Innlegg: 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 ; )
   
 Sidestørrelse 
Postet den
Junior Member
ILLHILL
Innlegg: 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
<
Postet den
Support Moderator
Shaggy
Innlegg: 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.”
Postet den
Starting Member
Manx
Innlegg: 2
2
Thanks. I thought of doing that.
@+<
The force is with me ; )
Postet den
Support Moderator
Shaggy
Innlegg: 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.”
 
Du må legge inn en melding