Page 7 of 10

Re: [PLUGIN] Contact for Bludit 2.2.1

Posted: Tue Mar 06, 2018 10:59 am
by Fred
Edi wrote: Tue Mar 06, 2018 12:48 am It works when adding a slash at contact.php (line 13):

<form method="post" action="<?php echo $Site->url() . '/' . $Page->slug(); ?>" class="contact">
Is strange, because $Site->url() return slash in end of site URL.
In my tests, i have 2 slash:

Code: Select all

http://localhost/bludit//contact
I' update plugin with added Mail format (HTML or TEXT).
Link in first post.

Re: [PLUGIN] Contact for Bludit 2.2.1

Posted: Tue Mar 06, 2018 11:19 am
by Edi
Thank you, Fred. I will also test it with a local server.

Re: [PLUGIN] Contact for Bludit 2.2.1

Posted: Tue Mar 06, 2018 12:11 pm
by sergiosgil
hello!

this plugin is not working in the last beta :(

Bludit v2.3-beta-2

Re: [PLUGIN] Contact for Bludit 2.2.1

Posted: Tue Mar 06, 2018 12:49 pm
by Edi
sergiosgil wrote: Tue Mar 06, 2018 12:11 pm hello!

this plugin is not working in the last beta :(

Bludit v2.3-beta-2
Could be, because the code for static content is improved. I will have a look at it.

Re: [PLUGIN] Contact for Bludit 2.2.1

Posted: Tue Mar 06, 2018 2:20 pm
by Fred
sergiosgil wrote: Tue Mar 06, 2018 12:11 pm hello!

this plugin is not working in the last beta :(

Bludit v2.3-beta-2
It is however clear for which version of Bludit the plugin is compatible ...
I will not update on a beta version :evil:

Re: [PLUGIN] Contact for Bludit 2.2.1

Posted: Sat Mar 10, 2018 12:01 pm
by Edi
Fred wrote: Tue Mar 06, 2018 10:59 am Is strange, because $Site->url() return slash in end of site URL.
In my tests, i have 2 slash:

Code: Select all

http://localhost/bludit//contact
You are right, for a local installation the address is a path to a directory with a trailing slash.

But when installed on a webserver with a domain Bludit has no slash a the end.

You can emulate this with the settings at "Paramètres" > "Avancé" > "URL du site" changing

Code: Select all

http://localhost/bludit/
to

Code: Select all

http://localhost/bludit
With this settings you will get the error.
I' update plugin with added Mail format (HTML or TEXT).
This is great! Merci beaucoup!

Re: [PLUGIN] Contact for Bludit 2.2.1

Posted: Sat Mar 10, 2018 12:07 pm
by Edi
sergiosgil wrote: Tue Mar 06, 2018 12:11 pm hello!

this plugin is not working in the last beta :(

Bludit v2.3-beta-2
It works fine with Bludit v2.3.1.

All you have to do is described here:

viewtopic.php?p=4910#p4910

Re: [PLUGIN] Contact for Bludit 2.2.1

Posted: Sat Mar 10, 2018 1:05 pm
by Fred
Edi wrote: Sat Mar 10, 2018 12:01 pm You are right, for a local installation the address is a path to a directory with a trailing slash.

But when installed on a webserver with a domain Bludit has no slash a the end.

You can emulate this with the settings at "Paramètres" > "Avancé" > "URL du site" changing

Code: Select all

http://localhost/bludit/
to

Code: Select all

http://localhost/bludit
With this settings you will get the error.
Okay, in that case, can you tell me if we make this change to the former it works?

In layout/contact.php, replace this :

Code: Select all

<?php echo $Site->url() . $Page->slug(); ?>
By

Code: Select all

<?php echo '.' . DS . $Page->slug(); ?>
Edit: I also do my testing on one of my servers ;)

Re: [PLUGIN] Contact for Bludit 2.2.1

Posted: Sat Mar 10, 2018 2:17 pm
by Edi
Yes, this works. :)

Re: [PLUGIN] Contact for Bludit 2.2.1 & 2.3.1

Posted: Sat Mar 10, 2018 3:22 pm
by Fred
Plugin update, Thank Edi for U feedback ;)