vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   WebTemplates v.0.1 (Old Version) (https://vborg.vbsupport.ru/showthread.php?t=36419)

jbear6 07-30-2002 05:43 PM

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

grb123 07-30-2002 06:37 PM

Quote:

Originally posted by Logician

You can use this query:

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

I tried that but all that appears for each thread title is "_" (which is linked to the thread). The title itself doesn't appear.

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).

Logician 07-30-2002 06:58 PM

@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 :)

grb123 07-30-2002 07:12 PM

Hi Logician

I have the following in my query (using the new, unreleased version of Webtemplates)

Query:

Quote:

SELECT threadid, left(title,18), forumid, postusername, dateline FROM thread WHERE forumid='28' ORDER BY dateline DESC LIMIT 10
Table:

Quote:

<tr><td class="leftboxcontent"><a href="$bburl/showthread.php?s=&threadid=??threadid??">??title?? </a></td><tr>
The result:

Rose 07-30-2002 07:30 PM

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. :)

Logician 07-30-2002 08:38 PM

Quote:

Originally posted by grb123
I have the following in my query
@grb123: It's your query design that has the problem:

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..

grb123 07-30-2002 09:11 PM

Quote:

Originally posted by Logician

@grb123: It's your query design that has the problem:

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? ;)


Ah excellent- works perfectly! Thanks very much!

Logician 07-31-2002 08:00 AM

Quote:

Originally posted by Rose
Please take a look at www.thesistersthree.com/site ALL my pages are webtemplates.
I must admit that I'm impressed.. I have seen many sites fully powered with webtemplates, but your site also designed nicely..Who ever did it, congrats, nice job :)

Quote:

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).

There is no limit. You can use as many as you like.

Quote:


If using this many is okay, is there a way to organize them in the admin cp similiar to the template section?

Sorry.. To achieve this I need to modify existing webtemplate table and this would cause incompetability with the existing version so I dont plan to do it. My suggestion maybe to use similiar names for similiar webtemplates. For example if you name them:
Gallery1_templatexxx
Gallery1_templateyyy
Gallery1_templatezzz
all gallery1 templates will be listed newt to each other and you can track tham easily


Quote:

Also, I'd be interested in allowing more than two webtemplates to be called if you are considering releasing it. :)

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.. :)

Aerith_Freak 07-31-2002 10:12 AM

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.

Logician 07-31-2002 10:48 AM

Quote:

Originally posted by Aerith_Freak
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?
Sure it's not mandatory. Using user styles in your webtemplates is a feature the hack gives you in case you want to use it. It's all upto you..

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..


All times are GMT. The time now is 06:24 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
  • Page Generation 0.01472 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete