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

Reply
 
Thread Tools Display Modes
  #11  
Old 03-21-2008, 07:06 PM
Scuzzy Scuzzy is offline
 
Join Date: Feb 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
You will have to edit a template then, if you want to include custom HTML into the Registration Form. PHP code can be placed in a nearby Plugin and then use that to call and evaluate a template. Then use the variable, that the template is evaluated to, in the registration template.
I found a way very similar to what your describing, but without editing a template. In order to add a custom set of fields to the actual registration form I did the following:
  1. Created a hook on register_activateform that appended my custom template form fields to $profile_variable
  2. Created another hook on register_addmember_process to pull and verify my form specific information.

If anyone thinks of any caveats to that I'd really like to hear them, but it appears to work very well, and I don't have to modify any regular VBulletin php files or templates.

Scuzzy
Reply With Quote
  #12  
Old 08-14-2009, 07:17 PM
ilrglen's Avatar
ilrglen ilrglen is offline
 
Join Date: Jun 2008
Location: Yorkton, SK
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to send new registrants to my payments.php page to purchase a membership before the registration process is completed. If there is no payment made then I would like the registrant deleted so that they cannot log in to any part of my site. I added a pluggin that redirects to payments.php after the registration page but discovered that the registration still goes through if they cancel the page or close the window. How can I get around this so that the registration process and payment process are one and the same?
Reply With Quote
  #13  
Old 08-18-2009, 07:34 PM
ravistb ravistb is offline
 
Join Date: Aug 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've added some custom user profile fields, but I would like to insert them into a separate DB table for use in my non vb site. I've got the plugin on the register_addmember_complete hook, but am not sure how to refence what those fields were. From what I can see they are just called $userfield[field2], $userfield[field5], $userfield[field6]. What do I need to do in order to get these values into some sort of variable that I can insert into my table? I've tried setting a variable like $customfield1 = $vbulletin->userfield[field2]; but all the inserts into my table are just blank empty inserts.

Any help would be greatly appreciated.
Reply With Quote
  #14  
Old 08-18-2009, 07:43 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$vbulletin->userinfo[field2] is probably the correct variable, or it may be $vbulletin->GPC[field2] (or $vbulletin->GPC['field2'] depending on where you use it).
Reply With Quote
  #15  
Old 08-18-2009, 07:53 PM
ravistb ravistb is offline
 
Join Date: Aug 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank thank you! That was perfect!
Reply With Quote
  #16  
Old 08-18-2009, 08:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Which worked (in case someone else comes across this thread with the same question)?
Reply With Quote
  #17  
Old 08-18-2009, 10:19 PM
ravistb ravistb is offline
 
Join Date: Aug 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$vbulletin->userinfo[field2] was the correct one
Reply With Quote
  #18  
Old 08-31-2009, 08:29 PM
ilrglen's Avatar
ilrglen ilrglen is offline
 
Join Date: Jun 2008
Location: Yorkton, SK
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marco van Herwaarden View Post
AdminCP -> User Profile Fields.
Is there a way to make the Location field a pulldown menu list that the user would be required to choose from? It would be nice to be able to get some consistent responses for this so that possible it could be used to sort users or make users from certain countries have access to certain forums. Any ideas?
Reply With Quote
  #19  
Old 08-31-2009, 08:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take a look in the manual under User Profile Fields and you will see how to make a dropdown menu for it.
Reply With Quote
  #20  
Old 08-31-2009, 09:21 PM
ilrglen's Avatar
ilrglen ilrglen is offline
 
Join Date: Jun 2008
Location: Yorkton, SK
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Take a look in the manual under User Profile Fields and you will see how to make a dropdown menu for it.
Not sure how I missed that. Must have had a couple of pages stuck together. Thanks.

--------------- Added [DATE]1251760289[/DATE] at [TIME]1251760289[/TIME] ---------------

B U T . . . I now noticed there is a limit of 31 options allowed to pulldown menus. Any way that can be overridden?

Quote:
Originally Posted by ilrglen View Post
Not sure how I missed that. Must have had a couple of pages stuck together. Thanks.
Reply With Quote
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 07:59 AM.


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.07906 seconds
  • Memory Usage 2,244KB
  • Queries Executed 11 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete