![]() |
Add-on CMS Widget For VSA Donation Mod
1 Attachment(s)
I have created a CMS widget that works with Valter's Donation Mod Found here: https://vborg.vbsupport.ru/showthread.php?t=236480 CLICK INSTALLED TO GET SUPPORT FOR THIS ADD-ON. IF YOU DO NOT CLICK INSTALLED I CANNOT HELP YOU. NOTE: There is one draw back to this donation widget. I could not get the options to work so that a member could choose an pre-determined amount to donate, so if you use this widget you will HAVE to set your VSA Paypal Donate "Allowed donate amounts" to "Custom Only". This is the only way this widget will work properly and not look strange. Step 1: 1. Login to your admincp and go to vBulletin CMS>Widgets 2. Click "Create New Widget" at the bottom. Use the PHP direct execution widget settings or else this will not work. 3. Give the widget a proper title - this can be whatever you want it to be just keep in mind that it cannot be too long since it will be the widget header. 4. Give the widget a description - again this is up to you. 5. Click the "save" button. Step 2: 1. Go to Styles & Templates>Style Manager 2. Find the style you want to add the widget to - if you have more than one style and want it to show in each style you will need to do these steps for each style. 3. Click the drop down to the right and choose "Add New Template" 4. In the title box put the following without the quotes: "donate_widget" 5. Now copy and paste the following in the box: Code:
<div align="center"><form id="vsappd" name="vsappd" action="misc.php?{vb:raw session.sessionurl}do=dodonate" method="post" onsubmit="return Cpp_limitAmo(this);" <vb:if condition="$vboptions[vsapaypal_go_separate]">target="_blank"</vb:if>> 6. Click the "Save" button. Step 3: 1. Go to vBulletin CMS>Widgets and find the widget you created above and click on the "Configure" link to the far right. 2. In the box clear what is in it and place this code in it: Code:
$templater = vB_Template::create('donate_widget'); Step 4: 1. Go to vBulletin CMS>Layout Manager and find your current layout. Click the "Go" button to edit the layout. 2. Choose from the list on the left the name of your widget and place it in your layout where you would like it to go. 3. Click "Save". Refresh your page and you should see the widget now. To change the message above the donation box: 1. Go to Languages & Phrases>Search In Phrases 2. In the "Search For Text" box put "Please choose an option below" without the quotes. 3. Then tick the "Phrase Text and Phrase Variable Name" and click the "Find" button. 4. This will bring up the phrase for this mod. In the bottom box type in what you want to change this to and click the save button. Refresh your page again and the changes should show soon. NOTE: There is one draw back to this donation widget. I could not get the options to work so that a member could choose an pre-determined amount to donate, so if you use this widget you will HAVE to set your VSA Paypal Donate "Allowed donate amounts" to "Custom Only". This is the only way this widget will work properly and not look strange. |
NICE ONE IVE ADDED SOME HTML TO THE Phrase Text to add a custom image
|
Quote:
|
Nice one i have added it to my front page many thanks for this mod
|
Awesome glad its working for you as well :)
|
I tried to get this to work but didn't have a place to put the amount in once it appeared on my main page. Any ideas?
|
Quote:
|
Is it possible to show a list of donators below the widget / submit button?
|
Installed and working.
The only part I couldn't quite figure out was what kind of a widget to make so I used the PHP direct exection widget template and that's working great. Thanks very much! |
Quote:
|
All times are GMT. The time now is 09:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|