[27/12/06] Paypal Link in Profile

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
1
20%
Very Good
1
20%
Good
2
40%
Fair
1
20%
Poor
0
No votes
 
Total votes: 5

RexxCrow
I've Been Banned!
Posts: 122
Joined: Mon May 29, 2006 10:43 pm

Post by RexxCrow »

Would it a possibility to allow this MOD to set the link as a form, being that PayPal requires the encryption. I made an account to test things out and I am unable to set this up using my PayPal info.. unless I am not understanding how to do this? Other then setting up a blank page the link brings up with another link that contains the actual form info on it, but that seems kind of silly to me; unless you wanted to write out a list of reasons to donate, what will be used with it, what has been accomplished with past donations, etc.
RexxCrow
I've Been Banned!
Posts: 122
Joined: Mon May 29, 2006 10:43 pm

Post by RexxCrow »

....Or better yet, I am not sure how to do this but am thinking it is possible, which would be to setup a link to page that automatically redirects the viewer to the paypal site based on the paypal form info?
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21148
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Post by RMcGirr83 »

DynoGT wrote: Is there any way to remove the button in viewtopic and just make a donate link to everyone's paypal account under their avatars?

Like in this picture: Taken from the Cash mod

http://i100.photobucket.com/albums/m34/ ... nate-1.jpg


Change this in viewtopic_body.tpl

Code: Select all

 {postrow.PAYPAL_IMG}
to this

Code: Select all

 {postrow.PAYPAL}
and move it under location or where ever.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21148
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Post by RMcGirr83 »

Actually, after looking at the code, wouldn't it be better for the link to be just your email address at paypal...so something like this for viewtopic.php

Code: Select all

      $paypal_img = ( $postrow[$i]['user_paypal'] ) ? '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=' . $postrow[$i]['user_paypal'] . '&no_shipping=2&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_new"><img src="' . $images['icon_donate'] . '" alt="' . $lang['Donate'] . '" title="' . $lang['Donate'] . '" border="0" /></a>' : '';
      $paypal = ( $postrow[$i]['user_paypal'] ) ? '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=' . $postrow[$i]['user_paypal'] . '&no_shipping=2&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_new">' . $lang['Donate'] . '</a>' : '';
:?:
Last edited by RMcGirr83 on Sat Mar 03, 2007 12:58 pm, edited 1 time in total.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
DynoGT
Registered User
Posts: 397
Joined: Fri Jan 13, 2006 10:06 pm
Location: Jacksonville, Fl

Post by DynoGT »

Thanks RMcGirr83, can you tell me how to get it to show up under everyone's avatar?
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21148
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Post by RMcGirr83 »

Avatar in viewtopic?

open viewtopic_body.tpl

FIND

Code: Select all

</p>
AFTER ADD

Code: Select all

{postrow.PAYPAL}<br />
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
DynoGT
Registered User
Posts: 397
Joined: Fri Jan 13, 2006 10:06 pm
Location: Jacksonville, Fl

Post by DynoGT »

Yeah, avatar in view topic. I'm reinstalling the mod now and should be trying that in a little bit. Thanks for getting back to me.
DynoGT
Registered User
Posts: 397
Joined: Fri Jan 13, 2006 10:06 pm
Location: Jacksonville, Fl

Post by DynoGT »

Hey RMcGirr83,

I got all the way up to the last part but couldn't find the </p> in viewtopic_body.tpl. Can you look at my file and tell me what I need to edit? Here's a copy of it.


http://www.fileden.com/files/2006/5/31/ ... c_body.txt
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21148
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Post by RMcGirr83 »

this

Code: Select all

<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br />
should be like this

Code: Select all

<br />{postrow.RANK_IMAGE}<br />{postrow.POSTER_AVATAR}<br />{postrow.PAYPAL}
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21148
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Post by RMcGirr83 »

Wish evil<3 would respond to this thread as I have some questions/suggestions for his mod.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Thanks for the support you've given for my MOD! I'm still here. Tell me what your suggestions are :)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
RexxCrow
I've Been Banned!
Posts: 122
Joined: Mon May 29, 2006 10:43 pm

Post by RexxCrow »

What about my idea to have an option to use a form link rather then just a http link?

In the meantime I make a kewl little description page yesterday,
http://teisu.org/donation.html

Code: Select all

