GetSimple Support Forum
I have a problem with the hello-word plugin - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: I have a problem with the hello-word plugin (/showthread.php?tid=1042)



I have a problem with the hello-word plugin - Alessio_roma - 2010-10-11

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


I have a problem with the hello-word plugin - Alessio_roma - 2010-10-11

Anyone can help me?


I have a problem with the hello-word plugin - Zegnåt - 2010-10-11

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.


I have a problem with the hello-word plugin - Alessio_roma - 2010-10-12

the plugin that I say is on the docs


I have a problem with the hello-word plugin - Carlos - 2010-10-12

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 have a problem with the hello-word plugin - Alessio_roma - 2010-10-12

I was already aware, in fact I had added it but the problem is the same


I have a problem with the hello-word plugin - JWH_Matthew - 2010-10-12

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.


I have a problem with the hello-word plugin - n00dles101 - 2010-10-12

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


I have a problem with the hello-word plugin - Zegnåt - 2010-10-12

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 ;-)


I have a problem with the hello-word plugin - JWH_Matthew - 2010-10-12

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)


I have a problem with the hello-word plugin - Carlos - 2010-10-12

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. :-)


I have a problem with the hello-word plugin - ccagle8 - 2010-10-13

Carlos is right. I think i changed it in the page, but not the attachment. That was my overlook... sorry guys.


I have a problem with the hello-word plugin - Alessio_roma - 2010-10-13

I solved the problem,there isn't <?php get_footer(); ?> in the footer of template,even in the default theme.Thanks