"spending"...

14 years 3 months ago #2806 by one7media
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!

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

14 years 3 months ago #2808 by Saka
Sure. Send me a mail and I will make a quote for you.

Emir Sakic
www.sakic.net

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

14 years 3 months ago #2809 by one7media
Hi Emir,

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

Thanks

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

14 years 3 months ago #2810 by one7media
PLEASE let me know if you can do this..............

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

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

14 years 1 month ago #3191 by serge06
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
<?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;
	}
}
?>

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.

We also recommend

Twitter

sakicnet: RT @LTmujo: @Ridjobrki ma jel to prinova na putu ili su ti oni dani u mjesecu? nek je sa srecom, da jos 10 puta toliko docekate u zdravlju… 88 days ago from Twitter for iPhone

Stay in touch