MyBB Community Forums

Full Version: Lightbox + Donate button, help please.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone,

I got a donate button from paypal and I was able to get it to work.
I also got lightbox 2 to work with my forum.

I have this code for the paypal button:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="JD83DH920SJ"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" style="position:absolute; top:575px; right:227px;"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>

And this code for lightbox:
<div class="section">
	<div class="thumbnail">
		<a href="images/loginpage/image.jpg" rel="lightbox"><img src="images/loginpage/thumb.jpg" width="150" height="50" alt="Read before donating (click)" style="position:absolute; top:593px; right:420px;"/></a>
	</div>

Everything works but what I want to do is make it so when I click the paypal button, the lightbox shows up, and then it takes you to the destination of the paypal button. I've gotten it to work to the point where I click the paypal button and the lightbox shows up, but then it doesn't take me to the paypal donate page.

(BTW I put in a different combo for "Value=" for paypal, so it won't show my donation page, but that shouldn't really matter).

So basically, click the paypal button, lightbox shows up with image, takes you to paypal donation page.

Here is the lightbox thing just incase you don't know what i'm talking about:http://www.huddletogether.com/projects/lightbox2/#overview

Thank you so much!
Pretty supportive community we've got here -_-
" Pretty supportive community we've got here -_- "
^ OFF TOPIC : hmm., your requirement is not directly related to myBB / it's plugin



AND it's late mid-night for me, still reading your thread !!
Well, I am doing this in page manager Big Grin