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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2008, 02:53 PM
dayzman dayzman is offline
 
Join Date: Mar 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default $vbulletin->GPC

Hi,

Does anyone know which function puts values into the $vbulletin->GPC array, i.e. the actual initialisation of the array. Thanks.

Michael
Reply With Quote
  #2  
Old 04-05-2008, 03:10 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It stores cleaned input which has been passed through the vBulletin Input Cleaner.

Using the vBulletin Input Cleaner

What are you trying to do?
Reply With Quote
  #3  
Old 01-15-2018, 07:35 PM
effeff70 effeff70 is offline
 
Join Date: Nov 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Even though this thread is quite old:
I am looking for an answer to dayzman's question. Why?
vbulletin preselects a certain value within certain dropdown boxes. For instancem when registering at a forum, within the 'showbirthday' dropdown list, the entry with value="2" is preselected.
This is a privacy concern! I would like to change this to the entry with value="0" being shown. Within register.php I found:
$sbselected = array($vbulletin->GPC['showbirthday'] => 'selected="selected"');
I concluded that the values I am looking for are to be found in the GPC Array. Well, that's where I am stuck and I would appreciate help with this.

Thanks.
Reply With Quote
  #4  
Old 01-15-2018, 09:31 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The $vbulletin->GPC array contains all user input data that has been passed through the input "cleaner". ($_POST, $_GET, $_COOKIE) You sure you don't just want to make a template modification to change the default value of the showbirthday option?
Reply With Quote
  #5  
Old 01-16-2018, 07:50 PM
effeff70 effeff70 is offline
 
Join Date: Nov 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wasn't sure how chaging the template could possibly effect other functionallity (I am not a VB pro as you can tell by my question).
And since the values of the listbox is not a user input I thought...

Anyways: Enough on problems, let's focus on solutions!
Where and how would I have to change which template in order to achieve a different pre-selection within the 'showbirthday' listbox?
Reply With Quote
  #6  
Old 01-16-2018, 08:23 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would probably be easier for you to modify the register.php file.
Look for the following in register.php:
PHP Code:
        // Default Birthday Privacy option to show all
        
if (empty($errorlist))
        {
            
$sbselected = array(=> 'selected="selected"');
        } 
And change that 2 to 0.
Reply With Quote
  #7  
Old 01-17-2018, 06:25 AM
effeff70 effeff70 is offline
 
Join Date: Nov 2008
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...it's so simple when you know what to look for! ;-)
Thanks for your help.
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 08:27 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
  • Page Generation 0.03939 seconds
  • Memory Usage 2,214KB
  • 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
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete