Posts: 4
Threads: 1
Joined: May 2023
2023-05-14, 16:40:53
(This post was last modified: 2023-05-14, 17:00:28 by AHeffekt.)
Hi,
i'm Andre and i have created an Plugin for myself. Now i would like to it share to you.
This is my first Post. I read this Forum and used GetSimple for years, but now i wanted to give something back to this great CMS/Page/Forum.
I will host the ZIP-File here at "GetSimple Extend" and also on my Homepage (german only). You can have a look at the Frontend and also contact me at my Contact Form ;-)
At this Thread you can ask me some Questions about my first Plugin. Also you can inform me about Errors here. Please excuse my english.
So I hope someone can use it.
Let me know if i made a mistake with this first Thread.
Greetings from Cologne, Andre
Posts: 1,928
Threads: 88
Joined: Apr 2010
Posts: 4
Threads: 1
Joined: May 2023
Thank you Oleg06. I will have a look at it tomorrow, and put it inside the Plugin Package.
Posts: 408
Threads: 76
Joined: Nov 2017
(2023-05-14, 16:40:53)AHeffekt Wrote: Hi,
i'm Andre and i have created an Plugin for myself. Now i would like to it share to you.
This is my first Post. I read this Forum and used GetSimple for years, but now i wanted to give something back to this great CMS/Page/Forum.
I will host the ZIP-File here at "GetSimple Extend" and also on my Homepage (german only). You can have a look at the Frontend and also contact me at my Contact Form ;-)
At this Thread you can ask me some Questions about my first Plugin. Also you can inform me about Errors here. Please excuse my english.
So I hope someone can use it.
Let me know if i made a mistake with this first Thread.
Greetings from Cologne, Andre
On next version maybe think about not generate contact form by slug, but maybe tag? That's make easier work on other lang and different name.
Posts: 4
Threads: 1
Joined: May 2023
Hi Multicolor.
I thank a lot for your Notice. I will make a List for these future Improvements. I've seen in your Signature that an Community Edition exists. I did not now about it before. Was it mainly created for PHP 8 compatibility or are there other Improvements? What about Plugins compatibility build for the original 3.3.6 Version of Chris Cagle?
I'm very exited about reactions from other Developers. I did not know that in this Forum is so much activity for developement. I'm very happy and thankful about this help.
Posts: 408
Threads: 76
Joined: Nov 2017
(2023-05-15, 16:08:00)AHeffekt Wrote: Hi Multicolor.
I thank a lot for your Notice. I will make a List for these future Improvements. I've seen in your Signature that an Community Edition exists. I did not now about it before. Was it mainly created for PHP 8 compatibility or are there other Improvements? What about Plugins compatibility build for the original 3.3.6 Version of Chris Cagle?
I'm very exited about reactions from other Developers. I did not know that in this Forum is so much activity for developement. I'm very happy and thankful about this help.
This php 8.x support is most important for this project, about plugins this is the list https://getsimplecms-ce-plugins.github.io/. Improvments is webp support, and default responsive CE theme for fast create website.
Posts: 4
Threads: 1
Joined: May 2023
@multicolor, thanks so far. (Oleg06, too :-) )
Shame on me. But i looked for hours how to create my own Tag, which (Admin)Users can simple place in GetSimple Editor without writing php code. But i can't find out. I want to recode this Plugin based on your Idea "display by Tag". Before this my plan was to Code this only for English and Geman Users. For this Slugs like "Contact" and "Kontakt" where adequate and simple in my opinion.
Can you throw me some Keywords to find out by myself. Or maybe some Links to Howtos i didn't found, for something like this in GetSimple? If i can't find out by myself, i leave it like it was, but since i get direct response from Oleg06 for russian language, i think your Way is the better one for the Community.
Posts: 408
Threads: 76
Joined: Nov 2017
(2023-05-23, 01:44:57)AHeffekt Wrote: @multicolor, thanks so far. (Oleg06, too :-) )
Shame on me. But i looked for hours how to create my own Tag, which (Admin)Users can simple place in GetSimple Editor without writing php code. But i can't find out. I want to recode this Plugin based on your Idea "display by Tag". Before this my plan was to Code this only for English and Geman Users. For this Slugs like "Contact" and "Kontakt" where adequate and simple in my opinion.
Can you throw me some Keywords to find out by myself. Or maybe some Links to Howtos i didn't found, for something like this in GetSimple? If i can't find out by myself, i leave it like it was, but since i get direct response from Oleg06 for russian language, i think your Way is the better one for the Community.
OFC I can
PHP Code: $tags = get_page_meta_keywords($echo = false); $tagsToArray = explode(',', $tags); $whatYouFind = 'yourtag' || ' yourtag';
if (in_array($whatYouFind, $tagsToArray)) {
echo "tag is here you can put your function here!";
};
Posts: 97
Threads: 1
Joined: Mar 2012
Gives white screen on php 8.2
Posts: 408
Threads: 76
Joined: Nov 2017
Turn on debug and send what reply. Check twice is gs 3.3.16 or gs CE
Posts: 97
Threads: 1
Joined: Mar 2012
2023-09-23, 06:59:43
(This post was last modified: 2023-09-23, 07:11:08 by Tzvook.)
(2023-09-08, 06:01:53)multicolor Wrote: Turn on debug and send what reply. Check twice is gs 3.3.16 or gs CE
gs CE
PHP 8.1.17
Fatal error: Uncaught Error: Undefined constant "ahcontact" in /home/userxxxxxx/test.whatever.com/plugins/ah-contact.php:67 Stack trace: #0 /home/userxxxxxx/test.whatever.com/admin/inc/plugin_functions.php(108): require_once() #1 /home/userxxxxxx/test.whatever.com/admin/inc/common.php(357): include_once('/home/userxxxxxx...') #2 /home/userxxxxxx/test.whatever.com/admin/index.php(17): include('/home/userxxxxxx...') #3 {main} thrown in /home/userxxxxxx/test.whatever.com/plugins/ah-contact.php on line 67
Posts: 1,928
Threads: 88
Joined: Apr 2010
(2023-09-23, 06:59:43)Tzvook Wrote: (2023-09-08, 06:01:53)multicolor Wrote: Turn on debug and send what reply. Check twice is gs 3.3.16 or gs CE
gs CE
PHP 8.1.17
Fatal error: Uncaught Error: Undefined constant "ahcontact" in /home/userxxxxxx/test.whatever.com/plugins/ah-contact.php:67 Stack trace: #0 /home/userxxxxxx/test.whatever.com/admin/inc/plugin_functions.php(108): require_once() #1 /home/userxxxxxx/test.whatever.com/admin/inc/common.php(357): include_once('/home/userxxxxxx...') #2 /home/userxxxxxx/test.whatever.com/admin/index.php(17): include('/home/userxxxxxx...') #3 {main} thrown in /home/userxxxxxx/test.whatever.com/plugins/ah-contact.php on line 67
Replace these lines. Replace these lines, or just enclose ahcontact in quotes.
Code: // Frontend
add_action('content-bottom','ahcontact');
// Admin-Navigation Tab
add_action('nav-tab','createNavTab',array('ahcontact', $thisfile, $ahlang['contact_form'].$ahnewmsg));
|