Sub-Forum Template change in 4.0.8?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sg86-
    Member
    • Oct 2010
    • 44
    • 4.0.x

    [Forum] Sub-Forum Template change in 4.0.8?

    I just went to this template:

    forumhome_subforumseparator_post

    And found this:

    Code:
    <vb:comment>obsolete, should be removed from code and then removed from style</vb:comment>
    I wanted to change the seperation of my sub-forums, as explain in posts on this site.

    Where has this been moved to? Here?

    forumhome_subforumbit_nopost

    with:

    Code:
    <li class="subforum">
    <img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/subforum_{vb:raw forum.statusicon}.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" /> 
    <a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a>
    </li>
    I can only see one comma there, and that removed doesnt seem to do much
  • sg86-
    Member
    • Oct 2010
    • 44
    • 4.0.x

    #2
    after alot of searching, is this the variable that contains the 'comma' ?

    vb:raw forum.subforums

    if so, how do you change these variables, i know rawphrase is in language, but what bout these?

    Comment

    • sg86-
      Member
      • Oct 2010
      • 44
      • 4.0.x

      #3
      wow, idc im bumping this. ive waited all day for a reply, and to me it looks like a simple one

      youve changed the code, tell me the change

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        Please wait at least 24 hours before bumping your posts.

        From the forum rules:
        The updated community rules can always be found at: http://www.vbulletin.com/go/forumrules


        Please wait a reasonable amount of time before bumping posts. For style changes and general 'how-to' questions this should be 24 hours. For specific troubleshooting issues, use 12 hours as a guideline.
        Can you explain what you are trying to do exactly?
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • sg86-
          Member
          • Oct 2010
          • 44
          • 4.0.x

          #5
          sorry mate, but i thought it would be a simple one and had enough views.

          im trying to organise my sub-forums as a list, by default they are comma seperated

          previously, i just changed the template above, to have a <br>, but now it says:

          <vb:comment>obsolete, should be removed from code and then removed from style</vb:comment>

          and in the source code for my Forumhome, this template is used but contains nothing, it now uses <ol class="subforum list"> or something similar

          Comment

          • Lynne
            Former vBulletin Support
            • Oct 2004
            • 26255

            #6
            The comma is added in the CSS:
            HTML Code:
            .commalist li:after {
                content:",";
            }
            
            .commalist li:last-child:after {
                content:"";
            }

            Please don't PM or VM me for support - I only help out in the threads.
            vBulletin Manual & vBulletin 4.0 Code Documentation (API)
            Want help modifying your vbulletin forum? Head on over to vbulletin.org
            If I post CSS and you don't know where it goes, throw it into the additional.css template.

            W3Schools &lt;- awesome site for html/css help

            Comment

            • sg86-
              Member
              • Oct 2010
              • 44
              • 4.0.x

              #7
              thanks lynne, again

              can i add html direct to that content?

              content: <br>;

              also, i want to add a break after the Sub-Forums: header too

              why have you guys made this complicated lol

              Comment

              • Lynne
                Former vBulletin Support
                • Oct 2004
                • 26255

                #8
                So you want them in a list instead (I really can't tell what you are wanting)? Just add this to additional.css:
                HTML Code:
                /* Arrange sub-forums in a list */
                .commalist li.subforum {display: list-item;}

                Please don't PM or VM me for support - I only help out in the threads.
                vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                Want help modifying your vbulletin forum? Head on over to vbulletin.org
                If I post CSS and you don't know where it goes, throw it into the additional.css template.

                W3Schools &lt;- awesome site for html/css help

                Comment

                • sg86-
                  Member
                  • Oct 2010
                  • 44
                  • 4.0.x

                  #9
                  wow, this is used all over the forum, not just in sub-forums. i removed the comma and it removes the seperation within my Online Users list....

                  Yes, i want to organise my sub forums, in a list, not on one line it just looks horrible.

                  you could do this in older VBs easily just by changing the template you've now removed.

                  ill try the code you just posted..

                  Comment

                  • sg86-
                    Member
                    • Oct 2010
                    • 44
                    • 4.0.x

                    #10
                    well, this is the outcome of that



                    thanks for this code, at least its sort of what i wanted. however, i would like the comma removed. but doing this removes it from my online users list as well, any way around this?

                    Comment

                    • Lynne
                      Former vBulletin Support
                      • Oct 2004
                      • 26255

                      #11
                      You need to be more specific in your CSS if you only want stuff removed in certain areas:
                      HTML Code:
                      /* to remove the commas */
                      .commalist li.subforum:after {
                          content:"";
                      }

                      Please don't PM or VM me for support - I only help out in the threads.
                      vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                      Want help modifying your vbulletin forum? Head on over to vbulletin.org
                      If I post CSS and you don't know where it goes, throw it into the additional.css template.

                      W3Schools &lt;- awesome site for html/css help

                      Comment

                      • sg86-
                        Member
                        • Oct 2010
                        • 44
                        • 4.0.x

                        #12
                        ok it seems im out of my depth then

                        thanks alot for the help though. job done in this case looks great

                        Comment

                        Related Topics

                        Collapse

                        Working...
                        😀
                        😂
                        🥰
                        😘
                        🤢
                        😎
                        😞
                        😡
                        👍
                        👎