Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Oct 2004, 10:10
imported_blueuniverse imported_blueuniverse is offline
 
Join Date: Oct 2004
php templates

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
Reply With Quote
  #2  
Old 23 Oct 2004, 16:11
Jolten Jolten is offline
 
Join Date: Mar 2004
Re: php templates

place your php in the php_include start template.
Reply With Quote
  #3  
Old 23 Oct 2004, 17:55
imported_blueuniverse imported_blueuniverse is offline
 
Join Date: Oct 2004
Re: php templates

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?
Reply With Quote
  #4  
Old 24 Oct 2004, 01:15
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Real name: ITS A SECRET
Re: php templates

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.
Reply With Quote
  #5  
Old 24 Oct 2004, 07:39
imported_blueuniverse imported_blueuniverse is offline
 
Join Date: Oct 2004
Re: php templates

sounds pretty complicated. I'd have thought that there would have been mods for doing something like this though?
Reply With Quote
  #6  
Old 24 Oct 2004, 07:53
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Real name: ITS A SECRET
Re: php templates

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.
Reply With Quote
  #7  
Old 24 Oct 2004, 07:55
imported_blueuniverse imported_blueuniverse is offline
 
Join Date: Oct 2004
Re: php 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.

Reply With Quote
  #8  
Old 24 Oct 2004, 12:17
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Real name: ITS A SECRET
Re: php templates

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.
Reply With Quote
  #9  
Old 25 Oct 2004, 07:34
imported_blueuniverse imported_blueuniverse is offline
 
Join Date: Oct 2004
Re: php templates

Surely the function I want to add is php in the templates system
Reply With Quote
  #10  
Old 25 Oct 2004, 19:58
Jolten Jolten is offline
 
Join Date: Mar 2004
Re: php templates

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.
Reply With Quote
  #11  
Old 26 Oct 2004, 08:00
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Real name: ITS A SECRET
Re: php templates

Originally Posted by blueuniverse
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.
Reply With Quote
  #12  
Old 30 Oct 2004, 08:54
Brad Brad is offline
 
Join Date: Nov 2001
Re: php templates

Originally Posted by blueuniverse
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
Reply With Quote
  #13  
Old 30 Oct 2004, 09:13
imported_blueuniverse imported_blueuniverse is offline
 
Join Date: Oct 2004
Re: php templates

Ok then. Done that now, not getting much response just yet though. Thanks
Reply With Quote
  #14  
Old 30 Oct 2004, 11:14
Brad Brad is offline
 
Join Date: Nov 2001
Re: php templates

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
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Templates: Dynamic Templates Changing according to different conditions Logician vBulletin 2.x Full Releases 312 24 Apr 2005 20:20



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:12.

Layout Options | Width: Wide Color: