Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 01-16-2005, 12:01 PM
Kenneth K Offline
pp regular
 
Join Date: Oct 2004
Posts: 49
Send a message via MSN to Kenneth K
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/
Reply With Quote
  #2  
Old 01-16-2005, 01:11 PM
Connie
Guest
 
Posts: n/a
Kenneth,

try this in the comment-template.html:

Code:
<a href='#' onClick='self.close();'>close window</a>
in a popup-comment-window and not the "javascript:history(back)...."
Reply With Quote
  #3  
Old 01-16-2005, 01:36 PM
Kenneth K Offline
pp regular
 
Join Date: Oct 2004
Posts: 49
Send a message via MSN to Kenneth K
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/
Reply With Quote
  #4  
Old 01-16-2005, 02:30 PM
turnover Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Paris, France
Posts: 136
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>";
to this :
Code:
$comment_name = "<a href='$comment_url' title='$lang_visit_homepage' target='_blank'>$comment_name</a>";
__________________
TurNover - PhotoBlog NEW REOPEN
Reply With Quote
  #5  
Old 01-16-2005, 02:50 PM
Connie
Guest
 
Posts: n/a
Sorry, I did not get the point ops:
Reply With Quote
  #6  
Old 01-16-2005, 03:08 PM
Kenneth K Offline
pp regular
 
Join Date: Oct 2004
Posts: 49
Send a message via MSN to Kenneth K
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/
Reply With Quote
  #7  
Old 01-16-2005, 05:28 PM
turnover Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Paris, France
Posts: 136
ok :lol:

i have maybe already modified this file :lol:
__________________
TurNover - PhotoBlog NEW REOPEN
Reply With Quote
  #8  
Old 02-03-2005, 04:00 PM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
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?
Reply With Quote
  #9  
Old 02-03-2005, 04:38 PM
andy Offline
pp regular
 
Join Date: Dec 2004
Location: Minnesota, USA
Posts: 29
Trouble is,
Code:
$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.
Reply With Quote
  #10  
Old 02-03-2005, 05:38 PM
Connie
Guest
 
Posts: n/a
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>
then open index.php, look around line 135:
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>";
and change it to
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>";
this will work

otherwise give us the URL of your photoblog, ok?[/quote]
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:55 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs