| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
|  registration process 
			
			Hey all, I was just wondering if there was a way to install a redirect through the registration process. What I am trying to do is add a radio button check point field in the registration process for paid memberships so it will say:- - Free Membership - 3 Month Membership - 6 Month Membership - 1 Year Membership - Life-time Membership If they select Free Membership it registers them as usual, if they click any of the other options it registers them then immediately re-directs them to the paid membership/payment page with their selection (3m/6m/1y/LT) already selected and waiting for their paypal stuff. Does anyone know how to do this? | 
| 
			 
			#2  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			I'm not sure what level your coding is at but on method of achieving this might be to stick some javascript into the registration template.  e.g. onClick="runFunction()" would go in the user profile field form. Then in the function something like; HTML Code: runFunction() {
var profilefield = '<vb:raw userprofilefieldX>';
if (profilefield == '3 months') { window.open('http://www.site.com/billing.php?duration=3','mywindow'); } else if
(profilefield == '6 months') { window.open('http://www.site.com/billing.php?duration=6','mywindow'); } else if
(profilefield == '1 year') { window.open('http://www.site.com/billing.php?duration=1,'mywindow'); } else if
(profilefield == 'LT') { window.open('http://www.site.com/billing.php?duration=0,'mywindow'); }
} | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |