Welcome to Geeklog, Anonymous Tuesday, November 12 2024 @ 02:55 pm EST
Geeklog Forums
Help with Mail Users Function in GL1.3.11sr2
Status: offline
warren18
Forum User
Newbie
Registered: 12/25/05
Posts: 3
Location:Colorado Springs, CO, USA
Hello and Happy Holidays to all.
I'd like to start by thanking the GL Staff and contributors for an awesome FREE product. Thanks. I am having a blast with GL and learning PHP in the process!
That said, I'm a cherry to CMS development, HTML and PHP. That's why I chose a ready made CMS. I would like to see if anyone can help me do the following:
I would like to automail all logged-in users when a new story, file, forum post or photo is uploaded by a user (I have Media Gallery, Filemgmt and Forum plugins). I have set up GL so as not to require submission approval as I use it for a family site to post news and stuff.
I originally looked at just putting a email link in a block on left side that would send a blanket email to all logged-in users, but digging through the posts, I'm seeing that it is not as simple as addressing to "logged-in@abcd.com" for instance. I looked through the mail.php and see the functions, but have no clude what they mean.
I would imagine that I could set the block up as a PHP block, but don't know what code to put in the box that would send the same mail as the Mail Users function. Any help would be appreciated.
One last thing... can someone tell me what templates I need to edit to change the woridng of the mail sent by a new user registration.
Thanks again for all the hard work you guys put into GL and helping us newbies out!
Warren
Warren
I'd like to start by thanking the GL Staff and contributors for an awesome FREE product. Thanks. I am having a blast with GL and learning PHP in the process!
That said, I'm a cherry to CMS development, HTML and PHP. That's why I chose a ready made CMS. I would like to see if anyone can help me do the following:
I would like to automail all logged-in users when a new story, file, forum post or photo is uploaded by a user (I have Media Gallery, Filemgmt and Forum plugins). I have set up GL so as not to require submission approval as I use it for a family site to post news and stuff.
I originally looked at just putting a email link in a block on left side that would send a blanket email to all logged-in users, but digging through the posts, I'm seeing that it is not as simple as addressing to "logged-in@abcd.com" for instance. I looked through the mail.php and see the functions, but have no clude what they mean.
I would imagine that I could set the block up as a PHP block, but don't know what code to put in the box that would send the same mail as the Mail Users function. Any help would be appreciated.
One last thing... can someone tell me what templates I need to edit to change the woridng of the mail sent by a new user registration.
Thanks again for all the hard work you guys put into GL and helping us newbies out!
Warren
Warren
11
8
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
find this in your config.php
// Let users get stories emailed to them
// Requires cron and the use of php as a shell script
$_CONF['emailstories'] = 0;
// Specify length of stories in those emails:
// 0 = send only title + link, 1 = send entire introtext,
// any other number = max. number of characters per story
$_CONF['emailstorieslength'] = 1;
// New users get stories emailed to them per default (= 1) or not (= 0)
$_CONF['emailstoriesperdefault'] = 0;
the rest is up to the user and is set in user preferences.
to edit the mail body sent to new registrations see this thread.
Text Formatted Code
// "Daily Digest" settings// Let users get stories emailed to them
// Requires cron and the use of php as a shell script
$_CONF['emailstories'] = 0;
// Specify length of stories in those emails:
// 0 = send only title + link, 1 = send entire introtext,
// any other number = max. number of characters per story
$_CONF['emailstorieslength'] = 1;
// New users get stories emailed to them per default (= 1) or not (= 0)
$_CONF['emailstoriesperdefault'] = 0;
to edit the mail body sent to new registrations see this thread.
8
8
Quote
Warren18
Anonymous
Excellent. Thanks a lot!
Warren
Warren
8
9
Quote
All times are EST. The time is now 02:55 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content