<html><head><title>PayPal Donation Submittal, INSERT NAME</title><style type="text/css"><!--
body{background-color:#000000;cursor:default;}
a{white-space:nowrap;display:inline;cursor:pointer;color:#DCDCDC;font-family:Arial;font-size:14px;font-weight:bold;text-decoration:none;}
a:hover{color:#FFFF00;}
table{background-color:#787878;border:5px outset #344152;font-family:Arial;font-size:14px;}
td{white-space:nowrap;text-align:center;background-color:#344152;color:#F5F5F5;border:3px ridge #DCDCDC;padding:4px;}
.j{text-align:justify;white-space:normal;text-indent:20px;padding:20px;margin:0 auto;width:720px;}
.c{text-align:center;}
.ad{text-align:center;position:absolute;top:10%;left:0%;}
.teisu {text-align:center;font-size:16px;color:#F5F5F5;font-weight:bold;}
//--></style></head><body><table align="center" valign="middle" class="ad"><tr><td class="j">
<br><div class="teisu"style="text-indent:0px">The EIS Underground<br>Enhancing Your Gaming Experience</div><br><br>
<div style="text-indent:20px">Thank you for visiting the INSERT NAME Members donation's page. This page is designated especially for those Members whom wish to assist in covering the operational costs of running INSERT NAME. The expenses related to continuing the operation of INSERT NAME consists of such things as: monthly server fees, annual registration fees, software upgrades, staff training, etc.</div><br><div style="text-indent:20px">It is not a requirement to donate and at this time there are no benefits personally acquired by those that choose to take that proactive step forward and donate, unless you account for all the appreciation and many warm thanks from each of those that appreciate this most outstanding community and look forward for its continued advancement and growth! Thank you for taking the time to view this page and rest assured your continued participation and membership with INSERT NAME is valued irregardless if you choose to make a donation or not.</div>
<br><br><br><br>
<form... REPLACE W/ PAYPAL FORM INFO>
</form>
<center><IMG src="REMOVE THIS IMG TAG OR REPLACE WITH PATH TO YOUR VERISIGN LOGO OR - vsign.gif"alt="""border="0"></center>
<div><br><br><a href="INSERT WITH PATH TO INDEX"title="Click to return to the INSERT NAME Forums."return false>Return to INSERT NAME</a><span style="position:absolute;margin-left:200px;padding-right:10px;">A Special Thank you from your INSERT NAME Staff</span></div></td></tr></table>
</body></html>
Last edited by RexxCrow on Sat Mar 03, 2007 11:29 pm, edited 1 time in total.
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21148
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Post by RMcGirr83 »

eviL<3 wrote: Thanks for the support you've given for my MOD! I'm still here. Tell me what your suggestions are :)


When I visit paypal and request a donation link etc...all it asks for is my paypal account id....my email associated with paypal. I'm not really sure what the direct link would be...but according to paypal the link looks like it would be close to, if not over 100 characters, So...

#1) Just allow the user to enter in an email addy...simliar to the way their email addy is entered in the usercp.
#2) Make it so that, this is nitpicky, when a user has a paypal id setup it doesn't show to them if they are viewing a topic that they posted in.... eg everyone elses paypal id shows to them, the user can't see/use their own id.

I have modified your code a tad to be more in line with what paypal is looking for using the above that I had posted. The user hidding their own paypal link, I'm pretty sure you know how to take care of that. ;)

Looking forward to seeing MOD UPDATED!!

:)
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions | My extensions are updated regularly on github
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

RexxCrow, can you give me more info on that form info? Where do you get it? I've never really used paypal, so i don't really know :P

RMcGirr83, i don't quite understand what you mean :( Please try explain it to me again... sorry :(
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
RexxCrow
I've Been Banned!
Posts: 122
Joined: Mon May 29, 2006 10:43 pm

Post by RexxCrow »

Sure, this is what the generation basically looks like, I tweaked my code string though...

Code: Select all

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="http://REPLACE WITH PATH TO UR OWN IMAGE OR TO THE PAYPAL IMAGE LOGO ON THEIR SITE.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwasdfasdfasdfZIhvcNA6a5s4df56asdf456BlDCBjjEa56ASDFASDFsASGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAP9iROqB0sLOwitmyM0b/Uz97yormZtS+9f8UsF3zVPiM2DYfExQP+DkolzhHRwi3rnWfDAOOo+uqI3+b43sazNJbkf4d99DDn64AHo2PSzc4mZ5UYU5qC5LmM9UQBm7dO/5mh2T2IIxf3zZsMBAK1+N9RXpK19mSyqiJOx1s5uDELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIbFo+Ic4CxwmAgaBeT9DZ5oozkXRirmextyj3fw8WEuv93wwjqNV8Up7rLcyVRZKJY1/j9Xa7rhir18GFWlIMNVq24lYQ76oDh9CK78D3DDp6DJQmVSaw8hqFGSMBVlpEbS0kdSQE/yey+QHSlsssYxBsXx0ey0Fi48lo/FbhX1FdHxjhPOIdWgXhr8jdUrZaE90PlSzON+dCZoPhBH1pxHkbCi9QKKfic9EwoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEw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