×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Option "only registered" doesn't work on joomla 1.7

Option "only registered" doesn't work on joomla 1.7 13 years 4 months ago #13540

  • nicholas gervin
  • nicholas gervin's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
I am running Hotspots 2.0.5 and when I set it to only registered, registered members can not place a hotspot? I want it so only special members can see and add to the hotspots. How do I do this?

Thanks for your time.

Option "only registered" doesn't work on joomla 1.7 13 years 4 months ago #13541

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Nick,
I've put your post in a new thread. Please next time don't hijack other people's threads but just start your own ;)

I assumed that you are on joomla 1.7 (that is why I've put it in the title :)) - correct me if I'm wrong.

Yep, there is a bug and I can confirm it! I'll fix it in the next version. Up until then you can do the following quick fix.

Go to components/com_hotspots/views/hotspot/view.html.php and change line 98 from
$hasRights = (hotspotsUtils::gethsUserType() >= $allowedUser) ? true : false;
to
$hasRights = !JFactory::getUser()->guest ? true : false;

This should solve the problem, I'll come with a better fix in the next release.
Daniel

Option "only registered" doesn't work on joomla 1.7 13 years 3 months ago #13867

  • Marco Vallario
  • Marco Vallario's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I've joomla 1.6.5 and this solution doesn't work for me.
In frontend only "everybody" works fine, everything else doesn't add the hotspots.

Any Idea?

Option "only registered" doesn't work on joomla 1.7 13 years 3 months ago #13868

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Marco,
Did you make the code change I suggested? It works on 1.7.
Daniel

Option "only registered" doesn't work on joomla 1.7 13 years 3 months ago #13877

  • Marco Vallario
  • Marco Vallario's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
The code change had no effect for me =(

I've joomla with jomsocial component. Does this change something?

Option "only registered" doesn't work on joomla 1.7 13 years 3 months ago #13882

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Can I get ftp access to your site? This line should work!
Cheers,
Daniel

Option "only registered" doesn't work on joomla 1.7 13 years 3 months ago #13889

  • Marco Vallario
  • Marco Vallario's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
I'm sorry Daniel, your solution works fine. Perhaps I had wrote wrong code the first time. :lol:

Option "only registered" doesn't work on joomla 1.7 13 years 3 months ago #13890

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Marco,
that are awesome news :) You saved me the time to look at your files, thanks!
Now have fun - next version won't have this problem.
Daniel
  • Page:
  • 1
Time to create page: 0.114 seconds