vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Templatetype Question! (https://vborg.vbsupport.ru/showthread.php?t=210828)

Super Jinni 04-10-2009 06:46 AM

Templatetype Question!
 
Hi,

Can anyone please help me to find out where I can set templatetype when creating a new template?

As I saw in lots of products xml files, if the product has template, the code in the xml file about that is in this way:

Code:

<template name="xxx" templatetype="template" date="xxx" username="xxx" version="xxx">

OR

Code:

<template name="xxx" templatetype="css" date="xxx" username="xxx" version="xxx">

You can see there is this templatetype="template" and/or templatetype="css"

So how to set the template type when creating a new template of a new product?

Also I want to know what are the template types that could be used beside template and css?


thanks :)

Super Jinni 04-11-2009 12:42 PM

WTF!
No one knows?!!!!!!!!!!!!!!

Andreas 04-11-2009 12:52 PM

There are 4 types:
  • template
    These are normal templates (like header, footer, navbar, etc.)
  • css
    These are CSS definitions
  • stylevar
    These are style variables (like image paths, widths, etc.)
  • replacement
    These are replacement variables

You can't create CSS definitions via AdminCP, you must add them directly in the DB.
You will also need at least 2 Plugins inf you want to create your own CSS definitions (that's what CSS "templates" are).

Super Jinni 04-11-2009 06:20 PM

Thanks Andreas.
I think I need to look more and put my head into it for fully understanding.
if anyone can point me where to begin with that, that will be appreciated.
thanks

nexialys 04-11-2009 06:29 PM

oh, and you also need to relax a little, it's not an instant answering machine here, Andreas have a life... like the others...

Super Jinni 04-12-2009 03:21 AM

Quote:

Originally Posted by nexialys (Post 1789123)
oh, and you also need to relax a little, it's not an instant answering machine here, Andreas have a life... like the others...



No worries nexialys, in fact I'm relaxed more than you think.
and I don't see where I pushed Andreas or anyone else for an instant answer.
I just post as soon as I review my question thread (if there is a need to post of course).
also I don't see where it says I should not do that.

in fact, when I saw that you have posted to in this thread I thought it is something useful. but, ...
never mind.

thanks though :)

nexialys 04-12-2009 02:12 PM

actually i was refering to your post #2, with the "wrong word".. :)

am i usually posting useful things here?!... nah...

Super Jinni 04-12-2009 09:20 PM

aaha, you can there is more than 24 hours between the first post and second post of this thread.
posting useful/non-useful is up to you, actually. ;)
anyway, let's get back to the subject.
any help will be appreciated.

thanks :)

nexialys 04-12-2009 10:07 PM

actually, Andreas' post was quite clear, what do you want to know more?!

you can not change the templatetype when you create a template, because all these titles are just to seperate the data in the database, nothing you can do about it. when you create a replacement variable it will be tagged with the right term, same when you edit the CSS variables, and so on.

Super Jinni 04-13-2009 01:16 AM

Yes, I know, and I think you make clearer.

as a newbie I'm just trying to figure out how does these things works, that's all.

that's why I'm posting some silly and newbie's questions :D.

thanks :)


All times are GMT. The time now is 08:01 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.01057 seconds
  • Memory Usage 1,732KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete