![]() |
Quote:
Help me please. |
Quote:
BTW you were asking if you can assign a webtemplate as your site's main page: It seems that freeshares1 did it successfully. ;) Have you checked his site's main page, it's a webtemplate?.. (FYI he used the redirection method in .htaccess file) |
Other trouble :( :)
In custom webtemplate i use Code:
[[($user_usergroupid==2 OR $user_usergroupid==5 OR $user_usergroupid==6 OR $user_usergroupid==7)]]I see[[/($user_usergroupid==2 OR $user_usergroupid==5 OR $user_usergroupid==6 OR $user_usergroupid==7)]] |
I can use vb templates in WEBTEMPLATES?
|
Quote:
PHP Code:
|
Quote:
Quote:
|
Logician, i create file test.php with contents:
PHP Code:
|
Quote:
Quote:
Quote:
|
Logician, i'm use php include in other project and will work fine. and i'm use include, but not webtemplates, and works fine too...
|
Webqueries query:
I currently have the last 10 thread titles from my forum on a page. I have the query as follows: SELECT threadid, title, FROM thread WHERE visible='1' AND forumid='1' ORDER BY title LIMIT 10 which shows the last 10 threads. How can I make the threadtitle no more than 28 characters? |
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.
|
Very nice, and VERY Powerful! I installed this on my test forum, and installation was a breeze. Even a novice can install this. I am just starting to "play" with this, but it looks incredible.
Thanks for all the time you spent, Jbear |
Quote:
If I change "left(title,28)" in the query above to just "title", the thread titles appear (but obviously not only the first 28 characters). |
@grb123: Can you post your query and tablerow here? let me check what the problem is.. (Also which version are u using?)
@jbear6: thx for the nice comments :) |
Hi Logician
I have the following in my query (using the new, unreleased version of Webtemplates) Query: Quote:
Quote:
|
Logician - Love the hack! Thanks to the patient help of DrkFusion - the hack is installed and working smoothly, and I even have a slight concept of how to use it! ;)
Please take a look at www.thesistersthree.com/site ALL my pages are webtemplates. I know you said not to use a lot of them, but is there a limit? So far it seems really helpful. I don't have a lot of the site finished, but if you check the gallery section, you will see a bunch of different templates in use (for every link there's a template). If using this many is okay, is there a way to organize them in the admin cp similiar to the template section? For instance - I'd like all the gallery webtemplates to be in one section, spells in another, etc etc. Also, I'd be interested in allowing more than two webtemplates to be called if you are considering releasing it. :) |
Quote:
Try to follow my suggestion in my previous message. Like this: Query: SELECT threadid, left(title,18) as title1, forumid, postusername, dateline FROM thread WHERE forumid='28' ORDER BY dateline DESC LIMIT 10 Tablerow: <tr><td class="leftboxcontent"><a href="$bburl/showthread.php?s=&threadid=??threadid??">??title1? ?</a></td><tr> See the difference? ;) @Rose: Need to go offline now, I'll answer you ASAP.. |
Quote:
|
Quote:
Quote:
There is no limit. You can use as many as you like. Quote:
Gallery1_templatexxx Gallery1_templateyyy Gallery1_templatezzz all gallery1 templates will be listed newt to each other and you can track tham easily Quote:
There is a high demand for this feature but it really effects hack's performance badly by slowing the parsing and increasing loading time. So I cant promise for that feature.. Let's see what will happen in the next release.. :) |
This will probably sound like the stupidest question ever. But if I use WebTemplates do I HAVE to use my forum stylesets as my layout in the WebTemplates?
I mean instead of the layout showing according to the styleset the user has selected is it possible to code it so the whole site appears as a specific styleset that is the same for all users, but that styleset is not accessible through the user cp. I like the premise of this hack, but I don't quite fancy my forums styleset as the layout for my entire site. |
Quote:
The system works like this: Webtemplates are basically HTML pages so they display the HTML source (together with vb variables if you choose to) when they are loaded. Simply put the source of any HTML page into a webtemplate and this webtemplate will display it in the design of the page. So if you dont use vb style sheet elements in your source code, they wont be displayed and your webtemplate will have a permenant style, just like a static HTML page. I hope this helps you to understand the logic.. |
Ah yes I get your drift now.
|
Quote:
Quote:
Quote:
|
Hm I've just read every post and I've decided to have a go at this. I've been running cgi/shtml on my website because I used to use UBB and found perl easy to understand. I feel 'sort of' okay with sql now and I'm going to give this a go.
Thanks for the hack and for the opportunity to do this, I'll let you know how it goes... |
I have one question for anyone really...
How do you move a template into a template category or create a category. I have a lot of templates called forumhome_xxxxxxxx and I'm like to move them for sorting out into the forum homepage display category... I've had it done before by a file I downloaded doing it automatically with a template - but how do I do it manually? Sql table editing? |
Quote:
|
Just installed this hack. Went to view the help pages and got:
"The page you requested does not exist! Please check the address you want to visit. If you arrived this page by clicking a link inside this site, you may notify the Site Administrator about the broken link. Thank you!" Clearly I did something wrong. Any idea? |
Nevermind. The installdoc gave the help pages as starting with a cap. The engineer in my always wants to read docs for diving in.
Nice work. You've designed a single parsing engine to resolve a stored procedure language to the refrecned data and to recognize and substitute for vb variables. If you ever need a new name for this, try vbWarmFusion. |
Quote:
If I would recoded it today, I would name it something like vbCodingLanguage or smt. because it is really a kind of simple vb coding languge. I didnt realize the fact in the day I named the hack :) Anyway new version is much powerful regarding this feature of the hack and I'm coding it mostly around this point. It will be possible to write independent vb structures/applications with this hack without even changing a single line of vb code or writing an independent .php script, all within webtemplates and webqueries. Too bad many users of the hack havent ever realized this most powerful feature of the hack and they only use it as a basic vb-membership check for non-vb pages.. |
I easily see the benefit of being able to present a page with dynamic, up-to-the-minute data, mining the DB for personalization characteristics.
Now, I've only begun to tinker, but it seems like the $user[fieldname] replacement doesn't work in my webtemplates. Making the rational assumption that I have done something wrong, any idea what it might be? |
Quote:
|
All times are GMT. The time now is 01:49 PM. |
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:
|