I don't know if I've changed something (I recently messed around with my comments.tpl file), but it used to be that a link given by someone in the comments form would open in a new window. Now, it opens in the same window.
This isn't a problem if a user is viewing comments on a specific post's URL, but if it's in the pop-up window, then you can see the problem.
What I want is for all user-links to open in a new window. I hope I'm explaining this enough, but what I mean is like this:
#2 User XXX (Link) on 2006-03-12 20:55
Where the bold Link opens in a new window.
Thanks!
User Link to open in new window?
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: User Link to open in new window?
Hi!
You could edit your comments.tpl file and replace this:
with this:
HTH,
Garvin
You could edit your comments.tpl file and replace this:
Code: Select all
(<a class="comment_source_url" href="{$comment.url}" title="{$comment.url|@escape}">Link</a>)
Code: Select all
(<a target=_blank class="comment_source_url" href="{$comment.url}" title="{$comment.url|@escape}">Link</a>)
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Not seeing it
This is the code that is currently in my comments.tpl file:
I don't see where I'm supposed to modify. =D{foreach from=$comments item=comment}
<a id="c{$comment.id}"></a>
<div id="serendipity_comment_{$comment.id}" class="serendipity_comment serendipity_comment_author_{$comment.author|@makeFilename} {if $entry.author == $comment.author}serendipity_comment_author_self{/if}" style="padding-left: {$comment.depth*20}px">
<div class="serendipity_commentBody">{$comment.body}</div>
<div class="serendipity_comment_source">
<a href="#c{$comment.id}" title="Link to comment #{$comment.trace}">#{$comment.trace}</a>
{if $comment.email}
<a href="mailto:{$comment.email}">{$comment.author|@default:$CONST.ANONYMOUS}</a>
{else}
{$comment.author|@default:$CONST.ANONYMOUS}
{/if}
{if $comment.url}
(<a href="{$comment.url}" title="{$comment.url|@escape}">Link</a>)
{/if}
{$CONST.ON}
{$comment.timestamp|@formatTime:$CONST.DATE_FORMAT_SHORT}
{if $entry.is_entry_owner}
(<a href="{$comment.link_delete}" onclick="return confirm('{$CONST.COMMENT_DELETE_CONFIRM|@sprintf:$comment.id:$comment.author}');">delete</a>)
{/if}
{if $entry.allow_comments}
(<a href="#serendipity_CommentForm" id="serendipity_reply_{$comment.id}" onclick="document.getElementById('serendipity_replyTo').value='{$comment.id}'; {$comment_onchange}">{$CONST.REPLY}</a>)
<div id="serendipity_replyform_{$comment.id}"></div>
{/if}
</div>
</div>
{foreachelse}
<div class="serendipity_center">{$CONST.NO_COMMENTS}</div>
{/foreach}
Brian
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Not seeing it
Modify this:
Regards,
Garvin
Code: Select all
(<a href="{$comment.url}" title="{$comment.url|@escape}">Link</a>)
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/