PaypAl donate button to open in new window

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Suggested Hosts
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
bigpips305
Registered User
Posts: 76
Joined: Thu Oct 16, 2008 11:26 pm

PaypAl donate button to open in new window

Post by bigpips305 »

After reading through some of the Knowldege data base, I see phpbb3 is different then bb2 in that links do not open in new windows to confirm for XHTML 1.0 I found the code changes to change this, but does this actually affect phpbb3's ability for strict validation to achieve xhtml??

I have a paypal donate button in overall_header.php, right above include breadcrumbs, I would like this button to open a new windows but nothing else on the forum

Heres what it looks like

Code: Select all

<p class="searchbar">
		<span style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a> | <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></span>
		<!-- IF S_USER_LOGGED_IN -->
		<span style="float: {S_CONTENT_FLOW_END};"><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a> | <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></span>
		<!-- ENDIF -->
	</p>
	<!-- ENDIF -->
//start paypal//
<center>
Do you find this site helpful, if so please consider buying the webmaster a cup of coffee to keep him and the server up!!
</center>
<center>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="Thank You for Donating to BBTalk! Your support helps keep the site running!">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="image" src="https://www.paypal.com/images/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
</center>
	<br style="clear: both;" />

	<!-- INCLUDE breadcrumbs.html -->
Heres the link
http://www.bixbytalk.com/forums
James N
Registered User
Posts: 1737
Joined: Sat May 20, 2006 12:57 pm
Contact:

Re: PaypAl donate button to open in new window

Post by James N »

not XHTML compliant, but it works. in the above, change

Code: Select all

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
to

Code: Select all

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target = blank>
User avatar
ric323
Former Team Member
Posts: 22910
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: PaypAl donate button to open in new window

Post by ric323 »

bigpips305 wrote:I found the code changes to change this, but does this actually affect phpbb3's ability for strict validation to achieve xhtml??
...
The limitation is in links posted in messages, you don't need any MODs to make link like that when you edit the .html file directly.
Of course, of you add something which is not XHTML compliant to the page, then the page is not fully XHTML compliant. There's no way to avoid that.
The Knowledge Base contains solutions to many common problems!
How to fix "Doesn't have a default value" and "Incorrect string value: xxx for column 'post_text' " errors.
How to do a clean re-install of the latest phpBB3 version.
Problems with permissions? Read phpBB3 Permissions
bigpips305
Registered User
Posts: 76
Joined: Thu Oct 16, 2008 11:26 pm

Re: PaypAl donate button to open in new window

Post by bigpips305 »

Thanks for that. You were a big help
Locked

Return to “[3.0.x] Support Forum”