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 / AdsManager Support / Validate ads from unregistered users

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.

Validate ads from unregistered users

More
8 years 9 months ago #21363 by ideias
Validate ads from unregistered users was created by ideias
Hello, again.
I want to give the possibility to publish ads in my project to both registered and unregistered users. But also I want that only registered users can publish without validation. Or, simply: registered users allowed to post ads automatically, unregistered users would have to wait for human validation.
How can I configure it?
Thank you.
More
8 years 9 months ago #21366 by loic
Replied by loic on topic Validate ads from unregistered users
Hello,

That is not possible without customising the code.
In 'administrator/components/com_adsmanager/tables/contents.php', line 347, you can see that :
if ($conf->auto_publish == 1)
    $this->published = 1;
else
    $this->published = 0;

You can add the customization here, something like that :
$user = JFactory::getUser();
if ($user->id != 0){
    $this->published = 1;
}else{
    $this->published = 0;
}

Best regards.
The following user(s) said Thank You: ideias, armanweb
More
8 years 9 months ago - 8 years 9 months ago #21373 by ideias
Replied by ideias on topic Validate ads from unregistered users
Thank you.
It works. But maybe it was a good idea to include this option in future updates (by the way: there's any new release for soon?)
Really great (but perhaps that's asking too much) would be if, now, I had the possibility of put a different alert to registered and unregistered users, when they submit ads. As their ads have now a "different treatment", it would be good.
One other good thing would be the possibility of put some fields visible only for registered, too. Or else, can add a message just for unregistered (something like: "Register to add more photos") and that is not shown in case of registered users.
Also, I would like to hide the preview button but only from non-registered users. Can I do it?
Thanks once more.
Last edit: 8 years 9 months ago by ideias.
More
8 years 8 months ago #21376 by loic
Replied by loic on topic Validate ads from unregistered users
Hello,

To hide the preview button you can use a condition based on the code I gave you :
$user = JFactory::getUser();
if ($user->id != 0){
    //Display preview button
   ...
}

Your other question is a little more difficult :).

A release was made Friday, it was just a fixed version of the 3.1.4.

Best regards.
The following user(s) said Thank You: ideias
Time to create page: 0.269 seconds
Powered by Kunena Forum