vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - vBTemplates - Custom templates anywhere (https://vborg.vbsupport.ru/showthread.php?t=207862)

davidw 03-09-2009 10:00 PM

vBTemplates - Custom templates anywhere
 
1 Attachment(s)
For a lot of people who are in need of a quick custom template and don't have that much time - such as for testing purposes - or if you are new to vbulletin and are unsure how to do much of anything, this would be a lifesaver for a few out there. This takes the guesswork on what to do and where to go. :)

It was a really easy hack (took me very little time to write it) - and very easy to install.

Step 1:
Install the product.
Admincp => Plugins & Products => Manage Products => Add/Import Product [ product-davidw_vbtemplates.xml ]

Step 2:
Add your custom template
Admincp => Styles & Templates => Style Manager => Edit Templates => Open up vbtpldw Templates => Open up whichever template you want to use => Put in your template code

Step 3:
Find wherever you want to place your new custom template (header, navbar, footer) and place $vbtpldw_## with the ## being the number of the template you just saved. You might have to add the template name to vbadvanced per vbadvanced's global options.

That's it! I've provided up to 10 custom templates. Need more? Let me know.

rob01 03-10-2009 12:13 AM

i dont get it :S.. for what is this? .. do you have some screenshots?

davidw 03-10-2009 01:55 AM

No screenshots are really needed.
Say for example you want to add a box of images - and - you want to have specific text for a specific style in your footer.
You can add your box of images in $vbtpldw_01 and your specific text in $vbtpldw_02 and only include those two variables where you need them in your footer.
Code:

$ad_location[ad_footer_start]

$vbtpldw_01
$vbtpldw_02
<br />

$spacer_close

Say as an additional example, your second style has something you want similar, but rather than putting the text in there, add what you want to $vbtpldw_03 and just put the variable in the second style's footer.
Code:

$ad_location[ad_footer_start]

$vbtpldw_01
$vbtpldw_03
<br />

$spacer_close

Btw, this isn't far from what I have on my own site. I'm using $vbtpldw_02 on my site rather than 01 and 02 or 01 and 03.

I am not using 01 on my site currently as I have other footer information in there and have that "not in play" at the moment.

Hope that helps :)

MARCO1 03-10-2009 08:28 AM

Good David :) Installed

Daniel_HBK 03-10-2009 01:14 PM

is it like that :- https://vborg.vbsupport.ru/showthread.php?t=199869 ?

davidw 03-10-2009 01:32 PM

No, totally different. This is for inserting custom templates into different locations of your site (forumhome template, navbar template, header, footer, etc.) That way those locations are much cleaner and you can put them in more than one place. You can put an image in one template and and put that variable scattered wherever you want.

Jasem 03-10-2009 06:42 PM

Good work, thank you

installed

lpetrich 03-11-2009 02:04 AM

I have a problem. I'm trying to move some navbars in some old themes to a custom template, but that custom template does not seem to "know" anything about vBulletin-API contents. It thus shows what a guest would see rather than what a member would see. Is there any simple way to fix that?

davidw 03-11-2009 10:46 AM

Can you give me an example of where this is happening (is this going on a non-vb page) and what kind of code you are trying to use? PM me if you need to.

lpetrich 03-11-2009 11:08 AM

It's code like this:
HTML Code:

Everybody should be able to see this text.
<if condition="$show['member']">Only members should be able to see this text.</if>

I can make the first sentence get rendered but not the second sentence, even when viewing it as a member.


All times are GMT. The time now is 10:09 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.01244 seconds
  • Memory Usage 1,737KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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