Welcome, Guest
Please Login or Register.    Lost Password?

Reserved and Occupied seats do not rotate?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Reserved and Occupied seats do not rotate?
#903
Reserved and Occupied seats do not rotate? 3 Years, 3 Months ago Karma: 0
Hi guys,

i've been pimping the looks of the seatmap. This al worked fine until i reserved and occupied a seat. The seat not turned (0 degree) give no problem. The reserved and occupied seats turned (90,180,270 degrees) get displayed but in the 0 degree version? (this is normally no problem because these pictures are the square, in my case they aren't)

I've been looking around the mls_seatmap.class.php my guess is it's going wrong somewhere around line 84 to 87.. But i don't know what to edit it to? Little help please.. here's the code i think where the problem is..

Code:

//Get images if seat is occupied or reserved
if($el->is_seat == 1 && $el->status == 1) {
//this seat is occupied
$elImg = $elm[$el->access]["occupied"] . "_0.png";
} elseif($el->is_seat == 1 && $el->status == 2 && $el->res_end_time > $now) {
//this seat is reserved
$elImg = $elm[$el->access]["reserved"] . "_0.png";
} else {
$elImg = $el->elementid."_".$el->rotation.".png";
}



Result:
rammelbak
rammelbak
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2008/10/24 12:33 By rammelbak.Reason: added picture
The administrator has disabled public write access.
 
#905
Re:Reserved and Occupied seats do not rotate? 3 Years, 3 Months ago Karma: 0
Little help please?
rammelbak
rammelbak
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#922
Re:Reserved and Occupied seats do not rotate? 3 Years, 2 Months ago Karma: 0
Help please...
rammelbak
rammelbak
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#925
Re:Reserved and Occupied seats do not rotate? 3 Years, 2 Months ago Karma: 9
patience young man. Basically, all that is, I ignore the rotation for occupied and reserved seats as in the default icons, it would look the same. Just reuse the $el->rotation the same as in that bottom else-clause and you should be fine - if all the correct elements exist.
moensch
moensch
Administrator
Posts: 678
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#928
Re:Reserved and Occupied seats do not rotate? 3 Years, 1 Month ago Karma: 0
Sorry man, didn't mean to be impatient.. just bumped the post after a week

I'm not a hardcore coder should the reserved and occupied lines look the same like this?
$elImg = $el->elementid."_".$el->rotation.".png";

Thx in advance!
rammelbak
rammelbak
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#929
Re:Reserved and Occupied seats do not rotate? 3 Years, 1 Month ago Karma: 0
I've been at this for an hour now but can't get it to work for some reason..

mls_seatmap.php line 340 till 270 seem to have some affect when changing it.
mls_seatmap.class.php line don't seem to respond at all to changes?

Anyway can someone help me out with a little more detailed description of what to do? I tried changing the rotation as previously mentioned..but either got no response or error-codes.

Thx very much in advance!
rammelbak
rammelbak
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: moensch