Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
vBTemplates - Custom templates anywhere Details »»
vBTemplates - Custom templates anywhere
Version: 1.00, by davidw davidw is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.8.1 Rating:
Released: 03-09-2009 Last Update: Never Installs: 27
Uses Plugins Template Edits
 
No support by the author.

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.

Download Now

File Type: zip vbtemplates.zip (1.4 KB, 190 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-11-2009, 11:31 AM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is the target being displayed? That will make a difference. And, are you using 3.6.8 or 3.8.x?
Reply With Quote
  #13  
Old 03-11-2009, 07:47 PM
lpetrich's Avatar
lpetrich lpetrich is offline
 
Join Date: Mar 2008
Location: Lebanon, OR
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tried it in a header and in a footer, and it's in vB 3.8.1
Reply With Quote
  #14  
Old 03-11-2009, 08:49 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me see if I can recreate this and find out what's going on.
Reply With Quote
  #15  
Old 03-11-2009, 11:59 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I am not sure why <if condition="$show['member']"> doesn't work, however, other conditions (similar) do work; see attached screenshots.
Attached Images
File Type: gif admincp.gif (8.9 KB, 0 views)
File Type: gif results.gif (4.2 KB, 0 views)
Reply With Quote
  #16  
Old 03-12-2009, 03:02 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed. Exactly what I was looking for only a few days ago! Thanks.

Just a quick question:

I'm using IBPro arcade module and with that mod, template edits is done old school style via a php file. I tried using $vbtpldw_01 in the code, but the output was blank instead of outputting the template's content.

Do you know of any method around this in the php file?

The file is skin_v3Arcade.php and the code is around line 75, in this section:

Code:
EOF;
}

function top_links_table($links,$width,$extra) {
global $ibforums;
return <<<EOF
$vbtpldw_01
    <table width='100%' border='0' cellspacing='1' cellpadding='4' class="tborder">
        <tr>
            <td class="tcat" align="center" width="{$width}">{$links}</td>
            {$extra}
        </tr>
    </table>
EOF;
}
Reply With Quote
  #17  
Old 03-12-2009, 03:52 AM
lpetrich's Avatar
lpetrich lpetrich is offline
 
Join Date: Mar 2008
Location: Lebanon, OR
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by davidw View Post
Ok, I am not sure why <if condition="$show['member']"> doesn't work, however, other conditions (similar) do work; see attached screenshots.
Thanx for your help on this. Your successful solution looks like it will work for a board where all members have the same navbar access privileges, as do all guests (different from members, of course!).
Reply With Quote
  #18  
Old 03-12-2009, 10:55 AM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chadi View Post
Installed. Exactly what I was looking for only a few days ago! Thanks.

Just a quick question:

I'm using IBPro arcade module and with that mod, template edits is done old school style via a php file. I tried using $vbtpldw_01 in the code, but the output was blank instead of outputting the template's content.

Do you know of any method around this in the php file?

The file is skin_v3Arcade.php and the code is around line 75, in this section:

Code:
EOF;
}

function top_links_table($links,$width,$extra) {
global $ibforums;
return <<<EOF
$vbtpldw_01
    <table width='100%' border='0' cellspacing='1' cellpadding='4' class="tborder">
        <tr>
            <td class="tcat" align="center" width="{$width}">{$links}</td>
            {$extra}
        </tr>
    </table>
EOF;
}
The templates created using this modification need to work as if they are working in a regular template. In order to call a template on a non-template, such as a non-vb or non-standard page, you would most likely need to call everything that would make [that] template work as if it were on a vb page, like forumhome.php. I've not actually tested this on a those types of pages as they were meant for going into templates. However, with the right calls, it might work. I'm just not sure what they are offhand.

Quote:
Originally Posted by lpetrich View Post
Thanx for your help on this. Your successful solution looks like it will work for a board where all members have the same navbar access privileges, as do all guests (different from members, of course!).
No problem
Reply With Quote
  #19  
Old 07-06-2009, 06:17 PM
nnStaff nnStaff is offline
 
Join Date: May 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So this just creates a new template and gives you the name to hook it into the page?

The same as if I manually created one and did the same? I'm not trying to put your product down, just seeking clarification, could be useful.
Reply With Quote
  #20  
Old 07-06-2009, 06:25 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Basically. This just simplifies a process.
Most of the time when you want a template, you have to add the template and add a plugin. This is just something that lets you do it automatically so you won't have to create it. I have a lot of sandbox ideas, so this was useful for me. I create alternate templates (modifying each one slightly) and use it for testing - rather than changing whole blocks of code, I just change the template name.

No offense taken. I hope I have cleared things up.
Reply With Quote
  #21  
Old 07-06-2009, 06:26 PM
nnStaff nnStaff is offline
 
Join Date: May 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, quick response time, you must be subscribed. This will be a great time-saving shortcut for an upcoming project, thanks for the clarification!

Will dl and check out later.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:52 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.08186 seconds
  • Memory Usage 2,321KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete