Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-26-2017, 02:02 AM
rcull rcull is offline
 
Join Date: Feb 2005
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 &quot;Free Member/Registered&quot; 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 &quot;Newbie&quot; 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>&quot;Registered/Free Member&quot;</i> group are, <i>&quot;Junior Member&quot;</i> from 5 - 30 posts, <i>&quot;Member&quot;</i> from 31 - 100 posts, then <i>&quot;Senior Member&quot;</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 &quot;Free Member/Registered&quot; 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>&quot;Registered/Free Member&quot;</i> group are, <i>&quot;Junior Member&quot;</i> from 5 - 30 posts, <i>&quot;Member&quot;</i> from 31 - 100 posts, then <i>&quot;Senior Member&quot;</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>
To get the subscriptions available into your table, the template: subscription_availablebit will have to be modified something like:
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>
Attached Images
File Type: png registration.png (57.6 KB, 0 views)
Reply With Quote
Благодарность от:
Raptor
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 06:58 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.04378 seconds
  • Memory Usage 2,222KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_box_bit
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)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_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
  • 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_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