Vodes for Joomla 1.5

15 years 8 months ago #3208 by rakib
use  $vode -> updateVodes( $uid ) instead.
And please look at the code given in this thread.

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

15 years 8 months ago #3209 by serge06
To Save our time and aggravation, could someone create a commercial mambot:

For Joomla 1.5.6 and Joomla 1.1x
Create a content bot to use tags {vodes}  paid content {/vodes} inside the article or any other similar approach to spend vodes on viewing certain articles.

I am willing to pay for a license, and I am sure many would to.

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

15 years 8 months ago #3211 by rHickman
I did what you asked, Changed the code accordingly.

Now I get this error

Fatal error: Call to a member function on a non-object in /homepages/35/d236037137/htdocs/fixeruniverse/templates/ja_purity/html/com_content/article/default.php on line 3


Joomla is so different that the Wordpress structure im used to. I know if I install a 'plugin' with wordpress -- in its structure I can access every function activated within any files under the template folder.

With Joomla There are so many folders -- and subfolders which makes the structure and control great, better than word press actually.

Im at a stand still now

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

15 years 8 months ago #3212 by rakib
Can you paste your code please ?

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

15 years 8 months ago #3214 by rakib

Assume that  the file where you will write code for spending is spend.php, then both vodes_util.php and spend.php will be in the same directory

Excuse my fine PHP skills, where would you put the two files, is ti in the directory of the image component in your case? Are there any code additions to "call" these files? COuld you post all the steps you had to do to implement the vodes spending with your image component, please?

Thanks


It is actually difficult to give all the steps. Because spending depends on your needs. Different people spend vodes for different purpose and the code sould be changed accordingly. And it is really tough to spend vodes without some knowledge in PHP ( I believe )

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

15 years 8 months ago #3216 by rHickman
<?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=" www.cre8tivecontrol.com/fixeruniverse/fi...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.

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