Birthday Posts v0.12.1 BetaWarning!As this mod is a beta, it is strongly suggested that you make a forum backup before installing to prevent any data loss.
Author: JBlaze (http://custom.simplemachines.org/mods/index.php?action=profile;u=194282) Co-Author: Arantor (http://custom.simplemachines.org/mods/index.php?action=profile;u=53626) Current Version: 0.12 Beta Compatibility: SMF 2.0 RC2 Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2026) | Comments (http://www.simplemachines.org/community/index.php?topic=328059.0) | Donate (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6064290)
| Homepage: JBlaze Development (http://dev.thelulz.com) Type: New Feature (http://custom.simplemachines.org/mods/index.php?action=search;type=1) Updates: Birthday Posts Updates (http://dev.thelulz.com/index.php#c3) Languages: (https://www.simplemachines.org/site_images/lang/english.gif) (https://www.simplemachines.org/site_images/lang/english_british.gif)
|
Features Fully customizable via Admin -> Modifications -> Birthday Posts
Makes a new post when a birthday is detected.
Option to send a notification PM.
Available features:
Custom subject and message
Choose what member should make the post
Choose what board to make the post in
Choose whether or not to update the post count of the poster
Runs as a Scheduled Task
Choose whether to post a new topic per user or reuse an existing topic
Choose whether to post all the day's birthdays in a single post
Choose whether to send a notice via PM to user
Choose whether users must have been online in the previous x days to receive a post
Choose whether users have been part of the community for a period of time before a birthday post
Can choose whether or not to post birthday posts for banned users
InstallationAny previous versions of this mod
MUST be uninstalled
BEFORE installing this version.
Simply install the package to install on the SMF Default Core Theme
ONLY.
If your theme has its own versions of the language files Modifications.english.php and/or Modifications.english-utf8.php, OR if your using a language other than those supported (listed above) by the mod then you will need to copy the language strings into each custom version of those files.
Useful LinksManual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)
SupportPlease use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)
ChangelogLegend:! = Bugfix
- = Removed
+ = New Feature
o = Update
> = New Language
^ = Initial/New Release
1/1/10 - v.0.12.1 Beta
! Fixed throwing posts for all users without dates on 1st January (sorry, stupid bug)
! Fixed installer not always creating new column
12/28/09 - v0.12 Beta (the "Arantor had fun" build)
! Fixed smileys not being recognized; smileys are enabled on all new birthday posts now
! Fixed typo in English/English British regarding an apostrophe
! Fixed hard-coded text string to reuse existing language string
! Fixed extra menu item in Security menu
! Fixed undefined index bp_settings_title
! Fixed PM support entirely :)
! Fixed {link} support for PMs to link back to posts
+ Added {forumname} for PM templates, as well as default PM templates
+ Added protection for duplicating posts; checks for minimum 2 days between posting for a given user
+ Must be active within last days support
+ Minimum time registered on forum support
+ Post to existing topic (must be in the listed board!!)
+ Post all birthdays together (in a comma list, {membername} becomes "person1, person2, person3")
+ Uninstall also tidies up scheduled task run log (since the items never get displayed, they're just phantom data)
+ Made posting/sending to banned users optional (default off)
o Fixed indentation in the main area
o Fixed up installer to use proper installer semantics (db_insert, <database>)
o Removed unneeded $member_name variable when {membername} literal string would be more appropriate
> English-British support added
- License notes removed from installer script (old URL etc). Any reuse/license questions, please direct to [url=http://www.simplemachines.org/community/index.php?topic=328059.0]the mod's thread[/url].
- Removed Turkish translation as needs retranslating for extra features
NB: Future versions probably should split Turkish into separate UTF-8 and ISO-8859-9 (?) files.
10/19/09 - v0.11.2 Beta
! Fixed undefined error for $txt['bp_settings_title']
! Fixed problem with not sending PM's or making posts
> Russian translation added
10/15/09 - v0.11.1 Beta
! Fixed parse error on install.php
! Fixed bug in package-info.xml
10/14/09 - v0.11 Beta
! Fixed sendPM error
! Fixed database errors
o Rewrote messy code
+ Added support for SMF 2.0 RC2
8/05/09 - v0.10.1 Beta, v0.10.2 Beta
! Fixed parse error when running scheduled task
> New language: Turkish
7/27/09 - v0.10 Beta
! Small bug fixed in query.
+ Added feature to send notification via PM.
7/25/09 - v0.9.1 Beta
! Fixed a small bug in ScheduledTasks.php
o Updated settings.
7/24/09 - v0.9 Beta
^ Initial release.
Does this create a new thread/topic for each birthday post? If so, it would be nice to have the additional option of posting this in an already established "birthday thread/topic."
Other than that, this looks sweet, and will be great for absentminded Admins. ;) LOL
Quote from: Lord High Warlock on August 01, 2009, 01:05:32 AM
Does this create a new thread/topic for each birthday post? If so, it would be nice to have the additional option of posting this in an already established "birthday thread/topic."
Other than that, this looks sweet, and will be great for absentminded Admins. ;) LOL
That's not a bad idea.
I may add that it the coming update which will add notification PM's/emails along with a link to the topic.
Please tell us 1.1.x users we will eventually get this. "please, please, please" :)
Quote from: chrishicks on August 01, 2009, 01:46:45 AM
Please tell us 1.1.x users we will eventually get this. "please, please, please" :)
No unfortunately. This mod makes use of 2.0's Scheduled Tasks function. I would have to write a cron script for it to work on 1.1.x
JBlaze if you could please write that cron script, many 1.1. x users will use your mod.
Thanks.
Hi,
nice Mod but I have a problem with it.
The mod doesn´t makes birthday postings on my board.
When I do it manuell, it works. The Scheduled Tasks function doesen´t work.
Now i see that all the user who has yesterday birthday, it makes the post yesterday at 11.00 pm.
In Scheduled Tasks is it on 01.00 am.
Sorry for my bad english
I want to show under 'Name of the poster.' >>> 'Adminstrator'' or other thing... No 'Guest'
Updated.
7/27/09 - v0.10 Beta
! Small bug fixed in query.
+ Added feature to send notification via PM.
To upgrade from 0.9 Beta or 0.9.1 Beta, simply install the new package and it will run the upgrade.
Hi JBlaze. Thanks for this mod.
The mod installed perfectly and without problems. However when I try to test by running the scheduled tasks manually I receive this error message?
Parse error: syntax error, unexpected T_STRING in /home/******/public_html/home/Sources/ScheduledTasks.php on line 2292
I'm running "SMF Version 2.0 RC1". Any idea what the problem might be?
Many Thanks
let me try thx
Quote from: Groundhog on August 05, 2009, 03:40:37 AM
Hi JBlaze. Thanks for this mod.
The mod installed perfectly and without problems. However when I try to test by running the scheduled tasks manually I receive this error message?
Parse error: syntax error, unexpected T_STRING in /home/******/public_html/home/Sources/ScheduledTasks.php on line 2292
I'm running "SMF Version 2.0 RC1". Any idea what the problem might be?
Many Thanks
Hmm... that's odd. I'll get to fixing it right now. Thanks :)
Thanks JBlaze
I have other mods that probably change the "ScheduledTasks.php". Would it help if I give you a copy of my 'ScheduledTasks.php' file?
Sure if you don't mind :)
Thanks JBlaze.
ScheduledTasks.php attached.
Updated. As said before, simply install the new package. No need to worry about uninstalling first. Once upgraded, you can delete the old package.
8/05/09 - v0.10.1 Beta
! Fixed parse error when running scheduled task
every time i try to install this mod, i get the following area at the mod settings page in the forum admin...
// Modify Birthday Posts Settings function ModifyBirthdayPostsSettings($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings; // Options to configure $config_vars = array( $txt['birthday_admin_desc2'], array('int', 'birthday_board'), array('int', 'birthday_posterID'), array('text', 'birthday_posterName'), array('check', 'birthday_increase_post_count'), array('text', 'birthday_messageTitle'), array('large_text', 'birthday_message'), '', array('check', 'birthday_sendPM'), array('check', 'birthday_pmSameUser'), array('int', 'birthday_pmID'), array('text', 'birthday_pmUsername'), array('text', 'birthday_pmTitle'), array('large_text', 'birthday_pmBody'), ); if ($return_config) return $config_vars; $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=birthday'; $context['settings_title'] = $txt['mods_cat_modifications_misc']; if (empty($config_vars)) { $context['settings_save_dont_show'] = true; $context['settings_message'] = '
' . $txt['modification_no_misc_settings'] . '
'; return prepareDBSettingContext($config_vars); } if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; saveDBSettings($save_vars); redirectexit('action=admin;area=modsettings;sa=birthday'); } prepareDBSettingContext($config_vars); }
Fatal error: Call to undefined function ModifyBirthdayPostsSettings() in /home/themagic/public_html/forum/Sources/ManageSettings.php on line 220
timned88, are you doing a manual install?
QuoteDoes this create a new thread/topic for each birthday post
Is this feature added ?
Quote from: [Daydreamer] on August 05, 2009, 01:00:27 PM
QuoteDoes this create a new thread/topic for each birthday post
Is this feature added ?
Yes, it creates a new topic for each birthday. If there are 4 birthdays on one day, it will create 4 posts.
Thanks JBlaze.
Here is the turkish translation.
ManageScheduledTasks.turkish.php
$txt['scheduled_task_birthdayPosts'] = 'Doğum günü konuları gönderme';
$txt['scheduled_task_desc_birthdayPosts'] = 'Her doğum günü için yeni bir konu gönderir';
Modifications.turkish.php
$txt['birthday_admin_desc'] = 'Bu mod her yeni doğum gününde, bir konu açarak üyelerinizin doğum günlerini kutlar.<br />Konunun gönderileceği bölümü, gönderen olarak görünecek üyeyi, konunun başlığını ve içeriğini seçebilirsiniz.<br /> <strong>{membername}</strong> değerini kullanarak daha kişisel konular oluşturabilirsiniz.<br />Modu aktifleştirmek için <a href="' . $scripturl . '?action=admin;area=scheduledtasks;sa=tasks">Zamanlanmış Görevler</a> bölümündeki "Doğum günü konuları gönderme" kısmına bakın.';
$txt['birthday_admin_desc2'] = '<span class="smalltext">SMF Doğum Günü Konuları<br />Copyright ©2009 - <a href="http://dev.smfchat.com">JBlaze Geliştirme</a><br />Mod Yapıncısı JBlaze & Arantor</span>';
$txt['birthday_board'] = 'Mesaj gönderilecek bölümün ID\'si<br /><span class="smalltext" style="color: #FF0000;">NOT: Seçilmiş Olmalı</span>';
$txt['birthday_posterID'] = 'Doğum günü konularında gönderen olarak görünecek üye ID\'si<br /><span class="smalltext">Normal değer 0\'dır, ve ziyaretçi olarak gönderilir./span>';
$txt['birthday_posterName'] = 'Göndericinin adı<br /><span class="smalltext">Eğer gönderen IDsi seçilmemişse</span>';
$txt['birthday_messageTitle'] = 'İletinin başlığı<br /><span class="smalltext">Daha fazla kişiselleştirme için <strong>{membername}</strong> değerini kullanabilirsiniz</span>';
$txt['birthday_message'] = 'Konu içeriği.<br />Daha fazla kişiselleştirme için <strong>{membername}</strong> değerini kullanabilirsiniz</span>';
$txt['birthday_increase_post_count'] = 'Konu gönderen üyenin mesaj sayısı artsın mı?';
$txt['birthday_posts'] = 'Doğum günü mesajı';
$txt['birthday_topic_default'] = 'Doğum günün kutlu olsun!';
$txt['birthday_sendPM'] = 'Kişisel iletiyle bildirim gönder?';
$txt['birthday_pmSameUser'] = 'Mesaj gönderen kişiyle aynı bilgileri kullan?';
$txt['birthday_pmID'] = 'Kişisel iletide gönderen olarak görünecek üye ID\'si<br /><span class="smalltext">Boş bırakırsanız doğum günü konularını açan üyeyle aynı üye tarafından gönderilir.</span>';
$txt['birthday_pmUsername'] = 'Kişisel İletide görünecek üye adı<br /><span class="smalltext">Boş bırakırsanız doğum günü konularını açan üye ismiyle aynı isim kullanılır.</span>';
$txt['birthday_pmTitle'] = 'Kişisel İleti başlığı<br /><span class="smalltext">Daha fazla kişiselleştirme için <strong>{membername}</strong> değerini kullanabilirsiniz</span>';
$txt['birthday_pmBody'] = 'Kişisel İletinin içeriği<br /><span class="smalltext">Daha fazla kişiselleştirme için <strong>{membername}</strong> değerini kullanabilirsiniz,<br /><strong>{link}</strong> kullanarak mesaj linkini gösterebilirsiniz</span>';
Updated.
8/05/09 - v0.10.2 Beta
> New language: Turkish
Thanks again JBlaze
Quote8/05/09 - v0.10.1 Beta
! Fixed parse error when running scheduled task
That fixed the error that was generated when running the schedule manually (with no errors reported) but there were no birthdays set for today so I changed a members birthday to today's date and then reran the schedule which returned this error:
The database value you're trying to insert does not exist: topic_note
As far as I know I am putting the correct data into the required fields.
Any ideas?
Many Thanks
That's very odd. What fields are blank if any?
I have attached an image of my settings?
Is that what you are asking for?
I didn't realize that the mod was already updated to .10 I have the .9 installed currently and will upgrade to the newest one. My question that I have though is will this newer package make the post earlier?
A member had a birthday today and I didn't think it was working because it posted at 8pm which was pretty much after the day was over with. I would like to figure out a way to have them post earlier than that if that's possible.
Quote
The database value you're trying to insert does not exist: topic_note
As far as I know I am putting the correct data into the required fields.
Any ideas?
Many Thanks
Hi JBlaze
I found an update to "topic_note" mod which fixed that error message but now there is a new message when I run the schedule manually.
The database value you're trying to insert does not exist: from_id
There is no obvious clue in the name that suggests which mod may be causing the conflict. Any Idea from the error message?
Update: Just discovered that although I am getting this new error message the birthday message is now being created. Working good thanks.. 8)Thanks Again
Very nice mod thanks, installed and working 100% :D
I have now install the now version.
But i have the same problem. :(
When i write 02:00 it save 01:00 in the time option.
still getting that same error...
// Modify Birthday Posts Settings function ModifyBirthdayPostsSettings($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings; // Options to configure $config_vars = array( $txt['birthday_admin_desc2'], array('int', 'birthday_board'), array('int', 'birthday_posterID'), array('text', 'birthday_posterName'), array('check', 'birthday_increase_post_count'), array('text', 'birthday_messageTitle'), array('large_text', 'birthday_message'), '', array('check', 'birthday_sendPM'), array('check', 'birthday_pmSameUser'), array('int', 'birthday_pmID'), array('text', 'birthday_pmUsername'), array('text', 'birthday_pmTitle'), array('large_text', 'birthday_pmBody'), ); if ($return_config) return $config_vars; $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=birthday'; $context['settings_title'] = $txt['mods_cat_modifications_misc']; if (empty($config_vars)) { $context['settings_save_dont_show'] = true; $context['settings_message'] = '
' . $txt['modification_no_misc_settings'] . '
'; return prepareDBSettingContext($config_vars); } if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; saveDBSettings($save_vars); redirectexit('action=admin;area=modsettings;sa=birthday'); } prepareDBSettingContext($config_vars); }
Fatal error: Call to undefined function ModifyBirthdayPostsSettings() in /home/themagic/public_html/forum/Sources/ManageSettings.php on line 220
jblaze... installing via package manager
when is this gonna be out for 1.1.x ?
Quote from: Eclipse16V on August 06, 2009, 02:58:42 PM
I have now install the now version.
But i have the same problem. :(
When i write 02:00 it save 01:00 in the time option.
This is not a bug with my mod. There may be a bug in your install of SMF regarding scheduled tasks. Try changing the time on another scheduled task and see if that works. If it does, and my mods scheduled task is the only one that doesn't work, please let me know.
Quote from: timned88 on August 06, 2009, 03:35:08 PM
still getting that same error...
// Modify Birthday Posts Settings function ModifyBirthdayPostsSettings($return_config = false) { global $txt, $scripturl, $context, $settings, $sc, $modSettings; // Options to configure $config_vars = array( $txt['birthday_admin_desc2'], array('int', 'birthday_board'), array('int', 'birthday_posterID'), array('text', 'birthday_posterName'), array('check', 'birthday_increase_post_count'), array('text', 'birthday_messageTitle'), array('large_text', 'birthday_message'), '', array('check', 'birthday_sendPM'), array('check', 'birthday_pmSameUser'), array('int', 'birthday_pmID'), array('text', 'birthday_pmUsername'), array('text', 'birthday_pmTitle'), array('large_text', 'birthday_pmBody'), ); if ($return_config) return $config_vars; $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=birthday'; $context['settings_title'] = $txt['mods_cat_modifications_misc']; if (empty($config_vars)) { $context['settings_save_dont_show'] = true; $context['settings_message'] = '
' . $txt['modification_no_misc_settings'] . '
'; return prepareDBSettingContext($config_vars); } if (isset($_GET['save'])) { checkSession(); $save_vars = $config_vars; saveDBSettings($save_vars); redirectexit('action=admin;area=modsettings;sa=birthday'); } prepareDBSettingContext($config_vars); }
Fatal error: Call to undefined function ModifyBirthdayPostsSettings() in /home/themagic/public_html/forum/Sources/ManageSettings.php on line 220
Quote from: timned88 on August 06, 2009, 03:36:01 PM
jblaze... installing via package manager
This means that it is intalling outside of the "?>" of ManageSettings.php. Make sure that you have an ending ?> in that file.
Quote from: asifnur on August 06, 2009, 07:17:57 PM
when is this gonna be out for 1.1.x ?
I have no intention of making this for 1.1.x as it uses 2.0's Scheduled Tasks function which does not exist in 1.1.x. It would take alot more extra, unneeded work that frankly I am not willing to do ;D
thanks, jblaze. terrific support!
the problem was at the end of the file, the >? had an { from another mod right next to hit. all it needed was a line break and it worked fine.
Quote from: akbora on August 04, 2009, 04:54:55 AM
I want to show under 'Name of the poster.' >>> 'Adminstrator'' or other thing... No 'Guest'
what about of this?
Quote from: akbora on August 07, 2009, 10:49:57 AM
Quote from: akbora on August 04, 2009, 04:54:55 AM
I want to show under 'Name of the poster.' >>> 'Adminstrator'' or other thing... No 'Guest'
what about of this?
Have you put in an ID of 0 and put in a name in the box?
If so, this will work.
I want to show that:
Forum Name
Administration (no guest)
ID of the member you wish to make the post. =0
Name of the poster.= My Forum Name
number of section to show birthday must be wrote in this way 4 or in this other 4.0 ?
Quote from: edi67 on August 10, 2009, 10:25:46 AM
number of section to show birthday must be wrote in this way 4 or in this other 4.0 ?
Just 4. No decimal point
so strange i installed it without problem but not work , for example i have 2 birthdays today and no topic created is normal ?
Quote from: edi67 on August 10, 2009, 02:44:04 PM
so strange i installed it without problem but not work , for example i have 2 birthdays today and no topic created is normal ?
What do you mean? Any error logs? Screenshots?
JBlaze,
I just want to make sure I'm doing this correct.
If the current time on my server is 8/10/09 12:35pm, but the current time on the east coast is 8/10/09 4:35pm, the earliest that I can have the Birthday Post placed on my forum would be at 4am each day due to a 4 hour time difference, correct or not?
I've set it to be 00:00 in the Scheduled Tasks each day.
All scheduled tasks are run on server time.
pls make this for 1.1.x plssss i want this so bad ;(
Quote from: asifnur on August 10, 2009, 11:38:47 PM
pls make this for 1.1.x plssss i want this so bad ;(
Then upgrade to 2.0 ;D
so strange i cannot make it work, everything is checked, section selected, ID user selected, today there are 2 birthday but.....no post created and no messages sent,
i must enable something else?
Go into your Scheduled Tasks and check to see what time the task will run. I thought mine had the same problem until I saw that it was scheduled to go at 8pm. You can change the time that the task runs and see if it posts earlier. (Also, you can run the task manually in the same area to see if it works, too, in case it is already later in the day.)
Also, I believe in the latest update, the Scheduled Task itself is turned off by default. Have you enabled it in Admin -> Maintenance -> Scheduled Tasks?
I'll make a deal.
If you all can raise $50 USD, I will make this mod for 1.1.x
Quote from: JBlaze on August 19, 2009, 10:17:42 PM
I'll make a deal.
If you all can raise $50 USD, I will make this mod for 1.1.x
50 USD? Is too much boy... don't be bad.
Someone can program this for the version 1.1.10? Lot of people need it.
mod installed great on RC1.2 however, I am getting this error when it tries to send the pms:
http://patriotgames2.info/index.php?scheduled=task;ts=1251021600
The database value you're trying to insert does not exist: from_id
Function: sendpm
File: /home/*****/public_html/Sources/Subs-Post.php
Line: 1063
Quote from: Smitten on August 23, 2009, 08:00:34 AM
Quote from: JBlaze on August 19, 2009, 10:17:42 PM
I'll make a deal.
If you all can raise $50 USD, I will make this mod for 1.1.x
50 USD? Is too much boy... don't be bad.
Someone can program this for the version 1.1.10? Lot of people need it.
For the amount of work it entails, I see no reason
not to charge the amount.
Quote from: Kimmie on August 23, 2009, 10:18:43 PM
mod installed great on RC1.2 however, I am getting this error when it tries to send the pms:
http://patriotgames2.info/index.php?scheduled=task;ts=1251021600
The database value you're trying to insert does not exist: from_id
Function: sendpm
File: /home/*****/public_html/Sources/Subs-Post.php
Line: 1063
Hmm... that's odd. Did you make sure to set a sender ID?
I may have to tweak it to make sure a ID is set before sending.
ok I think I might know what the problem is heheh - lokos like it might just be a simple confusion on the settings page.
on the settings page it says:
QuoteThe ID of the member sending the PM.
Leave blank if using the same ID from the post
However, technically its not "blank" because by "default" it is set to 0 (0 on SMF usually means off or whatever and is generally left if you dont need to change that setting, etc), so I left it like it was because I wanted to use the same ID as with the thread so I merely checked the box for it to do so. Do I actually need to "remove" that default 0? (I left that setting as is just like I left the seting right below it alone and it actually IS blank). Since they both say the same thing, if we have to actually delete that "0", Could it be that those errors are stemming from the fact that there is no such thing as a "member # 0" and by default it problaby needs to actually "be" blank? Looks like because of that zero, even tho I have it checked to use the ID from the Post, it cant pull it because its looking for 0
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi27.tinypic.com%2F52mdmr.png&hash=7fdded80f0b91acbb87262c51564245a13af30bb)
Update: well I have tried every setting concoction I can on there and everyday I get the same error:
scheduled=task;ts=1251536400
The database value you're trying to insert does not exist: from_name
Function: sendpm
File: /home/****/public_html/Sources/Subs-Post.php
Line: 1134
or (depending on which setting I had set)
The database value you're trying to insert does not exist: from_id
Function: sendpm
File: /home/****/public_html/Sources/Subs-Post.php
Line: 1063
Any ideas? :(
Kimmie, I'll be pushing out another update soon which will hopefully patch this ;D
Quote from: JBlaze on August 31, 2009, 01:54:24 AM
Kimmie, I'll be pushing out another update soon which will hopefully patch this ;D
awesome .. :). Love the mod. Great job on it!!
Quote from: alex30 on August 01, 2009, 06:45:34 AM
JBlaze if you could please write that cron script, many 1.1. x users will use your mod.
Thanks.
Yes indeed!! i am using 1.1.10 :) :) :) :) :) Pleasssseee O:) O:) O:)
The bottom line is that the functionality is simply not in 1.1 to manage this.
In 2.0, there is a dedicated setup for running repeated regular tasks - Scheduled Tasks. This functionality is NOT in 1.1, and adding it is a huge amount of work - to add full scheduled tasks support... I'd personally charge a fair amount more than $50 for it, but that would be for multiple mods.
To make it work simply for this mod, a dedicated version could be built, however if you added other mods that did something similar - your forum would very quickly slow down a LOT.
I have another mod that is in the same boat - again it's not something we can readily make available for 1.1 without a huge amount of time on our part, because it means adding a lot of code for something that just doesn't have foundations in 1.1.
For the work required to convert this mod on its own to 1.1, $50 is quite reasonable in my opinion.
This would be a super mod for me.. the only thing i want to request to this mod is that the admin can set a min. post quote, so that not every member gets an birthday topic, but only the ones who are very active... otherwise there will be opened 20 topics a day at the site :D In my case then...
Quote from: MissyNL on September 10, 2009, 02:29:55 PM
This would be a super mod for me.. the only thing i want to request to this mod is that the admin can set a min. post quote, so that not every member gets an birthday topic, but only the ones who are very active... otherwise there will be opened 20 topics a day at the site :D In my case then...
Indeed. I am actually working on that right now. Admin can set a minimum length of activity for a member to get a birthday post.
Also working out a few kinks.
great!! then i will keep this mod in my update list :D
Excelent mod, thank you!
Just found a small bug(?) - in the mod setting there is this:
QuoteThe main body of the PM.
Use {membername} to personalize it.
Use {link} to give a link to the post.
But
{link} expanded into board link, not in to the actual posted topic, any ideas on how to change it?
Sorry for the delays folks. I have been very busy lately.
@MrCreatoR - That is indeed a bug. There is some coding I have to figure out in order to make it display the post link, not board link.
And also i have a small request - is it would be possible to set exclude list of members, so the member that is set to post the topic will not post a topic for his own birthday :)
Quote from: MrCreatoR on October 03, 2009, 02:19:45 PM
And also i have a small request - is it would be possible to set exclude list of members, so the member that is set to post the topic will not post a topic for his own birthday :)
That's coming with a new version. I am also allowing to set a cap for last activity. If a member hasn't been active in
x amount of days/months/years, then it will not make a post for them.
Quote from: JBlaze on October 03, 2009, 02:33:11 PM
Quote from: MrCreatoR on October 03, 2009, 02:19:45 PM
And also i have a small request - is it would be possible to set exclude list of members, so the member that is set to post the topic will not post a topic for his own birthday :)
That's coming with a new version. I am also allowing to set a cap for last activity. If a member hasn't been active in x amount of days/months/years, then it will not make a post for them.
It's a good news, thanks. Btw, i have a russian translation, should i post it here?
Please do post translations here and JBlaze can get them added.
JB: I'm not able to look at the code until next week but if there's anything I can do please ask.
Ok, here it is:
Quote<file name="$languagedir/ManageScheduledTasks.russian-utf8.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['scheduled_task_desc_birthdayemails'] = 'Отправление поздравлений с Днем Рождения.';]]></search>
<add><![CDATA[
$txt['scheduled_task_birthdayPosts'] = 'Создавать сообщения о днях рождения';
$txt['scheduled_task_desc_birthdayPosts'] = 'Создает новую тему, если у пользователя День Рождения.';]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
global $scripturl;
$txt['birthday_admin_desc'] = 'Этот Мод позволяет создавать сообщение, когда у пользователя День Рождения.<br />Вы можете задать раздел, автора, название темы и само сообщение.<br />Переменная <strong>{membername}</strong> позволяет персонализировать событие.<br />Для включения этого Мода перейдите в <a href="' . $scripturl . '?action=admin;area=scheduledtasks;sa=tasks">Диспетчер задач</a> - "Рассылка сообщений "С Днем Рождения""';
$txt['birthday_admin_desc2'] = '<span class="smalltext">SMF Birthday Posts<br />Copyright ©2009 - <a href="http://dev.smfchat.com">JBlaze Development</a><br />Mod created by JBlaze & Arantor</span>';
$txt['birthday_board'] = 'ID раздела, где будет создана тема<br /><span class="smalltext" style="color: #FF0000;">ВНИМАНИЕ: Заполнение этого поля обязательно!</span>';
$txt['birthday_posterID'] = 'ID пользователя, от которого будет создана тема.<br /><span class="smalltext">По умолчанию - 0 (Гость)</span>';
$txt['birthday_posterName'] = 'Имя пользователя.<br /><span class="smalltext">Используется только в том случае, если ID пользователя не был указан.</span>';
$txt['birthday_messageTitle'] = 'Название темы.<br /><span class="smalltext">Используйте <strong>{membername}</strong> для персонализации</span>';
$txt['birthday_message'] = 'Текст сообщения<br /><span class="smalltext">Используйте <strong>{membername}</strong> для персонализации</span>';
$txt['birthday_increase_post_count'] = 'Увеличить счетчик постов для отправителя?';
$txt['birthday_posts'] = 'С Днем Рождения';
$txt['birthday_topic_default'] = 'С Днем Рождения!';
$txt['birthday_sendPM'] = 'Отправить сообщение в PM?';
$txt['birthday_pmSameUser'] = 'Использовать такой же ID, как при создании темы?';
$txt['birthday_pmID'] = 'ID отправителя.<br /><span class="smalltext">Оставьте незаполненным, если ID одинаковые</span>';
$txt['birthday_pmUsername'] = 'Имя отправителя.<br /><span class="smalltext">Оставьте незаполненным, если имена одинаковые.</span>';
$txt['birthday_pmTitle'] = 'Название темы.<br /><span class="smalltext">Используйте <strong>{membername}</strong> для персонализации</span>';
$txt['birthday_pmBody'] = 'Текст сообщения.<br /><span class="smalltext">Используйте <strong>{membername}</strong> для персонализации.<br />Используйте <strong>{link}</strong> для ссылки на пост с поздравлением.</span>';
]]></add>
</operation>
</file>
But i am not sure that this is a good idea to search for the actual translation (in
$txt['scheduled_task_desc_birthdayemails']), perhaps we should search just for
$txt['scheduled_task_weekly_maintenance'] and add before, not after.
search position="before" will put the code it finds 'before' the new code, so this code gets added physically after it in the file. Though position="end" would work fine.
Arantor [?] (http://www.simplemachines.org/community/index.php?topic=328059.msg2289408#msg2289408)
QuoteThough position="end" would work fine.
Indeed. It's more reliable like this.
I use that all the time in my mods.
Though I am beginning to wonder a little since on removal I think it looks for added string plus ?> - I need to triple check this to be honest.
<search position="end" /> is the proper way to add language strings. It leaves less room for error.
BTW, thanks for the translation. I'll add it once I get 1.0 out ;D
And one more f.request - Is it possible to make the main text hold few templates so when the topic is posted it will pick up a random text message, because i think it's will make a surprise element relevant here, and users will not see the same message all the time (for all birthdays :) ).
Doable. If JBlaze doesn't grab this one before I'm back off break, I will probably do so.
Tech note: this would likely be handled the same way as the news does, putting multiple items into a single $modSettings[] value.
Quote from: Kimmie on August 31, 2009, 01:19:52 AM
The database value you're trying to insert does not exist: from_name
Function: sendpm
File: /home/****/public_html/Sources/Subs-Post.php
Line: 1134
I just received this error tonight. I've had 4 topics started since I installed the mod and this is the 1st "critical" error I've received. Not sure why I just received one. Just wanted to throw this out here as an FYI.
Found another bug. Just try to search for anything in «Tasks/Settings» mod (in Admin section), and you get this error:
QuoteFatal error: Call to undefined function ManageBirthdayPostsSettings() in /public_html/forum/Sources/Admin.php on line 988
Quote from: SgtMic on October 09, 2009, 01:19:56 AM
Quote from: Kimmie on August 31, 2009, 01:19:52 AM
The database value you're trying to insert does not exist: from_name
Function: sendpm
File: /home/****/public_html/Sources/Subs-Post.php
Line: 1134
I just received this error tonight. I've had 4 topics started since I installed the mod and this is the 1st "critical" error I've received. Not sure why I just received one. Just wanted to throw this out here as an FYI.
This is one of the issues that JBlaze is working on.
Quote from: MrCreatoR on October 09, 2009, 09:29:53 AM
Found another bug. Just try to search for anything in «Tasks/Settings» mod (in Admin section), and you get this error:
QuoteFatal error: Call to undefined function ManageBirthdayPostsSettings() in /public_html/forum/Sources/Admin.php on line 988
Tracked:
http://dev.thelulz.com/index.php?issue=6.0
Quote from: MissyNL on September 10, 2009, 02:29:55 PM
This would be a super mod for me.. the only thing i want to request to this mod is that the admin can set a min. post quote, so that not every member gets an birthday topic, but only the ones who are very active... otherwise there will be opened 20 topics a day at the site :D In my case then...
Tracked:
http://dev.thelulz.com/index.php?issue=3.0
Quote from: Kimmie on August 31, 2009, 01:19:52 AM
Update: well I have tried every setting concoction I can on there and everyday I get the same error:
scheduled=task;ts=1251536400
The database value you're trying to insert does not exist: from_name
Function: sendpm
File: /home/****/public_html/Sources/Subs-Post.php
Line: 1134
or (depending on which setting I had set)
The database value you're trying to insert does not exist: from_id
Function: sendpm
File: /home/****/public_html/Sources/Subs-Post.php
Line: 1063
Any ideas? :(
Tracked:
http://dev.thelulz.com/index.php?issue=7.0
For those who want it for 1.1.10,
http://dev.thelulz.com/index.php?issue=8.0
Also, for all future feature requests, support, and bug reports, please register at http://dev.thelulz.com
Thanks.
make this mod for us at 1.1.1 v pleaseeeeeeeeeeeeeeee
As has been stated several times in this thread, it cannot be readily added for 1.1. 1.1 unlike 2.0, has no in built scheduled task system, meaning it's a lot more code to be added and maintained, rather than being a pre-built-in system.
Adding such a system isn't difficult but if every mod that uses 2.0's scheduled tasks were to be added to 1.1, it would very quickly begin to slow 1.1 down a LOT. Each mod would have to run its own scheduler.
This is an ultimatum:
If one more person PM's me or posts asking that this mod be made for 1.1.10, I will remove this mod. You can then seek out someone else who is willing to do all the work neccessary to make it for 1.1.10.
If you really want if bad enough, then upgrade to SMF 2.0 because 1.1.10 will no longer be supported much longer.
Updated
10/14/09 - v0.11 Beta
! Fixed sendPM error
! Fixed database errors
o Rewrote messy code
+ Added support for SMF 2.0 RC2
Quote from: JBlaze on October 14, 2009, 10:28:16 PM
Updated
10/14/09 - v0.11 Beta
! Fixed sendPM error
! Fixed database errors
o Rewrote messy code
+ Added support for SMF 2.0 RC2
I uninstalled the old version, uploaded the updated one, and When I try to apply the mod I get this error:
Fatal error: require() [function.require]: Failed opening required '/home/******/public_html/Packages/temp/install_db.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/Sources/Packages.php on line 905
Fixed. Thanks. I had forgot to modify package-info.xml to reflect the name changes of the db installers...
/me mumbles something about not having enough coffee...
Quote from: JBlaze on October 14, 2009, 11:03:47 PM
Fixed. Thanks. I had forgot to modify package-info.xml to reflect the name changes of the db installers...
/me mumbles something about not having enough coffee...
Here ya go... (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffliiby.com%2Fimages%2F_thumbs%2Ftn_7tsqiba7ox.jpg&hash=b935e1a506ee8adf2fd3387f83392feb67661e76)
We need our "bestest" mod authors awake and alert.. hehehe
(I will install the updated one and let you know how it goes)
---
EDIT: Now I get this error when I apply it:
Parse error: syntax error, unexpected '}' in /home/*****/public_html/Packages/temp/install.php on line 42
Hrmf. I know I tested it, but who knows, I'll give it another go.
Should have another version cranked out in a jiffy :)
BTW, thanks for the coffee ;D
Updated:
10/15/09 - v0.11.1 Beta
! Fixed parse error on install.php
! Fixed bug in package-info.xml
That one installed with no problems, and I have set up the pm part of the mod. I will let you know tomorrow if that is now working.
Thanks for your hard work on ALL your mods :)
[?] (http://www.simplemachines.org/community/index.php?topic=328059.msg2309865#msg2309865)
QuoteUpdated
Thanks.
No russian added? :(
k I have it all set up however, it didnt make any new threads this morning. I double checked to make sure I had all the settings correct and they are.
In my error log, I have this error from simply visiting the settings page for the mod:
8: Undefined index: bp_settings_title
File: /home/*****/public_html/Sources/ManageSettings.php
Line: 2095
and after going thru my error log thoroughly, I recieved this same error right after installing the mod and setting those settings as well but got busy and didnt have time to check the log until now. I am getting ready to check to see if it sent any of the pms it was supposed to and I will let you know.
Edit: no pms were sent out either
Updated:
10/19/09 - v0.11.2 Beta
! Fixed undefined error for $txt['bp_settings_title']
! Fixed problem with not sending PM's or making posts
> Russian translation added
Thank you :)
I have installed the new version and I will let you know how it goes tomorrow morning when it is supposed to post the new threads.
EDIT: got that same error as above after installing and redirecting to the settings page (all my settings were still there intact):
http://patriotgames2.info/index.php?action=admin;area=modsettings;sa=birthday
8: Undefined index: bp_settings_title
File: /home/******/public_html/Sources/ManageSettings.php
Line: 2093
--------
Cleard out my log completely, went to the settings page, and got that error and this one:
http://patriotgames2.info/index.php?http://patriotgames2.info/
8: Undefined index: 1
File: /home/****/public_html/Sources/PortalBlocks.php
Line: 2155
any way I can get the first version back until you can get this one fixed? (I deleted it from my pc when I uninstalled it from the site because since it was yours, I didnt think there would be a need for it anymore :P )
That way, I can atleast have the thread part working again so I dont have to make all of them manually. (and believe me when I tell you I have alot of those threads to post each day..lol).
Quote from: Kimmie on October 23, 2009, 01:27:19 PM
any way I can get the first version back until you can get this one fixed? (I deleted it from my pc when I uninstalled it from the site because since it was yours, I didnt think there would be a need for it anymore :P )
That way, I can atleast have the thread part working again so I dont have to make all of them manually. (and believe me when I tell you I have alot of those threads to post each day..lol).
Restored v10.2 Beta ;D
Quote from: JBlaze on October 23, 2009, 03:06:15 PM
Quote from: Kimmie on October 23, 2009, 01:27:19 PM
any way I can get the first version back until you can get this one fixed? (I deleted it from my pc when I uninstalled it from the site because since it was yours, I didnt think there would be a need for it anymore :P )
That way, I can atleast have the thread part working again so I dont have to make all of them manually. (and believe me when I tell you I have alot of those threads to post each day..lol).
Restored v10.2 Beta ;D
thank ya thank ya :)
FYI ignore that portal block error in my above post. I dont think it has anything to do with this mod because I got it even after I uninstalled yours.
ok well the old version wont work either now... :(.
What am I doing wrong..lol
Quote from: Kimmie on October 25, 2009, 01:26:41 PM
ok well the old version wont work either now... :(.
What am I doing wrong..lol
Run this query in phpMyAdmin
UPDATE `smf_scheduled_tasks` SET `task` = 'birthdayPosts' WHERE `smf_scheduled_tasks`.`task` = 'birthday_posts' ;
There were some database changes in 0.11.2 that may not have been removed.
k I will run it and then let you know in the am if it worked or not. Thanks for all your hard work on this mod (and all your other mods) :)
Nope, still didnt work :(.
Maybe if I uninstall it and fully clean everything out, and then reinstall it again it will work. Couple things I have noticed:
1. Each time I have installed (regardless of the version), it remembers what I put in the settings. I looked thru the DB and didnt see a table associated with this mod however it is remembering it from somewhere. How can I get all that cleaned out?
2. The parser on the mod page will not parse the first version of the mod since you put it back up. Says its not compatible with 2.0 1.2.
Quote from: Kimmie on October 26, 2009, 12:21:49 PM
Nope, still didnt work :(.
Maybe if I uninstall it and fully clean everything out, and then reinstall it again it will work. Couple things I have noticed:
1. Each time I have installed (regardless of the version), it remembers what I put in the settings. I looked thru the DB and didnt see a table associated with this mod however it is remembering it from somewhere. How can I get all that cleaned out?
2. The parser on the mod page will not parse the first version of the mod since you put it back up. Says its not compatible with 2.0 1.2.
OK. I'll have to rewrite the package and I'll write you a script to fully clean it out. Currently, I'm on a vacation and don't have time to do much coding for the next 2 weeks, so it may take until then for me to get it out.
I'll see if I can get you a db uninstall script asap though.
Quote from: Kimmie on October 26, 2009, 12:21:49 PM
1. Each time I have installed (regardless of the version), it remembers what I put in the settings. I looked thru the DB and didnt see a table associated with this mod however it is remembering it from somewhere. How can I get all that cleaned out?
It's all in smf_settings.
Quote
2. The parser on the mod page will not parse the first version of the mod since you put it back up. Says its not compatible with 2.0 1.2.
No, because the parser doesn't recognise 2.0 - 2.0.99 to cover RC1.2 or RC2 builds now.
Quote from: JBlaze on October 26, 2009, 01:04:53 PM
Currently, I'm on a vacation and don't have time to do much coding for the next 2 weeks,
QuoteJBlaze has 82 days until Boot Camp
Enjoy your vacation while you can. LOL
Back on topic...
No hurries.. enjoy your vacation :)
Quote from: JBlaze on August 19, 2009, 10:17:42 PM
I'll make a deal.
If you all can raise $50 USD, I will make this mod for 1.1.x
Ok, deal, but I want it to be MINE - ALL MINE :P
Isn't there something in AEIOU that you could use? At any rate, I'll accept a cron job. Let me know if you still want to do this.
Thanks.
Updated to work with SMF RC2!
I'm still willing to pay you $50 for a 1.1.10 version. (but don't want to just give it away)
On a clean version of SMF2.0 RC2, I got a failed test of the following:
./Themes/default/languages/ManageScheduledTasks.turkish-utf8.php
I wouldn't think that there would be a failed test when no other mods have been installed.
Do you have that file?
Yes, I added that language.
Oops, wait... double checked. Yes.
That's because the edit is incorrect in the installation file.
In the languages.xml file of the mod, it lists:
<file name="$languagedir/ManageScheduledTasks.turkish-utf8.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['scheduled_task_desc_birthdayemails'] = 'Sends out emails wishing members a happy birthday.';]]></search>
This should say:
<file name="$languagedir/ManageScheduledTasks.turkish-utf8.php" error="skip">
<operation>
<search position="end" />
Hmm, I would fix this myself (as I'm listed as co-author) but I want to check with JB he's happy for me to just fix the package...
Yepp, I just checked it, too.
It is looking for the English code to do the edit. Just wanted to bring it to the attention for whoever.
Thanks for bringing it to our attention - it'll be JBlaze, the mod's author primarily who needs to fix it. When he's around I'm sure he will fix this, or I can fix it in his absence if it comes to that.
Welcome
Just wanted to post it before people started the mad frenzy of downloading the mods for rc2. ;D
SMF 2.0 RC2
Under admin/security and moderation/configuration...there is a link to the Birthday post which takes me nowhere. ??
When this task runs I get the following error, however it does the post but does not send the PM
An Error Has Occurred!
The database value you're trying to insert does not exist: from_name
I have the following set
ID of the board you wish to make the post
NOTE: This must be set!
(The board ID shows up as board=1.0 - it will not accept the 1.0 and keeps changing it to 1)
ID of the member you wish to make the post.
Default is 0 which is Guest
( the member ID posting is action=profile;u=1 - so I have it set to 1)
Quote from: digit on November 09, 2009, 03:46:42 AM
I'm still willing to pay you $50 for a 1.1.10 version. (but don't want to just give it away)
$150?
Sorry folks. v0.11.2 is a bit buggy. I am still working on getting this mod out of beta, but time is sparse for me as well considering I am trying to get all my 20+ mods updated for RC2 as well.
Quote from: digit on November 19, 2009, 12:34:05 PM
Quote from: digit on November 09, 2009, 03:46:42 AM
I'm still willing to pay you $50 for a 1.1.10 version. (but don't want to just give it away)
$150?
I'll have to think about it. Depends on what time I have to do it.
Quote from: SgtMic on November 10, 2009, 12:46:11 AM
SMF 2.0 RC2
Under admin/security and moderation/configuration...there is a link to the Birthday post which takes me nowhere. ??
oh yeah I have that too but I also have it in the right place :)
This mod will save lots of manual work for our forgetful staff lol
Quote from: quiteperplexed on November 30, 2009, 08:40:44 AM
Quote from: SgtMic on November 10, 2009, 12:46:11 AM
SMF 2.0 RC2
Under admin/security and moderation/configuration...there is a link to the Birthday post which takes me nowhere. ??
oh yeah I have that too but I also have it in the right place :)
This mod will save lots of manual work for our forgetful staff lol
That's what I love about this mod, it helps me to not be forgettable about Birthdays. :)
Like the mod but when putting smiley code into the message it does not display the smiley but the code :(
Quote from: JBlaze on November 19, 2009, 01:19:53 PM
Quote from: digit on November 19, 2009, 12:34:05 PM
$150?
I'll have to think about it. Depends on what time I have to do it.
Cool, maybe someone else could pitch in some too. 8)
Quote from: Daggers on December 07, 2009, 03:50:07 PM
Like the mod but when putting smiley code into the message it does not display the smiley but the code :(
I noticed that as well.
I'm getting 2 "old?" errors, bp_settings_title and sendpm.
I'm using 0.11.2 Beta on 2.0 RC2.
Hey JBlaze
I just put up another test forum for RC2 and put your mod on again. After installing, I've been immediately going into the Error Log. When I did, I found these errors pop up.
Two files are pulling multiple errors: ManageSettings.php and ManageServer.php
I'm currently using Prince Of Darkness theme from Antechinus (sp?) and it uses the Curve source files.
I've attached pics.
Mate, are there any plans to make it compatible with 1.10.
I can see some paid conversation is going on for 1.10. Any plan's for free ?
Anyone tried installing it on 1.10 ?
It won't work on 1.1.10 at all, because it currently relies on the scheduled task feature only in 2.0.
This the main reason preventing backporting and because of the work involved in making such a feature (which is quite scary for 1.1, actually), the consideration for making it a paid development is there.
I've been entertaining the idea of making this for 1.1.x, but the time it would take plus the amount of effort really isn't worth it. Cron jobs are such a dirty thing that I frankly don't want to get my hands stuck in.
The other option would be to rewrite the Scheduled Tasks function in 2.0 for 1.1.x but that would take a long time of which I don't have.
Just installed version 0.11.2 beta on fresh and modfree smf 2 rc2
i get this directy after install and redirected from install manager in my error log:
from mod changelog it should be fixed...are there different 0.11.2 version?
http://chaosempire.eu/forum/index.php?action=admin;area=modsettings;sa=birthday
8: Undefined index: bp_settings_title
File: /html/forum/Sources/ManageSettings.php
Line: 2036
Clear your file cache (Admin > Maintenance > Routine > Empty the file cache)
this has already be done, just after upgrade of 1.1x to 2
will do it again
btw, i can confirm that there is an unusable birthday mod link in security and moderations arrea
the one in modifications area works
so it creates one menu entry to much
edit: cleared cache, go into admin settings of the mod, only looked, didnt saved, looked into error log..again same error
ok, didnt saw that i need to activate it in scheduled task
so i activated it, and also did an manual run only for this part
result:
The database value you're trying to insert does not exist: from_name
in source code i cant find the from_name
any idea?
*sigh*
Uninstall and use v0.10.2 as it is more stable. I will be fixing this shortly.
Is this mod still beta? Any issues resolved?
Quote from: BlueDevil on December 28, 2009, 12:38:13 PM
Is this mod still beta? Any issues resolved?
Yes, I haven't had the time (it is the holidays ;) ) to work on this. I'll get around to it once I get back home.
Quote from: JBlaze on December 28, 2009, 01:10:23 PM
Quote from: BlueDevil on December 28, 2009, 12:38:13 PM
Is this mod still beta? Any issues resolved?
Yes, I haven't had the time (it is the holidays ;) ) to work on this. I'll get around to it once I get back home.
Oh man, no rush. Thanx.
Right, I'm going to be pitching back into this one to fix the current known bugs :)
/me would rather do that than tackle another mod from scratch for a change.
EDIT: Here's the changelog I've done so far for 0.12 Beta
12/28/09 - v0.12 Beta (the "Arantor had fun" build)
! Fixed smileys not being recognized; smileys are enabled on all new birthday posts now
! Fixed typo in English/English British regarding an apostrophe
! Fixed hard-coded text string to reuse existing language string
! Fixed extra menu item in Security menu
! Fixed undefined index bp_settings_title
! Fixed PM support entirely :)
! Fixed {link} support for PMs to link back to posts
+ Added {forumname} for PM templates, as well as default PM templates
+ Added protection for duplicating posts; checks for minimum 2 days between posting for a given user
+ Must be active within last days support
+ Minimum time registered on forum support
+ Post to existing topic (must be in the listed board!!)
+ Post all birthdays together (in a comma list, {membername} becomes "person1, person2, person3")
+ Uninstall also tidies up scheduled task run log (since the items never get displayed, they're just phantom data)
+ Made posting/sending to banned users optional (default off)
o Fixed indentation in the main area
o Fixed up installer to use proper installer semantics (db_insert, <database>)
o Removed unneeded $member_name variable when {membername} literal string would be more appropriate
> English-British support added
- License notes removed from installer script (old URL etc). Any reuse/license questions, please direct to the mod's thread (http://www.simplemachines.org/community/index.php?topic=328059.0).
- Removed Turkish translation as needs retranslating for extra features
NB: Future versions probably should split Turkish into separate UTF-8 and ISO-8859-9 (?) files.
And I've attached it here. Have fun, let me know if I broke anything. If all is well, either JBlaze or myself can update the mod site with it officially.
EDIT: PM is still broken, have removed for now while I fix it.
EDIT: Fixed that, with enhancements :)
Thanks a bunch Arantor!
I'm still adding stuff yet...
/me edited the earlier post, I'm done for now.
Though I think I nailed almost everything on the todo list ;) The only things left on the todo list that I'm aware of:
- 1.1.x support (which I will never write for this mod without a substantial encouragement)
- Link to created topic/post (not sure what that's supposed to be, help?)
- Customised templates (including randomisation thereof)
Everything else should be taken care of with this :)
EDIT: Hmm, PM is still broken. Will fix and update package.
Good job, been waiting patiently for the fixes. now i wait for the updated package :)
I'm just fixing up PM support right now. Hoping to get a new package out before I go to bed :)
EDIT: And the post in the last page is updated with working PM support in 0.12 Beta :D
Any other problems please let me know.
Great job Arantor! Go ahead and update the mod listing.
Don't you want to test it first? :P
(I *did* test it, but I'd always like others to test it first)
Works fine for me so far
Quote from: Spoogs on December 28, 2009, 08:53:42 PM
Works fine for me so far
So how many birthday posts it made without errors?
5 posts no errors
And were they 5 posts, or 5 birthdays, one post? ;)
5 separate posts...
just went and did 3 birthdays 1 post and no errors there either
Awesome :D
Very cool.... is it the package in dloads section? Cuz it doesnt match with this topics name.
No, it's still in the post above...
Quote from: Arantor on December 28, 2009, 07:35:24 PM
I'm just fixing up PM support right now. Hoping to get a new package out before I go to bed :)
EDIT: And the post in the last page is updated with working PM support in 0.12 Beta :D
Any other problems please let me know.
JBlaze can do it or I can do it shortly, don't really mind which.
Oh cool,....i didnt see it. Got it.
I'm just going to pop off for a short while, and if it hasn't been updated on this topic and the mod site, I'll do it then.
EDIT: Added to mod site, updated listing and mod package.
While it probably *would* work on 2.0 RC1.2 without alterations, I've untagged 2.0 RC1.2 support because I haven't tested the new stuff in the installer, and don't plan to since 2.0 RC1.2 is now an archived version.
just tried to install the latest version and got this after tried to apply the mod:
Table '*******_{db_prefix}members' doesn't exist
File: /home/******/public_html/Packages/temp/install.php
Line: 70
and its still showing that its not applied
Quote from: Arantor on December 28, 2009, 09:14:34 PM
I've untagged 2.0 RC1.2 support because I haven't tested the new stuff in the installer, and don't plan to since 2.0 RC1.2 is now an archived version.
To fix, edit the install.php script, and remove {db_prefix} from the db_create_table call, and then run it manually. DB table creation changed in 2.0 RC2, and I didn't get into the evil that is writing either dual scripts or a compatibility script.
Just removed the 011.2 version and installed 0.12beta
wondering that there are no posts today..
so i started manually the task
result:
Unknown column 'bp_lastpost' in 'where clause'
File: /html/forum/Sources/ScheduledTasks.php
Line: 1711
Any idea (smf2 rc2)
That shows the database wasn't amended properly.
Errors in the error log?
I deinstalled 0112, and installed 0.12
ALl is done without error messages
Error Log shows same entry like manually starting RUN in scheduled task
So let me know what needs to be changed, so i get it run
You need to add a new column to the members table, called bp_lastpost, that the installer should be adding for you, type int(10) unsigned.
/me is confused; it worked flawlessly for him every time.
Need to correct me
My two boards where the old version has been before have the issue with this missing entry
the clean board, where the older version was has not installed before is fine
This column is new to 0.12, but I can see why it's the case - I'll get a fix out shortly; for some reason old stuff wasn't being purged properly on uninstall of the older version.
I have transferred this mod to Arantor as I feel he will be better to further develop this mod than I will. All further questions and support requests will be forwarded to him.
Thanks.
Thanks JBlaze :)
As ever, support issues in this topic please.
Thanks JBlaze
this mod is one of the reason why i now switched to smf2
more than 3 years a moderator of my board did those work manually
and thanks arantor
if there is left old stuff, let me know what i need to delete
btw, i found a birthday mail configuration at:
index.php?action=admin;area=mailqueue;sa=settings;
it was accidently that i found it...
if it is not by smf2 itself, it is not a good location for it
i would have expected it below the rest of birthday things under "modifications"
still cant understand, why most mods dont add in this new menu...it would make many thigns easier...
No, there's nothing in 0.11 that isn't reused in 0.12. It's only an extra new column in 0.12.
The birthday mail is a core feature, so it won't be under the Modifications menu. In any case, where else would it be?
There are two reasons mods don't use the modifications menu.
1. If a mod modifies an existing area, or adds something related elsewhere, it will invariably add it wherever it is most related. For example, a new setting for registration will usually serve best in the registration area.
2. There's a limit to how many things you can put in a sub menu (at least in RC2). Many people have enough mods they'd hit that limit very quickly.
thank you!
1: for me, this core feature is a setting that i wont expect in MAINTENANCE
Feature and Options would be the right place, alternative in Member area
But I found some menu entries in RC2 not "logical"
if someone is interested, let me know where to post :)
2. good to know if i will run into trouble
surely, if a mod extends something it should be at same place as base stuff, i was speaking about new things, like wiki, projects, dont know where is arcade ( i need to install it later)
this menu is empty...except birthday post and NiceTooltips
1. Won't change in SMF 2.0, I expect, because it's meant to be a very minor feature and there was nowhere else to put it.
2. For the most part, mods add their settings where it's appropriate for them to do so. Projects does, Wiki does. Don't know about Arcade but I would expect it to follow what Projects and Wiki do since it's by the same author.
Not all mods have configuration items, either.
A little bug
I just got ~5000 birthday posts...
all users with non entered birthday, so 00-00-0000 just got their email and birthday postings....
Quote from: ChaosEnergy on December 31, 2009, 06:29:22 PM
A little bug
I just got ~5000 birthday posts...
all users with non entered birthday, so 00-00-0000 just got their email and birthday postings....
Don't mean to laugh, but that is some funny stuff there! Tell them you meant to wish them a Happy New Year and forgot to change it from Birthday!
Quote from: ChaosEnergy on December 31, 2009, 06:29:22 PM
A little bug
I just got ~5000 birthday posts...
all users with non entered birthday, so 00-00-0000 just got their email and birthday postings....
OOOPS, I'm so sorry, this one's entirely my fault!
I know what caused that, I know how that happened and I will get a fix out (long story short, it was a check in the original SQL which I removed and failed to realise the consequence of it!)
i browsed to my forum this morning to find that every member had their topic saying happy birthday!! don't know yet if they've received a pm, but i bet they have :(
anyhow, i've turned the scheduled tasks off right now... this means that this won't happen again right? but it also means that on someone's birthday their topic won't be opened will it?
need help in fixing this, thanks
If you have it turned off, it should not happen.
It sounds as though Arantor already knows what is wrong and is in the process of correcting. He's real good at fixing things. Give him a couple days and I'm sure we'll all be happy. After all, this is the season for LOTS of holidays and everyone deserves a little break.
lol, yeah, the members thought it was a happy new year thingy :P
anyways, i guess not ALL the members got a happy birthday, only those who haven't filled in their birthday date... anyway to make that obligatory for already registered members?
Right now it will only happen on 1st January, because PHP and MySQL do something really really dumb.
If I give you a date of 00-00-0000, I don't expect DAY(00-00-0000) to return 1 for the day of the month.
Fortunately there is sufficient protection it won't happen again until 1/1/2011 by which time I think I'll have it fixed ;)
Seriously though, I'll be fixing this one momentarily.
Updated to fix both known bugs. Though I was sure it used 0000-00-00 for null date, SMF adds in a default of 0001-01-01 :S
Still, it's fixed anyhow.
aha, thanks a lot arantor :D
As for making dates obligatory, bizarrely, no there isn't actually a way of doing it.
thanks for fixing both reported issues, i will tell you on 1.1.2011 if i got the same issue..but i assume, it wont be in rc2 :)
as i now got ~20 messages from this board..seems they got stuck somwhere until know :)
maybe the server here was also sending millions of posts..hahaha
Well, I'm guessing there were things in the mail queue, which may have taken a while to get sorted out.
Hey Arantor
Question for you. Is this missing the UNINSTALL function for RC2 or did I do something wrong?
Image below:
Odd... The uninstall in package-info.xml is written as <uninstall for="2.0-2.99.99"> so it should work...
It could be a bug in SMF or that since RC2, it will only work when specifically stated for RC2... I'll have to look into it.
0.11.2 Beta... hmm, I have no idea. I didn't work on that one.
So what version of SMF do you have right now?
That forum is RC2 (check signature for theme info)
If either of you want to look into my forum I'll give you my login.
If you go to Packages, select Advanced (bottom right corner), what version does that list?
SMF 2.0 RC2
Weird. Try giving it 2.0 RC1.2 as the version. The code it would run would be identical.
Nope, stays the same. Right now it is the only mod I'm using that doesn't show an uninstall (when at RC2)
Huh. That's kind of weird.
OK, put it back to 2.0 RC2 (or hit Revert)
Meantime, I'll make you a slightly tweaked package you can upload over the top (in FTP) then it should give you uninstall.
Don't go to that trouble for me!!!!!!!
I was just posting it in case someone needed to uninstall. I'm keeping the mod installed on my site! I just thought it was strange that I only had one mod that didn't have an uninstall showing and wanted you to know in case it was a bug!
Well, depends if you want the extra goodies in 0.12.1 or not ;)
All I was going to do was modify the <uninstall> block and give you one with a different rule about how to uninstall itself.
Well, in that case. I always like goodies! ;D
Did you see the changelist of what I added in 0.12(.1) ?
Yeah
In actuality, I thought I had 12 installad because I didn't install it until two days ago. I had the package already downloaded (although it was the previous one 11 on my computer). I thought I already downloaded 12, but didn't even realize that until you mentioned it above that it was 11. This is why you don't download things or install things after a New Years Party! :o
I should be charged with an IUI (Installing Under the Influence)
If you download this one, rename it to remove the (1) part (back to birthday_posts_v0.11.2.beta.zip) then upload this over your existing package, you should find you should be able to remove it.
All I literally did was alter the package-info.xml file to replace the <uninstall> block from checking for '2.0-2.99.99' to '2.0 - 2.99.99, 2.0 RC2'. I know sometimes it no like spaces.
Thanks, if I have trouble I'll post!
Sorry for the bother!
No bother :)
I did some tweaking of the script in 0.12(.1) and hopefully should have nailed it there.
Hello i have a simple problem.
I have smf 2.0 rc2 and pretty url mod. So where can i find Board id?
For example i want to post birthday messages under serbest kursu topic. it is serbest-kursu in url adress. But birthday post doesn't accept serbest-kursu i need numbers i think...
You do need numbers. In the URL of the board in question there should be a number.
E.g. the link to this board is http://www.simplemachines.org/community/index.php?board=59.0 - 59 is the board id.
Ok. Thanks for response. Once SMF 2 is stable release. I will install smf 2 & this mod as well.
Quote from: Arantor on December 19, 2009, 07:45:47 PM
It won't work on 1.1.10 at all, because it currently relies on the scheduled task feature only in 2.0.
This the main reason preventing backporting and because of the work involved in making such a feature (which is quite scary for 1.1, actually), the consideration for making it a paid development is there.
Quote from: JBlaze on December 19, 2009, 08:38:36 PM
I've been entertaining the idea of making this for 1.1.x, but the time it would take plus the amount of effort really isn't worth it. Cron jobs are such a dirty thing that I frankly don't want to get my hands stuck in.
The other option would be to rewrite the Scheduled Tasks function in 2.0 for 1.1.x but that would take a long time of which I don't have.
I have installed this mod.
When I go to scheduled tasks the check box is unticked. I tick it and press save. Then I get the dreaded white screen
So, any other mods?
What I've done is uninstall all my mods and replace source files and language files etc with original files.
Then I reinstalled all mods and everything works great.
This was not a bug with your mod just that my files were a little bit "unclean"
Ah, yeah, that can do it. Good to know it's sorted out.
Bring your files to a priest. That usually helps ;)
Tested & it Works Great!! Thanks for such a great Mod!!
Unfortunatly I have found 2 errors with this mod
One is the link that it posts to the post that has the birthday post in is incorrect..
Dear aljo,
We here at Uniquez would like to wish you a happy birthday. May this day and the year to follow be full of joy.
Regards
The Uniquez Team
http://www.uniquez-home.com/v2/index.php/topic,8.msg10.html#msg10
There is a / in the link that shouldnt be there :(...
I belive the link should be
http://www.uniquez-home.com/v2/index.php?topic=8.msg10.html#msg10
the / should be an ? and the , should be an =
where would i go to modify this..
also another error is the email that it sends the subject and from is all scrambled.
same for the default send email in SMF 2.0 RC2
I have attached an image below showing the error.
help on fixing this would be great
Thanks.
To your first issue, do you have search engine friendly URLs enable?
As to the second, what exactly did you have as the title of the email? The fact that SMF 2.0 RC2 emails in general are not correct seems related.
Hi and thanks for the reply..
Yes i do have search friendly URLs enabled..
Is that a bad thing/is it better to not have them enabled?
the title of the message was "Happy birthday! {membername}."
Problem is i did try running the task manually.. had to make a new account as it wont send the email twice.
and if i run the task manually it sends the email perfectly.
if u let it run automatically at the specified time.. it sends a dodgy title and from message.
Any ideas what is causing that error?
members will think it some kind of virus or something lol...
Well, there's your answer in the first one. It creates SEF URLs which are that style. Makes zero different in the scheme of things. So no, not a bug in the mod at all, in fact it's working precisely as it should do.
As for your other issue that would seem to be in the mail system, since the exact same code is run whether you call it manually or automatically - you mentioned that other things have incorrect subjects; I'd be inclined to take that to the Bug Reports board.
Thanks Arantor.. so u think that i should take the SEF URLs off then.. also can the mod be formatted to be compatible with SEF URLs ..
Will SEF URLs effect any other mods i might tend to add in the future?
Quote from: aljo1985 on February 15, 2010, 02:49:54 PM
Thanks Arantor.. so u think that i should take the SEF URLs off then.. also can the mod be formatted to be compatible with SEF URLs ..
The mod is compatible with SEF URLs. It reads what you've configured it as! (Not Pretty URLs or SimpleSEF, though, can't manage that)
Quote
Will SEF URLs effect any other mods i might tend to add in the future?
Only ones that aren't properly written. Most of the time it makes zero difference.
Sorry about this Arantor.. I have this enabled in Features and Options
Search engine friendly URLs
Apache/Lighttpd only! (TICKED)
but when the birthaday post sends the link to the post..
The link is incorrect..
What can i do to make sure the link is correct.. is there a script i can change?
you stated that it is working with this option enabled but in the pm the links are incorrect..
Sorry must be some confusion.
It's NOT incorrect AT ALL.
You have enabled SEF URLs. It is generating THAT KIND OF URL FOR YOU AS YOU HAVE REQUESTED.
O.k... so y isnt the link taking me to the post?
That is sent in the PM
http://www.uniquez-home.com/v2/index.php/topic,8.msg10.html#msg10
Because you have SEF URLs enabled and your server doesn't support it?
yes i have that option enabled i pressed the ?
QuoteThis changes the format of URLs a little so search engines will like them better. They will look like index.php/topic,1.0.html.
This feature will work on your server.
Close window
Ughhh yeah im sorry mate.. Seems like it does'tn actually work.. even though it states that it does..
I think SEF URLs doesnt work..
Ill just untick that option..
Thanks for the support.. sorry about the confusion :(
It doesn't work on all servers.
It doesn't work with Topic ID? Why? What's the problem? I want to send a message into a topic.
Quote from: akbora on March 02, 2010, 06:15:43 PM
It doesn't work with Topic ID? Why? What's the problem? I want to send a message into a topic.
Did you give it a valid topic id?
What does it do? Error messages in the log? Mod version? SMF version?
You need to give me more information. Seriously, telling me that is like going to the doctor and saying "I have a pain" without saying what kind of pain it is, where it hurts or what causes you to hurt (is it all the time, sometimes etc). More detail the better.
Hello, I would like to buy a SMF 1.1 version of this mod if available. Thank you
Quote from: samurai-lupin on March 17, 2010, 11:06:04 PM
Hello, I would like to buy a SMF 1.1 version of this mod if available. Thank you
No, one isn't available. I won't be writing one either.
I am having some trouble with this mod. I just upgraded to RC3 (from RC1.2). If you look back in this thread, I was trying to help jblaze get some bugs worked out of the mod and eventually stopped trying to work on it when he stopped support on it. I think that is where my issue is coming from. Initially when I installed it for the very first time, parts of it worked, and parts didnt. JBlaze was trying to get the issues resolved and when I installed his latest release (at that time), the mod just simply would not work anymore. When he stopped working on it, I decided to just uninstall it and let it go. When I installed the latest version yesterday, it still remembered all my settings from when I had it installed on an earler version (havent used it since I was using 1.9). My issue is basically that its not doing anything its supposed to be doing, not making the threads etc, and was the same issue I had with it before.
Any help to get this to work would be greatly appreciated. :)
Well, I seem to recall that when he stopped supporting it, I took it over and rewrote most of the core of the mod.
So, what are the settings you have in there currently?
When this is installed does it use the same schedule as the Send Birthday message or is that schedule disabled and this one uses its own or share with another?
I was trying to figure out how to disable the Birthday that comes with 2.0RC2, but other than a scheduled event I don't see where you would disable it.
This one uses its own.
You can enable and disable both from Admin > Maintenance > Scheduled Tasks, both birthday emails and this mod have scheduled tasks (the mod creates it when it's installed)
well i have a strange one mod seems to work i tested it out and it shows the post on the portal block ihave foe recent posts however when i click it i get taken to my forum but it pretty much is a blank page so i went into news and announcements which is where it should be and it is not there the post doesnt exist but like i said it shows on my recent posts block on my portal
when i click it this is where it takes me
http://appfuzion.com/index.php?topic=0.msg3815;topicseen#new
but there is no post
edit: when i tried to run it again i get this error
Quote
The database value you're trying to insert does not exist: is_ratings
ok i fixxed it
i had to uninstall the post ratings mod now the post appears however i ran a test post and pm works great btw but when i tried to delete the post i get this
QuoteTable 'appfuzio_smf1.smf_message_ratings' doesn't exist
File: /home/appfuzio/public_html/Sources/RemoveTopic.php
Line: 543
so something is still there have no idea how to fix this any help would be appreciated
forget it i found i there was some code left over i had to delete it the error told me where to go
everything appears to be workin fine thanks for the mod i't's great
when this mode creates a new topic? in any period of time? :)
It will create topics once a day when there are birthdays found.
Is this mod can be compatible with SMF 2.0 RC1.2?
After i installed the mod, the following message came up:
Table 'admin_smf.smf_{db_prefix}members' doesn't exist
File: /var/www/admin/data/www/mywebsite.net/forum/Packages/temp/install.php
Line: 73
any idea how to fix it?
Oh no... another user wanting someone to bend over backwards. *sigh*
You know SMF 2.0 RC1.2 is an unsupported legacy version, that you are running it at your own risk, that security bugs exist in that version, and that this mod will not be back ported?
QuoteOh no... another user wanting someone to bend over backwards. *sigh*
I don't expecting from this mode "to bend over backwards", i just asking for help to make it work on RC1.2
for me.
QuoteYou know SMF 2.0 RC1.2 is an unsupported legacy version, that you are running it at your own risk, that security bugs exist in that version
I know, but let me ask this: can anyone really garantee for me, that after i update my forum all my mods and twiks will remain intact, i mean they still be working as they do now? i think the answer is no, and that's the reason why i havn't updated my forum yet.
Quotethis mod will not be back ported?
I didn't ask for that.
Since Arantor is no longer around does anyone / will anyone be allowed to take over this mod. I'd really like to use it but not if it's going to stay in a beta phase with the author no longer being here... that we know of anyway.
well its been beta for months without any complaints
and both of its authors have since left... someone would have to contact them outside of here i guess
though you could always ask arantor on arantormods.com if you have any problems (though he normally does paid-only support for free mods)
Actually JBlaze has agreed to update it... but it could be paid at his site.
Any chance this mod can be made to work with 1.1.12? Ive been wantng one of these forever. What would also be nice is to have a mod that would email the member a birthday wish :D
There's a huge ungodly condition to that though: you need know how to set up a cron job on the server. Heck I still can't get one to run a PHP script and that's on my local machine!
Hi,
Using RC 3 with the Xmas theme.Have mad all the modifications as outlined but It still will not make a post. Can anybody help?
Quote from: Bobn on December 19, 2010, 09:36:47 AM
Hi,
Using RC 3 with the Xmas theme.Have mad all the modifications as outlined but It still will not make a post. Can anybody help?
Go to Admin -> Maintenance -> Scheduled Tasks and make sure the Birthday Posts option is enabled.
Quote from: JBlaze on December 19, 2010, 09:53:30 AM
Quote from: Bobn on December 19, 2010, 09:36:47 AM
Hi,
Using RC 3 with the Xmas theme.Have mad all the modifications as outlined but It still will not make a post. Can anybody help?
Go to Admin -> Maintenance -> Scheduled Tasks and make sure the Birthday Posts option is enabled.
It is Sir. I have set a "Test" members birthday to today and run it but it still does not bost
Update:
I removed another mod I had Separate Birthdays and it now works. I will try to find the problem and report back. Thank you for a great mod
Hi there... I just want the title to be personalized that it also post the date of the birthday
something like this
Happy Birthday {membername}, (Date here)
What should I type?
I don't believe it has anything for (date) because the date would show in the timestamp of the message.
how can I make the charset=windows-1252
?
In the forum or the emails?
Better question, why?
Quote from: Arantor on February 11, 2011, 12:16:30 PM
In the forum or the emails?
Better question, why?
sry.. its the emails which comes out with missing chars ( danish ).
You'd be better off using UTF-8 rather than windows-1252.
no .. not exactly.. the mails from this mod, not other functions whichs send mails from the site, comes with wrong chars ( weird signs ) instead of i.e.: æ ø å Æ Ø Å
Do notifications work correctly?
Quote from: Arantor on February 11, 2011, 06:01:57 PM
Do notifications work correctly?
yes, it is only the æ ø å in mail who is wrong.
like this..... gerne �nske dig en god f�dselsdag. M� denne dag og de kommende �r blive fulde af forn�jelser.
Quoteyes, it is only the æ ø å in mail who is wrong.
In all notifications or just emails sent from the mod?
its IN THIS MOD, when its sending mails, the problem I have is present, not anywhere else.
*shrug* I just had to be clear since your previous statement wasn't.
What encoding is your forum actually using?
(I don't even know why I'm asking, I have no intention of updating the mod at all)
charset=ISO-8859-1
and or
charset=windows-1252
I just cant figure out how your mod use the ( a ) mail-template.....
or where the charset is set for it.
the other mods using the mail function has no problem sending "normal" mails.
I don't use the mail template at all which is why you can't find it.
If the error is related to a PM notification, it should be broken for PMs too. If it's just the birthday greeting, that's a bug in core SMF since birthday emails is a core feature.
ok, thank you.
will there be an update for rc5?
No, there won't, sorry.
hi does anyone know if this works with 2.0 RC4?
many thanks
Quote from: smitch6 on March 18, 2011, 05:18:52 AM
hi does anyone know if this works with 2.0 RC4?
many thanks
Probably. Try using Admin > Packages > Browse Packages > Advanced and entering 2.0 RC4. (Or RC5 if that's your thing)
well it installed no problems
done the up-date thing you suggested and didn't have any problems there either
but 1 big problem
it doesn't make a post when it's someone's birthday lol, which kinda defeats the object
maybe i set it up wrong i'm not too sure, just went and re-checked the settings and they all seem to be ok
board ID is set at 19 which is the birthday board
poster ID is 1 me :)
set up text etc using {mem name} etc and a little blurb bit happy birthday etc
topic ID is 0
any ideas please, and thanks
Is the scheduled task turned on?
not a clue sorry where is it?
i have the auto post set up ok for the new member thing
thanks
Admin > Maintenance > Scheduled Tasks
Quotei have the auto post set up ok for the new member thing
Which is implemented totally differently and, FWIW, irrelevant.
just checked and no it wasn't ticked
adjusted the temp ac so b'day was today and set the time for 9.56 and hey presto i done a run task check and it worked
brill thanks :)
so the answer to does it work with RC4 is yes
Will this be updated for 2.0 gold? I have it working with rc5 now and would like to keep it after the upgrade. Thanks,
As far as I know it works just fine with 2.0
It won't be updated, seeing as its listed author has left the building forever. However, it should be compatible.
When done final version
dont forget portuguese
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
global $scripturl;
$txt['bp_title'] = 'Poste de aniversário';
$txt['bp_admin_desc'] = 'Esta modificação permite que você defina um poste padrão quando é aniversário dos membros. Você pode especificar quais os quadro, e que topicos devem ser, o assunto do poste e o corpo. Há também o <strong>{membername}</strong> variável que permite que você personalizar ainda mais que isso . Para activar este mod, vá tera que ir para o <a href="' . $scripturl . '?action=admin;area=scheduledtasks;sa=tasks">tarefas agendadas</a> e olhar para "Post Birthday Posts"';
$txt['bp_settings_title'] = 'Mensagem de Configurações de aniversário';
$txt['bp_board'] = 'ID do quadro que você deseja fazer como poste<br /><span class="smalltext" style="color: #FF0000;">NOTA: Este campo tem que estar definido nao deixe em Branco!</span>';
$txt['bp_pid'] = 'ID do membro que você colocou deseja fazer um poste.<br /><span class="smalltext">Padrão é o 0 que é Visitante</span>';
$txt['bp_psubject'] = 'Assunto da mensagem<br /><span class="smalltext">Usar <strong>{membername}</strong> para personalizá-lo</span>';
$txt['bp_pbody'] = 'A carne e molho do poste.<br /><span class="smalltext">Usar <strong>{membername}</strong> para dar-lhe um toque "pessoal".</span>';
$txt['bp_increase_pc'] = 'Será que esses postes pode aumentar a contagem conteúdo de postes?';
$txt['bp_default_subject'] = 'Feliz Aniversário!';
$txt['bp_default_body'] = 'Feliz Aniversário, {membername}!';
$txt['bp_send_pm'] = 'Enviar uma notificação MP?';
$txt['bp_pmsubject'] = 'O assunto da MP.<br /><span class="smalltext">Usar <strong>{membername}</strong> e <strong>{forumname}</strong> para personalizá-lo</span>';
$txt['bp_pmbody'] = 'O corpo principal da MP.<br /><span class="smalltext">Usar <strong>{membername}</strong> e <strong>{forumname}</strong> para personalizá-lo.<br />Usar <strong>{link}</strong> para dar um link no poste.</span>';
$txt['bp_default_pmsubject'] = 'Feliz Aniversário!';
$txt['bp_default_pmbody'] = 'Feliz aniversário de todos os Membros do {forumname}!';
$txt['bp_lastactive'] = 'O utilizador deve estar activa nos últimos quantos dias?<br /><span class="smalltext">Usar 0 para desativar isto.</span>';
$txt['bp_minregdays'] = 'Número mínimo de dias que um utilizador tem que ter sido um membro antes de receber uma mensagem de aniversário em seu dia de aniversário.?<br /><span class="smalltext">Usar 0 para desativar isto.</span>';
$txt['bp_reusetopic'] = 'ID tópico para postar novas mensagens em.<br /><span class="smalltext">Usar 0 fazer com que cada mensagem de aniversário para um novo tópico, ou especificar um ID de tópico que existente aqui.</span>';
$txt['bp_postperday'] = 'Fazer um único poste para que todos os aniversários de hoje?<br /><span class="smalltext">Caso contrário (padrão) fizer um novo post para cada aniversário.</span>';
$txt['bp_banned'] = 'Poste/MP para membros banidos também?';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
global $scripturl;
$txt['bp_title'] = 'Poste de aniversário';
$txt['bp_admin_desc'] = 'Esta modificação permite que você defina um poste padrão quando é aniversário dos membros. Você pode especificar quais os quadro, e que topicos devem ser, o assunto do poste e o corpo. Há também o <strong>{membername}</strong> variável que permite que você personalizar isso mais ainda. Para activar esse mod, vá para o <a href="' . $scripturl . '?action=admin;area=scheduledtasks;sa=tasks">tarefas agendadas</a> e olhar para "Post Birthday Posts"';
$txt['bp_settings_title'] = 'Mensagem de Configurações de aniversário';
$txt['bp_board'] = 'ID do quadro que você deseja fazer o poste<br /><span class="smalltext" style="color: #FF0000;">NOTA: Este isto deve estar definido!</span>';
$txt['bp_pid'] = 'ID do membro que você colocou deseja fazer um poste.<br /><span class="smalltext">Padrão é o 0 que é Visitante</span>';
$txt['bp_psubject'] = 'Assunto da mensagem<br /><span class="smalltext">Usar <strong>{membername}</strong> para personalizá-lo</span>';
$txt['bp_pbody'] = 'A carne e molho do poste.<br /><span class="smalltext">Usar <strong>{membername}</strong> para dar-lhe um toque "pessoal".</span>';
$txt['bp_increase_pc'] = 'Será que esses postes pode aumentar a contagem conteúdo de postes?';
$txt['bp_default_subject'] = 'Feliz Aniversário!';
$txt['bp_default_body'] = 'Feliz Aniversário, {membername}!';
$txt['bp_send_pm'] = 'Enviar uma notificação MP?';
$txt['bp_pmsubject'] = 'O assunto da MP.<br /><span class="smalltext">Usar <strong>{membername}</strong> e <strong>{forumname}</strong> para personalizá-lo</span>';
$txt['bp_pmbody'] = 'O corpo principal da MP.<br /><span class="smalltext">Usar <strong>{membername}</strong> e <strong>{forumname}</strong> para personalizá-lo.<br />Usar <strong>{link}</strong> para dar um link no poste.</span>';
$txt['bp_default_pmsubject'] = 'Feliz Aniversário!';
$txt['bp_default_pmbody'] = 'Feliz aniversário de todos os Membros do {forumname}!';
$txt['bp_lastactive'] = 'O utilizador deve estar activa nos últimos quantos dias?<br /><span class="smalltext">Usar 0 para desativar isto.</span>';
$txt['bp_minregdays'] = 'Número mínimo de dias que um utilizador tem que ter sido um membro antes de receber uma mensagem de aniversário em seu dia de aniversário.?<br /><span class="smalltext">Usar 0 para desativar isto.</span>';
$txt['bp_reusetopic'] = 'ID tópico para postar novas mensagens em.<br /><span class="smalltext">Usar 0 fazer com que cada mensagem de aniversário para um novo tópico, ou especificar um ID de tópico que existente aqui.</span>';
$txt['bp_postperday'] = 'Fazer um único poste para que todos os aniversários de hoje?<br /><span class="smalltext">Caso contrário (padrão) fizer um novo post para cada aniversário.</span>';
$txt['bp_banned'] = 'Poste/MP para membros banidos também?';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
global $scripturl;
$txt['bp_title'] = 'Poste de aniversário';
$txt['bp_admin_desc'] = 'Esta modificação permite que você defina um poste padrão quando é aniversário dos membros. Você pode especificar quais os quadro, e que topicos devem ser, o assunto do poste e o corpo. Há também o <strong>{membername}</strong> variável que permite que você personalizar isso mais ainda. Para activar esse mod, vá para o <a href="' . $scripturl . '?action=admin;area=scheduledtasks;sa=tasks">tarefas agendadas</a> e olhar para "Post Birthday Posts"';
$txt['bp_settings_title'] = 'Mensagem de Configurações de aniversário';
$txt['bp_board'] = 'ID do quadro que você deseja fazer o poste<br /><span class="smalltext" style="color: #FF0000;">NOTA: Este isto deve estar definido!</span>';
$txt['bp_pid'] = 'ID do membro que você colocou deseja fazer um poste.<br /><span class="smalltext">Padrão é o 0 que é Visitante</span>';
$txt['bp_psubject'] = 'Assunto da mensagem<br /><span class="smalltext">Usar <strong>{membername}</strong> para personalizá-lo</span>';
$txt['bp_pbody'] = 'A carne e molho do poste.<br /><span class="smalltext">Usar <strong>{membername}</strong> para dar-lhe um toque "pessoal".</span>';
$txt['bp_increase_pc'] = 'Será que esses postes pode aumentar a contagem conteúdo de postes?';
$txt['bp_default_subject'] = 'Feliz Aniversário!';
$txt['bp_default_body'] = 'Feliz Aniversário, {membername}!';
$txt['bp_send_pm'] = 'Enviar uma notificação MP?';
$txt['bp_pmsubject'] = 'O assunto da MP.<br /><span class="smalltext">Usar <strong>{membername}</strong> e <strong>{forumname}</strong> para personalizá-lo</span>';
$txt['bp_pmbody'] = 'O corpo principal da MP.<br /><span class="smalltext">Usar <strong>{membername}</strong> e <strong>{forumname}</strong> para personalizá-lo.<br />Usar <strong>{link}</strong> para dar um link no poste.</span>';
$txt['bp_default_pmsubject'] = 'Feliz Aniversário!';
$txt['bp_default_pmbody'] = 'Feliz aniversário de todos os Membros do {forumname}!';
$txt['bp_lastactive'] = 'O utilizador deve estar activa nos últimos quantos dias?<br /><span class="smalltext">Usar 0 para desativar isto.</span>';
$txt['bp_minregdays'] = 'Número mínimo de dias que um utilizador tem que ter sido um membro antes de receber uma mensagem de aniversário em seu dia de aniversário.?<br /><span class="smalltext">Usar 0 para desativar isto.</span>';
$txt['bp_reusetopic'] = 'ID tópico para postar novas mensagens em.<br /><span class="smalltext">Usar 0 fazer com que cada mensagem de aniversário para um novo tópico, ou especificar um ID de tópico que existente aqui.</span>';
$txt['bp_postperday'] = 'Fazer um único poste para que todos os aniversários de hoje?<br /><span class="smalltext">Caso contrário (padrão) fizer um novo post para cada aniversário.</span>';
$txt['bp_banned'] = 'Poste/MP para membros banidos também?';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
global $scripturl;
$txt['bp_title'] = 'Poste de aniversário';
$txt['bp_admin_desc'] = 'Esta modificação permite que você defina um poste padrão quando é aniversário dos membros. Você pode especificar quais os quadro, e que topicos devem ser, o assunto do poste e o corpo. Há também o <strong>{membername}</strong> variável que permite que você personalizar isso mais ainda. Para activar esse mod, vá para o <a href="' . $scripturl . '?action=admin;area=scheduledtasks;sa=tasks">tarefas agendadas</a> e olhar para "Post Birthday Posts"';
$txt['bp_settings_title'] = 'Mensagem de Configurações de aniversário';
$txt['bp_board'] = 'ID do quadro que você deseja fazer o poste<br /><span class="smalltext" style="color: #FF0000;">NOTA: Este isto deve estar definido!</span>';
$txt['bp_pid'] = 'ID do membro que você colocou deseja fazer um poste.<br /><span class="smalltext">Padrão é o 0 que é Visitante</span>';
$txt['bp_psubject'] = 'Assunto da mensagem<br /><span class="smalltext">Usar <strong>{membername}</strong> para personalizá-lo</span>';
$txt['bp_pbody'] = 'A carne e molho do poste.<br /><span class="smalltext">Usar <strong>{membername}</strong> para dar-lhe um toque "pessoal".</span>';
$txt['bp_increase_pc'] = 'Será que esses postes pode aumentar a contagem conteúdo de postes?';
$txt['bp_default_subject'] = 'Feliz Aniversário!';
$txt['bp_default_body'] = 'Feliz Aniversário, {membername}!';
$txt['bp_send_pm'] = 'Enviar uma notificação MP?';
$txt['bp_pmsubject'] = 'O assunto da MP.<br /><span class="smalltext">Usar <strong>{membername}</strong> e <strong>{forumname}</strong> para personalizá-lo</span>';
$txt['bp_pmbody'] = 'O corpo principal da MP.<br /><span class="smalltext">Usar <strong>{membername}</strong> e <strong>{forumname}</strong> para personalizá-lo.<br />Usar <strong>{link}</strong> para dar um link no poste.</span>';
$txt['bp_default_pmsubject'] = 'Feliz Aniversário!';
$txt['bp_default_pmbody'] = 'Feliz aniversário de todos os Membros do {forumname}!';
$txt['bp_lastactive'] = 'O utilizador deve estar activo em quantos últimos dias?<br /><span class="smalltext">Usar 0 para desativar isto.</span>';
$txt['bp_minregdays'] = 'Número mínimo de dias que um utilizador tem que ter sido um membro antes de receber uma mensagem de aniversário em seu dia de aniversário.?<br /><span class="smalltext">Usar 0 para desactivar isto.</span>';
$txt['bp_reusetopic'] = 'ID tópico para postar novas mensagens em.<br /><span class="smalltext">Usar 0 fazer com que cada mensagem de aniversário para um novo tópico, ou especificar um ID de tópico que existente aqui.</span>';
$txt['bp_postperday'] = 'Fazer um único poste para que todos os aniversários de hoje?<br /><span class="smalltext">Caso contrário (padrão) fizer um novo post para cada aniversário.</span>';
$txt['bp_banned'] = 'Poste/MP para membros banidos também?';
]]></add>
</operation>
</file>
<file name="$languagedir/ManageScheduledTasks.portuguese_pt.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['scheduled_task_desc_birthdayemails'] = 'Enviar e-mails desejando um feliz aniversário aos membros.';]]></search>
<add><![CDATA[
$txt['scheduled_task_birthday_posts'] = 'Postar Mensagens de Aniversário';
$txt['scheduled_task_desc_birthday_posts'] = 'Postar de um novo tópico quando há um novo aniversário.';]]></add>
</operation>
</file>
<file name="$languagedir/ManageScheduledTasks.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['scheduled_task_desc_birthdayemails'] = 'Enviar e-mails desejando um feliz aniversário aos membros.';]]></search>
<add><![CDATA[
$txt['scheduled_task_birthday_posts'] = 'Postar Mensagens de Aniversário';
$txt['scheduled_task_desc_birthday_posts'] = 'Postar de um novo tópico quando há um novo aniversário.';]]></add>
</operation>
</file>
<file name="$languagedir/ManageScheduledTasks.portuguese_brazilian.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['scheduled_task_desc_birthdayemails'] = 'Enviar e-mails desejando um feliz aniversário aos membros.';]]></search>
<add><![CDATA[
$txt['scheduled_task_birthday_posts'] = 'Postar Mensagens de Aniversário';
$txt['scheduled_task_desc_birthday_posts'] = 'Postar de um novo tópico quando há um novo aniversário.';]]></add>
</operation>
</file>
<file name="$languagedir/ManageScheduledTasks.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="before"><![CDATA[$txt['scheduled_task_desc_birthdayemails'] = 'Enviar e-mails desejando um feliz aniversário aos membros.';]]></search>
<add><![CDATA[
$txt['scheduled_task_birthday_posts'] = 'Postar Mensagens de Aniversário';
$txt['scheduled_task_desc_birthday_posts'] = 'Postar de um novo tópico quando há um novo aniversário.';]]></add>
</operation>
</file>
It seems both previous authors are no longer interested. Is there no one who could take this on?
Take it on and do what it? It installs and works just fine without emulation
Well it would be a start to take it out of it's 'Beta' stage at least!
Hey,
I'm hoping someone can help. I'm running 2.0 GOLD. This mod installed Great. I done all the setting correct and went into Schedule and enable both settings, pressed Run now to test. I didn't get a post made, no email, etc.
Any Ideas?
screenshot attached of the schedule and setting page.
Any help would be greatly appreciated. Thank you!!! : ): )
-facepalm-
Was it someone's birthday? Otherwise nothing would happen...
Just upgraded to 2.0 from 2.0 RC5 and the mod works as awesomely as it did before :)
Quote from: teh_Krall on September 06, 2011, 12:41:56 AM
Just upgraded to 2.0 from 2.0 RC5 and the mod works as awesomely as it did before :)
Good to know but given the last update time is this mod "dead" development wise ?
Also, besides {username}, what other tags can we use in the creation of these posts ?
~~~ SMF 2.0 ~~~
When the schedualed task is run to send out the PM's, emails and even make the posts... what file does it hit ?
I'd like to set up a cron so that all three of these tasks will still run at their set times even if no one visits the site.
Or better yet, and this sort of still deals with the mod because of the tasks pertaining to it but what might a cron look like to jut run the entire schedual tasks thing ?
As I understand it, the schedualed tasks are only checked when the sites being used by at least one person.
has anyone tried this with 2.0.1 yet?
i'm due to upgrade next week and love this mod
Quote from: smitch6 on November 09, 2011, 05:12:48 PM
has anyone tried this with 2.0.1 yet?
i'm due to upgrade next week and love this mod
It installs ok but I can't comment to it's function just yet.
It should still work fine aas everything it relies on hasn't changed.
I have it running on 2.0.1 and it works as designed. :)
I don't know to set this can someone help me? please
Hi, how do i find out the "ID of the member you wish to make the post." ??
The ID is the unique number SMF assigns to your account, for example, in this very own forum I have the id: 245528
http://www.simplemachines.org/community/index.php?action=profile;u=245528
You have the id: 136983
http://www.simplemachines.org/community/index.php?action=profile;u=136983
Quote from: Suki on January 12, 2012, 09:15:42 AM
The ID is the unique number SMF assigns to your account, for example, in this very own forum I have the id: 245528
http://www.simplemachines.org/community/index.php?action=profile;u=245528
You have the id: 136983
http://www.simplemachines.org/community/index.php?action=profile;u=136983
Hi, can you help me to setUp the birthday post ? I know exactly how works
It's pretty straight forward.
what parts are you having problems with?
Quote from: Suki on January 13, 2012, 04:09:46 PM
It's pretty straight forward.
what parts are you having problems with?
i want tu setUp it when someone from my member list has the birthday today.. or tomorrow to make a post with this..
i don't know look down
ID of the board you wish to make the post
NOTE: This must be set! Topic ID to post new messages into.
Use 0 to make each birthday post into a new topic, or specify an existing topic id here. ID of the member you wish to make the post.
Default is 0 which is Guest
Take a look at the SMF wiki.
Board ID is just a number used to easily identify a board, for example, this very own board: Modifications and Packages (http://www.simplemachines.org/community/index.php?board=59.0) has the ID 59
you can see the ID if you hover on any board link or when you are in a board index:
http://www.simplemachines.org/community/index.php?board=59.0
if you use a mod like simplesef of pretty urls, disable that mod for a moment to see the "real" url and the board ID
I think i made it. i will leave reply if everything is good.
thank you
Any progress with random text for the birthday post?
Asked (http://www.simplemachines.org/community/index.php?topic=328059.msg2290337#msg2290337) about it 2 years ago :)
What exactly do you want? do you want it completely random? can you modify this random text directly from the admin panel? does this random text will contain some predefined variables? how many messages?
I need all those details if you want me to implement something.
Suki [?] (http://www.simplemachines.org/community/index.php?topic=328059.msg3270388#msg3270388)
QuoteWhat exactly do you want? do you want it completely random? can you modify this random text directly from the admin panel? does this random text will contain some predefined variables? how many messages?
I need that in the admin panel (mod options) i will be able to set more than one birthday text, so the mod will choose one of them randomly.
Here is a screenshot of how it should look:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg714.imageshack.us%2Fimg714%2F4318%2F67871491.png&hash=f32d2443d1fb1fe03554d90493f1dbeec3d80e13) (http://imageshack.us/photo/my-images/714/67871491.png/)
and this is the look after clicking «Add field»:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg29.imageshack.us%2Fimg29%2F6923%2F19009726.png&hash=acb1e69f7a221249a09022fe19de6c95e4efcb9c) (http://imageshack.us/photo/my-images/29/19009726.png/)
The idea is to avoid the same birthday post for all users.
Thanks.
Attach the images here., imageshack is annoying.
I'm not a fan of adding fields with JavaScript as it can lead to more support request by users who won't be able to add more fields because they have problems with JavaScript been enable or something like that.
As always, I only add new features if enough users are actually interested in, there is no point in building something if only you're gonna use it.
Attached.
[?] (http://www.simplemachines.org/community/index.php?topic=328059.msg3270500#msg3270500)
QuoteI'm not a fan of adding fields with JavaScript as it can lead to more support request by users who won't be able to add more fields because they have problems with JavaScript been enable or something like that.
Many SMF functions works with js, so if it's disabled, it's almost impossible to use the forum.
QuoteAs always, I only add new features if enough users are actually interested in, there is no point in building something if only you're gonna use it.
I sure
all users will use it.
It's not practical to post identical birthday post for all members.
Can you please at least help me to add this ability to my forum?
What should i change in the phps?
Quote
Many SMF functions works with js, so if it's disabled, it's almost impossible to use the forum.
Yes, and that is why I'm not a fan of adding JavaScript for admin panel.
[?] (http://www.simplemachines.org/community/index.php?topic=328059.msg3271048#msg3271048)
QuoteYes, and that is why I'm not a fan of adding JavaScript for admin panel.
What i meant is that anyway javascript is necessary component, so doing this feature using js will not lead to problems with using the mod.
If I'll ever add this it will not be with JavaScript, but rather in a separate page with all the birthday messages listed and with options to edit/modify.
was surfing the unread posts
and just drop by to let you know your images are all broken
What images?
I can perfectly see the images in the mode site (screenshots) other than that, there are no images for this mod.
oh i mean the images in your first post in this thread, they all replaced by huge stop sopa image
unless you purposely did that, if that's the case no need to place that many, nothing big
Again, what images?
this one?
http://www.simplemachines.org/community/index.php?topic=328059.msg2187761#msg2187761
http://cdn.dsultra.com/images/image_redirect/StopSopa.png
???
if so, that is NOT my message, that image appears in someone else's signature, nothing to do with me or this mod.
this is what i see in the first post
there are like 8 of same images
is it only me seeing this?? :o?
perhaps was this one:
[img]http://dev.smfchat.com/img/arrow_right.png[/img]
I removed all instances of that code from the first post.
yeah now it's gone, i see, it was supposed to be an arrow image
That is what happen when you use some image from an external site and months or years later the domain is not active anymore.
;) that's why i always host my own images
That was the case here, the previous mod author hosted all those images on his host and now the host is not active anymore, it is always better to host the images here as an attachment or even use the theme images.
i see, so they were from the old author
anyways, i was just stopped by to let you know that was hard for other to read
and it is good now, have a nice evening, miss all sunday (suki now) ;)
Will this mod be upgraded for version 2.0.2? I would love to have this for my forum. It would save me missing so many birthdays.
Cheers.
It should work on 2.0.x just fine, try to use the Emulation feature: http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn't_work_in_my_SMF_version
Quote from: MissyNL on September 10, 2009, 02:29:55 PM
...the only thing i want to request to this mod is that the admin can set a min. post quote, so that not every member gets an birthday topic, but only the ones who are very active...
Quote from: JBlaze on September 12, 2009, 04:46:09 PM
Indeed. I am actually working on that right now...
That's the only thing missing from this splendid mod. Might have a play myself later on to get the extra functionality implemented...
I've managed to add postcount as a criteria for birthday messaging, and it works fine.
If anyone else is interested, here are the changes I had to make:
NOTE: you must have the Birthday Post modification already installed O:)
In languages\Modifications.english.php
After
$txt['bp_pbody'] = 'The meat and gravy of the post.<br /><span class="smalltext">Use <strong>{membername}</strong> to give it a "personal" touch.</span>';
Add
$txt['bp_min_posts'] = 'Minimum number of posts a member must have';
In Sources\ManageSettings.php
After
array('int', 'bp_minregdays'),
Add
array('int', 'bp_min_posts'),
In Sources\ScheduledTasks.php
Find
AND notify_announcements = {int:notify_announcements}' . (!empty($modSettings['bp_lastactive']) ? '
AND last_login > {int:last_login}' : '') . (!empty($modSettings['bp_minregdays']) ? '
AND date_registered < {int:minreg}' : '') . (empty($modSettings['bp_banned']) ? '
AND is_activated >= 1 AND is_activated <= 10' : '
AND is_activated >= 1'),
array(
'lastpost' => time() - 172800, // more than 2 days ago
'nondate' => '0001-01-01',
'notify_announcements' => 1,
'year' => 1,
'month' => $month,
'day' => $day,
'last_login' => !empty($modSettings['bp_lastactive']) ? time() - ($modSettings['bp_lastactive'] * 86400) : 0,
'minreg' => !empty($modSettings['bp_minregdays']) ? time() - ($modSettings['bp_minregdays'] * 86400) : 0,
Replace with
AND notify_announcements = {int:notify_announcements}' . (!empty($modSettings['bp_lastactive']) ? '
AND last_login > {int:last_login}' : '') . (!empty($modSettings['bp_min_posts']) ? '
AND posts >= {int:posts}' : '') . (!empty($modSettings['bp_minregdays']) ? '
AND date_registered < {int:minreg}' : '') . (empty($modSettings['bp_banned']) ? '
AND is_activated >= 1 AND is_activated <= 10' : '
AND is_activated >= 1'),
array(
'lastpost' => time() - 172800, // more than 2 days ago
'nondate' => '0001-01-01',
'notify_announcements' => 1,
'year' => 1,
'month' => $month,
'day' => $day,
'last_login' => !empty($modSettings['bp_lastactive']) ? time() - ($modSettings['bp_lastactive'] * 86400) : 0,
'posts' => !empty($modSettings['bp_min_posts']) ? $modSettings['bp_min_posts'] : 0,
'minreg' => !empty($modSettings['bp_minregdays']) ? time() - ($modSettings['bp_minregdays'] * 86400) : 0,
Nice work, that was one of the options I forgot to add when I rewrote it a little after the posts quoted above.
Any chances of getting Shambles changes made in to an official addition to this mod ?
If Arantor gave it a thumbs up you know its good heh
Yes is good.
As for an official update, I'm not so sure, I have this crazy idea about releasing my mods as open source so other people can contribute without my approval. This is a special case since I'm not the original developer nor do I hold all the rights, that is the main reason why this particular mod hasn't been uploaded to my github repo yet.
Eh, go nuts.
Strictly speaking the code is partly JBlaze's and partly mine but I'd probably argue there's enough code of mine in there that it doesn't matter any more... so go have fun doing whatever you want with it :)
Thanks :D now I just need Jblaze permission :)
meh, I sometimes wonder why I end up involved on license and lawyer stuff since the only thing I want is to code, I guest is part of the job :P
Without being funny, I'm not sure you do. When I did my last update, I did an awful lot of changes. It was pretty much a rewrite from what I remember.
Well, I'm not talking about who has more lines here. Jblaze is still a developer, even if all the lines he wrote has been replaced, this is still his mod since no proper license was ever introduced, thus, I need his approval before I can change the license on this mod.
I will go with MPL 1.1, solely because this particular license allows to fully give credit to the past contributors without taking in consideration the lines of code they contributed.
Fair enough, you gotta do what you gotta do. Technically if all his contributions were rewritten the discussion would be moot, but it is better to be safe :)
Well I wouldnt ask Suki to do anything Suki doesn't want to and even with you aying you doubt it matters, Suki would still most likely want JBlaze's go ahead so here's hoping we get it ;-)
Quote from: MoreBloodWine on August 05, 2012, 07:53:44 PM
Well I wouldnt ask Suki to do anything Suki doesn't want to and even with you aying you doubt it matters, Suki would still most likely want JBlaze's go ahead so here's hoping we get it ;-)
Oh, I want to do it :D and I'm pretty sure Jblaze will not mind just like Arantor, thing is, we have to do things the right way ;)
Quote from: Suki on August 05, 2012, 07:58:13 PM
Quote from: MoreBloodWine on August 05, 2012, 07:53:44 PM
Well I wouldnt ask Suki to do anything Suki doesn't want to and even with you aying you doubt it matters, Suki would still most likely want JBlaze's go ahead so here's hoping we get it ;-)
Oh, I want to do it :D and I'm pretty sure Jblaze will not mind just like Arantor, thing is, we have to do things the right way ;)
What I meant was askin u to do it without his permision. On that note, I sent him a PM asking if he could please stop by here to read the past few replies ;-)
I can't do it without his permission, wouldn't be the right thing to do.
I want my work to be respected and for that to happen I need to start by respecting everybody else's work ;)
Thank you for letting him know about this though.
Quote from: Suki on August 05, 2012, 08:14:57 PM
I can't do it without his permission, wouldn't be the right thing to do.
I want my work to be respected and for that to happen I need to start by respecting everybody else's work ;)
I know hence the comment about not askin u to do anything u didnt want to.
Now that I'm thinking about it, I will also gonna need Shambles permission to include his edits.
Quote from: Suki on August 05, 2012, 08:48:32 PM
Now that I'm thinking about it, I will also gonna need Shambles permission to include his edits.
Good point but he did already freely provide it for use though, so...
Also, interesting idea... in addition to the post count thing which I assume the admins can set as a to use or not to use thing meaning they might not want to go by post count but just have the posts done for everyone.
What about this as a setting admins can choose to use.
Create posts only for users active in the past: <settable number of days>
QuoteGood point but he did already freely provide it for use though, so...
Doesn't matter. Still requires permission, even if it is implied, it does need confirmation. That's something most people don't often realise about combined works.
Good point, on that note... I tried to send a PM to shambles because I don't know if he is still watching this thread but it seems he's either blocking all PM's or just mine which would be weird since I dont ever recall offending him.
Quote from: MoreBloodWine on August 05, 2012, 08:58:21 PM
Good point, on that note... I tried to send a PM to shambles because I don't know if he is still watching this thread but it seems he's either blocking all PM's..
I 'watch' all threads 8)
I stopped allowing PMs for reasons many others have.
I have no problems with folks using anything I post on SM.org ;)
weet, so it looks like were just waiting on JBLaze now, Suki, did you catch the suggestion I made ?
There is a setting for that already:
Choose whether users must have been online in the previous x days to receive a post
Quote from: Suki on August 06, 2012, 08:22:16 PM
There is a setting for that already:
Choose whether users must have been online in the previous x days to receive a post
Wow, I feel like a dumbass lol.
For rme I figure anywhere from 15 to 30 days should be good.
Interstingly enough, could that and the post thing be used together so it works like a either or instead of conflicting ?
Ex. User has to have either x posts or have been online in the past x days for a post to be created.
If they're not online in the past x days, I doubt they really care about their birthday being celebrated...
@Suki, it's fine by me, and looks like Arantor is OK with it too. Enjoy :)
Quote from: JBlaze on August 10, 2012, 03:15:57 PM
@Suki, it's fine by me, and looks like Arantor is OK with it too. Enjoy :)
SWEEEET !
I updated the mod, please do test it: https://github.com/MissAllSunday/BirthdayPosts
-Added license MPL 2.0
-Update to 2.0.x
-Use hooks for the admin settings
-Add the changes made by Shambles™
-Move the language strings to its own files
-Added Spanish_latin translation
-Folder structure
Please do test it so I can update the mod on the modsite.
Works for me on BlueTender.net (http://www.bluetender.net). Thanks! :)
Quote from: Suki on September 18, 2012, 06:02:38 PM
I updated the mod, please do test it: https://github.com/MissAllSunday/BirthdayPosts
-Added license MPL 2.0
-Update to 2.0.x
-Use hooks for the admin settings
-Add the changes made by Shambles™
-Move the language strings to its own files
-Added Spanish_latin translation
-Folder structure
Please do test it so I can update the mod on the modsite.
Ok so my stupid question of the day is how do I download the files from github and install the mod? I'm only familiar with downloading the zip files from the SMF download site. How can I get the updated version of this mod in a zip format? This mod looks great and I'd really like to use it for my forum, my members would love it. Thanks in advance. ;D
You just need to go to that page and click on the ZIP button, this will download the entire mod as a double folder mod, some host might have problems handling a double folder mod, if that happens you you just unzip it and zip it again but this time zip just the files rathern than the entire folder.
Ok so the mod works fine in 2.0.3 and hasn't been touched since Jan. 2012, however. I was wondering if an update to the following could be added where a new variable can be used in title and post/pm etc. that is the users age with the appropriate st/nd/rd/th next to their age.
Ex. My last bday: 31st
Not without a fair amount of effort IIRC because you'd have to know the suffixes for each language, because the mod can't just be for English...
Correction, it hasn't been touched since September 18, 2012 and thats because it hasn't receive any support/bugs questions since then. I always watch my modifications.
I was hoping for people to test out the new version but everybody knows thats not going to happen, I was actually going to upload the new version at my site but people just don't bother to go anywhere else but here... too much effort for nothing.
The mod is now updated: BirthdayPosts.zip is the file.
Quote from: Arantor on January 11, 2013, 07:18:00 AM
Not without a fair amount of effort IIRC because you'd have to know the suffixes for each language, because the mod can't just be for English...
Ok, so what languages does this mod currently support ?
I don't mind doind the finger work to try and find what the ordinal suffixes are for each of the currently supported languages.
I just downloaded this mod, install (manually) and.... nothing!
My forum use custom theme and diff. language, but still...
Simple, this mod did´nt make any change in my admin selection (even when I turn forum on default theme and english lang).
any idea? :-\
It should appear in Admin > Configuration > Modification Settings > Birthday Post
Don't you have that new section?
Nope :(
You'll have to revisit the installation/parse instructions, since you installed it manually.
Presumably you got no errors from executing hooks.php and install.php...?
No, everything go just fine, but I dont see new mod in admin section :-[
There is no need to do a manual install, thats why I took the bother to minimize file edits, so users don't have to worry about custom themes or conflicts with other mods.
If you insists on doing a manual install, you need to manually run the install.php and hooks.php files, you need to move all the mod files to their proper locations, to make it even easier, I followed SMF directory structure, meaning you only have to upload the mod's Themes and Sources directories to your forum root folder, this will automatically put the mod's files to the appropriate location.
You also need to either translate the mod strings to your language or jusy make a copy of the English language file and rename it to your language's name.
I was messin around with scheduled tasks and saw these two things.
1. Send Birthday Emails
Sends out emails wishing members a happy birthday.
2. Post Birthday Posts
Posts a new topic when there is a new birthday.
Did this mod put them there, if so why aren't they enabled by default ? I'd probably have gone a few birthdays without realising I needed to set these two things.
The first is an SMF core feature, the second is the mod and it should be enabled by default...
Quote from: Arantor on January 25, 2013, 05:46:29 AM
The first is an SMF core feature, the second is the mod and it should be enabled by default...
Wasn't for me ;-/
Thx for the reply as always ;-)
Edit: I dont remmeber where I saw this but it was somewhere, I thought it had somethin to do with this mod but now I can't find it. It was a dropdown list of selectable birthday messages and one of the options was that cheesy generic one SMF uses here about wanting to get you a card etc.
Where is that and what's it for if not for this mod because I found it somewhere earlier but can't now ;-/
QuoteIt was a dropdown list of selectable birthday messages and one of the options was that cheesy generic one SMF uses here about wanting to get you a card etc.
That is the default in-built Birthday Email function, configurable in Admin > Maintenance > Mail Settings (or wherever it is in SMF 2.0, I seem to remember moving it around the ACP some time ago)
Ok, so I jut checked my forum and have birthday posts for every member including myself and not one had a birthday today (yessterday the 25th), whats up with that lol
so, what did you do?
The mod checks the db for birthdays, if there is none, then nothing will happen
Quote from: Suki on January 26, 2013, 10:01:30 AM
so, what did you do?
The mod checks the db for birthdays, if there is none, then nothing will happen
Thats just it, I didnt do anything but instl the mod.
Thats not possible unless you manually modified the mod's code. Make sure you are indeed using the latest version as there was a bug where people with no date been set had b-day post but that was fixed a long time ago before I took it over.
I can't help if you don't provide more details.
Quote from: Suki on January 26, 2013, 07:18:34 PM
Thats not possible unless you manually modified the mod's code. Make sure you are indeed using the latest version as there was a bug where people with no date been set had b-day post but that was fixed a long time ago before I took it over.
I can't help if you don't provide more details.
I dont have a habbit of installing mods and then changing code. As for more details, other than I installed the mod and made sure the task was set to run because it wasnt after install I got the posts. I've since uninstalled the mod because I dont need to chance this happening every night.
Ok, o I just hit reinstall the mod... hit run task to see if it would do it again. Well, it didnt, at least not for the users it already goofed on. What it did do though was make a post for rthe newet member to the site who doesn't even have a birthday set. I uspect next time someone signs up and the scheduled task is set to run to chek for birthdays that it will post a post for the new user.
Quote from: MoreBloodWine on January 26, 2013, 01:47:59 AM
Ok, so I jut checked my forum and have birthday posts for every member including myself and not one had a birthday today (yessterday the 25th), whats up with that lol
Mines doing the exact same thing although an uninstall and re-install changed nothing. It posts a birthday greeting for everyone that fulfil the number of posts criteria every time it runs.
I had this mod do the same thing twice. When one member has a birthday it makes a new post for all members. If no members have a birthday then it doesn't post like it's supposed to. No modifications have been made and I did upload the latest version.
Im sorry but I am DONE with thi mod because it happened again and I have all my members complaining !!!
Si el mod es tán malo, solo desinstalalo y listo... no pagaste nada por el...
El mod es código libre, cualquiera puede actualizarlo, no solo yo.
Quote from: Suki on January 29, 2013, 09:12:09 AM
Si el mod es tán malo, solo desinstalalo y listo... no pagaste nada por el...
El mod es código libre, cualquiera puede actualizarlo, no solo yo.
---
If the mod is so bad, just uninstall it and go ... did not pay anything ...
The mod is open source, anyone can update it, not just me.
Maybe so but as the mods author arent you supposed to investigate thee issues ? Sure details help but there' nothing to give other than I installed the mod and got posts for everyone, which happens every time a new member registers before the task runs. So, if I get one new member a day before 7pm EST the task runs and makes a post for everyone. I did not special modifications and installed this out of the box so AFAIK this is a problem with the mod, not me. This theory holds true on two different sites, one of which is a completely brand new install.
Edit: As far ras anyone updating it goes, if anyone knows how to fix the mod with a proper patch would you kindly consider doing so ;-)
QuoteMaybe so but as the mods author arent you supposed to investigate thee issues ?
Maybe so but as the mod's user aren't you supposed to be polite?
Let's take a look at the history of the mod. The original author - JBlaze - doesn't hang around here. The subsequent maintainer - me - doesn't touch mods with a barge pole for SMF because of people who don't understand that I come here in my spare time to help out, not to serve everyone's requests and demands.
If you want to make the 'the mod's author' argument, make it at one of us. It was fine when we wrote it. It's entirely possible your installation is broken because I can't reproduce this on my setup (and I tried)
QuoteEdit: As far ras anyone updating it goes, if anyone knows how to fix the mod with a proper patch would you kindly consider doing so ;-)
I was considering spending some time on it, but given your rudeness to people giving you things for free, not no way.
I can for sure investigate, what bothers me is the "I'm done with this mod" type of threat... thats not a good way of convincing a voluntary dev to look after an issue...
Far from me wanting to fix it, all you did by complaint is scared me away.
With that said, even if I wanted to give a patch, apparently, the way I do things right now is ****** and doesn't work for a forum software so I might end up ******ing this more than it already is...
QuoteWith that said, even if I wanted to give a patch, apparently, the way I do things right now is ******
The only person saying that is you... there's truly nothing wrong with what I've seen of what you've made, other than the need to keep remaking it to conform to a new design pattern.
Quote from: Arantor on January 29, 2013, 09:40:29 AM
Maybe so but as the mod's user aren't you supposed to be polite?
Yes and for the most part I have been except with maybe the snippyness of my last reply and the I'm done with this mod comment.
Quote from: Arantor on January 29, 2013, 09:40:29 AM
Let's take a look at the history of the mod. The original author - JBlaze - doesn't hang around here. The subsequent maintainer - me - doesn't touch mods with a barge pole for SMF because of people who don't understand that I come here in my spare time to help out, not to serve everyone's requests and demands.
If it's one thing I understand it's that everyone here including the SMF team themselves do this in their spare time.
Quote from: Arantor on January 29, 2013, 09:40:29 AM
If you want to make the 'the mod's author' argument, make it at one of us. It was fine when we wrote it. It's entirely possible your installation is broken because I can't reproduce this on my setup (and I tried)
Ok, so I didn't look at the transfer rhistory of this mod or whatever you want to call it. Thats a fault I claim and own, I just looked at the created by on the mod page.
Quote from: Arantor on January 29, 2013, 09:40:29 AM
I was considering spending some time on it, but given your rudeness to people giving you things for free, not no way.
I may come accross like a total ass in some of my replies and for that I apologize but I do not always expect thigns for free. In the past two years I have spent around thousand bucks here on different people for different things.
All of my frutration, rudeness, assholeishnes or whatever you want to call it is just that... frustration.... maybe I just took all my members accross four sites yelling at me for post flooding out on you guys, I don't know, but either way there's no taking it back since whats been said has been said. All one can do is apologize but depending on the reciving end of it they might just blow it off any way because they don't know how to forgive. Not saying anyone here doesnt know how to forgive, just that sometimes even the most sincerest of apologies doesnt mean a damn thing to some people.
Quote from: Suki on January 29, 2013, 10:00:35 AM
I can for sure investigate, what bothers me is the "I'm done with this mod" type of threat... thats not a good way of convincing a voluntary dev to look after an issue...
Far from me wanting to fix it, all you did by complaint is scared me away.
With that said, even if I wanted to give a patch, apparently, the way I do things right now is ****** and doesn't work for a forum software so I might end up ******ing this more than it already is...
Sometimes something has to be messed up more than it already is to be properly fixed... jut depends on the situation but scaring you away or anyone for that mater was never my intention.
Ass for not duplicating this problem... like I said, one site was a brand new fresh install and the others of various ages and this happened on all of them so I honestly don't know what to say about why it cannot be reproduced but assuming the other two "this is happening to me too" replies are legitimate posts and not trolls then I'm not the only one so there is a clear issue here.
Edit: I would alo add that I am using the DL labeled BirthdayPosts.zip from the mod page and it labels verion number 0.13 Beta in the Package Manager.
I am one of those that replied that I have this issue too.
I moved from phpbb to SMF after about 5 years because of issues I had with phpbb and corrupted installs. Most of the time doing any mods manually as Automod cased all sorts of problem
Very happy with SMF in the main. It adds features not available in phpbb and I like the package management. My site has a number of mods applied in order to get as close to what existed before in phpbb but this one does not work When it runs it posts a greeting for every member that meets the criteria (min number of posts etc) in the settings.
My forum is at nothlondonpride.com/forum and the members database is linked to the wordpress installation at northlondonpride.com using the WPSMF - Wordpress to SMF plugin.
SMF is at 2.02 with the following Mods;
httpBL - 2.5.1
Add Twitter Tweet Button to Posts - 1.1
Alternate User Posting - 1.01
Admin Notepad - 2.02
Add Facebook Like to Posts - 1.1
Last Edit Link - 2.0
6 Custom buttons / tabs with Sub Menus (4) - 0.5
Button 1 Menu Extender for 6 custom buttons mod 1.0
Global Headers Footers 2.0
MessagePreviewOnHover 1.8
Stop Spammer 2.3.9
Ohara YouTube Embed 1.0
The default template is set for everyone to use a slightly modified curve template
The default smf email to members on their birthday works ok
In the smf_members table default dobs (where a user hasn't entered one are all set to 0001-01-01 despite the smf members\forumprofile shown as 0000-00-00 although I am not sure that's the problem as all members including those with a correctly set birthdate, get a happy birthday post every time it is run
That is about all the information I can think of that I can give you and I would be very grateful if someone could look into this
What are your settings for the mod? are you using a single topic or new topics for each user? do you have any custom checks like the active one or the minimum post an user must have?
Quote from: Suki on January 29, 2013, 04:07:05 PM
What are your settings for the mod? are you using a single topic or new topics for each user? do you have any custom checks like the active one or the minimum post an user must have?
As far as I go, new topic for each member... atached are the settings, same ones used accross all sites.
Then under tasks I hav the mod post thing checked, which again it wasnt after initial install then I have the core email thing ticked as wel lfor birthdays.
new topic for each user (which meant on three occasions I have had to delete up to 300 posts)
Must be active in the past 365 days
No PMs set
Does the same if minimum posts is set or not. if it is set to 0 everyone gets a post - if set to a number only those with post count higher get one
I dunno why these checks got deleted on the new version:
AND MONTH(birthdate) = {int:month}
AND DAYOFMONTH(birthdate) = {int:day}
AND birthdate > {string:nondate}
I don't remember modifiying anything on the scheduled_birthday_posts() func when I did the update...
Anyway, open yourSources/ScheduledTasks.php file and find:
$result = $smcFunc['db_query']('', '
SELECT id_member, real_name
FROM {db_prefix}members
WHERE bp_lastpost < {int:lastpost}
AND notify_announcements = {int:notify_announcements}' . (!empty($modSettings['bp_lastactive']) ? '
AND last_login > {int:last_login}' : '') . (!empty($modSettings['bp_min_posts']) ? '
AND posts >= {int:posts}' : '') . (!empty($modSettings['bp_minregdays']) ? '
AND date_registered < {int:minreg}' : '') . (empty($modSettings['bp_banned']) ? '
AND is_activated >= 1 AND is_activated <= 10' : '
AND is_activated >= 1'),
array(
'lastpost' => time() - 172800, // more than 2 days ago
'nondate' => '0001-01-01',
'notify_announcements' => 1,
'year' => 1,
'month' => $month,
'day' => $day,
'last_login' => !empty($modSettings['bp_lastactive']) ? time() - ($modSettings['bp_lastactive'] * 86400) : 0,
'posts' => !empty($modSettings['bp_min_posts']) ? $modSettings['bp_min_posts'] : 0,
'minreg' => !empty($modSettings['bp_minregdays']) ? time() - ($modSettings['bp_minregdays'] * 86400) : 0,
)
);
and replace with:
$result = $smcFunc['db_query']('', '
SELECT id_member, real_name
FROM {db_prefix}members
WHERE bp_lastpost < {int:lastpost}
AND MONTH(birthdate) = {int:month}
AND DAYOFMONTH(birthdate) = {int:day}
AND birthdate > {string:nondate}
AND notify_announcements = {int:notify_announcements}' . (!empty($modSettings['bp_lastactive']) ? '
AND last_login > {int:last_login}' : '') . (!empty($modSettings['bp_minregdays']) ? '
AND date_registered < {int:minreg}' : '') . (empty($modSettings['bp_banned']) ? '
AND is_activated >= 1 AND is_activated <= 10' : '
AND is_activated >= 1'),
array(
'lastpost' => time() - 172800, // more than 2 days ago
'nondate' => '0001-01-01',
'notify_announcements' => 1,
'year' => 1,
'month' => $month,
'day' => $day,
'last_login' => !empty($modSettings['bp_lastactive']) ? time() - ($modSettings['bp_lastactive'] * 86400) : 0,
'minreg' => !empty($modSettings['bp_minregdays']) ? time() - ($modSettings['bp_minregdays'] * 86400) : 0,
)
);
That should cover it.
Just for the sake of argument so I can say that I asked, what do those checks do exactly ?
I will test patch here in a few mins but if you could make a new package as well that would be awesome so others don't have the same issues we did and again, sorry about earlier I sometimes have a tendancy to throw frustration tossed at me on to others.
AND MONTH(birthdate) = {int:month} extracts the month form the birthday field and checks it againts the $month var
AND DAYOFMONTH(birthdate) = {int:day} The same but for the day
AND birthdate > {string:nondate} This checks that the birthday field isn't 0001-01-01
Quote from: Suki on January 29, 2013, 04:36:54 PM
AND MONTH(birthdate) = {int:month} extracts the month form the birthday field and checks it againts the $month var
AND DAYOFMONTH(birthdate) = {int:day} The same but for the day
AND birthdate > {string:nondate} This checks that the birthday field isn't 0001-01-01
So thats basically what says a birthday doesnt exist or isnt today o don't post ?
Cool...
been testing this patch and it didn't seem to post at all
However - set the bp_lastpost field to 0 and it worked
I assume that the task also checks this and if less than a year does not post a thread.
If so I will need to reset all of these to take into account all the previous failed runs
Time to dust of the rusty SQL
Yes, the query check if the user has been fetched recently, it is not a year but 2 days so you just need to wait 3 days.
Yep - worked that out
(Reset them all to 0 anyway so effectively a clean start)
Thanks for your help - much appreciated
Updated to include the missing query checks.
Thx Suki, you rock !
Ive installed this mod.. have it set right in the admin area but today was a birthday and nothing was posted. I am using 2.0.13
The mod depends on the info your users provide, make sure your users set up their birthday info correctly.
This mod uses the scheduled task system which is a pseudo-cron system but it depends on someone actually triggering the tasks, if there were no visits by the time the task was suppose to be executed then it prob wasn't triggered at all.
Check your scheduled task log and see if the birthday post task was executed.
I see there are a number of options for download
birthday_posts_v0.12.1.zip (9kB) [1706]
birthday_posts_v0.12.1-rc3.zip (9kB) [2759]
BirthdayPosts.zip (24kB) [502]
The 24kB one is set as 'default' am I right to assume that's actually the correct version to use?
What are the others?
(Running SMF 2.0.15)
Yes, the file named BirthdayPosts.zip should work just fine on SMF 2.0.x
Hi Suki. Thanks.
Quote from: Suki on June 13, 2019, 11:08:58 AM
Yes, the file named BirthdayPosts.zip should work just fine on SMF 2.0.x
Dragging this back to the top of this board. ;)
We have been using this mod to post a message on a specific board to congratulate a member of our forum with his birthday. However, after updating PHP and SMF 2.0.17 the mod no longer seems to work. Any help appreciated!
Quote from: ghulst on October 17, 2020, 05:36:03 PM
... after updating PHP and SMF 2.0.17 the mod no longer seems to work.
"no longer seems to work" doesn't really describe your issue. Please elaborate.
Requesting update for 2.1 please ;) O:)
Added to my never ending to do list :'(
How do I make this mod work, install everything perfectly, I make the configurations, but it does not make publications or anything..
You'll more than likely need to wait for
@Suki to update the mod, especially if you're on SMF v2.1.x