Topic RSS
Related Topics
8:22 am
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.
8:54 am
March 6, 2005
OfflineYou 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.
- you need to include a placeholder in your admin message templates (>form configuration)
- in my-functions.php you need to enable the above functions and search/replace your placeholder with the link to your download file
- the location of your download file = known path + file name
( you need to assemble this string based on what's available in $cformsdata['data'] )
5:43 am
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!
5:12 pm
February 10, 2009
OfflineSteveD 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.
6:33 pm
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
4:43 pm
March 6, 2005
OfflineJust 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.
2:14 pm
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
10:42 am
March 6, 2005
OfflineMost Users Ever Online: 959
Currently Online:
90 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: 3549
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5158
Posts: 18388
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote











