Author Topic: Vodes for Joomla 1.5  (Read 35843 times)

rakib

  • Newbie
  • *
  • Posts: 23
    • View Profile
Vodes for Joomla 1.5
« on: 17 August 2008, 16:08 »
Hi,
Vodes for Joomla 1.5 is attached here. Also can be downloaded from http://www.mediafire.com/?jnyrazt6zwn. It is tested with Joomla 1.5.5. Hope for the best
« Last Edit: 17 August 2008, 16:12 by rakib »

jolmeda

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #1 on: 20 August 2008, 19:54 »
Rakib, how can you be reached to be ask for several questions regardind this great component and the way you implemented it on your site.

rakib

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #2 on: 22 August 2008, 14:54 »
Hi,
To install this component in Joomla 1.5 first enable System - Legacy plugin ( Extensions -> Plugin Manager -> system-legacy) and then install it. Hope every thing will work fine.
If you get any problem just put a message in this thread. I will try to reply it.

* I forgot to mention that the component is tweaked to get it working in Joomla! 1.5. So this modified component only works if legacy mode is on.

jolmeda

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #3 on: 22 August 2008, 23:24 »
I just wanted to know what system are you using for expend your Vodes.   I have a music site, and we want to use the vodes to download songs and cds, to sell clothes, and to pay some Live events that we are going to have available on our site, like pay per view, but using the Vodes.

I know it's a lot of stuff but we want to offer our users great features, and we feel that vodes is the best way, since you pay for them and you select how to expend them.

I was thinking about installing VirtueMart, but with it, there's no way to charge the Live Events.  What do you suggest?

Thanks a lot

serge06

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #4 on: 23 August 2008, 03:22 »
Hi,
Vodes for Joomla 1.5 is attached here. Also can be downloaded from http://www.mediafire.com/?jnyrazt6zwn. It is tested with Joomla 1.5.5. Hope for the best


Could you please clarify or give an example how to use your included file vodes_util.php for some of us who are not yet PHP inclined?
Thanks

rakib

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #5 on: 23 August 2008, 09:03 »
@jolmeda and serge06

I just wanted to know what system are you using for expend your Vodes. 

  
I am using a image gallery site where each vode is spent upon each image upload. so I tweaked image gallery code and used my vodes_util.php to spend the vode. Here goes the code:
Code: [Select]
// keep vodes_util.php in the same directory as your file(i.e spend.php) where you will write code for spending
// that is both vodes_util.php and spend.php will be in the same directory
// and use the following line in spend.php
require_once('vodes_util.php');
$my = & JFactory::getUser();
$uid = $my -> id;
$vode = new Vodes();
if( $vode -> getVodes( $uid ) <= 0){ // if not enough vode
  $mainframe->redirect( JRoute::_("index.php?option=com_vodes") , JText::_('You do not have enough credits. So please buy credits to upload'));
}
else if ( IMAGE_UPLOAD_SUCCESSFUL ){
       $vode -> updateVodes( $uid ); // spend one vode from user's current crdits/vodes
}

Here each time spending only one vode. you should change according to your needs.
Quote
I have a music site, and we want to use the vodes to download songs and cds, to sell clothes, and to pay some Live events that we are going to have available on our site, like pay per view, but using the Vodes.

I know it's a lot of stuff but we want to offer our users great features, and we feel that vodes is the best way, since you pay for them and you select how to expend them.

I was thinking about installing VirtueMart, but with it, there's no way to charge the Live Events.  What do you suggest?

Thanks a lot


For example, to download songs and cds if you charge 5 vodes then you have to change updateVodes function( in vodes_util.php ) and should replace
Code: [Select]
$sql = "UPDATE #__vode_credits SET credit=credit-1 WHERE userid='$uid'";
By
Code: [Select]
$sql = "UPDATE #__vode_credits SET credit=credit-5 WHERE userid='$uid'";
and then do according to the above mentioned code. You may write similar code for rest of your needs. Best of luck!
« Last Edit: 23 August 2008, 09:05 by rakib »

rHickman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #6 on: 23 August 2008, 15:59 »
Hey, this is actually my first time in a forum, nonetheless....

I have vodes, and love the idea of it, as well as the mod's for displaying - Allows you to make a valuable marketplace site like istock/flashden/photostock/etc. Neways -- 2 weeks ago I was wordpress User king -- and came across Joomla, which I love but dont truly understand its back end structure --

I got Vodes (for 1.5) installed but not its php_ult. If I was to create a button which pulled credits on click - how would I do that.



 Moreless what Im really asking where does the vodes_util.php file g0..

rakib

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #7 on: 23 August 2008, 16:05 »
In this thread only Vodes component for Joomla! 1.5 is kept. To get the vodes_util.php look at the thread with subject "Vodes pack for Joomla 1.5"

rHickman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #8 on: 23 August 2008, 16:24 »
I have the php file, what Im really asking is how to use it, where to put it on my server?

rakib

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #9 on: 23 August 2008, 17:22 »
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

serge06

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #10 on: 23 August 2008, 17:31 »
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

rHickman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #11 on: 23 August 2008, 17:43 »
My PHP skills are 6 on a scale to 10.....

In my article default page (com_content >> article >> default.php)

I added <?php getVodes($uid)?>
(to automatically spend just to understand functionality)


I get this error
Fatal error: Call to undefined function: getvodes() in /homepages/35/d236037137/htdocs/fixeruniverse/templates/ja_purity/html/com_content/article/default.php on line 3


I just cant seem to figure out how to make it work.....

rakib

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #12 on: 23 August 2008, 17:47 »
use  $vode -> updateVodes( $uid ) instead.
And please look at the code given in this thread.

serge06

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #13 on: 23 August 2008, 17:50 »
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.

rHickman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Vodes for Joomla 1.5
« Reply #14 on: 23 August 2008, 18:00 »
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 -----