1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NBA Dimensions - NBA Basketball forum

Discussion in 'Forum Showcase and Critiques' started by JMEWLS, Aug 10, 2013.

  1. JMEWLS

    JMEWLS Active Member

    wickedstangs and DRE like this.
  2. Matthew Hawley

    Matthew Hawley Well-Known Member

    Woah, Woah! Dude! How! Did! You! Get! Those! NBA! Team! Forums! Like! That?!?!
     
  3. JMEWLS

    JMEWLS Active Member

    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
     
    StoveBolts and wickedstangs like this.
  4. Matthew Hawley

    Matthew Hawley Well-Known Member

    I would love to see the code.
     
  5. JMEWLS

    JMEWLS Active Member

    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>
     
    wickedstangs and WhoIsDo like this.
  6. JABRONI

    JABRONI Well-Known Member

    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!
     
  7. JMEWLS

    JMEWLS Active Member

    I will probably just have a version without the columns as a mobile style.
     
  8. WhoIsDo

    WhoIsDo Active Member

    Big fan of the design you put together. How long has your site been around?
     
  9. JMEWLS

    JMEWLS Active Member

    About 5 years, we've had a server crash twice and I couldn't find immediate backups so we've restarted twice. :lol:
     
  10. WhoIsDo

    WhoIsDo Active Member

    That's still impressive. Any particular reason why you don't show your total member & post count?
     
  11. DRE

    DRE Well-Known Member

    It goes hard in the paint.
     
    wickedstangs and JMEWLS like this.
  12. JMEWLS

    JMEWLS Active Member

    Basically cause the post count isn't exactly correct after the crashes. In this build we're on 550,000+ posts 10,000+ members
     
    WhoIsDo likes this.
  13. Brad L

    Brad L Well-Known Member

    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.
     
  14. JMEWLS

    JMEWLS Active Member

    Never had any troubles at all.
     
  15. Very cool, I want to do something similar with my site and custom icons for each forum. Nice work.
     
  16. How long did it take you to build up the member base?
     
  17. touch

    touch Member

    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:
     
  18. JMEWLS

    JMEWLS Active Member

    which code? its very similar to vbulletin so it shouldn't be too hard to pick up.
    Well we started off pretty well, but this has been open for years so we've had a lot of people come and go.
     
  19. JMEWLS

    JMEWLS Active Member

  20. Carlos

    Carlos Well-Known Member

    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
     

Share This Page