vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how to create 2 template via plugin? (https://vborg.vbsupport.ru/showthread.php?t=105606)

redspider 01-17-2006 10:50 PM

how to create 2 template via plugin?
 
Hello I want to create 2 template via plugin can someone post how to make this please.
for exaple :

1.Template 1
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - Template 1!</title>
$headinclude
</head>

$header
$navbar



<!-- Your HTML code here-->

<!-- /Your HTML code here-->

$footer
</body>
</html>


2.Template 2

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - Template 2!</title>
$headinclude
</head>

$header
$navbar

<!-- Your HTML code here-->

<!-- /Your HTML code here-->

$footer
</body>
</html>

if someone can help base on this to simple template I would learn thank you for any help.

sorry post in wrong section was a accident I will click report for a mod to move this .

Guest190829 01-17-2006 10:55 PM

You can't create a template with a plug-in, but you can with a product:

1.) Make the template in the Master Style

2.) Set the product as the product you want to export.

3.) Export Product via the Product Manager.

Reeve of shinra 01-17-2006 10:56 PM

How do you make a template in the master style btw?
Same for adding phrases?

Guest190829 01-17-2006 10:59 PM

You have to have debug mode turned on, and you just go to:

Admin CP -> Styles & Templates -> Style Manager -> Select "Add new template" for the master style.

redspider 01-17-2006 11:02 PM

Quote:

Originally Posted by Danny.VBT
You have to have debug mode turned on, and you just go to:

Admin CP -> Styles & Templates -> Style Manager -> Select "Add new template" for the master style.

This I understand but when I get to step 2 is where I lost .

cinq 01-18-2006 12:16 AM

1 Attachment(s)
Use this attached product xml file.
Should be easy to understand what to substitute in there.
If in doubt, just ask :)

redspider 01-18-2006 09:32 AM

Quote:

Originally Posted by cinq
Use this attached product xml file.
Should be easy to understand what to substitute in there.
If in doubt, just ask :)

thank you so much now I understand how to create template via product thanks to you.
also want to thanks Danny sorry I did not get all his instrutions but he did try to help.


All times are GMT. The time now is 03:03 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
  • Page Generation 0.01065 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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