Vodes for Joomla 1.5

15 years 8 months ago #3217 by rakib

<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>

<? require_once('vodes_util.php'); 
$my = & JFactory::getUser();
$uid = $my -> id;
?>

<?php $vode->updateVodes($uid)?>

<img src="http://www.cre8tivecontrol.com/fixeruniverse/fixer_images/home_icon.png" alt="download" />
All i want to do is assign the function to a button to remove some credits from the user, Let's say 10.


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" />

Please Log in or Create an account to join the conversation.

15 years 8 months ago #3218 by rHickman
Dont know what you did, but it worked. And I am greatly appreciative.
This would be great for actual 'doc' to include in package download if polished a bit


thanks a million

Please Log in or Create an account to join the conversation.

15 years 8 months ago #3219 by rakib

Dont know what you did, but it worked. And I am greatly appreciative.
This would be great for actual 'doc' to include in package download if polished a bit


thanks a million


Welcome rHickman. I know what I did. I fixed the bug in your code  ;)

Please Log in or Create an account to join the conversation.

15 years 8 months ago #3221 by rHickman
Im working to understand how you would apply this to a user who was to subscribing monthly via pay pal...


How is your system notified...

Please Log in or Create an account to join the conversation.

15 years 8 months ago #3225 by rakib
My system don't require such concept of monthly  subscribed paypal user.

Please Log in or Create an account to join the conversation.

15 years 4 months ago #3550 by serge06



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


Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch