Gossamer Forum
Quote Reply
email
Hi,
I know links has the ability to upload a file to the server.
But,
is it possible, that users can attach a file when they do an entry in add.cgi.
This file should then be sent with link_added.eml to the admin!

Matthias

Matthias
gpaed.de

Last edited by:

Matthias70: Aug 19, 2007, 12:28 PM
Quote Reply
Re: [Matthias70] email In reply to
Hi,

It took a while to get the URL right, but you could use this in your /admin/link_added.eml template.

Just add this, replacing the bits in bold with the field name you want to include.

Code:
<%if Image%>
<%config.admin_root_url%>/admin.cgi?ID=<%ID%>&db=Links&cn=Image&do=view_file&id=<%ID%>&Image=<%Image%>
<%endif%>

That should do the job :)

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!
Quote Reply
Re: [Andy] email In reply to
Andy wrote:
Code:
<%if Image%>
<%config.admin_root_url%>/admin.cgi?ID=<%ID%>&db=Links&cn=Image&do=view_file&id=<%ID%>&Image=<%Image%>
<%endif%>

Hi Andy,
does this code work with word or zip files,too.
And is there a way to sent the file without database field, but just as attachment in the admin mail?
Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] email In reply to
Hi,

Quote:
does this code work with word or zip files,too.

Yup - it will work with any field / type (i.e image, zip, pdf etc)

Quote:
And is there a way to sent the file without database field, but just as attachment in the admin mail?

Not as far as I know, sorry.

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!