![]() |
I do not understand the concept of using php...I want to use php includes, how would I do it? I read the webtempaltes help, but I do not under stand php operator...please help.
Drk |
Sorry, I tried all compinations of those php operators thing, please some help thanks.
Drk |
Quote:
SELECT threadid, left(title,28) as title1 FROM thread WHERE visible='1' AND forumid='1' ORDER BY title LIMIT 10 Dont forget to use ??title1?? in your tablerow |
Quote:
|
Logician, help me with include webtemplates in php file.
|
I m desiging my main page, and this has a php inlude, that pulls news from my forums
Code:
<?php include ("news.php"); ?> Drk |
Quote:
I appreciate your interest in webtemplates hack but as I mentioned a few times before, webtemplates hack is not intended to be "main page" alternative. Yes there are some ways to use it as your site's main page (see above) and yes some users use it in their main pages in different ways but I just dont recommend such a practise although it may be possible. Webtemplates are ideal for ALL your non-vb pages provided that it is not site's main page. And the hack does not coded to parse PHP includes either, sorry.. @inetd: Pal, my message addresses you too. If you cant make your webtemplate your site's main page, sorry, just give up or try using .htaccess method. If you have another problem, please tell me and lets see if I can help you. However I really have a hard time understanding your English. :) |
Logician, my english = lol :) :D
I'm include not webtemplates and all work! But include do not work with Webtemplates 1.0. Please check this. |
Quote:
1- If you are trying to include webtemplates inside other webtemplates, this wont work except for header and footer webtemplates. 2- If you are trying to include PHP inside webtemplate, this wont work either. 3- If you are trying to include a webtemplate inside an independent PHP file, this may or may not work according to your server settings as I mentioned before. For example I know that Wildthinks uses this method in his web page but the very same line he used might not work in other users' web pages. Related to server config.. If not either of them, what are you trying to include? |
Logician, may be his trouble only in Webtemplates 1.0. I use include on the site and all works normally. But at attempt to insert in php webtemplates, nothing it turns out.
|
All times are GMT. The time now is 05:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|