GetSimple Support Forum

Full Version: I have a problem with the hello-word plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Anyone can help me?
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.
the plugin that I say is on the docs
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
I was already aware, in fact I had added it but the problem is the same
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.
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
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 ;-)
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)
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. :-)
Carlos is right. I think i changed it in the page, but not the attachment. That was my overlook... sorry guys.
I solved the problem,there isn't <?php get_footer(); ?> in the footer of template,even in the default theme.Thanks