NBA Dimensions - NBA Basketball forum

Basically just did some if statements in node_level_2. For team forums they're a static width, then just added a background. Just some simple manipulation, not really good with coding but managed to make it look good.

I can copy and paste my code if people want to see it, but it's really messy for sure. :D
 
Code:
<xen:require css="node_list.css" />
<xen:require css="node_forum.css" />
 <xen:if is="in_array({$forum.node_id}, array(17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48))">



<li class="node forum level_{$level} {xen:if '{$level} == 1 AND !{$renderedChildren}', 'groupNoChildren'} node_{$forum.node_id}" style="width:387px; float:left; margin-right:2px;">


  <xen:if is="{$forum.node_id} == 20">  <div style="background-color:#0067AC; color:white; font-weight:bold; padding:5px; margin-bottom:2px; font-size:12px;"> &nbsp; EASTERN CONFERENCE</div>  </xen:if>
 
  <xen:if is="{$forum.node_id} == 25">  <div style="background-color:#ED174B; color:white; font-weight:bold; padding:5px; margin-bottom:2px; font-size:12px;"> &nbsp; WESTERN CONFERENCE</div>  </xen:if>

   <xen:if is="{$level} == 1"><div class="categoryStrip subHeading"></div></xen:if>

   <div class="nodeInfo forumNodeInfo primaryContent {xen:if $forum.hasNew, 'unread'}">

     <span class="nodeIcon" title="{xen:if $forum.hasNew, '{xen:phrase unread_messages}', ''}" style="width:50px; height:40px;"></span>

     <div class="nodeText" style="width:170px;">
       <h3 class="nodeTitle"><xen:if is="{$watchCheckBoxName}"><input type="checkbox" name="{$watchCheckBoxName}" value="{$forum.node_id}" />&nbsp;</xen:if><a href="{xen:link forums, $forum}" data-description="{xen:if @nodeListDescriptionTooltips, '#nodeDescription-{$forum.node_id}'}">{$forum.title}</a></h3>
         <blockquote class="nodeDescription {xen:if @nodeListDescriptionTooltips, nodeDescriptionTooltip} baseHtml" id="nodeDescription-{$forum.node_id}">{xen:raw $forum.description}</blockquote>       
<div>


     <xen:hook name="node_forum_level_2_before_lastpost" params="{xen:array 'forum={$forum}'}" />

     <div class="nodeLastPost secondaryContent" style="width:160px;">
       <xen:if is="{$forum.privateInfo}">
         <span class="noMessages muted">({xen:phrase private})</span>
       <xen:elseif is="{$forum.lastPost.date}" />
         <span class="lastThreadTitle"><span></span> <a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}">{$forum.lastPost.title}</a></span>
         <span class="lastThreadMeta">
           <span class="lastThreadUser"><xen:if is="{xen:helper isIgnored, $forum.last_post_user_id}">{xen:phrase ignored_member}<xen:else /><xen:username user="$forum.lastPost" /></xen:if>,</span>
           <xen:datetime time="$forum.lastPost.date" class="muted lastThreadDate" data-latest="{xen:phrase latest}: " />
         </span>
       <xen:else />
         <span class="noMessages muted">({xen:phrase contains_no_messages})</span>
       </xen:if>
     </div>

     <div class="nodeControls">
       <a href="{xen:link forums/index.rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
     </div>
     
   </div>

   <xen:if is="{$renderedChildren} AND {$level} == 1">
     <ol class="nodeList">
       <xen:foreach loop="$renderedChildren" value="$child">{xen:raw $child}</xen:foreach>
     </ol>
   </xen:if>
   
   
       
       

</li>



<xen:else />

 <xen:if is="!in_array({$forum.node_id}, array(154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184))">

