Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 10-01-2007, 07:20 AM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope

Looking through the vB admin cp files, maybe I should be writting the values out to a cookie upon submit. Then do various verification checks in the do=updatemanager part of the code with a cookie read?
Reply With Quote
  #12  
Old 10-01-2007, 02:52 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change
PHP Code:
print_table_footer(3''''0); 
To
PHP Code:
print_table_footer(); 
You don't need to specify default values.

Change
PHP Code:
print_submit_row($vbphrase['save'], $vbphrase['reset']); 
To
PHP Code:
print_submit_row(); 
Also here..
PHP Code:
  if (!$vbulletin->GPC['uploads_location']) 
I think that might work but to be safe use
PHP Code:
if(empty //... 
Otherwise I can seem much reason wrong with your script. Maybe you have made an error somewhere else in the page?
Reply With Quote
  #13  
Old 10-01-2007, 04:32 PM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="darkgreen">Where can I find documentation on clean_array_gpc or clean_gpc or GPC? php.net doesnt have these so I assume they are vB specific but there in nothing on vb.org about it but members code.

Edit: found it at vb.com and still no help from it. Telling me GPC is a wrapper doesnt help the situation at all. Why is vB so damn freaking limited on its technical documentation.</font>
Reply With Quote
  #14  
Old 10-01-2007, 04:57 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well modifications aren't exactly supported so

If you haven't already you can try
Quote:
http://members.vbulletin.com/api/
vBulletin 3.6 Code Documentation
Other just check the source code, if you know PHP it should be quite easy to understand whats going on.

Did you get anywhere even with the changes I suggested?
Reply With Quote
  #15  
Old 10-01-2007, 05:13 PM
RobDog888's Avatar
RobDog888 RobDog888 is offline
 
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That API link should come in handy. Thanks

Part of the issue is that I am learning PH and vB code stuff at the same time.

I dont think its hard at all just lacking information. I have got as far as I have by going over all the code in vB and trying to decipher it. So far so good. I have custom pages added and tempaltes etc but its so much easier with templates/php code but to go on php alone is harder for me.

I originally started with this https://vborg.vbsupport.ru/showthread.php?t=83122 but it doesnt have anything on validating the data and whats the proper safe logic.

This is taking way too long for something that I think is simple. I just need to know how its done so I can integrate that into my code.

PHP Code:
print_cp_blah(blah, ...);
print_submit_row(blah);
//...

if(empty($vbulletin->GPC['uploads_location'])  
{
  
//Do validation before entering into db table

I did get it to dump once with a value but I dont know what was the issue as it didnt retain and other changes I made may be diff now.


--------------- Added at 11:18 ---------------

What is the diff of "...clean_array_gpc('r'" and "...clean_array_gpc('p'"?
Its not in the docs.


--------------- Added at 20:46 ---------------

I ended up recoding the code block from scratch. I clean_array_gpc'd in each if/elseif conditional along with the vars set by the GPC call. Seems to work now. Guess it was some code error that I just couldnt track down.

I did find that
die('<pre>'.print_r($vbulletin->GPC, true).'</pre>');
will give me the output of whats in the array for "debugging" which helped too.

Thanks for all your time and assistance
Reply With Quote
Reply

Thread Tools
Display Modes

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: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.03604 seconds
  • Memory Usage 2,212KB
  • Queries Executed 13 (?)
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
  • (7)bbcode_php
  • (1)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
  • (1)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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