I'm hacking together some mods to JomClassifieds, which for our purposes seems to be the most suitable of all the 'CB-aware' joomla classifieds out there.
We want our 'free' users to view ads, but only our "paid' users to be able to post.
Currently, we can do that by protecting "Post an Ad" URL (and a couple of others) with CBsubs plan.
But in addition to posting ads, we want our "paid" users to also be able to purchase some of the optional upgrades built in to JomClassifieds.
(they have their own purchasing function which works fine)
Sadly, I just found out that out of the box, the JomClassifieds requires 'public' access for the "post an Ad' menu item, or else Paypal crashes and burns whenever a user attempts to buy a 'premium' ad. So it turns out that I can't just protect the 'post an ad' URL with CBsubs. :S
With future maintenance in mind, I am trying to keep mods to the JomClassifieds extension to a minimum...
So it seems that rather than mess around with relocating the paypal API stuff, it would be simpler to just display a simple 'You must purchase Paid subscription to post" (etc) block at the top of the page, and disable posting buttons - based on the logged-in user's CB usergroup.
Is there a handy doc on how to detect the CB usergroup somewhere?