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.
Scam Warning
bigpips305
Registered User
Posts: 76
Joined: Thu Oct 16, 2008 11:26 pm

PaypAl donate button to open in new window

Postby bigpips305 » Thu Dec 25, 2008 1:10 am

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="webmaster305@comcast.net">
<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

Postby James N » Thu Dec 25, 2008 10:06 am

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: 22908
Joined: Tue Feb 06, 2007 12:33 am
Location: Melbourne, Australia
Name: Ric
Contact:

Re: PaypAl donate button to open in new window

Postby ric323 » Thu Dec 25, 2008 11:13 am

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

Postby bigpips305 » Thu Dec 25, 2008 7:26 pm

Thanks for that. You were a big help


Return to “3.0.x Support Forum”

Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Skouat and 156 guests