View Single Post
  #184  
Old 07-17-2005, 11:02 PM
bulbasnore bulbasnore is offline
 
Join Date: Dec 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First off, this looks like an awesome piece of work; congrats on your skills Logician.

I'd like to see if anyone here, with experience with webtemplate can tell me if it will help me implement a new feature on our site.

Our Site
vB3.0.7 with vBaCMPS1.0.1.
I have some custom & tweaked modules running in CMPS and we have the gallery. Great system.

New Feature
We're putting up a database driven guide with over 3000 entries for our members. You select the group to view with one form, then get back a page of results to update with the return and finally submit that back to a third form which gives your result. I'm using ADODB with DreamweaverMX/PhaKT to create the PHP database code. The forms are working fine and doing what I want.

Problem
Now the time is come to integrate with vB! However, vB isn't going to let me run php code.

OK, vBaCMPS module time! Well, that works for the first selection, but once I post that selection I have to drop out of vBaCMPS. No way to post back to it.

OK, require global.php, then load my other php code. Works great for the first form, restricts access, etc. However, global.php prevents you from accepting post/get input.

Questions
  1. Can I just plunk my php database query and HTML generation code in the include section of webtemplate?
  2. If so, how do I pick up the post info on an incoming form submission, and get it to that code I plunked in?
  3. My php code talks to an external database. Is it just webqueries that are limited to the vB database, or does webtemplate/vb block even non-vb/template queires from included php code?
  4. Am I better off to just try to make my own cookie from vB login and keep my pages external to vB/CMPS/webtemplate?

Well, if you got this far, thanks for reading. I'm amazed at how cool vB is; its a new world for me, but it really is saving me tons of time and helping get features out to our members. It just has some limits I'm not used to in free-coding (simple though mine is).

Cheers,
'snore
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01272 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (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_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete