Quote:
Originally Posted by Krofh
It could likely not be accessing the variable $cnn correctly... when you have a variable inside a function, you have to make it global, which I think works like so:
Code:
global $cnn; // define it outside of the function
function myfunction() {
global $cnn; // call it from outside so it knows
dostufff();
$cnn = something();
}
echo "$cnn";
Someone can correct me on this, because I'm not great with global variables, but I'm pretty sure that this is how they work.
|
The function is defined outside of the plugin system. I have to include the file in order to access the newsfeed() function.
So, really, all the plugin needs to do is:
include("functionfile.php");
newsfeed()
And that's it.
I got it to work, it just doesn't show up in the right place.
bump