To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

English version - Can I make links open in new page?

Macca - 09-07-2007, 09:11
Temat postu: Can I make links open in new page?
I have a couple of links on my site that I have added as forum topics using the ACP Config settings

I was wondering if there was a way to add "target=_blank" in order to get the link to open in a new window

fangoso - 19-07-2007, 14:34
Temat postu: Re: Can I make links open in new page?
Macca napisał/a:
I was wondering if there was a way to add "target=_blank" in order to get the link to open in a new window
me too...
mysiu - 20-07-2007, 19:30
Temat postu: Re: Can I make links open in new page?
fangoso napisał/a:
Macca napisał/a:
I was wondering if there was a way to add "target=_blank" in order to get the link to open in a new window
me too...

Yes, me too...

Knofel - 20-07-2007, 21:26

Open index_box.tpl and find inside:
Kod:
<span class="cattitle"><a href="{catrow.cathead.U_VIEWCAT}" class="cattitle">{catrow.cathead.CAT_TITLE}</a></span>

Replate that with:
Kod:
<span class="cattitle"><a target="_blank" href="{catrow.cathead.U_VIEWCAT}" class="cattitle">{catrow.cathead.CAT_TITLE}</a></span>

That should help ;)

fangoso - 20-07-2007, 21:46

Knofel napisał/a:
Open index_box.tpl and find inside:
Kod:
<span class="cattitle"><a href="{catrow.cathead.U_VIEWCAT}" class="cattitle">{catrow.cathead.CAT_TITLE}</a></span>

Replate that with:
Kod:
<span class="cattitle"><a target="_blank" href="{catrow.cathead.U_VIEWCAT}" class="cattitle">{catrow.cathead.CAT_TITLE}</a></span>

That should help ;)
no success...
Knofel - 20-07-2007, 22:25

Yeah that make Category opened in new page.. Here is proper version:
Open includes/functions_hierarchy.php and find:
Kod:
'L_FORUM_FOLDER_ALT' => $folder_alt,

After add:
Kod:
'NEW_WINDOW' =>  ( $tree['data'][$athis]['forum_link'] ) ? 'target="_BLANK"' : '',

Close file and open index_box.tpl then find inside:
Kod:
<a href="{catrow.forumrow.U_VIEWFORUM}"

Replace that wtih:
Kod:
<a {catrow.forumrow.NEW_WINDOW} href="{catrow.forumrow.U_VIEWFORUM}"

fangoso - 21-07-2007, 22:56

you are great... thx... :)


Powered by phpBB modified by Przemo © 2003 phpBB Group