<li class="node forum level_{$level} {xen:if '{$level} == 1 AND !{$renderedChildren}', 'groupNoChildren'} node_{$forum.node_id}">

   <xen:if is="{$level} == 1"><div class="categoryStrip subHeading"></div></xen:if>

   <div class="nodeInfo forumNodeInfo primaryContent {xen:if $forum.hasNew, 'unread'}">

     <span class="nodeIcon" title="{xen:if $forum.hasNew, '{xen:phrase unread_messages}', ''}"></span>

     <div class="nodeText">
       <h3 class="nodeTitle"><xen:if is="{$watchCheckBoxName}"><input type="checkbox" name="{$watchCheckBoxName}" value="{$forum.node_id}" />&nbsp;</xen:if><a href="{xen:link forums, $forum}" data-description="{xen:if @nodeListDescriptionTooltips, '#nodeDescription-{$forum.node_id}'}">{$forum.title}</a></h3>

   


         <blockquote class="nodeDescription {xen:if @nodeListDescriptionTooltips, nodeDescriptionTooltip} baseHtml" id="nodeDescription-{$forum.node_id}">{xen:raw $forum.description}</blockquote>

       

       <div class="nodeStats pairsInline">

         <xen:if is="{$renderedChildren} AND {$level} == 2 AND @nodeListSubForumPopup">
           <div class="Popup subForumsPopup">
             <a href="{xen:link forums, $forum}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase sub_forums}:</span> {xen:number $forum.childCount}</a>
             
             <div class="Menu JsOnly subForumsMenu">
               <div class="primaryContent menuHeader">
                 <h3>{$forum.title}</h3>
                 <div class="muted">{xen:phrase sub_forums}</div>
               </div>
               <ol class="secondaryContent blockLinksList">
               <xen:foreach loop="$renderedChildren" value="$child">
                 {xen:raw $child}
               </xen:foreach>
               </ol>
             </div>
           </div>
         </xen:if>
       </div>
       
       {xen:raw $nodeExtraHtml}
       
       
       
       
       
       
       
       
       
       
       
       
       
       
     </div>
<div>
     <xen:if is="{$renderedChildren} AND {$level} == 2 AND !@nodeListSubForumPopup">
       <ol class="subForumList">
       <xen:foreach loop="$renderedChildren" value="$child">
         {xen:raw $child}
       </xen:foreach>
       </ol>
     </xen:if>

     <xen:hook name="node_forum_level_2_before_lastpost" params="{xen:array 'forum={$forum}'}" />

     <div class="nodeLastPost secondaryContent">
       <xen:if is="{$forum.privateInfo}">
         <span class="noMessages muted">({xen:phrase private})</span>
       <xen:elseif is="{$forum.lastPost.date}" />
         <span class="lastThreadTitle"><span></span> <a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}">{$forum.lastPost.title}</a></span>
         <span class="lastThreadMeta">
           <span class="lastThreadUser"><xen:if is="{xen:helper isIgnored, $forum.last_post_user_id}">{xen:phrase ignored_member}<xen:else /><xen:username user="$forum.lastPost" /></xen:if>,</span>
           <xen:datetime time="$forum.lastPost.date" class="muted lastThreadDate" data-latest="{xen:phrase latest}: " />
         </span>
       <xen:else />
         <span class="noMessages muted">({xen:phrase contains_no_messages})</span>
       </xen:if>
     </div>

     <div class="nodeControls">
       <a href="{xen:link forums/index.rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
     </div>
     
   </div>

   <xen:if is="{$renderedChildren} AND {$level} == 1">
     <ol class="nodeList">
       <xen:foreach loop="$renderedChildren" value="$child">{xen:raw $child}</xen:foreach>
     </ol>
   </xen:if>
   
   
       
       

</li>

</xen:if></xen:if>
 
Real unique look you got going there! I'm not sure how well it's going to work in terms of responsive design, but for the desktop version, grade A!
 
I think it looks great (y)
Have you had any legal problems with the NBA? I previously owned a few domains with nba in the name and they were not shy about sending threats.
 
wow.. your forum look Great ! how do I use the code ?
I would like to try the code but I`m completely noob .. just moving to xenforo from vb and dont have any knowledge needed :cry:
 
wow.. your forum look Great ! how do I use the code ?
I would like to try the code but I`m completely noob .. just moving to xenforo from vb and dont have any knowledge needed :cry:
which code? its very similar to vbulletin so it shouldn't be too hard to pick up.
How long did it take you to build up the member base?
Well we started off pretty well, but this has been open for years so we've had a lot of people come and go.
 
Very nice site! :)

I think that's the best header that I've seen for a sports site. I mean you pulled off that realism so well, that some people might think your site is the official NBA site. lol. :D
 
Back
Top Bottom