View Full Version : Comments link target?
Kenneth K
01-16-2005, 12:01 PM
I don't know if this has been brought up before but the target for the homepage links in the comments is off. It opens in the same window and that's fine if the comments are not displayed in a popup but mine are. I'd like the target to be a new page so a simple '_blank' would do I guess. I've looked in the code but as usual I didn't find something.
Where do I look?
/Kenneth
Connie
01-16-2005, 01:11 PM
Kenneth,
try this in the comment-template.html:
<a href='#' onClick='self.close();'>close window</a>
in a popup-comment-window and not the "javascript:history(back)...."
Kenneth K
01-16-2005, 01:36 PM
Thank you for the reply Connie but I really don't understand much of what you are saying... :wink:
You do know what I want right? When someone comments on my photos their website link opens in the comments window. I would like it to open in a separate window.
/Kenneth
turnover
01-16-2005, 02:30 PM
Go to the line 289 in index.php and replace this code
$comment_name = "<a href='$comment_url' title='$lang_visit_homepage'>$comment_name</a>";
to this :
$comment_name = "<a href='$comment_url' title='$lang_visit_homepage' target='_blank'>$comment_name</a>";
Connie
01-16-2005, 02:50 PM
Sorry, I did not get the point :oops:
Kenneth K
01-16-2005, 03:08 PM
No worries, Connie. :)
turnover - I found the code at line 290 and put in the target. Thank you it works fine now :lol:
/Kenneth
turnover
01-16-2005, 05:28 PM
ok :lol:
i have maybe already modified this file :lol:
Anonymous
02-03-2005, 04:00 PM
Here's my problem with the comment window. If I put a link in my photo notes, and the user clicks this link while in the comment window, it'll try to open the page in the comment popup window (not good). Any ideas on how to fix this?
Trouble is,
$comment_name = "<a href='$comment_url' title='$lang_visit_homepage' target='_blank'>$comment_name</a>";
only works in IE. I couldn't get it to work in Firefox.
Connie
02-03-2005, 05:38 PM
Please check this out: look into your comment_template.html:
do you use this code
<i><b><IMAGE_TITLE></b></i>
<br /><IMAGE_THUMBNAIL>
then open index.php, look around line 135:
$image_thumbnail = "<a href='$PHP_SELF?showimage=$image_id'><img src='thumbnails/thumb_$image_name' alt='$image_title' title='$image_title' width='$local_width' height='$local_height' /></a>";
and change it to
$image_thumbnail = "<a href='$PHP_SELF?showimage=$image_id' target='_blank'><img src='thumbnails/thumb_$image_name' alt='$image_title' title='$image_title' width='$local_width' height='$local_height' /></a>";
this will work
otherwise give us the URL of your photoblog, ok?[/quote]
Birdie
02-08-2005, 05:20 PM
I've been trying to fix this problem too. Problem is nowhere in my index.php do I have a line that reads $image_thumbnail or $comment_name
I've used the search function as well as going to the lines indicated. Nadda. I don't have that code in my index.php
I'm using
Pixelpost version 1.3
admin/index.php version 1.7a
Any ideas?
Birdie
02-08-2005, 05:31 PM
Oh Sheesh......nevermind.
I was looking in admin>index.php now the main directory index.php.
:oops:
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.