vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Add Phrases to Subscription Payment Types (https://vborg.vbsupport.ru/showthread.php?t=130479)

ChurchMedia 10-30-2006 10:00 PM

Add Phrases to Subscription Payment Types
 
This hack will add phrases for your payment types. For instance, if you use Authorize.net you can change the lable on the payment button. "Order Using Authorize.net" won't make sense to most people, but "Order Using Major Credit Card" is easy to understand and won't spook away visitors.

All phrases can be changed to whatever you like using the Phrase Manager in your admin cp.

See the screenshot for an example. The "Order Using Major Credit Card" is actually Authorize.net!

Also works in 3.5.x

--------------------------------
Product to Install: 1
New Phrases: 7
New Templates: 0
Files to Modify: 1
--------------------------------

Instructions:

1) Install product-payment-phrases.xml

2) Open payments.php from /forums root

3) Find this code around line 286:

PHP Code:

    // These phrases are constant since they are the name of a service
    
$tmp = array(
        
'paypal'       => 'PayPal',
        
'nochex'       => 'NOCHEX',
        
'worldpay'     => 'WorldPay',
        
'2checkout'    => '2Checkout',
        
'moneybookers' => 'MoneyBookers',
        
'authorizenet' => 'Authorize.net',
        
'ccbill'       => 'CCBill',
    ); 

4) REPLACE that code with:

PHP Code:

    // ChurchMedia Payment Phrase Hack
    
$tmp = array(
        
'paypal'       => construct_phrase($vbphrase['payment_paypal']),
        
'nochex'       => construct_phrase($vbphrase['payment_nochex']),
        
'worldpay'     => construct_phrase($vbphrase['payment_worldpay']),
        
'2checkout'    => construct_phrase($vbphrase['payment_2checkout']),
        
'moneybookers' => construct_phrase($vbphrase['payment_moneybookers']),
        
'authorizenet' => construct_phrase($vbphrase['payment_authorizenet']),
        
'ccbill'       => construct_phrase($vbphrase['payment_ccbill']),
    );
// END Payment Phrase Hack 

5) Upload payments.php

6) Modify payment phrases as needed

Enjoy!

ChurchMedia 10-31-2006 07:13 PM

~~~~~~~~~~~~~~~~~
Reserved
~~~~~~~~~~~~~~~~~

ChavMagnet 10-31-2006 07:39 PM

Dont know what it does or if i need it but first post Woot!

aky 10-31-2006 07:44 PM

2nd post

ChurchMedia 10-31-2006 08:21 PM

Quote:

Originally Posted by ChavMagnet
Dont know what it does or if i need it but first post Woot!

The text on the payment buttons for subscriptions is not phrased. This phrases them.

Click install :)

ringleader 03-07-2008 12:57 PM

Excellent stuff. Works on 3.6.8 PL2 btw. Thanks for this.


All times are GMT. The time now is 07:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01111 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete