Author Topic: E-mail Notification - Notifies you when a new video has been submitted  (Read 2333 times)

0 Members and 1 Guest are viewing this topic.

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Sorry but I got another idea. ;D

There should be an E-Mail notification feature in the Admin panel that notifies you via E-Mail when a new video has been submitted to your site. This feature would be optional and can be activated using a check box.

What do you guys think?

-FireDart

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
that would be pretty cool... i would think this wount be that hard to code..... but im not to good at email functions... :-P

Offline simpsonking

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
    • Best Bricks
That's a good idear, that should only take a sec to code!

Offline ruffa

  • phpd Basic Member
  • **
  • Posts: 39
  • Karma: 0
    • View Profile
Re: E-mail Notification - Notifies you when a new video has been submitted
« Reply #3 on: January 06, 2010, 11:05:11 AM »
great idea, as otherwsie you have to login everyday to check!
better still make a auto approve function.....this should be very easy to do, i'm guessing....

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: E-mail Notification - Notifies you when a new video has been submitted
« Reply #4 on: January 06, 2010, 02:47:05 PM »
what about http://phpdirector.co.uk/forum/index.php/topic,221.0.html

would just take a few changes for the checkbox to send -mails or not.
also send e-mail to users when post and the register..lost password...

also check box to post video or approve video check box would just have to set the approved checked 0 uncheck 1 or something like it. then change the submit code
« Last Edit: January 06, 2010, 02:56:41 PM by winracer »
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+

Step 1

update add this to the en-gb.inc.php
Code: [Select]
$smarty->assign('LAN_200', 'Admin E-mail');
$smarty->assign('LAN_201', 'Send Admin E-mail On Each Submit');
$smarty->assign('LAN_202', 'Send Admin E-mail On Each Upload');
$smarty->assign('LAN_203', 'Send User E-mail On Submit');
$smarty->assign('LAN_204', 'Send User E-mail On Upload');

« Last Edit: March 02, 2010, 05:21:51 PM by winracer »
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Step 2

add this to option.tbl about the <!--Footer-->

Code: [Select]


<!--admin e-mail-->
<tr>
<td class="first"><strong>{$LAN_200}</strong></td>
<td class="last"><input name="aemail" type="text" value="{$options[options].aemail}" size="70" maxlength="200" /></td>

</tr>
<tr>
<td class="first"><strong>{$LAN_201}</strong></td>
<td class="last">
<label><input name="asubmit" type="radio" value="Yes" {if $options[options].asubmit eq "Yes"}checked="checked"{/if} />Yes</label>
<label><input name="asubmit" type="radio" value="No" {if $options[options].asubmit eq "No"}checked="checked"{/if} />No</label>
</td>
</tr>
<tr>
<td class="first"><strong>{$LAN_202}</strong></td>
<td class="last">
<label><input name="aupload" type="radio" value="Yes" {if $options[options].aupload eq "Yes"}checked="checked"{/if} />Yes</label>
<label><input name="aupload" type="radio" value="No" {if $options[options].aupload eq "No"}checked="checked"{/if} />No</label>
</td>
</tr>
<tr>
<td class="first"><strong>{$LAN_203}</strong></td>
<td class="last">
<label><input name="usubmit" type="radio" value="Yes" {if $options[options].usubmit eq "Yes"}checked="checked"{/if} />Yes</label>
<label><input name="usubmit" type="radio" value="No" {if $options[options].usubmit eq "No"}checked="checked"{/if} />No</label>
</td>
</tr>
<tr>
<td class="first"><strong>{$LAN_204}</strong></td>
<td class="last">
<label><input name="uupload" type="radio" value="Yes" {if $options[options].uupload eq "Yes"}checked="checked"{/if} />Yes</label>
<label><input name="uupload" type="radio" value="No" {if $options[options].uupload eq "No"}checked="checked"{/if} />No</label>
</td>
</tr>


« Last Edit: March 02, 2010, 08:23:26 PM by winracer »
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
step 3
go into mysql and run this

Code: [Select]
alter table pp_config add column aemail varchar (255) NOT NULL;
alter table pp_config add column asubmit varchar (5) NOT NULL default 'Yes';
alter table pp_config add column aupload varchar (5) NOT NULL default 'Yes';
alter table pp_config add column usubmit varchar (5) NOT NULL default 'Yes';
alter table pp_config add column uupload varchar (5) NOT NULL default 'Yes';



step 4


edit the admin.options.php


add

Code: [Select]
mysql_query("UPDATE pp_config SET aemail = '$_POST[aemail]'");
mysql_query("UPDATE pp_config SET asubmit = '$_POST[asubmit]'");
mysql_query("UPDATE pp_config SET aupload = '$_POST[aupload]'");
mysql_query("UPDATE pp_config SET usubmit = '$_POST[usubmit]'");
mysql_query("UPDATE pp_config SET uupload = '$_POST[uupload]'");

« Last Edit: March 02, 2010, 08:22:41 PM by winracer »
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
last part add the code below on post thanks.php or upload.php

and submit.php

all should be working now   
« Last Edit: March 05, 2010, 03:00:31 AM by winracer »
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Cool, I think you forgot some code:
last part add this code to

thanks.php // this is with the new upload version you can add to upload.php for now

Code: [Select]



ad this code to submit.php

Code: [Select]



Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: E-mail Notification - Notifies you when a new video has been submitted
« Reply #10 on: March 02, 2010, 10:57:33 PM »
sorry I will post this part soon. found few bugs in this part.

I am changing this e-mail to a html e-mail with information in it.

All working now please let me know if you see a bug
« Last Edit: March 05, 2010, 03:01:16 AM by winracer »
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: E-mail Notification - Notifies you when a new video has been submitted
« Reply #11 on: March 04, 2010, 09:03:08 PM »
I almost have the user part just a few bugs and then I will post..
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com

Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
Re: E-mail Notification - Notifies you when a new video has been submitted
« Reply #12 on: March 04, 2010, 10:06:39 PM »
Need some tester to make sure this is working please go to http://www.myfunnypets.com/30/ and upload and submit and let me know if you see any bugs
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com


Offline winracer

  • Development Team
  • Pro Member
  • *******
  • Posts: 446
  • Karma: 3
    • View Profile
    • helpmewithperl.com
  • Script Version: 1.0+
winracer
myfunnypets.com
helpmewithperl.com
coosavalleyclassifieds.com
brownlows.net
myphpforum.com