Posts: 84
Threads: 17
Joined: Mar 2010
i developed a php guestbook based on text files and now i'm thinking to convert this guestbook in a get-simple plugin but i have a problem:
For the first time i have pasted the hello-word plugin in the plugin folder e i have tryed this plugin but "hello word" doesn't appears.Why?I have also tryed with the default theme.
p.s: the plugin appears correctly on the plugin menu
Posts: 84
Threads: 17
Joined: Mar 2010
Posts: 972
Threads: 27
Joined: Aug 2009
I can’t find the hello world plugin, do you have a link to the download? It could just be that plugin is broken.
Your best bet is to download a couple of plugins from
the Extend page and work from there.
Posts: 84
Threads: 17
Joined: Mar 2010
the plugin that I say is on the docs
Posts: 3,491
Threads: 106
Joined: Mar 2010
Yeah, the "hello world" sample plugin is missing a closing
?> line at the end.
Here:
http://get-simple.info/docs/plugin-creation
and also here:
http://get-simple.info/data/uploads/hello-world.txt
Posts: 84
Threads: 17
Joined: Mar 2010
I was already aware, in fact I had added it but the problem is the same
Posts: 679
Threads: 80
Joined: Nov 2009
I added '?>' to the sample code, I will test this plugin and see if I can figure out the issue you are having. Have you attempted to turn on Debug mode if not will you please and report here the errors it reports. You can find a tuturial on how to enable debug mode
Here.
Posts: 1,108
Threads: 70
Joined: Aug 2009
In order for the plugin to work you will need to have the following line in your template, usually in the footer.
Code:
<?php get_footer(); ?>
this turn executes the footer hook.
Mike
Posts: 972
Threads: 27
Joined: Aug 2009
The problem is, it’s old.
The plugin discussed on
the plugin creation page is
not the same as
the one up for download.
The important difference is the hooking system. The correct function is add_action and this is used in the article. The old and no longer working function add_hook is the one used in the download.
Change add_hook to add_action and you should be ready to experiment!
PS: I like how it took 3 main developers to react before an actual problem was found ;-)
Posts: 679
Threads: 80
Joined: Nov 2009
Quote:PS: I like how it took 3 main developers to react before an actual problem was found ;-)
Lol I didn't even realize there was one up for download..
P.S. I have fixed the error on get-simple.info (the '.txt' file)
Posts: 3,491
Threads: 106
Joined: Mar 2010
Strange... I told Chris about that "add_hook" error back in June, and he fixed it... I suppose some backup restore brought it back to life. :-)
Posts: 1,848
Threads: 86
Joined: Aug 2009
Carlos is right. I think i changed it in the page, but not the attachment. That was my overlook... sorry guys.
-
Chris
Thanks for using GetSimple! - Download
Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Posts: 84
Threads: 17
Joined: Mar 2010
I solved the problem,there isn't <?php get_footer(); ?> in the footer of template,even in the default theme.Thanks