View Full Version : Download Manager Emails
HeavyEddie
01-07-2006, 01:33 PM
I am setting up DM 1.4 and thought it would be nice to have some of the file details included in Emails.
Find the following in downloads.php
********$subject**= 'New file submitted to your website!';
********$message**= 'A new file has been submitted to your files directory.';
Replace with
********$subject**= $author . ' submitted a new file to your website!';
********$message**= 'A new file has been submitted to your files directory.
********
**** Author: ' . $author . '
******Title: ' . $title . '
Description: ' . $description;
My first code SD hack or anything... let me know if I broke some rules or something :)
thomas
01-07-2006, 02:25 PM
cool.
another idea is also the url of the site, time and date stamp as well.
good hack
HeavyEddie
01-07-2006, 02:55 PM
Ahhh, yes. Will do. Brings up a good point.
I wonder if it is possible to link directly to the download manger admin plugin? That way no navigation would be needed to approve.
thomas
01-07-2006, 11:47 PM
<div class='quotetop'>QUOTE(HeavyEddie @ Jan 8 2006, 01:55 AM) 2720</div>
Ahhh, yes. Will do. Brings up a good point.
I wonder if it is possible to link directly to the download manger admin plugin? That way no navigation would be needed to approve.
[/b]
I wouldnt directly link to the plugin, i would link to the admin panel, and then navigate from there. Here is the code for the url link...
**** $message .= "\n\nDate: ".gmdate("l dS of F Y h:i:s A")."\r\n\n";
**** $message .= "Location: http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
HeavyEddie
01-10-2006, 10:11 PM
Thanks Thomas, I overlooked your response. I had the date worked out but must admit was having some problems figuring out the URL code. You rock!
Quick question about subdreamer etiquette? For something like this do folks update the original post or just append to the end. Different forums... different styles :)
thomas
01-11-2006, 02:44 AM
i usually add to the end, because you can track your progess throughout the post
RainX
01-11-2006, 05:05 AM
Is it possible to make dl manager 1.4 like auto create topics in a specified forum? I havnt tried it yet but was wondering if this was possible
thomas
01-11-2006, 05:27 AM
<div class='quotetop'>QUOTE(RainX @ Jan 11 2006, 04:05 PM) 2855</div>
Is it possible to make dl manager 1.4 like auto create topics in a specified forum? I havnt tried it yet but was wondering if this was possible
[/b]
im not sure what your trying to do? can you explain yourself more?
kushaaal
01-11-2006, 10:08 AM
Auto creation of new post is a great idea. The moment new file is submitted in the download manager, it should automatically create a forum topic, that following file has been submitted in download module.
REgards,
thomas
01-11-2006, 01:30 PM
lol ok. I like the idea. but for users like me who dont use forums for their sd, it seems like a waste of time and effort ??
kushaaal
01-11-2006, 01:34 PM
and for those who are using forums-- It's mod of a life time! I tell you seriously, a lot of time one need to go PMing, posting in forum about new stuff at downloads, gallery or even links. Also if there is a software newly updated/uploaded, it will create a topic for memebrs to talk about.
Well, it cannot be waste as you guys had already created that for news plugin ;)
william
01-11-2006, 05:24 PM
I am with the Doc on this one, a mod to the plug in to post in to your forums would be ideal...this way the community can chat about the file and have a direct link to the file. Actually the Doc brings up another good point about further CMS/Forums integration... if you have the option to create a new topic on any event in the CMS and then where to place it in your forums would be the next BEST step. His points about Download, pictures and links are the best examples and the most likely to need this sort of integration.
Thanks for the consideration and Thomas, try not to be so small minded certain things are NOT a waste of time, they are much needed in a different environment than your own.
William
HeavyEddie
01-11-2006, 06:19 PM
Lates with Thomas' suggestions. Thanks for the help Thomas.
********$subject**= $author . ' submitted a new file to your website!';
********$message**= 'A new file has been submitted to your files directory.
****** Site: ' . http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] . '
**** Author: ' . $author . '
******Title: ' . $title . '
****** Date: ' . gmdate("l dS of F Y h:i:s A") . '
Description: ' . $description . ';
<div class='quotetop'>QUOTE(Dr. Kushal Pathak @ Jan 11 2006, 05:08 AM) 2862</div>
Auto creation of new post is a great idea. The moment new file is submitted in the download manager, it should automatically create a forum topic, that following file has been submitted in download module.
REgards,
[/b]
I really like this idea as well.
Obviously, it shouldn't be created until approved. I gotta wonder how hard this can be... as someone else has said... it has been done for news.
Terminator1138
01-11-2006, 07:42 PM
Removed...
william
01-11-2006, 08:12 PM
Well getting back on topic I added the above code segement
$subject**= $author . ' submitted a new file to your website!';
********$message**= 'A new file has been submitted to your files directory.
****** Site: ' . http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] . '
**** Author: ' . $author . '
******Title: ' . $title . '
****** Date: ' . gmdate("l dS of F Y h:i:s A") . '
Description: ' . $description . ';
and got
Parse error: parse error, unexpected ':' in /home/content/s/c/s/scsradmin/html/plugins/p13_download_manager/downloads.php on line 1039[/b]
any Clues?
abcohen
01-11-2006, 08:45 PM
after
' . $description . '
but before the ; you need to add another '
HeavyEddie
01-12-2006, 12:42 AM
OK, really sorry about that typo... I've cleaned it up a wee bit and copied it directly out of my script this time.
Find the following in downloads.php
********$subject**= 'New file submitted to your website!';
********$message**= 'A new file has been submitted to your files directory.';
Replace with
********$subject**= $author . ' submitted a new file to your website!';
********$message**= "A new file has been submitted to your files directory.\n\n";
****$message .= "** Location: http://".$_SERVER['HTTP_HOST']."/admin\n\n";
****$message .= "**** Author: " . $author . "\n";
****$message .= "******Title: " . $title . "\n";
****$message .= "****** Date: " . date('m/d/y h:i:s A T') . "\n";
****$message .= "Description: " . $description;
kushaaal
01-12-2006, 08:39 AM
<div class='quotetop'>QUOTE(william @ Jan 11 2006, 10:54 PM) 2876</div>
Thanks for the consideration and Thomas, try not to be so small minded certain things are NOT a waste of time, they are much needed in a different environment than your own.
William
[/b]
Thomas might now consider having a forum now with your persuasion. :P
The integration of download with forum I found in invisionize.com for IPB! And now also in ipsbeyond.com. DId anybody check that?
thomas
01-13-2006, 12:18 PM
hehe sorry guys, i didnt know my comments would attract that much critisim. all good now
kushaaal
01-13-2006, 04:50 PM
<div class='quotetop'>QUOTE(thomas @ Jan 13 2006, 05:48 PM) 2937</div>
hehe sorry guys, i didnt know my comments would attract that much critisim. all good now
[/b]
One good thing: You shaked this forum board ;)
thomas
01-14-2006, 12:39 AM
<div class='quotetop'>QUOTE(Dr. Kushal Pathak @ Jan 14 2006, 03:50 AM) 2962</div>
One good thing: You shaked this forum board ;)
[/b]
GOOD! Lets get all these 1000 members talkin. Seems that only 10 - 20 are active!
kushaaal
01-14-2006, 03:14 AM
<div class='quotetop'>QUOTE(thomas @ Jan 14 2006, 06:09 AM) 2972</div>
GOOD! Lets get all these 1000 members talkin. Seems that only 10 - 20 are active!
[/b]
You need to create some more shaky posts ;) offcourse along with your quality post which you normally do.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.