View Single Post
  #1  
Old 09-29-2010, 08:33 AM
MetalFrog MetalFrog is offline
 
Join Date: Sep 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Okay, I Give Up. Using variables/template logic in my CMS Grid breaks grid output.

I'm trying to come up with a way to display certain content on the home page, that doesn't show up elsewhere in the CMS.

I found a tip on utilizing a hack to check if the nodeID is 1, and it works well. The problem is, I can't edit my Grid's HTML and put in a conditional to check it. When I put in a variable or an if statement, the grid stops parsing data.

Code:
<div id="doc3" class="yui-tvb-r3">
    <div id="bd">
        <div id="yui-main">
            <div class="yui-b">
                <div class="yui-g">
                    <vb:if condition="$vbulletin->nodeid == 1">
                        <div class="yui-g first">
                            <div class="yui-u first yui-panel">
                                <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
                            </div>
                            <div class="yui-u yui-panel">
                                <ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
                            </div>
                        </div>
                    <vb:else />
                        <div class="yui-g">
                            <div class="yui-u first yui-panel">
                                <ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
                            </div>
                            <div class="yui-u yui-panel">
                                <ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul>
                            </div>
                        </div>
                    </vb:if>
                </div>
            </div>
        </div>
        <div class="yui-b yui-sidebar">
            <ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul>
        </div>
    </div>
</div>
This code will output the following, instead of the parsed content from the columns...

$column[1]

$column[2]

$column[3]

$column[4]

$column[5]

I take out the if, and it works again. I put in {vb:raw vbulletin->nodeid} to see if it outputs the id, and it goes back to being broken.

Is what I'm trying to do just not possible?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01173 seconds
  • Memory Usage 1,771KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete