I've been using Apple computers since the time of the dinosaur computers. My first exposure was the Apple IIc. Studied on the McIntosh before it was called classic. Built several computers, just not Apple. Switching that now.
Answer to "How to connect a magsafe to a solar panel"You should be able to do a slow charge whilst your MB is turned off. That won't happen while it's on. You should be able to get a longer operating period though with the panels connected.