2010-03-11, 07:35:23
Hey guys, I have began my first plugin, an the first thing I noticed as I was learning I 'stole' some code from another plugin. (Just for learning purposes.) that created a menu object within the Plugins menu and had just some random content on that page. Here is what I did and what happened. I am not really sure if this is a problem or if it can even be helped...
This is the code I used to display the content on the admin page.
I 'stole' the code from internet54 who's plugin I also have installed. after installing my plugin, I visit the plugins page and it will not load at all.
I believe it would be because there was 2 functions that are the same thing attempting to be run at one time. I changed the code from the above to
and it loads and works fine...
Let me know if this is a real error or not, thanks!
This is the code I used to display the content on the admin page.
Code:
function sc_options() {
print "<h2>This is my first plugin...</h2>
<p>This is an explanation of my first plugin!</p>";
}
I 'stole' the code from internet54 who's plugin I also have installed. after installing my plugin, I visit the plugins page and it will not load at all.
I believe it would be because there was 2 functions that are the same thing attempting to be run at one time. I changed the code from the above to
Code:
function sf_options() {
print "<h2>This is my first plugin...</h2>
<p>This is an explanation of my first plugin!</p>";
}
Let me know if this is a real error or not, thanks!
JWH Technologies
Have any marketing ideas for Get-Simple? Let me hear them!
Have any marketing ideas for Get-Simple? Let me hear them!