PDA

View Full Version : I need some help with embedding PHP in templates


Parker Clack
11-17-2005, 09:11 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=52775) 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
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