<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.8.0-dev (info@mypapit.net)" -->
<rss version="2.0" >
    <channel>
        <title>Post Notification Forum News</title>
        <description></description>
        <link>http://pn.xn--strbe-mva.de/</link>
        <lastBuildDate>Tue, 07 Sep 2010 04:02:33 GMT</lastBuildDate>
        <generator>FeedCreator 1.8.0-dev (info@mypapit.net)</generator>
        <item>
            <title>Free-pick categories [Solution]</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=578</link>
            <description><![CDATA[
I have a case where I don't want people to have subcats since I have like this<br />
Cat1: CompanyInfo<br />
Cat1.1: DivisionInfo<br />
Cat1.1.1.: GroupInfo<br />
<br />
So I want people to get CompanyInfo, DivisionInfo and GroupInfo, but not another groups info.<br />
(I do have CaPa, so people can't read the wrong info, but still, to reduce mail)<br />
<br />
To do this I just found "pncats.js" and just commented away code with /* and */ like this:<br />
<br />
<tt>function post_notification_cats_init(){<br />
/*<br />
&nbsp;&nbsp;&nbsp; var boxes =&nbsp; document.getElementsByTagName("input");<br />
&nbsp;&nbsp;&nbsp; var tocheck = "";<br />
<br />
&nbsp;&nbsp; &nbsp; &nbsp; ... [lots of code]...<br />
<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if(boxes[i].checked == true){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; tocheck = boxes[i].id; //From now on this is the new String<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; }<br />
*/<br />
&nbsp;&nbsp;&nbsp; post_notification_running = false;<br />
}<br />
</tt>

]]></description>
            <author> no_email@example.com (cahlin)</author>
            <pubDate>Tue, 20 Jul 2010 08:09:57 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/578</guid>
        </item>
        <item>
            <title>Swedish translation (sv_SE)</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=577</link>
            <description><![CDATA[
Not much to say, just a Swedish translation.<br />
Feel free to (ab)use it in any way <img src="http://pn.xn--strbe-mva.de/unb_lib/designs/_smile/unb/smile.png" title=":)" alt=":)" style="vertical-align:middle;width:15px;height:15px;" class="smilie" />
]]></description>
            <author> no_email@example.com (cahlin)</author>
            <pubDate>Tue, 20 Jul 2010 07:23:58 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/577</guid>
        </item>
        <item>
            <title>Embed image</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=574</link>
            <description><![CDATA[
Modified plugin to send email with embedde image<br />
<br />
Upload all images to /wp-content/uploads<br />
<br />
<a href="http://www.hotelwww.com.br/download/post-notification-embedded-image/post-notification_embedded_image.zip" title="http://www.hotelwww.com.br/download/post-notification-embedded-image/post-notification_embedded_image.zip">http://www.hotelwww.com.br/download/post-notification-embe…</a>
]]></description>
            <author> no_email@example.com (hotelwww)</author>
            <pubDate>Wed, 07 Jul 2010 03:10:15 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/574</guid>
        </item>
        <item>
            <title>Russian translation</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=558</link>
            <description><![CDATA[
Hello, everyone!<br />
<br />
Did a translation, saved everything into UTF-8, enjoy!
]]></description>
            <author> no_email@example.com (Jure)</author>
            <pubDate>Tue, 23 Mar 2010 13:22:52 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/558</guid>
        </item>
        <item>
            <title>Hebrew Translation</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=554</link>
            <description><![CDATA[
Hi,<br />
I have made a Hebrew translation of Post Notification (the existing translation was partial and badly phrased) and would like to pass it on and share it -- see attached file.
]]></description>
            <author> no_email@example.com (yonat)</author>
            <pubDate>Fri, 12 Mar 2010 14:50:17 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/554</guid>
        </item>
        <item>
            <title>Patch: Set Categories During Initial Subscribe</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=541</link>
            <description><![CDATA[
frontend_subscribe.php:<br />
<br />
<tt>&nbsp; &nbsp; &nbsp; &nbsp; // ******************************************************** //<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; //&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SUBSCRIBE<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; // ******************************************************** //<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; if ($action == "subscribe" || $action == '') {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $mid = post_notification_get_mid($addr);<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if(!$mid){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; post_notification_add_email($addr); //Ab bit of an overhead, but for historical reasons.<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $mid = post_notification_get_mid($addr);<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; //Add request to send mail to queue.<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $wpdb-&gt;query("INSERT INTO $t_queue (email_id, obj_id, state, type, date) <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; VALUES($mid, 0, 0, 2, '" . post_notification_date2mysql() . "')");<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if(is_numeric($post_id)){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; post_notification_fe_update_subscriptions($mid, array($post_id) ,2, false);<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; /* BEGIN Patch */<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if($_POST['pn_set_post_cat']){&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; post_notification_fe_update_subscriptions($mid,$_POST['pn_post_cat'] ,0);<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $datasaved = true;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; /* END Patch */<br />
<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; //Output Page<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $content['header'] = $post_notification_strings['registration_successful'];<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $content = post_notification_ldfile('reg_success.tmpl');<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; return $content; //here it ends - We don't want to show the selection screen.<br />
<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; }<br />
</tt>

]]></description>
            <author> no_email@example.com (chrisdpratt)</author>
            <pubDate>Mon, 08 Feb 2010 10:42:37 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/541</guid>
        </item>
        <item>
            <title>Bugfix category-selector</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=489</link>
            <description><![CDATA[
<b>Issue</b><br />
Under some circumstances, the category selector selects more categories than he should.<br />
<br />
<b>Example</b><br />
<br />
<img src="http://www.gwegner.de/wp-content/images/forum/pn.png" title="http://www.gwegner.de/wp-content/images/forum/pn.png" alt="[Image: http://www.gwegner.de/wp-content/images/forum/pn.png]" /><br />
<br />
In this case for me clicking on the topmost checkbox "News" as well selects the whole subtree on "Störungen".<br />
<br />
I managed to debug this one and will share the solution with you - and hope, the author will incorporate it into the next version.<br />
<br />
<b>Background</b><br />
<br />
there is a somewhat "interesting" javascript logic turning the checkboxes on and off.<br />
<br />
<img src="http://www.gwegner.de/wp-content/images/forum/pn_error.png" title="http://www.gwegner.de/wp-content/images/forum/pn_error.png" alt="[Image: http://www.gwegner.de/wp-content/images/forum/pn_error.png]" /><br />
<br />
It checks for the category Id and assumes, the category has ended, when the substring cat.0.1 changes.<br />
In this case however (see example) this substring is not changing, although the parent categroy does. The reason ist, that the ID of next category "16" begins with "1". That's the problem when using strings for numbers...<br />
<br />
<b>Solution</b><br />
<br />
Okay and here we go with the solution:<br />
<br />
Exchange the contents of your pncats.js file with the following code:<br />
<br />
<tt>var post_notification_running = false;<br />
var post_notification_box = new Array();<br />
<br />
function post_notification_cats_init(){<br />
&nbsp;&nbsp;&nbsp; var boxes =&nbsp; document.getElementsByTagName("input");<br />
&nbsp;&nbsp;&nbsp; var tocheck = "";<br />
&nbsp;&nbsp;&nbsp; var i;<br />
&nbsp;&nbsp;&nbsp; if(post_notification_running) return;<br />
&nbsp;&nbsp;&nbsp; post_notification_running = true;<br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; for(i = 0; i &lt; boxes.length; i++){<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; if(boxes[i].id.substr(0, 4)== "cat."){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if(boxes[i].disabled == true){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; boxes[i].checked = post_notification_box[i];<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; boxes[i].disabled = false;&nbsp; &nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; for(i = 0; i &lt; boxes.length; i++){<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; if(boxes[i].id.substr(0, 4)== "cat."){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if(tocheck != ""){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; // hack by gwegner.de<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if((boxes[i].id.substr(0, tocheck.length) == tocheck)<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &amp;&amp; (boxes[i].id.length &gt; tocheck.length)<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &amp;&amp; (boxes[i].id.substr(tocheck.length, 1) == "."))<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; // end of hack&nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; {<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; post_notification_box[i]&nbsp; = boxes[i].checked;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; boxes[i].checked = true;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; boxes[i].disabled = true;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; } else {<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; tocheck = "";<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if(tocheck == ""){ //There is no string <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if(boxes[i].checked == true){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; tocheck = boxes[i].id; //From now on this is the new String<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; post_notification_running = false;<br />
}<br />
<br />
<br />
function post_notification_cats_change(){<br />
<br />
}<br />
</tt>
<br />
regards<br />
gw
]]></description>
            <author> no_email@example.com (gw)</author>
            <pubDate>Mon, 17 Aug 2009 12:38:05 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/489</guid>
        </item>
        <item>
            <title>Post Notification in Japanese</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=431</link>
            <description><![CDATA[
Hi<br />
<br />
I translated the language file in Japanese.<br />
<br />
I used UTF-8 for the files.<br />
<br />
I sent the files to my server but it didn't work. When I go to settings in Post Notification, it is only written "Settings", nothing more.<br />
<br />
I guess I made a mistake somewhere.<br />
<br />
If you want, I could send you the files. I have to admit that Japanese is not my mother tongue so it would be better to find some Japanese person to do that (still I studied Japanese for 4 years at university, so my translation mustn't be too bad, but a Japanese person would definitely do better).<br />
<br />
Could you help me understand what I should to make it work ?<br />
<br />
Thank you very much
]]></description>
            <author> no_email@example.com (raphael)</author>
            <pubDate>Mon, 30 Mar 2009 14:59:56 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/431</guid>
        </item>
        <item>
            <title>Spanish translation (es_ES)</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=394</link>
            <description><![CDATA[
Hi, I want to make the Spanish translation of this plugin, but after reading this forums I think it's better to wait until the 2.0 is released. Where can I get the alpha or beta to begin translation?
]]></description>
            <author> no_email@example.com (juant)</author>
            <pubDate>Sat, 24 Jan 2009 09:07:32 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/394</guid>
        </item>
        <item>
            <title>Auto Subscribe when new user registing</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=386</link>
            <description><![CDATA[
give admin an option "Auto Subscribe When New User Registing" ,Choice "yes" ,the new user will auto subscribe<br />
<br />
<br />
change :<br />
<br />
1 in install.php add<br />
add_option('post_notification_auto_subscribe', 'yes','Auto Subscribe when regist new user', 'no');&nbsp; <br />
2 in admin_settings.php<br />
&nbsp; 2.1 under line&nbsp; &lt;h4&gt; &lt;?php&nbsp; _e('Technical', 'post_notification');&nbsp; ?&gt;&lt;/h4&gt; <br />
&nbsp;&nbsp; &nbsp;&nbsp; add:<br />
&nbsp;&nbsp;&nbsp; &lt;tr class="alternate"&gt;<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;th style="text-align:right;padding-right:10px;"&gt;&lt;?php _e('Auto Subscribe When New User Registing:', 'post_notification'); ?&gt;&lt;/th&gt;<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;td&gt;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;select name="auto_subscribe" &gt;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;option value="no"&nbsp; &lt;?php&nbsp; echo $auto_subscribeN; ?&gt; &gt; &lt;?php&nbsp; _e('No', 'post_notification'); ?&gt;&lt;/option&gt;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;option value="yes" &lt;?php&nbsp; echo $auto_subscribeY; ?&gt; &gt; &lt;?php&nbsp; _e('Yes', 'post_notification'); ?&gt;&lt;/option&gt;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;/select&gt;&nbsp; &nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;/td&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/tr&gt;&nbsp; <br />
<br />
&nbsp;&nbsp; 2.2 in function post_notification_admin_sub()<br />
&nbsp;&nbsp; &nbsp;&nbsp; add:<br />
<br />
<br />
&nbsp;&nbsp;&nbsp; update_option('post_notification_auto_subscribe', $_POST['auto_subscribe']); <br />
<br />
&nbsp;&nbsp;&nbsp; if(get_option('post_notification_auto_subscribe') == 'yes') //rather have No<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $auto_subscribeY = $selected;<br />
&nbsp;&nbsp;&nbsp; else <br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $auto_subscribeN = $selected; <br />
<br />
3 in post_notification.php<br />
&nbsp; 3.1 in&nbsp; function post_notification_gui_init() add:<br />
&nbsp;&nbsp; &nbsp;&nbsp; add_action('user_register', 'post_notification_register');&nbsp; <br />
&nbsp; 3.2 add function&nbsp; post_notification_register<br />
///&nbsp; Auto Subscribe for new wordpress user registion<br />
function post_notification_register($user_id) {<br />
&nbsp;&nbsp;&nbsp; global $wpdb;&nbsp; &nbsp; &nbsp; <br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; if ($user_id == 0 ) { $user_id = get_userdatabylogin($_POST['user_login']); }<br />
&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; $auto_subscribe =&nbsp; get_option('post_notification_auto_subscribe') ;<br />
&nbsp;&nbsp;&nbsp; if ($auto_subscribe == "no") { return; }<br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; if (0 == $user_id) { $user_id = (int) func_get_arg( 0 ); }<br />
&nbsp;&nbsp;&nbsp; if (0 == $user_id) { return; }&nbsp; &nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $t_emails = $wpdb-&gt;prefix . 'post_notification_emails';<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $t_cats = $wpdb-&gt;prefix . 'post_notification_cats';<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $user = get_userdata($user_id);<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $addr = $user-&gt;user_email ;<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $gets_mail = 1;<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $now = post_notification_date2mysql();<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $mid = $wpdb-&gt;get_var("SELECT id FROM $t_emails WHERE email_addr = '$addr'"); <br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; if (!$mid) {<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $wpdb-&gt;query(<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; "INSERT " . $t_emails .<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; " (email_addr, gets_mail, last_modified, date_subscribed) " .<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; " VALUES ('$addr', '$gets_mail', '$now', '$now')");&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $mid = $wpdb-&gt;get_var("SELECT id FROM $t_emails WHERE email_addr = '$addr'");&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $selected_cats = explode(',', get_option('post_notification_selected_cats')); <br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; foreach($selected_cats as $cat){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if(is_numeric($cat)){ //Security <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if(!$wpdb-&gt;get_var("SELECT id FROM $t_cats WHERE id = $mid AND cat_id = $cat")){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $wpdb-&gt;query("INSERT INTO $t_cats (id, cat_id) VALUES($mid, $cat)");<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; } <br />
&nbsp;&nbsp; &nbsp; <br />
}
]]></description>
            <author> no_email@example.com (syfr12)</author>
            <pubDate>Tue, 06 Jan 2009 15:00:05 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/386</guid>
        </item>
        <item>
            <title>add option post_notification_max_exe</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=385</link>
            <description><![CDATA[
background:<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; default max_execution_time is 30 seconds at most server site, <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; it's too short,will caulse query sql be executed too much times<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; For perfmonce ,give you a chance to&nbsp; add the max_execution_time to greater number termporily;<br />
<br />
change:<br />
<br />
1\ in install.php,add:<br />
add_option('post_notification_max_exe', "6000" , 'Max Execute Time of Mail send script', 'no');<br />
2\&nbsp; in admin_settings.php ,<br />
2.1: under then line :&nbsp; &lt;h4&gt; &lt;?php&nbsp; _e('Technical', 'post_notification');&nbsp; ?&gt;&lt;/h4&gt;<br />
add:<br />
<br />
<br />
&nbsp;&nbsp;&nbsp; &lt;tr class="alternate"&gt;<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;th style="text-align:right;padding-right:10px;"&gt;&lt;?php _e('php max_execute_time when send mail:', 'post_notification'); ?&gt;&lt;/th&gt;<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;td&gt;&lt;input name="max_exe" type="text" id="max_exe" size="35" value="&lt;?php&nbsp; echo get_option('post_notification_max_exe'); ?&gt;" /&gt; &lt;?php _e('seconds.', 'post_notification'); ?&gt;&lt;/td&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<br />
2.2: before the line : $p_pause = $_POST['pause']; <br />
add:<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $p_max_exe = $_POST['max_exe'];<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; if(is_numeric($p_max_exe)){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if($p_max_exe &gt;= 0){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; update_option('post_notification_max_exe', $p_max_exe );<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; } else {<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; echo '&lt;div class="error"&gt;' . __('php max_execute_time must be zero or greater.', 'post_notification') . '&lt;/div&gt;';<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; } else {<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; echo '&lt;div class="error"&gt;' . __('php max_execute_time must be a number.', 'post_notification') . '&lt;/div&gt;';<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; }<br />
3&nbsp; in sendmail.php-&gt;function post_notification_send()&nbsp; &nbsp;&nbsp; <br />
add: <br />
&nbsp; $max_exe = get_option('post_notification_max_exe');<br />
&nbsp; if ($max_exe &gt; 0) {<br />
&nbsp;&nbsp;&nbsp; ini_set("max_execution_time",$max_exe);&nbsp; &nbsp; <br />
&nbsp; }
]]></description>
            <author> no_email@example.com (syfr12)</author>
            <pubDate>Tue, 06 Jan 2009 14:40:02 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/385</guid>
        </item>
        <item>
            <title>add author  in Email Subject</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=384</link>
            <description><![CDATA[
change:<br />
<br />
&nbsp;In sendmail.php-&gt;post_notification_create_email() <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; find "$subject = get_option('post_notification_subject');"<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; add new line:&nbsp; $subject = str_replace('@@author', $post_author, $subject);
]]></description>
            <author> no_email@example.com (syfr12)</author>
            <pubDate>Tue, 06 Jan 2009 14:13:46 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/384</guid>
        </item>
        <item>
            <title>change: Add choice to blog Admin, who can make the &quot;reply to&quot; to Post's Author's Email</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=383</link>
            <description><![CDATA[
change: Add choice to blog Admin, who can make the "reply to" to Post's Author's Email<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Admin Should set Sender-Email: as @@author_email<br />
<br />
<br />
detail : In sendmail.php-&gt;post_notification_create_email()<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Add $header = str_replace('@@author_email',$post_author_email,$header);
]]></description>
            <author> no_email@example.com (syfr12)</author>
            <pubDate>Tue, 06 Jan 2009 14:11:07 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/383</guid>
        </item>
        <item>
            <title>Reset all confirmations and send confirm mail again</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=365</link>
            <description><![CDATA[
Hi - great plugin, thanks!<br />
<br />
Following a new law in Israel, we are obligated to ask all users to reconfirm their subscription <br />
I would like to change all users to status "unconfirmed" and send confirmation mail again?<br />
<br />
How can I do this?<br />
I know I can manually change the status of all users directly in MYSQL.<br />
How can I quicky send a confirmation email to all "unconfirmed" users?<br />
<br />
Thanks!
]]></description>
            <author> no_email@example.com (yoavf)</author>
            <pubDate>Sun, 30 Nov 2008 11:27:29 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/365</guid>
        </item>
        <item>
            <title>Integrate with user login?</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=297</link>
            <description><![CDATA[
First off, I love the plugin, it is exactly what I was looking for, but now I realize that I wanted to do a little more, lol.&nbsp; I love the simplicity of the plugin, yet it has a ton of options/features.&nbsp; I haven't found anything that compares.<br />
<br />
My issue:&nbsp; I want to enable users to login to my blog, only as subscribers, but in the Profile screen I would like to have the subscription options.&nbsp; I've got it so that post_notification info shows up in the profile.php from wordpress.&nbsp; The problem I'm having is getting it to validate the user that is logged in.&nbsp; It pulls the email address fine, but needs the "code" before it will display the subscription options.<br />
<br />
Any ideas?&nbsp; I was trying to get it to pull the code for the currently logged in user.<br />
<br />
Thanks again!<br />
<br />
Michael<br />
<a href="http://www.homeshade.com" title="http://www.homeshade.com">http://www.homeshade.com</a>
]]></description>
            <author> no_email@example.com (mrpool)</author>
            <pubDate>Tue, 09 Sep 2008 13:58:37 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/297</guid>
        </item>
        <item>
            <title>[already included] es_AR translation</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=285</link>
            <description><![CDATA[
Hi there,<br />
I am attaching here the es_AR (Spanish -Argentina-) translation. Hope it is useful. We are using it at <a href="http://www.chiflachifla.com.ar/" title="www.chiflachifla.com.ar/">www.chiflachifla.com.ar/</a>
]]></description>
            <author> no_email@example.com (walteralini)</author>
            <pubDate>Sat, 26 Jul 2008 03:44:48 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/285</guid>
        </item>
        <item>
            <title>[already included] Brazilian Portuguese Translation</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=273</link>
            <description><![CDATA[
See attached a take on a Brazilian Portuguese translation for PN.
]]></description>
            <author> no_email@example.com (gnustavo)</author>
            <pubDate>Fri, 11 Jul 2008 12:06:56 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/273</guid>
        </item>
        <item>
            <title>Userfunctions: @@categories lists the Categories of a post.</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=246</link>
            <description><![CDATA[
<tt>&lt;?php<br />
function post_notificataion_uf_perPost($post_id){<br />
&nbsp;&nbsp;&nbsp; //This is the easiest way to create array with a low possibility of errors<br />
&nbsp;&nbsp;&nbsp; $rv = array();<br />
<br />
&nbsp;&nbsp;&nbsp; $cats = wp_get_post_categories($post_id);<br />
&nbsp;&nbsp;&nbsp; $catnames = array();<br />
&nbsp;&nbsp;&nbsp; foreach($cats as $cat){<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $catnames[]= get_cat_name($cat);<br />
&nbsp;&nbsp;&nbsp; } <br />
&nbsp;&nbsp;&nbsp; $rv['@@categories'] = implode(", ", $catnames);<br />
<br />
&nbsp;&nbsp;&nbsp; return $rv;<br />
}<br />
?&gt;<br />
</tt>

]]></description>
            <author> no_email@example.com (Morty)</author>
            <pubDate>Sat, 17 May 2008 17:46:47 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/246</guid>
        </item>
        <item>
            <title>Danish translation</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=209</link>
            <description><![CDATA[
danish translation in progress <a href="http://mads.eu/wordpress#notification" title="http://mads.eu/wordpress#notification">http://mads.eu/wordpress#notification</a><br />
<br />
its still in beta, 90% done and need some clean up<br />
<br />
cheers mads
]]></description>
            <author> no_email@example.com (mads)</author>
            <pubDate>Tue, 01 Apr 2008 06:09:13 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/209</guid>
        </item>
        <item>
            <title>[already included] Formular zum in den Newsletter eintragen eine Widget-Sidebar einfügen?</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=160</link>
            <description><![CDATA[
Hi,<br />
<br />
ich möchte meinen Besuchern die Möglichkeit geben sich direkt in der Sidebar einzutragen. (so dass sie keine extra Seite aufrufen müssen). <br />
<br />
Ich habe das Brownbound Theme und benutze dementsprechend eine Widget-basierte Sidebar.<br />
Wie würde ich das Formular (habe es aus dem subscribe_snippet.php) dort einfügen, ohne die Widget-Geschichten zu zerstören?<br />
<br />
Wäre sehr nett wenn mir jemand helfen könnte <img src="http://pn.xn--strbe-mva.de/unb_lib/designs/_smile/unb/smile.png" title=":)" alt=":)" style="vertical-align:middle;width:15px;height:15px;" class="smilie" />
]]></description>
            <author> no_email@example.com (Marc454)</author>
            <pubDate>Tue, 01 Jan 2008 20:38:18 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/160</guid>
        </item>
        <item>
            <title>Show subscribed cats in Mail</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=64</link>
            <description><![CDATA[
Here is another sample for the userfunctions.php. It replaces @@cats with the cats, which are currently subscribed. Ther performance is quite poor, but 99% probably don't care too much about that. <br />
<br />
<tt>function post_notificataion_uf_perEmail($post_id, $emailadd){<br />
&nbsp;&nbsp;&nbsp; $rv = array();<br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; //Load stuff we need.<br />
&nbsp;&nbsp;&nbsp; global $wpdb;<br />
&nbsp;&nbsp;&nbsp; require_once(post_notification_path&nbsp; . get_option('post_notification_profile') . '/strings.php');<br />
&nbsp;&nbsp;&nbsp; $t_emails = $wpdb-&gt;prefix . 'post_notification_emails';<br />
&nbsp;&nbsp;&nbsp; $t_cats = $wpdb-&gt;prefix . 'post_notification_cats';<br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; //Get the subscribed cats.<br />
&nbsp;&nbsp;&nbsp; $subcats_db = $wpdb-&gt;get_results("SELECT cat_id&nbsp; FROM $t_cats c, $t_emails e " . <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; "WHERE c.id = e.id AND e.email_addr = '$emailadd' ORDER BY cat_id ASC");<br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; //Make shure the sting is defined<br />
&nbsp;&nbsp;&nbsp; $rv['@@cats'] = '';<br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; //Walk through the cats.<br />
&nbsp;&nbsp;&nbsp; if(isset($subcats_db)){<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; foreach($subcats_db as $subcat){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $cat = $subcat-&gt;cat_id;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if($cat == 0){<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $rv['@@cats'] =&nbsp; $post_notification_strings['all'] . ', ';<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; //If all are requested we don't need to add any more.<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; break;&nbsp; &nbsp; <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; } else {<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $cat = get_category($cat); //ID -&gt; Object<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $rv['@@cats'] .= $cat-&gt;cat_name . ', ';<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; }<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; $rv['@@cats'] =&nbsp; substr($rv['@@cats'], 0, -2);<br />
&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; return $rv;&nbsp; &nbsp; <br />
}<br />
</tt>

]]></description>
            <author> no_email@example.com (Morty)</author>
            <pubDate>Sun, 09 Sep 2007 20:33:55 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/64</guid>
        </item>
        <item>
            <title>Workaround für ISO-8859-1-Blogs</title>
            <link>http://pn.xn--strbe-mva.de/forum.php?req=thread&amp;id=6</link>
            <description><![CDATA[
Hallo,<br />
<br />
mir ist noch aufgefallen, dass im Admin-Bereich unter "Verwalten", "Post Notification" die deutschen Umlaute nicht korrekt dargestellt werden (mein Blog läuft unter ISO-8859-1).<br />
<br />
Als kurzfristigen Workaround habe ich mit POEDIT die .po-Datei geladen und in den Katalog-Optionen den Zeichensatz auf ISO-8859-1 umgestellt. Die geänderten .po / .mo -Dateien habe ich mal beigefügt, vielleicht kannst du die brauchen.<br />
<br />
<br />
Beste Grüsse!<br />
<br />
Eberhard Friedrich
]]></description>
            <author> no_email@example.com (Morty)</author>
            <pubDate>Sat, 23 Jun 2007 15:22:33 GMT</pubDate>
            <guid isPermaLink="false">http://pn.xn--strbe-mva.de/6</guid>
        </item>
    </channel>
</rss>
