Should be
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<? require_once('vodes_util.php');
$my = & JFactory::getUser();
$uid = $my -> id;
$vode = new Vodes(); // <----------- this line was missing ; need to instantiate Vodes class
?>
<?php $vode->updateVodes($uid)?>
<img src="http://www.cre8tivecontrol.com/fixeruniverse/fixer_images/home_icon.png" alt="download" />
I am getting this error when this code is inserted into com_content inside the article:
Fatal error: Class 'JFactory' not found in /home/goswapor/public_html/mambots/content/mossnippet.php(61) : eval()'d code on line 2
where line 2 is: $my = & JFactory::getUser();
Any ideas?
Could anyone PlEASE post a complete example of Vodes spending integrated into ANY component?
I have tried all the examples and getting nowhere. It is very sad to see a component with good reviews dying due to lack of practical examples of use.
Thanks