|
#1
|
|||
|
|||
|
Comments link target?
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
__________________
http://www.pinx.dk/photoblog/ |
|
#2
|
|||
|
|||
|
Kenneth,
try this in the comment-template.html: Code:
<a href='#' onClick='self.close();'>close window</a> |
|
#3
|
|||
|
|||
|
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
__________________
http://www.pinx.dk/photoblog/ |
|
#4
|
|||
|
|||
|
Go to the line 289 in index.php and replace this code
Code:
$comment_name = "<a href='$comment_url' title='$lang_visit_homepage'>$comment_name</a>"; Code:
$comment_name = "<a href='$comment_url' title='$lang_visit_homepage' target='_blank'>$comment_name</a>";
__________________
TurNover - PhotoBlog NEW REOPEN |
|
#5
|
|||
|
|||
|
Sorry, I did not get the point
ops:
|
|
#6
|
|||
|
|||
|
No worries, Connie.
![]() turnover - I found the code at line 290 and put in the target. Thank you it works fine now :lol: /Kenneth
__________________
http://www.pinx.dk/photoblog/ |
|
#7
|
|||
|
|||
|
ok :lol:
i have maybe already modified this file :lol:
__________________
TurNover - PhotoBlog NEW REOPEN |
|
#8
|
|||
|
|||
|
linking to a webpage in the comment popup
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?
|
|
#9
|
|||
|
|||
|
Trouble is,
Code:
$comment_name = "<a href='$comment_url' title='$lang_visit_homepage' target='_blank'>$comment_name</a>"; |
|
#10
|
|||
|
|||
|
Please check this out: look into your comment_template.html:
do you use this code Code:
<i><b><IMAGE_TITLE></b></i> <br /><IMAGE_THUMBNAIL> Code:
$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>"; Code:
$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>"; otherwise give us the URL of your photoblog, ok?[/quote] |
| Post Reply |
| Thread Tools | |
|
|