Hide quote (or other table) for guest ? - نوشته شده در (563 Views)
Starting Member
Manx
مطلب: 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 ; )
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Junior Member
ILLHILL
مطلب: 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
<
نوشته شده در
Support Moderator
Shaggy
مطلب: 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.”
نوشته شده در
Starting Member
Manx
مطلب: 2
2
Thanks. I thought of doing that.
@+<
The force is with me ; )
نوشته شده در
Support Moderator
Shaggy
مطلب: 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.”
 
شما باید یک متن وارد کنید