Author Topic: User Profile in a new windows  (Read 4669 times)

0 Members and 1 Guest are viewing this topic.

Offline davy_74

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
User Profile in a new windows
« on: December 24, 2007, 06:12:22 PM »
Hi folks

Merry Christmas for all of you, and my best wishes for the new comming year!!!



I have a question ... a dumb one. In details, in the table where appears the data of the selected picture you are viewing at full resolution, there is a link to the owner's profile of the picture. I want that link opens in the parent window, because my details page open in a new browser. I need to add
target="_parent" to this code, but it doesn't work. Somebody can help me? 

 $user_name_link = "<a href=\"".$site_sess->url($user_profile_link)."\">".$user_name."</a>";


Cheers

Davy

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: User Profile in a new windows
« Reply #1 on: December 25, 2007, 08:20:49 PM »
use target="_blank" not target="_parent"

Offline davy_74

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: User Profile in a new windows
« Reply #2 on: December 26, 2007, 01:59:09 PM »
OK, I know that.
The problem is integrate

target="_blank" not target="_parent"

in this sentence

$user_name_link = "<a href=\"".$site_sess->url($user_profile_link)."\">".$user_name."</a>";

Cheers

David

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: User Profile in a new windows
« Reply #3 on: December 26, 2007, 05:00:12 PM »
$user_name_link = "<a href=\"".$site_sess->url($user_profile_link)."\" target=\"_blank\">".$user_name."</a>";