Author Topic: "spending"...  (Read 8764 times)

one7media

  • Newbie
  • *
  • Posts: 4
    • View Profile
"spending"...
« on: 14 June 2008, 07:17 »
Hi Emir,

I know that the spending feature isn't part of the install, and I read the post about what code to apply, but I'm just lost.

Do you provide paid support or anything?  I just need it to perform one simple function - write an ad in com_marketplace.  I don't know what file to put the query in, and even if I did, I wouldn't know where to put it.

If a could make it cost 1 vode to place 1 ad, that would be awesome.  This way I can disable their non-functioning paid ads component and use something that works --> not to mention give more flexibility with packages by selling multiple vodes at discounted prices.

PLEASE HELP!  I DON'T MIND PAYING FOR SUPPORT!

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,500
    • View Profile
    • Sakic.Net
Re: "spending"...
« Reply #1 on: 14 June 2008, 13:55 »
Sure. Send me a mail and I will make a quote for you.

one7media

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: "spending"...
« Reply #2 on: 14 June 2008, 16:07 »
Hi Emir,

I sent you an e-mail.  I'm scheduled to launch this site on Monday and really need this done!

Thanks

one7media

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: "spending"...
« Reply #3 on: 14 June 2008, 17:12 »
PLEASE let me know if you can do this..............

I'm stuck until I hear back.........

serge06

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: "spending"...
« Reply #4 on: 22 August 2008, 22:45 »
Hi,
I also have Marketplace installed, any chance you anyone could share how to implement the spending for marketplace or any other component, so that I could get the idea? I understand that the following code is used, so for example, which file and where would I put this for users to get one vote for posting on a SMF forum?

I understand that I need to update this line so ut ads credits:
$sql = "UPDATE #__vode_credits SET credit=credit+1 WHERE userid='$uid'";

Thanks for any help
Code: [Select]
<?php
class Vodes {
function Vodes(){}

function getVodes$uid ){
$database =& JFactory::getDBO();
$sql "SELECT credit FROM #__vode_credits WHERE userid='$uid'" ;
$database->setQuery$sql );
$balance $database->loadResult();
return $balance $balance 0;
}

function updateVodes$uid ){
$database =& JFactory::getDBO();
echo $uid;
$sql "UPDATE #__vode_credits SET credit=credit-1 WHERE userid='$uid'";
$database->setQuery$sql );
if( !$database->query()) return false;
return true;
}
}
?>