Swap positions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Snakes
    Member
    • Jul 2011
    • 56
    • 4.1.x

    [Blog] Swap positions

    Hello everyone, I'm trying to swap the position of the sidebar items in the blog (check the picture). I just want to put the recent comments up and the Recent entries, Most popular and Best blogs down. How can I achieve this?

    Click image for larger version

Name:	Capture.jpg
Views:	1
Size:	96.7 KB
ID:	3724028

    Thanks!
  • TheLastSuperman
    Senior Member
    • Sep 2008
    • 1799

    #2
    When your viewing the sidebar blocks, the display order sets how they are shown top to bottom so be sure to set the block you want up top to a lower value, the block you want on bottom to a higher value .


    Former vBulletin Support Staff
    Hacked recently? See my blog post "Recovering a Hacked vBulletin Site".
    Thinking outside the box? Need modification support? Visit www.vBulletin.org and have at it!

    Comment

    • Snakes
      Member
      • Jul 2011
      • 56
      • 4.1.x

      #3
      Hi! These are the default blocks that come with the CMS. Where is that option? I didn't find it!

      Thanks again! Not very familiar with the forum blocks...

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 73421
        • 6.0.X

        #4
        These are the Blog Sidebar. Not really related to either Forum Blocks or CMS Widgets.

        To move those you would need to edit the blog_sidebar_generic template.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • TheLastSuperman
          Senior Member
          • Sep 2008
          • 1799

          #5
          ^Indeed Wayne is correct as always and sorry for the initial oversight Snakes .


          Former vBulletin Support Staff
          Hacked recently? See my blog post "Recovering a Hacked vBulletin Site".
          Thinking outside the box? Need modification support? Visit www.vBulletin.org and have at it!

          Comment

          • Snakes
            Member
            • Jul 2011
            • 56
            • 4.1.x

            #6
            No problem Michael! Thanks Wayne...

            Code:
            <vb:comment> <!-- this is causing an extra button in the normal pages. will fix this later -->
             <h6 class="actionbutton_container">
             <vb:if condition="!$bbuserinfo['userid']">
              <a class="pagetitleinfo textcontrol" href="register.php{vb:raw session.sessionurl_q}" rel="nofollow"><span>+</span> {vb:rawphrase create_blog}</a>
             <vb:elseif condition="$show['postblog'] OR $show['postgroupblog']" />
              <vb:if condition="$show['postgroupblog']">
               <a class="pagetitleinfo textcontrol" href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog_post.php?{vb:raw session.sessionurl}do=newblog&amp;u={vb:raw userinfo.userid}" rel="nofollow"><span>+</span> {vb:rawphrase new_entry}</a>
              <vb:else />
               <a class="pagetitleinfo textcontrol" href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog_post.php?{vb:raw session.sessionurl}do=newblog" rel="nofollow"><span>+</span> {vb:rawphrase new_entry}</a>
              </vb:if>
             </vb:if>
             </h6>
            < /vb:comment>
            < vb:if condition="!$show['hidesidebar']">
            < div id="blog_sidebar_generic">
            < /vb:if>
             <vb:if condition="$show['blogsidebar_middle']">
             <div class="block adblock" id="blogsidebar_middle_container">
              <div class="blockbody formcontrols">
               {vb:raw ad_location.blogsidebar_middle}
              </div>
             </div>
             <div class="underblock"></div>
             </vb:if>
             <form action="search.php?do=process" method="post" >
              <input type="hidden" name="contenttype" value="vBBlog_BlogEntry"/>
              <input type="hidden" name="search_type" value="1"/>
              <input type="hidden" name="quicksearch" value="1"/>
              <div class="block blogusermenu">
               <h5 class="blocksubhead searchblock smaller">
                <a href="#top" id="collapse_c_blog_search" class="collapse">
                 <img src="{vb:stylevar imgdir_button}/collapse_40b{vb:raw vbcollapse.collapseimg_blog_search}.png" alt=""/>
                </a>
                {vb:rawphrase find_blog_entries}
               </h5>
               <div class="blockbody formcontrols" id="c_blog_search">
                <div class="blockrow floatcontainer">
                 <label for="quicksearch_blog_text" class="smallfont" >{vb:rawphrase containing_text}
                  <input type="text" class="primary textbox" name="query" id="quicksearch_blog_text" tabindex="1" />
                 </label>
                 <label for="cb_titleonly" class="titleonly">
                  <input class="inlineimg" type="checkbox" name="titleonly" id="cb_titleonly" value="1" tabindex="1" />
                  {vb:rawphrase search_titles_only}
                 </label>
                 <div class="cleardiv"></div>
                 <div class="controls floatcontainer">
                  <input type="submit" class="button" value="{vb:rawphrase search}" tabindex="1" />
                  <a href="search.php?{vb:raw session.sessionurl}search_type=1&amp;contenttype=vBBlog_BlogEntry">{vb:rawphrase advanced_search}</a>
                 </div>
                </div>
               </div>
              </div>
              <div class="underblock"></div>
              <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
              <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
              <input type="hidden" name="do" value="process" />
             </form>
             <vb:if condition="$sidebar['categorybits']">
              <div class="block categoryblock blogusermenu">
               <h5 class="blocksubhead smaller">
                <a href="#top" id="collapse_c_blog_categories" class="collapse">
                 <img src="{vb:stylevar imgdir_button}/collapse_40b{vb:raw vbcollapse.collapseimg_blog_categories}.png" alt=""/>
                </a>
                {vb:rawphrase blog_categories}
               </h5>
               <div class="blockbody" id="c_blog_categories">
                <div class="blockrow block_category_list">
                 <ul class="list_no_decoration">
                  {vb:raw sidebar.categorybits}
                 </ul>
                </div>
               </div>
              </div>
              <div class="underblock"></div>
             </vb:if>
             <div class="block blogusermenu" id="vb_blogcalendar">
              {vb:raw calendar}
             </div>
             <div class="underblock"></div>
             <script type="text/javascript" src="clientscript/blog_ajax_calendar.js?v={vb:raw vboptions.simpleversion}"></script>
             <script type="text/javascript">
             <!--
              blogCalendar = new vB_AJAX_BlogCalendar('blogCalendar', 'vb_blogcalendar', {vb:raw month}, {vb:raw year});
             //-->
             </script>
             <vb:if condition="$tag_cloud">
              <div class="block blogusermenu">
               <h5 class="blocksubhead smaller">
                <a href="#top" id="collapse_c_blog_cloud" class="collapse">
                 <img src="{vb:stylevar imgdir_button}/collapse_40b{vb:raw vbcollapse.collapseimg_blog_cloud}.png" alt=""/>
                </a>
                {vb:rawphrase global_tag_cloud}
               </h5>
                     
               <div class="blockbody" id="c_blog_cloud">
                <div class="blockrow smallfont" >
                 <ul id="tags_cloud_list" >
                  {vb:raw tag_cloud}
                  <li class="smallfont" >
                   <a href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog_tag.php{vb:raw session.sessionurl_q}">{vb:rawphrase search_by_tag}</a>
                  </li>
                 </ul>
                </div>
               </div>
              </div>
              <div class="underblock"></div>
             </vb:if>
             <vb:if condition="$show['blogsidebar_end']">
             <div class="block adblock" id="blogsidebar_end_container">
              <div class="blockbody formcontrols">
               {vb:raw ad_location.blogsidebar_end}
              </div>
             </div>
             <div class="underblock"></div>
             </vb:if>
            < vb:if condition="!$show['hidesidebar']">
            < /div>
            < /vb:if>
            What part should I swap? I tried one part some minutes ago, but it destroyed the search and the calendar, lol...

            - - - Updated - - -

            Please?

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            😀
            😂
            🥰
            😘
            🤢
            😎
            😞
            😡
            👍
            👎