Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / VirtualMoney Support / Using VirtualMoney in separate user group

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

Using VirtualMoney in separate user group

More
10 years 11 months ago #5181 by tachyon
Replied by tachyon on topic Using VirtualMoney in separate user group
One question before I begin; I know the 'credits' field in #__paidsystem_config stores the price to post an ad in a category. So essentially I would have to modify the value of $conf->credits as well, if I want to have different values for different paid system, correct?
More
10 years 11 months ago #5189 by loic
Hello,

This parameter sets the price for posting an ad in a category regardless of the type of paiement (credits or real currency).

So if you wish to set a different price only for the credits paiement you will need to update it.
More
10 years 11 months ago - 10 years 11 months ago #5206 by tachyon
Replied by tachyon on topic Using VirtualMoney in separate user group
Great news! I had a bit of success implementing this change. For the moment it's merely a bit of 'ugly' hack. I inserted this into getPaidSystemConfig() since I need to modify $conf->credits :

        $user = JFactory::getUser();
        $mode = "";
        $credits = "";
        foreach ($user->groups as $group => $value) {
                if ($group == 14) {
                        $mode = "credits";
                        $credits = 1;
                }
        }


Where group_id=14 is the user group id which I want to enable the credit system for. Then it's just the matter of saving back the new values to $conf.

In the future I'd like to be able to change the group_id by selecting from a drop down in the Paidsystem backend. But that's another hack for another time.

Thanks loic!
Last edit: 10 years 11 months ago by tachyon.
Time to create page: 0.121 seconds
Powered by Kunena Forum