Home arrow Forum
myLANsite forum
Welcome, Guest
Please Login or Register.    Lost Password?
I occupy a seat, but I don't (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: I occupy a seat, but I don't
#27
g0t0pless (User)
Senior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
I occupy a seat, but I don't 2 Years, 9 Months ago Karma: 1  
When I go to occupy or reserve a seat, it says I already occupy a seat. Looking in the backend, I can view all of the seats, none of which are occupied by me.

I tried clearing my cookies, but that didn't work.

Any suggestions?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#45
g0t0pless (User)
Senior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Re:I occupy a seat, but I don't 2 Years, 9 Months ago Karma: 1  
Moensch, have you had a chance to look into this for me? Apparently only the site administrator (me) is having the problem.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#48
moensch (Admin)
Admin
Posts: 282
graph
User Online Now Click here to see the profile of this user
Re:I occupy a seat, but I don't 2 Years, 9 Months ago Karma: 13  
Can you send me your database and also let me know which seat exactly you want to occupy and which user (userid) is trying to occupy? I then can check this out.

I only need the jos_mls_seatmap_XXX tables.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#477
Chris (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:I occupy a seat, but I don't 1 Year, 8 Months ago Karma: 0  
Hi,

I had this problem too and tracked it down to a bug. If you have move than one event with a room on each the occupy function done take this into account and just checks to see if you have a seat at all.
If you go to the folder /components/com_mls_seatmap/ and open mls_seatmap.php. Find the function occupySeat() and you will see this sql query a few lines below.

Code:

$database->setQuery( "SELECT s.id FROM `#__mls_seatmap_room_elements` AS `s`" ."\n WHERE" ."\n (s.userid = '".$my->id."' AND s.status='1')" ."\n OR (s.res_userid='".$my->id."' AND s.status='2' AND s.res_end_time > '".$now."')" ."\n AND s.id!='".$id."'"«»);
and replace it with
Code:

$database->setQuery( "SELECT s.id FROM `#__mls_seatmap_room_elements` AS `s`, `#__mls_seatmap_rooms` AS `r`" ."\n WHERE s.roomid = r.id" ."\n AND (s.userid = '".$my->id."' AND s.status='1' AND r.eventid='".$room->eventid."')" ."\n OR (s.res_userid='".$my->id."' AND s.status='2' AND s.res_end_time > '".$now."' AND r.eventid='".$room->eventid."')"«»);
All working fine for me now . This basically now checks the mls_seatmap_rooms to see what rooms are linked to the event in question and not all rooms.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#478
moensch (Admin)
Admin
Posts: 282
graph
User Online Now Click here to see the profile of this user
Re:I occupy a seat, but I don't 1 Year, 8 Months ago Karma: 13  
Good stuff. I forgot about that. I will change it in SVN asap.

ta
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#545
Mix (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:I occupy a seat, but I don't 1 Year, 7 Months ago Karma: 0  
Holy crap. Thanks man that was it!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
© 2008 myLANsite - Lanparty components for Joomla
Joomla! is Free Software released under the GNU/GPL License.