Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
PHPKD - Subscription Certain Payment APIs Details »»
PHPKD - Subscription Certain Payment APIs
Version: 4.0.101, by Omranic Omranic is offline
Developer Last Online: Sep 2021 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.x Rating:
Released: 09-26-2010 Last Update: 09-27-2010 Installs: 9
DB Changes Uses Plugins
Re-useable Code Code Changes Translations  
No support by the author.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!.................. Brought to you by PHP KingDom (www.phpkd.net) ..................!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




Name: PHPKD - Subscription Certain Payment APIs
Version: 4.0.101

Description: This product allows admin staff to specify certain payment APIs for each paid subscription.


Compatible with: All 4.0.x vBulletin versions.


Requirements:
  • vBulletin version 4.0.x


Helpful links:

Features:
  • General Features:-
    • Fully Phrased.
    • Fully Supported.
    • Accurate Processing.
    • Professionally Coded.
    • Detailed Documentation.
    • Zero Additional Queries.
    • Does NOT break any default vBulletin functionality -Fully vBulletin Compatible-.
  • Specific Features:-
    • Full control over which payment methods are used for each paid subscription. A multi selection menu with all available paymanet APIs to select from.


Installation Procedure:
  1. Do the following small manual edit(s), open the file "includes/subscriptions.php" and:
    Search for:
    Code:
    	print_input_row($vbphrase['display_order'], 'sub[displayorder]', $sub['displayorder'], true, 5);
    Add under it directly the following code:
    Code:
    	// PHPKD - Subscription Certain Payment APIs
    	print_table_header($vbphrase['payment_api_manager']);
    	$phpkd_vbscp = array();
    	$phpkd_vbscp_apis = $db->query_read("
    		SELECT * FROM " . TABLE_PREFIX . "paymentapi
    	");
    	while ($phpkd_vbscp_api = $db->fetch_array($phpkd_vbscp_apis))
    	{
    		$phpkd_vbscp[$phpkd_vbscp_api['classname']] = $phpkd_vbscp_api['title'];
    	}
    	$phpkd_vbscp_paymentapi = unserialize($sub['paymentapi']);
    	print_select_row($vbphrase['phpkd_vbscp'], 'sub[paymentapi][]',  array(-1 => $vbphrase['phpkd_vbscp_all']) + $phpkd_vbscp, count($phpkd_vbscp_paymentapi) > 0 ? $phpkd_vbscp_paymentapi : -1, false, 5, true);

    Search for:
    Code:
    	$sub['displayorder'] = intval($sub['displayorder']);
    Add under it directly the following code:
    Code:
    	// PHPKD - Subscription Certain Payment APIs
    	if (count($sub['paymentapi']) > 1 AND $sub['paymentapi'][0] == -1)
    	{
    		unset($sub['paymentapi'][0]);
    	}
    
    	if (!is_array($sub['paymentapi']))
    	{
    		 $sub['paymentapi'] = array();
    	}
    
    	$sub['paymentapi'] = serialize($sub['paymentapi']);
    Save the modified file "includes/subscriptions.php" and upload it to it's place again (ALLOW OVERWRITE).
  2. Import the product's XML file "product-phpkd_vbscp.xml" from AdminCP.
  3. You're Done .


Upgrade Procedure:
  1. Same as "Installation Procedure", but "Allow Overwrite" for both file uploads & product import.


Controls:
  • Settings:
    vBulletin AdminCP ? Paid Subscriptions ? Subscription Manager ? Any Product ? Edit ? Payment API Manager


License:
Read Here: http://info.phpkd.net/en/license/free/
--------------- --------------- --------------- ---------------
Creative Commons - Attribution-Noncommercial-Share Alike 3.0
http://creativecommons.org/licenses/by-nc-sa/3.0/
--------------- --------------- --------------- ---------------
  • You are free:
    • To Share ? to copy, distribute and transmit the work
    • To Remix ? to adapt the work

  • Under the following conditions:
    • [Attribution]: You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
    • [Noncommercial]: You may not use this work for commercial purposes.
    • [Share Alike]: If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

  • For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page.
  • Any of the above conditions can be waived if you get explicit permission from the copyright holder.
  • Nothing in this license impairs or restricts the author's moral rights.
--------------- --------------- --------------- ---------------
Your fair dealing and other rights are in no way affected by the above.
This is a human-readable summary of the Legal Code (the full license).
http://creativecommons.org/licenses/.../3.0/legalcode
--------------- --------------- --------------- ---------------


Help with:
  • Translations to benefit more users.
  • Suggestions & feature requests to develop this product.
  • Contributing any updates, upgrades and/or any new features.
  • Spreading this product. Yes, you're free to re-distribute this product as it is (See 'Free License' details).


Known Issues:
  • Nothing till now!


Future TO-DO-LIST:
  • Post your suggestions!


History:
  • v1.0.0 24/09/2008 10:00 AM UTC: First 3.7.x release (private)
  • v3.7.100, v3.8.100 14/04/2009 10:00 AM UTC: First initial public release.
  • v3.7.101, v3.8.101 15/04/2009 01:00 AM UTC: Fixing minor bug in the "uninstall code".
  • v4.0.100 27/09/2010 10:00 AM UTC: First 4.0.x release (public)
    1. Recoded from scratch.
    2. Improved the product in general.
    3. Fully compatible with vBulletin 4.0.x.
    4. Reduced manual edits, now required edits are only in one file.
  • v4.0.101 28/09/2010 10:00 AM UTC: Maintenance release (public)
    1. Fixed minor bug in installation code.


Screen Shots:
  • Available down there.


Technical Notes:
  • New Plugins: 1
  • New Phrases: 2
  • New Templates: 0
  • Manual Template changes: 0
  • Auto Template changes: 0
  • New Files: 0
  • Manual File Changes: 2
  • New vBulletin Settings: 0
  • New Usergroup Permissions: 0
  • New Moderator Permissions: 0
  • New Administrator Permissions: 0
  • New Forum Options: 0
  • New DB Tables: 0
  • DB Alterations: 1
  • New Cronjobs: 0
    --------------------------------
  • Installation Level: Easy
  • Installation Time: ~13 seconds


Recent Products:

Download Now

File Type: zip PHPKD_VBSCP_4.0.101.zip (112.1 KB, 73 views)

Screenshots

File Type: png phpkd_vbscp_admincp_all_apis.png (35.0 KB, 0 views)
File Type: png phpkd_vbscp_admincp_selected_apis.png (34.9 KB, 0 views)
File Type: png phpkd_vbscp_order_payment.png (26.9 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 09-27-2010, 01:29 PM
Stilgar's Avatar
Stilgar Stilgar is offline
 
Join Date: Mar 2006
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks very promising. Tagged until I can install.

Thanks!
Reply With Quote
  #3  
Old 09-28-2010, 07:38 AM
dacho's Avatar
dacho dacho is offline
 
Join Date: Dec 2004
Location: Tell-Aviv
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks interesting, I'll take that and help in translation
Reply With Quote
  #4  
Old 12-10-2010, 09:17 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice! this is available for VB4. Very happy now ^^
Reply With Quote
Reply

Thread Tools

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 07:28 AM.


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.04170 seconds
  • Memory Usage 2,268KB
  • Queries Executed 20 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete