Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adding PayPal.me Link to User postbit Details »»
Adding PayPal.me Link to User postbit
Version: 1.00, by scottkoz20 scottkoz20 is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.2.x Rating:
Released: 02-17-2018 Last Update: Never Installs: 5
Template Edits
Re-useable Code Additional Files Is in Beta Stage  
No support by the author.

This is my first modification I have decided to publish - I am not really great at the programatic functionality of vB. But this was something request and thought it would be a good add for my site.

Adding a PayPal.me Link and the ability to indicate if a member has a verified PayPal Account.

The steps are fairly straight forward, but does require some template and profile hacks as well as image uploads.

1) Download the images and upload them to your forums images/misc directory

EDIT - I can't get the zip to upload, here are the images I used - upload these to your images/misc directory

1 - Paypal.me -
2 - PayPal Verified -


2) Need to add 2 Profile Fields (Admincp->User Profile Fields->Add New User Profile Field)
Note - I added a Profile Group Called PayPal

Field 1 - Single Line Text
Name - PayPal.me username (Note: The user will need to go to paypal.me and create a personalized link ie: paypal.me/username )
Description - If you want to build a PayPal.me Link, go to paypal.me and create your personal link. Only enter the username you select.
Field Required - No
Editable - Yes
Private, Searchable, Show on Memberlist - No
Rest leave as default (unless you wish to set this)

Field 2 - Single Selection Menu
Name - PayPal Verified?
Description -
Code:
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_show-limits&req_from=view_limits" target="_blank">Go to PayPal to check your Validation Status</a>
Field Required - No
Editable - Yes
Private, Searchable, Show on Memberlist - No
Rest leave as default (unless you wish to set this)

Make sure that you jot down the field ID numbers!

3) Now go to Styles & templates->Style Manager->Edit Template of the Style you wish to change

Find the postbit or postbit_legacy template (depends which one you are using for your forum) - Doubleclick to Edit
Note - I used postbit_legacy but this should be the same for postbit

Find the following

Code:
<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>
and below, add the following

Code:
<!-- Paypal -->
<br />
<div align="Left">
<vb:if condition="$post['fieldXX']"><a href="https://paypal.me/{vb:raw post.fieldXX}" target="_blank"><img src="images/misc/paypalme.jpg" alt="Send PayPal to {vb:raw post.fieldXX}" border="" /></a></vb:if>
<vb:if condition="$post['fieldXX']"><img src="images/misc/paypalv.png" alt="Member is PayPal Verified" border="" /></vb:if>
</div>
<br />
<!--Paypal-->


Note - Make sure you replace the XX's in the fieldXX with your fieldid from the Profile Field setup


4) Test!

Profile Fields Added


Postbit once Profile Information is added



5) Alert your members


Notes -
1st release on 17 Feb 2018
Correction (18 Feb 2018) - Fixing missing Anchor close

Updated Images - If you want a vector png file, please see post 5 - https://vborg.vbsupport.ru/showpost....94&postcount=5

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-18-2018, 12:11 AM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reserved

Note - If you want to take this can expand upon it, go for it, just make sure I am acknowledged
Reply With Quote
  #3  
Old 02-18-2018, 03:20 AM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for that, the only thing that's needed now is to restrict users from being able to enter in a paypal profile. Or another idea that I had was to not show the paypal button in a thread if users aren't in a certain usergroup.

Can be done by entering in which usergroup has access to it. I'll give it a go on monday to try out the modification.

Also original credit goes to mac27 for his original mod, a decade ago.
Here are properly renamed images.

Oh and you forgot to close the anchor in the code btw.
Attached Files
File Type: zip images.zip (5.9 KB, 23 views)
Reply With Quote
Благодарность от:
scottkoz20
  #4  
Old 02-18-2018, 07:08 PM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the heads up on the anchor close. Corrected the code
Reply With Quote
  #5  
Old 02-18-2018, 09:01 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great addition!

Had to make a new paypal.me for a site, its a png for transparency as it that site has multiple styles, if anyone uses it, fix the path in the profile field.
Attached Images
File Type: png paypalme-2.png (5.6 KB, 0 views)
Reply With Quote
Благодарность от:
scottkoz20
  #6  
Old 11-05-2018, 10:39 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tend not to use the "verified button", because really, there is no way to check it with the modification as it is. So anyone even with a fake paypal can say "verified".

This would be a good place to start though if you wish to improve the functionality of the mod.
https://developer.paypal.com/docs/cl...API_Operation/
Reply With Quote
Благодарность от:
scottkoz20
  #7  
Old 11-05-2018, 11:31 PM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by final kaoss View Post
I tend not to use the "verified button", because really, there is no way to check it with the modification as it is. So anyone even with a fake paypal can say "verified".

This would be a good place to start though if you wish to improve the functionality of the mod.
https://developer.paypal.com/docs/cl...API_Operation/
this would be something I am not sure I can personally handle... will look next week. It's hockey geek week coming in Toronto
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04183 seconds
  • Memory Usage 2,297KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (3)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (2)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete