Vodes for Joomla 1.5
- rakib
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
16 years 3 months ago #3217
by rakib
Should be
All i want to do is assign the function to a button to remove some credits from the user, Let's say 10.<?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" />
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.
- rHickman
- Offline
- New Member
Less
More
- Thank you received: 0
16 years 3 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
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.
- rakib
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
16 years 3 months ago #3219
by rakib
Welcome rHickman. I know what I did. I fixed the bug in your code
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.
- rHickman
- Offline
- New Member
Less
More
- Thank you received: 0
16 years 3 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...
How is your system notified...
Please Log in or Create an account to join the conversation.
- rakib
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
16 years 3 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.
- serge06
- Offline
- New Member
Less
More
- Thank you received: 0
15 years 11 months ago #3550
by serge06
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
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.