Page 3 of 3

Bug in Newsletter-Plugin

Posted: Fri Jul 20, 2018 5:55 pm
by Holger
Hi jerry,

maybe you remember that I have made some paid installation with your Newsletter-Plugin.

Now I've made a test with your latest version 2.4.2. and there is a bug with the generated confirmation link in the mail. The link only contains "//example.com/...", without protocol.
The problem is in index.php, line 188:

Code: Select all

$subscribe.=newsletter_subscription_mail($subscribermail, $plugin_tx['newsletter']['subscribe_confirm_subject'],$plugin_tx['newsletter']['subscribe_confirm'],'//'.$_SERVER['HTTP_HOST'].$sn."?newsletterconfirm&cnf=".$confirm_str);

Fix:

Code: Select all

$subscribe.=newsletter_subscription_mail($subscribermail, $plugin_tx['newsletter']['subscribe_confirm_subject'],$plugin_tx['newsletter']['subscribe_confirm'],CMSIMPLE_URL."?newsletterconfirm&cnf=".$confirm_str);
Using CMSIMPLE_URL should do the trick ;) .

Edit: beside this, $subject is broken if it contains special characters (tested with PHP 7.2.0). Seems to be an issue with PHPMailer - Version :? .

Re: Simplesolutions.dk plugins updated to CMSimple XH 1.7

Posted: Sat Oct 13, 2018 9:40 pm
by Tata
How/where in add-comment.php shall be changed the path, so thet the plugin would work also if installed on a subdomain?
On my server all subdomains (mostly test-webpages) are installed as subfolders in /public_html/_sub, where the /public_html is the root of main CMSimple_XH installation and the _sub is the folder for created subdomains.
If installed in root, posts are only published if the none security is configured. Otherway the author receives the confirmation e-mail, but in backend nothing is to be approved, nor the comment is there. Both textareas (authorisations and comments) are empty.
Running with CMSimple_XH 1.7.2

Re: Simplesolutions.dk plugins updated to CMSimple XH 1.7

Posted: Sun Oct 14, 2018 10:02 pm
by simpleSolutions.dk
Hi Tata
It¨s now on mine todo list. I'm not sure it can bo solved in the easy way, as comments uses ajax which again requires an absolute path to your domain.

I have just tested the plugin with security level "user" enabled, and a new user was created after the new user replied an confirmation e-mail and the comment is visible on the list. To admin approve of the new user you have to use security level "admin". I need more information to help.

Re: Simplesolutions.dk plugins updated to CMSimple XH 1.7

Posted: Tue Oct 16, 2018 9:04 am
by cmb
simpleSolutions.dk wrote:
Sun Oct 14, 2018 10:02 pm
I'm not sure it can bo solved in the easy way, as comments uses ajax which again requires an absolute path to your domain.
It seems to me the generally simplest way to solve such issues is to avoid stand-alone PHP scripts; i.e. don't post to add-comments.php, but rather to "$sn?add_comment" or so, and handle these requests in index.php of the plugin, where all CMSimple_XH variables and functions are readily available. Before sending any output, just make sure that all existing output buffers are purged. See also https://wiki.cmsimple-xh.org/doku.php/p ... cript#ajax.

Re: Simplesolutions.dk plugins updated to CMSimple XH 1.7

Posted: Sun Apr 21, 2019 12:32 pm
by lck
Hi jerry,

Subject: CMSimple Mobile
Can you help us with this problem? What are we doing wrong, or how do we have to adapt the plugin to work properly?

Re: Simplesolutions.dk plugins updated to CMSimple XH 1.7

Posted: Thu Apr 25, 2019 9:40 pm
by simpleSolutions.dk
Bug fix released

Re: Simplesolutions.dk plugins updated to CMSimple XH 1.7

Posted: Mon Aug 17, 2020 12:16 pm
by lck
Upload_XH Issue. Please see viewtopic.php?f=12&t=15693&p=76488#p76488.

Re: Simplesolutions.dk plugins updated to CMSimple XH 1.7

Posted: Thu Nov 18, 2021 6:18 pm
by lck
Hi Jerry,

can you take a look and maybe update the plugin imgalbum?
There are some problems. I like the plugin, would be nice if it would be brought up to date.
viewtopic.php?f=16&t=13651&start=30#p82070
viewtopic.php?f=16&t=18079&p=82078#p82078

Re: Simplesolutions.dk plugins updated to CMSimple XH 1.7

Posted: Thu Nov 18, 2021 10:23 pm
by cmb
I can translate if necessary. :)