Twiebie |
|
---|---|
I'm trying to get a seperate Quote button below every post but I have a problem with the button still being displayed when a user is not logged in. <p>FORUMS_POSTS_ROW_TEXT}</p>
I tweaked the class "quote_button" to make it look like a button: |
|
Dieser Beitrag wurde von Twiebie (am 2. April 2011, 03:51, vor 13 Jahre) bearbeitet |
Trustmaster |
|
---|---|
It's possibly if you explicitly substitute {FORUMS_POSTS_ROW_QUOTE} with the link:
<a href="forums.php?m=posts&s={PHP.s}&q={PHP.q}"e={PHP.row.fp_id}&n=last#np">{PHP.L.Quote}</a>
May the Source be with you!
|
Twiebie |
|
---|---|
Thanks for the reply but it's not really a solution. Replacing {FORUMS_POSTS_ROW_QUOTE} with the link you provided will still show the Quote button to guests that are not logged in. |
Trustmaster |
|
---|---|
Sorry, I misunderstood you. If you want to hide the button from guests, use a conditional:
<p>FORUMS_POSTS_ROW_TEXT}</p>
{FORUMS_POSTS_ROW_UPDATEDBY}
<!-- IF {PHP.usr.id} > 0 -->
<div class="quote_button">
{FORUMS_POSTS_ROW_QUOTE}
</div>
<!-- ENDIF -->
May the Source be with you!
|
Twiebie |
|
---|---|
Works perfectly, tnx! |