Support Forums

Included php in tpl

This is a discussion on Included php in tpl within the Technical Support forums, part of the Technical Support Forums category; Hi, Is it possible to included an php in a tpl? Or is it possible to make a page with ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-10-2009, 03:33 PM   #1
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 20
damiun is on a distinguished road
Default Included php in tpl

Hi,

Is it possible to included an php in a tpl?

Or is it possible to make a page with the template but that the page load the body from an external php file.

Dominick
damiun is offline  
Old 06-10-2009, 03:43 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

You can take a look at this tag which may be what you are after:
Smarty

Quote:
The {php} tags allow PHP code to be embedded directly into the template. They will not be escaped, regardless of the $php_handling setting. This is for advanced users only, not normally needed and not recommended.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 06-12-2009, 04:13 PM   #3
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 20
damiun is on a distinguished road
Default

Hi,

Thanks but i already tried that.
If i dont include the http part, i will get this error:
Quote:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
If i insert the direct part (so including http:// etc) i see nothing..

So strange and i dont understand it.

But is there nobody who included php script in his (or hers) site? (to use a faq, forum etc)

Dominick
damiun is offline  
Old 06-12-2009, 04:32 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

You would probably want to use the full server path for the file. Something like /home/account/public_html/dir/file.php
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 06-13-2009, 06:16 AM   #5
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 20
damiun is on a distinguished road
Default

Hi,

Thanks, i tried it with the full server path and i got the same error as the direct (without http)

Thankz anyway,
Dominick
damiun is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Included contactform in tab damiun Templates, HTML, CSS, and Design Help 3 05-27-2009 08:47 PM
Sitemap Module - Index Page Not Included bowers01 Technical Support 0 08-11-2008 07:03 AM
Are Categories included in 68Classifieds? Unregistered Pre Sales Questions 2 04-02-2007 01:05 PM


All times are GMT -4. The time now is 06:14 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0