cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
Link to attachment instead of attachement in email
January 13, 2012
8:22 am
SteveD
Guest

Hi guys,

 

Firstly this plugin is the best plugin I've ever dealt with. You do a FANTASTIC job on this.

 

The question I have is this:

 

I want to disable email attachements, but have a link to the file that's being stored in the uploads directory come across in the email (much like it does in the tracking section). At the moment it just displays the original file name, but not the link.

 

Is there anyway to include this in the email?

 

Much appreciated.

January 15, 2012
8:54 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

You may be able to pull it off by using the logic in my-functions.php

adminEmailTXT()
adminEmailHTML()
allow you to modify its contents at run-time.

  1. you need to include a placeholder in your admin message templates (>form configuration)
  2. in my-functions.php you need to enable the above functions and search/replace your placeholder with the link to your download file
  3. the location of your download file = known path + file name
    ( you need to assemble this string based on what's available in $cformsdata['data'] )
January 23, 2012
5:43 am
SteveD
Guest

Sweet thanks mate.

 

Do you guys have plans to increase the control of the email output more by any chance? I reckon that'd be a killer feature.

 

I have actually installed Wordpress on a site that didn't have scope for a CMS because it was a FASTER way to implement the 6 required complex forms using your plugin than coding them from scratch, so thanks for the hard work!

January 23, 2012
5:12 pm
Paul
Amsterdam, NL
Moderator
Forum Posts: 421
Member Since:
February 10, 2009
Offline

SteveD said:

Sweet thanks mate.

 

Do you guys have plans to increase the control of the email output more by any chance? I reckon that'd be a killer feature.

you can pretty much do anything with the email output, add your custom text, with variables or even modify it on the fly via custom routines in my-functions.php.

Paul. 

* Paul Silter
April 21, 2012
6:33 pm
Dermod
Guest

Hi there

 

I agree with SteveD, it's an amazing plugin, thank you so much.

 

I have the same question, but unfortunately I don't understand your answer!

 

I don't understand what a placeholder means. 

 

I don't see functions called either adminEmailTXT() or adminEmailHTML() in my-functions.php, to enable them. 

 

I see two lines commented out:

### "adminEmailTXT" $cformsdata = cforms datablock
### "adminEmailHTML" $cformsdata = cforms datablock
 

but I do not see actual functions.

 

I managed to get it to email me the data in  $cformsdata['data'] in order to see if I could find the file names of the files I uploaded, but I could not see them. This is a section of the test email:

           [Telephone number] => 01 70780808
           [$$$6] => Email
           [Email] => internet@iahip.org
           [$$$7] => Title of ad – four or five words
           [Title of ad - four or five words] => Schmooozing your way to healing

           [Banner or main Image[*5]] =>

           [$$$11] => Small Thumbnail (Featured)  image[*5]
           [Small Thumbnail (Featured)  image[*5]] =>
           [$$$12] => Brochure or flyer in PDF Format[*5]
           [Brochure or flyer in PDF Format[*5]] =>

 

I would be so grateful if you could provide an example, or even better if SteveD managed to do it, could he post it here?

 

Thank you so much

 

Dermod

April 22, 2012
4:43 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Just search for "adminEmailTXT", which is not a function per se, but a section within the my_cforms_logic() function.

The "placeholder" approach is only a mechanism to place some variable or placeholder or random text (whatever you want to call it) inside the admin message (via the form's configuration) to have that text/variable piece later replaced by something else.

April 24, 2012
2:14 pm
Dermod
Guest

Thanks

 

I guess this is where being an amateur PHP shows, I have no idea how to do this, or even what the answer means. 

 

The solution would enable a file upload facility on our website which would then generate an email instantly containing a URL to the uploaded file. 

 

I'd be willing to pay for the services of someone to write this! It would solve a complicated problem. 

 

Anyone?

 

Thanks

 

Dermod

April 29, 2012
10:42 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

You've got email.

December 19, 2012
4:41 pm
Christine
Guest

Please could you let me know how to do this too :-)  .  I have been searching for ages on how to make the admin email receive links to the actual files that have been uploaded.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
30 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3757

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5356

Posts: 18735

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)