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-11-2009 11:31 AM

Where is the target being displayed? That will make a difference. And, are you using 3.6.8 or 3.8.x?

lpetrich 03-11-2009 07:47 PM

I've tried it in a header and in a footer, and it's in vB 3.8.1

davidw 03-11-2009 08:49 PM

Let me see if I can recreate this and find out what's going on.

davidw 03-11-2009 11:59 PM

1 Attachment(s)
Ok, I am not sure why <if condition="$show['member']"> doesn't work, however, other conditions (similar) do work; see attached screenshots.

Chadi 03-12-2009 03:02 AM

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;
}


lpetrich 03-12-2009 03:52 AM

Quote:

Originally Posted by davidw (Post 1766123)
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!).

davidw 03-12-2009 10:55 AM

Quote:

Originally Posted by Chadi (Post 1766198)
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 (Post 1766227)
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

nnStaff 07-06-2009 06:17 PM

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.

davidw 07-06-2009 06:25 PM

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.

nnStaff 07-06-2009 06:26 PM

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.


All times are GMT. The time now is 05:26 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.01029 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_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