vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   need help: custom template/php page with php doing all the logic & page output (https://vborg.vbsupport.ru/showthread.php?t=225349)

moleculo 10-16-2009 05:15 AM

need help: custom template/php page with php doing all the logic & page output
 
First, let me say that this is my first attempt to build a custom page and code within vbulletin that contains more than basic html or javascript within the custom template.

I am trying to build a custom php based page that can be called from a standard HTML form submit method, where the value input to the field is passed to the custom php page for complete processing and display output. Of course, I want the custom php page to be wrapped as a vbulletin page.

First, I used the tutorial here:
https://vborg.vbsupport.ru/showthread.php?t=62164

Doing it this way doesn't seem to allow me to pass a GET method parameter to the custom PHP page to then base all of the rest of the PHP code off of. Another issue is that part of the code executing in the PHP file is javascript, which doesn't seem to work, either. Can anyone point me in the right direction on these issues?

I would post the code I'm trying to execute here, but I'd rather not post it publicly for various reasons. I'll gladly send it via email if someone is willing to lend a hand. The PHP code is fairly short.

Lynne 10-16-2009 02:45 PM

Sure you can pass a variable to that page. How about you going about that? You may want to look at this article - Using the vBulletin Input Cleaner.


All times are GMT. The time now is 07:39 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.01071 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete