Advertisement:

open attachments in new window?

Aloittaja ArkServer, tammikuu 22, 2006, 09:38:26 AP

« edellinen - seuraava »

ArkServer

How do i do that? i know i need to put _blank somewhere but i don't know what file i need to change.

ArkServer

I know its this line:                         


<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
               

Anyone know where to put the _blank?

SleePy

<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" target="_blank" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

ArkServer

Lainaus käyttäjältä: SleePy - tammikuu 22, 2006, 03:50:17 IP
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" target="_blank" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';

Thanks, but it doesn't work  :'(
When i click on the thumbnail it still shows up in the same page, stretching out the forum   :(

check: http://arkserver.servehttp.com/index.php?topic=625.0
login with test // test

1.1 rc 1

SleePy

srry

forgot to remove the onclick
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" target="_blank"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';

Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!


ArkServer

Any idea to remove the menu, statusbar etc and only show the window?

ArkServer

bumping.. because i know its not that hard but i don't know how.. just a matter of 1 line of code xD

Advertisement: