Jump to content

Recommended Posts

Posted

Just to clarify this is MRBS and not any other alternate, commercial or otherwise, booking system. This is a version significantly customised by myself.

 

I'm currently in the process of an overhaul of our MRBS installation which includes transforming it into something more up to date! I've done a fair bit but have come a bit unstuck in trying to figure out how to add a hyperlink without it fudging up the formatting!

 

I've attached two photos and the issue is on the test booking I made (in green). When I try and hyperlink the edit thumbnail, it removes the booker's name (and link) from the booking entry. Can't understand it!

 

newmrbs_issue1.pngnewmrbs_issue2.png

 

My code for this area in functions.inc (near the bottom, just above //end function draw cell)

 

       if ($times_along_top)
       {
         echo "\n";
       }
       else
       {
         echo "\n";     // we want clipping of overflow
       }

       echo ($is_repeat) ? "\"images/repeat.png\"" : '';
$user = getUserName();
if ($user == $descr) {
	//echo "images/edit.png";
	echo "images/edit.png";
}
       echo "";
       echo "$descr\n";
       echo "\n";
echo "$long_descr\n";
     }
     echo "\n";

 

I have two lines below if ($user == $descr), 1 commented out. The one live in this code shows the icon fine as per screenshot 1, but then I swap the commenting and make the hyperlinked one live, it screwed up as per screenshot 2.

 

Any help would be greatly appreciated! Hopefully the customisations I have made won't hinder anyone's ability to offer advice :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...