View Full Version : php templates
imported_blueuniverse
10-23-2004, 08:10 AM
Is there any way, to get PHP code in the templates, as I need to integrate a script with the rest of my site.
If not, what solution would you recommend? Is it possible to build a php powered page, without the use of templates, that you can enter the php code in manually?
solutions would be much appreciated
Jolten
10-23-2004, 02:11 PM
place your php in the php_include start template.
imported_blueuniverse
10-23-2004, 03:55 PM
Surely if I did that though, it would be included on all pages, and not the one specific page I want. And how would I get that to appear where I want on the specific page?
Tony G
10-23-2004, 11:15 PM
Well, you'd need to create a variable in the phpinclude template, for a specific template if you wish, and then place it where you want it to show.
imported_blueuniverse
10-24-2004, 05:39 AM
sounds pretty complicated. I'd have thought that there would have been mods for doing something like this though?
Tony G
10-24-2004, 05:53 AM
There are mods that use the phpinclude template, but no mod telling you how to make a phpinclude mod, sorry. If you have a specific mod you want, request it and be more specific. :)
imported_blueuniverse
10-24-2004, 05:55 AM
Ok then - THIS IS MY SPECIFIC MOD REQUEST
What I want is to be able to use php within templates. Not just includes, but whole chunks of code within the templates. Would anybody be able to make this possible.
;)
Tony G
10-24-2004, 10:17 AM
Like I said, no modification will tell you how to make a modification. It will do it for you, and that's it. When I am referring to specific, I mean, what modification you want to make to your forum, what function you want to add, etc.
imported_blueuniverse
10-25-2004, 05:34 AM
Surely the function I want to add is php in the templates system
Jolten
10-25-2004, 05:58 PM
Open your specific vbulletin php pages and add the php you want to those files then alter your html in the template to correspond with your added PHP.
Tony G
10-26-2004, 06:00 AM
Surely the function I want to add is php in the templates system
phpinclude is already there. It only has limited features though. For more extensive modifications, you will need to edit the core files.
That's why I need to know what you intend to install through the templates.
Ok then - THIS IS MY SPECIFIC MOD REQUEST
What I want is to be able to use php within templates. Not just includes, but whole chunks of code within the templates. Would anybody be able to make this possible.
;)
This requires hacking the .php files, you should try asking over at vBulletin.org
imported_blueuniverse
10-30-2004, 07:13 AM
Ok then. Done that now, not getting much response just yet though. Thanks
Well it is the early morning (6 am) here on the east coast of the united states, activity will pick up alot over the next few hours on all three sister sites :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.