Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Gorospe] How to print image

Quote Reply
Re: [Gorospe] How to print image In reply to
The image opening is pretty simple.

Make a new template called print_image.html, with:

Code:
<html>
<head>
<title></title>
<script>
window.print();
</script>
</head>
<body>

<img src="<%image%>" />

</body>
</html>

then send them to that page using:

Code:
page.cgi?p=print_image;image=THE_IMAGE_URL

If you wanted to be a bit more secure, you could just pass the link ID, and then use my Load_Link function from ULTRAGlobals a call:

Code:
<%Plugins::ULTRAGlobals::Load_Link($ID)%>

that should then give you access to the whole link in the template (so you can show whatever image you want)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread How to print image Gorospe 7537 Mar 10, 2015, 8:23 AM
Thread Re: [Gorospe] How to print image
Andy 7462 Mar 10, 2015, 9:43 AM
Thread Re: [Andy] How to print image
Gorospe 7448 Mar 10, 2015, 9:50 AM
Thread Re: [Gorospe] How to print image
Andy 7452 Mar 10, 2015, 9:57 AM
Thread Re: [Andy] How to print image
Gorospe 7456 Mar 10, 2015, 10:13 AM
Thread Re: [Gorospe] How to print image
Andy 7451 Mar 10, 2015, 10:18 AM
Thread Re: [Andy] How to print image
Gorospe 7444 Mar 10, 2015, 10:25 AM
Thread Re: [Gorospe] How to print image
Gorospe 7436 Mar 10, 2015, 10:53 AM
Thread Re: [Gorospe] How to print image
Andy 7434 Mar 10, 2015, 11:02 AM
Post HRe: [Andy] How to print image
Gorospe 7435 Mar 10, 2015, 11:20 AM