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 / Public Forum / Main Forum / [RESOLVED] Registered vs subscribed accounts

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.

× OLD Forum post could be checked here : forum.joomprod.com

[RESOLVED] Registered vs subscribed accounts

More
9 years 8 months ago - 9 years 7 months ago #24299 by debreton
My client is asking if it is possible to have the following scenario with her classified ads system:

We have a group called "Subscribed" that can view/add/manage ads.
She would like a free "registered" group would be able to add/manage their ads but to limit them to viewing only "My Ads".
Currently it seems to be all or nothing. I don't see an easy way to limit registered users to only be able to view their own ads.

Thanks again.
Dan
Last edit: 9 years 7 months ago by loic.
More
9 years 8 months ago #24331 by loic
Replied by loic on topic Registered vs subscribed accounts
Hello,

You can create hidden menu items and use the access right of those items to limit the access.

Best regards.
More
9 years 7 months ago #24527 by debreton
Replied by debreton on topic Registered vs subscribed accounts
Thank you for your suggestion. It is working almost as I expect but I notice a problem.
I created menu items in my "Main Menu" for "My Ads" and to "Create a New Classified" with rights set for Registered users.
I set the "User Menu" Ads-Manager module with rights for "Subscribed" users.
The "New Ads" and "My Ads" menu items in the Ads-Manager user menu module are picking up the rights and links associated with the Main Menu.
If I change the Main Menu menu item aliases, the change is reflected in the User Menu. I don't understand why this is happening and is defeats the separation I am trying to achieve between registered and subscribed users.

Must I do this another way?
More
9 years 7 months ago #24542 by juloaadmin
Replied by juloaadmin on topic Registered vs subscribed accounts
I am not sure to understand very well.
But you mean that you some links are not using the correct menu items. In other words the Itemid of some links is incorrect so bad permission.
Could you clarify which link are not correct ?


Another solution will be to "hack" the code to add some code and prevent user to see some pages directly in adsmanager code. But this will be an extra job if you want us to do this dev.
More
9 years 7 months ago - 9 years 7 months ago #24549 by debreton
Replied by debreton on topic Registered vs subscribed accounts
The Adsmanager Module - Type Menu (that I have set the Access field to Subscribed) menu items 'Create New Ad' and "My Ads' links change when I enable my Main Menu items of the same type. I have created two menu items in my Main Menu (Create New Ad and My Ads) that have the Access field set to Registered.
If if publish these menu items, the URL of the Adsmanager module changes:
Before publish:
dev.swapbuysellguide.com/index.php/browse/post_ad (Subscribe user is authorized)
dev.swapbuysellguide.com/index.php/browse/my_ads (Subscribe user is authorized)
After publish:
dev.swapbuysellguide.com/index.php/creat...w-classified/post_ad (Subscribe user is unauthorized)
dev.swapbuysellguide.com/index.php/my-ads/my_ads (Subscribe user is unauthorized)
Why does the Adsmanager Module change the URL?

You mention below to create new hidden menu items to limit the access. It doesn't matter if I create the menu items in hidden or main, as soon as I try to use them the URLs change and the subscribed users then cannot use the Adsmanager Menu.
Last edit: 9 years 7 months ago by debreton. Reason: spelling
More
9 years 7 months ago #24573 by juloaadmin
Replied by juloaadmin on topic Registered vs subscribed accounts
The URLs because AdsManager try to find the best Itemid to used based on menu items available. It's why the my ads menu is used for example.

What you can do, create a template override for mod_adsmanager_menu

Then at the top of the overrided default.php

add

$link_write_ad = TRoute::_("index.php?option=com_adsmanager&task=write&Itemid=XXXX$urlparamroot");
$link_show_user = TRoute::_('index.php?option=com_adsmanager&view=myads&Itemid=XXXX');

XXXX should be equals to the "browse" menu item id.
Moderators: perry
Time to create page: 0.471 seconds
Powered by Kunena Forum