The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Push Subsciptions, Add On for Spam-O-Matic
I am still using Vb4. Once I registered on a site and they had a modification very similar to the one I am presenting, but of course developed by someone who knows what they were doing (not me). I did my best to replicate their idea.
The idea really goes well with Glowhosts Spam-O-Matic. Spammers won't pay to bypass the registration system, so I decided to offer a $2.00 bypass to an unmoderated, fully registered membership. I won't say it makes a pile, but every little bit helps and there are people who don't want to spend $12.00 for a supporting membership who will drop $2.00. What it does is ad a colorful table when a user register as soon as they complete their registration. The table displays the various subscriptions available. The table is also presented on the subscriptions page found in the user settings. By posting this, maybe some coder will pick up the idea and develop a good plug in that can work a little more smoothly. I tried, but couldn't succeed, to be able to purchase a membership directly from the "Registration Complete" screen with out going though the subscription template. Sorry, no support. I hope I have touched on all the points needed to give you a successful installation. First (optional) install GlowHost's Spam-O-Matic ( https://vborg.vbsupport.ru/showthread.php?t=248042 ) Go to Admincp > Subscriptions > Add New Subscription. Create a new subscription called "Registered". A suggested price might be $2.00. Check "Recurring" is off. As mentioned, I have spent quite a bit of time trying to get the phrase modification to bypass the template modification and just go to the order screen, but gave up. Hence the extra step of going to payments.php and not directly to payments.php?do=order when someone's interest is peaked after registration. Go to http://www.yoursite.com/forums/payments.php -Veiw the source and search for "cost". -Here you will find the links for the buttons you will use in your phrase and template modifications in this example there are two subscriptions available between line 380 and 413. Go to: Admincp > Languages & Phrases > Phrase Manager. Use "Search in Phrases", search for "registration", find "registration complete". Modify it to something like: Code:
Your registration is now complete!<br /> <br /> You may now proceed to edit your <a href="profile.php?$session[sessionurl]do=editprofile"><strong>Profile</strong></a> in order to fill in additional personal details about yourself, or you could modify your <a href="profile.php?$session[sessionurl]do=editoptions"><strong>Options</strong></a> to customize your browsing experience of this site. If you would rather do these things later, you can do so by following the links around the site to your <a href="usercp.php?$session[sessionurl]"><strong>Settings</strong></a>.<br /> <br /> <b>VINs and other IDENTIFICATION:</b> Much of the information you want can be found by checking out YEARS in the <a href="http://www.teambuick.com/index.php?page=reference">Reference</a> section of the site. <br /><br /> NOTE: Your email has been added to our Community Bulletin. If you do not wish to receive it, while in your "Settings" click on "Edit Options" scroll to "Messaging & Notification:" and click "Receive Community Bulletin Updates" OFF. <br /> <div> <br /> <div align="center"> <h2 class="blockhead">Available Member Subsciptions</h2> <div class="blockbody formcontrols settings_form_border"> <p> <b>All newly registered members spend a period of time as a "Newbie" - Your posts do not show until they have been moderated</b>! <br /> - Newbies have certain privileges limited on the site and are automatically promoted to the "Free Member/Registered" group after 5 moderated postings (postings do not appear until they have been moderated).<br /> - The purpose of the "Newbies" group is to sort out spammers. Spammers do not pay to join forums, so we offer the following memberships. By purchasing one <b>you can SKIP "Newbie" CLASSIFICATION</b>. We are sorry for any inconvenience.</p> <p> <div align="center"><i><u>***Purchasing a membership skips the <b>Newbie</b> classification.</u></i><img src="http://www.teambuick.com/forums/images/smilies/hurray.gif" alt="I can skip it!"></div></p> <p>The titles in the <i>"Registered/Free Member"</i> group are, <i>"Junior Member"</i> from 5 - 30 posts, <i>"Member"</i> from 31 - 100 posts, then <i>"Senior Member"</i>.</p> <div align="center"> <br /> <table border="1" cellspacing="0" cellpadding="2"> <tr> <td bgcolor="#ffffff"><strong>Membership Type</strong></td> <td bgcolor="#66ffff">Newbie</td> <td bgcolor="#cccccc">Free Member</td> <td bgcolor="#ffff00"><i>TEAM</i> Member</td> </tr> <tr> <td bgcolor="#ffffff">Recognition:</td> <td bgcolor="#ccffff">Newbie</td> <td bgcolor="#e6e6e6">Member</td> <td bgcolor="#ffffcc"><img src="http://www.teambuick.com/images/team_member_25x75.png" alt="Team Mmeber" /></td> </tr> <tr> <td bgcolor="#ffffff">Username Recognition:</td> <td bgcolor="#ccffff">None</td> <td bgcolor="#e6e6e6">None</td> <td bgcolor="#ffffcc"><b>Bold</b></td> </tr> <tr> <td bgcolor="#ffffff">Posts Moderated</td> <td bgcolor="#ccffff"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> <td bgcolor="#e6e6e6">No</td> <td bgcolor="#ffffcc">No</td> </tr> <tr> <td bgcolor="#ffffff">Private Message Storage:</td> <td bgcolor="#ccffff">None</td> <td bgcolor="#e6e6e6">50 Messages</td> <td bgcolor="#ffffcc">1000 Messages</td> </tr> <tr> <td bgcolor="#ffffff">Profile Pic Size:</td> <td bgcolor="#ccffff">600x600</td> <td bgcolor="#e6e6e6">600x600</td> <td bgcolor="#ffffcc">600x600</td> </tr> <tr> <td bgcolor="#ffffff">Attachment Space:</td> <td bgcolor="#ccffff">1 MB</td> <td bgcolor="#e6e6e6">10 MB</td> <td bgcolor="#ffffcc">Unlimited</td> </tr> <tr> <td bgcolor="#ffffff">Rides Uploads:</td> <td bgcolor="#ccffff">3 Vehicles</td> <td bgcolor="#e6e6e6">3 Vehicles</td> <td bgcolor="#ffffcc">10 Vehicles</td> </tr> <tr> <td bgcolor="#ffffff">More Album Space:</td> <td bgcolor="#ccffff">5 Pics, 1.5 MB</td> <td bgcolor="#e6e6e6">5 Pics, 1.5 MB</td> <td bgcolor="#ffffcc">Unlimited</td> </tr> <tr> <td bgcolor="#ffffff">Signature:</td> <td bgcolor="#ccffff">No</td> <td bgcolor="#e6e6e6"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> <td bgcolor="#ffffcc"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> </tr> <tr> <td bgcolor="#ffffff">Upload Signature Images:</td> <td bgcolor="#ccffff">No</td> <td bgcolor="#e6e6e6"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> <td bgcolor="#ffffcc"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> </tr> <tr> <td bgcolor="#ffffff">Upload Avatar:</td> <td bgcolor="#ccffff">No</td> <td bgcolor="#e6e6e6">No</td> <td bgcolor="#ffffcc"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> </tr> <tr> <td bgcolor="#ffffff">Less Advertising:</td> <td bgcolor="#ccffff">No</td> <td bgcolor="#e6e6e6">No</td> <td bgcolor="#ffffcc"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> </tr> <tr> <td bgcolor="#ffffff">Price:</td> <td bgcolor="#ccffff">Free</td> <td bgcolor="#e6e6e6">Free</td> <td bgcolor="#ffffcc">1 Year<br/>$12.00*</td> </tr> <tr class="sub_last_row"> <td colspan="4" bgcolor="#e6e6e6">Would you like to skip the "Newbie" classification?<br><i>You can for only $2.00.</i><br> Go to available memberships in your profile by clicking the <a rel="nofollow" href="http://www.teambuick.com/forums/payments.php"><img src="http://www.teambuick.com/images/submit-premiummember.gif" border="0" /></a> </td> </tr> </table> <br /> </div> </div> Go to: Admincp > Styles & Templates > Style Manager > Edit Templates > Subscriptions (Paid) Templates > subscription Modify it to be something like this: Code:
<div> <vb:if condition="$show['activesubscriptions']"> <div class="block" id="activesubs"> <h2 class="blockhead">{vb:rawphrase active_subscriptions}</h2> <div class="blockbody settings_form_border"> <ol> {vb:raw subscribedbits} </ol> </div> <div class="blockfoot"></div> </div> </vb:if> <vb:if condition="$show['subscriptions']"> <form action="payments.php?do=order" method="post" class="block" id="availsubs"> <h2 class="blockhead">{vb:rawphrase available_subscriptions}</h2> <div class="blockbody formcontrols settings_form_border"> <p>All newly registered members spend a period of time as a "<b>Newbie</b>". They are restricted from certain privileges on the site and are automatically promoted to the "Free Member/Registered" group after 5 postings (postings are moderated).<br />The purpose of the "Newbies" group is to sort out spammers. We are sorry for any inconvenience.</p> <p> <div align="center"><i><u>***Purchasing a membership skips the <b>Newbie</b> classification.</u></i><img src="http://www.teambuick.com/forums/images/smilies/hurray.gif" alt="I can skip it!"></div></p> <p>The titles in the <i>"Registered/Free Member"</i> group are, <i>"Junior Member"</i> from 5 - 30 posts, <i>"Member"</i> from 31 - 100 posts, then <i>"Senior Member"</i>.</p> <div align="center"> <br /> <table class="sub_custom"> <tr> <td class="sub_priv_header">Membership Type</td> <td class="sub_0_header">Newbie</td> <td class="sub_1_header">Free Member</td> <td class="sub_3_header"><i>TEAM</i> Member</td> </tr> <tr> <td class="sub_priv_title">Recognition:</td> <td class="sub_0">Newbie</td> <td class="sub_1">Member</td> <td class="sub_3"><img src="http://www.teambuick.com/images/team_member_25x75.png" title="Site Supporter" /></td> </tr> <tr> <td class="sub_priv_title">Username Recognition:</td> <td class="sub_0">None</td> <td class="sub_1">None</td> <td class="sub_3"><b>Bold</b></td> </tr> <tr> <td class="sub_priv_title">Posts are Moderated</td> <td class="sub_0"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> <td class="sub_1">No</td> <td class="sub_3">No</td> </tr> <tr> <td class="sub_priv_title">Private Message Storage:</td> <td class="sub_0">None</td> <td class="sub_1">50 Messages</td> <td class="sub_3">1000 Messages</td> </tr> <tr> <td class="sub_priv_title">Attachment Space:</td> <td class="sub_0">1 MB</td> <td class="sub_1">10 MB</td> <td class="sub_3">Unlimited</td> </tr> <tr> <td class="sub_priv_title">Rides Uploads:</td> <td class="sub_0">3 Vehicles</td> <td class="sub_1">3 Vehicles</td> <td class="sub_3">10 Vehicles</td> </tr> <tr> <td class="sub_priv_title">More Album Space:</td> <td class="sub_0">5 Pics, 1.5 MB</td> <td class="sub_1">5 Pics, 1.5 MB</td> <td class="sub_3">Unlimited</td> </tr> <tr> <td class="sub_priv_title">Signature:</td> <td class="sub_0">No</td> <td class="sub_1"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> <td class="sub_3"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> </tr> <tr> <td class="sub_priv_title">Upload Signature Images:</td> <td class="sub_0">No</td> <td class="sub_1"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> <td class="sub_3"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> </tr> <tr> <td class="sub_priv_title">Upload Avatar:</td> <td class="sub_0">No</td> <td class="sub_1">No</td> <td class="sub_3"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> </tr> <tr> <td class="sub_priv_title">Less Advertising:</td> <td class="sub_0">Some Pages</td> <td class="sub_1">Some Pages</td> <td class="sub_3"><img src="http://www.teambuick.com/images/checkmark.gif" alt="Yes" />Yes</td> </tr> <tr> <td class="sub_priv_title">Price:</td> <td class="sub_0">Free</td> <td class="sub_1">Free</td> <td class="sub_3">1 Year<br/>$12.00*</td> </tr> <tr class="sub_last_row"> <td colspan="2" class="sub_1">Would you like to skip the "Newbie" classification?<br><i>You can for only $2.00.</i><br>Click the first subscription box on the right!</td> <td class="sub_1"><label for="currency4">Cost:</label> <select name="currency[4]" id="currency4" tabindex="1"><option value="0_usd">US$2.00</option><optgroup label="5 Years"> <option value="0_usd" >US$2.00</option> </optgroup> </select> <p class="description"></p> <input type="submit" class="button" name="subscriptionids[4]" value="Order" tabindex="1" /></td> <td class="sub_3"><label for="currency1">Cost:</label> <select name="currency[1]" id="currency1" tabindex="1"><option value="1_usd">US$12.00</option><optgroup label="1 Year *"> <option value="1_usd" >US$12.00</option> </optgroup> <optgroup label="3 Years *"> <option value="2_usd" >US$30.00</option> </optgroup> <optgroup label="20 Years"> <option value="3_usd" >US$50.00</option> </optgroup> </select> <p class="description"></p> <input type="submit" class="button" name="subscriptionids[1]" value="Order" tabindex="1" /></td> </tr> </table> <br /> </div> </div> <div class="blockfoot settings_form_border"> {vb:rawphrase validity_periods_marked_indicate} </div> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="do" value="order" /> </form> </vb:if> </div> Code:
FROM <li> <h3 class="blocksubhead">{vb:raw subscription.title}</h3> <div class="section"> <div class="blockrow"> <label for="currency{vb:raw subscription.subscriptionid}">{vb:rawphrase cost}:</label> <div class="rightcol"> <select name="currency[{vb:raw subscription.subscriptionid}]" id="currency{vb:raw subscription.subscriptionid}" tabindex="1">{vb:raw subscription.cost}</select> <p class="description">{vb:raw subscription.description}</p> <input type="submit" class="button" name="subscriptionids[{vb:raw subscriptionid}]" value="{vb:rawphrase order}" tabindex="1" /> </div> </div> </div> </li> TO: subscription_availablebit Modified <td> <div class="section"> <label for="currency{vb:raw subscription.subscriptionid}">{vb:rawphrase cost}:</label> <select name="currency[{vb:raw subscription.subscriptionid}]" id="currency{vb:raw subscription.subscriptionid}" tabindex="1">{vb:raw subscription.cost}</select> <p class="description">{vb:raw subscription.description}</p> <input type="submit" class="button" name="subscriptionids[{vb:raw subscriptionid}]" value="{vb:rawphrase order}" tabindex="1" /> </div> </td> |
Благодарность от: | ||
Raptor |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|