vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   I need some help with embedding PHP in templates (https://vborg.vbsupport.ru/showthread.php?t=101033)

Parker Clack 11-17-2005 09:11 PM

I need some help with embedding PHP in templates
 
filburt1 gave me permission to ask if any of you could look over the excellent mod that he wrote for vB 2.xx that allowed you to embed PHP into a template. I need this ported over to 3.5 if any of you can. He doesn't have the time to write any extra code at this time.

His code is located in this thread.

Thanks in advance.

Parker Clack

Wayne Luke 11-17-2005 09:38 PM

Wow... It would be easier if they simply started from scratch. The code in 3.5 is nothing like anything found in the 2.X series.

Parker Clack 11-18-2005 04:44 AM

Wanye Luke:

So do you think this could be ported over or would it be too much of a hassle?

Zachery 11-18-2005 05:31 AM

Quote:

Originally Posted by Parker Clack
Wanye Luke:

So do you think this could be ported over or would it be too much of a hassle?

Why not use hooks?

Parker Clack 11-18-2005 09:23 PM

I looked into using hooks but if I do that I am trying to incorporate an include in the template and the page that is linked to in the include shows up that page at the top of the page that is written. If I put that include in the body of the template within a table it still shows up at the top of the page.

How would you write something to use in a hook that makes it more of a conditional? What hook would you use on a remote php page?

The great thing about filburt's code is that it works with any php file that you have in that directory.

Thanks,
Parker

sokol 08-05-2006 02:23 AM

Could a person use hooks to add fields for a user to input, have them submitted, stored in the databse and retrieved from another form?

-Sokol


All times are GMT. The time now is 07:10 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.01017 seconds
  • Memory Usage 1,718KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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