Some Questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • King Kovifor
    Senior Member
    • Nov 2004
    • 591
    • 3.7.x

    Some Questions

    1. How to I change the CATEGORY titles to be centered without cutting off any background image or anything else. Everthing I tried did this.

    2. How would I get one image to show on the right and another to show on the left.

    3. If I want image a to show anytime but don't want to incorperate it into the left image... how would I do that? (like the collapse and stuff)

    4. If I want both collapse AND expand categories to show at all times how would I do it?

    5. How do I make those changes in 3 and 4 everywhere collapsable things appear?

    6. How do I edit the editor background... The place with all the bbcodes...

    All for now!
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    1) Edit this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_forumbit_level1_nopost

    Add the blue code:

    Code:
    <tbody>
    	<tr>
    		<td [color=blue]align="center"[/color] class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
    			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
    			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
    			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
    		</td>
    	</tr>
    </tbody>
    <if condition="$childforumbits">
    <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
    $childforumbits
    </tbody>
    </if>
    2) Where do you want to do this? What do you want it to look like? I need more information before I can provide code.

    3) Same as #2.

    4) You can make it so categories are always expanded by editing the same template as in #1. Remove the red code:

    Code:
    <tbody>
    	<tr>
    		<td [color=blue]align="center"[/color] class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
    			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
    			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
    			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
    		</td>
    	</tr>
    </tbody>
    <if condition="$childforumbits">
    <tbody id="collapseobj_forumbit_$forumid" style="[color=red]{$collapseobj_forumid}[/color]">
    $childforumbits
    </tbody>
    </if>
    5) Lots of template edits... you would need to make similar changes in every template containing a collapsable element. Or you might be able to get away with a file hack to save yourself a lot of time. You should post on www.vbulletin.org about this possibility.

    6) That color is defined in your:

    Admin CP -> Styles & Templates -> Style Manager -> Toolbar Menu Options -> Editor buttons in normal state

    Comment

    • King Kovifor
      Senior Member
      • Nov 2004
      • 591
      • 3.7.x

      #3
      Originally posted by Jake Bunce
      1) Edit this template:

      Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_forumbit_level1_nopost

      Add the blue code:

      Code:
      <tbody>
      	<tr>
      		<td [color=blue]align="center"[/color] class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
      			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
      			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
      			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
      			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
      		</td>
      	</tr>
      </tbody>
      <if condition="$childforumbits">
      <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
      $childforumbits
      </tbody>
      </if>
      2) Where do you want to do this? What do you want it to look like? I need more information before I can provide code.

      3) Same as #2.

      4) You can make it so categories are always expanded by editing the same template as in #1. Remove the red code:

      Code:
      <tbody>
      	<tr>
      		<td [color=blue]align="center"[/color] class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
      			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
      			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
      			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
      			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
      		</td>
      	</tr>
      </tbody>
      <if condition="$childforumbits">
      <tbody id="collapseobj_forumbit_$forumid" style="[color=red]{$collapseobj_forumid}[/color]">
      $childforumbits
      </tbody>
      </if>
      5) Lots of template edits... you would need to make similar changes in every template containing a collapsable element. Or you might be able to get away with a file hack to save yourself a lot of time. You should post on www.vbulletin.org about this possibility.

      6) That color is defined in your:

      Admin CP -> Styles & Templates -> Style Manager -> Toolbar Menu Options -> Editor buttons in normal state
      2 and 3:

      I want it to be this:

      right image; image always there. Collapsable and Decolapsable. title

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Originally posted by King Kovifor
        2 and 3:

        I want it to be this:

        right image; image always there. Collapsable and Decolapsable. title
        I still don't understand. Image where? What is to be collapsable?

        Comment

        • King Kovifor
          Senior Member
          • Nov 2004
          • 591
          • 3.7.x

          #5
          You know the collapsable image? And the expand image? I would like them to show on the right side all the time. with another useless image before them. How would I do it.

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            The code for the right-aligned collapsing image is in red:

            Code:
            <tbody>
            	<tr>
            		<td [color=blue]align="center"[/color] class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
            			[color=red]<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>[/color]
            			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
            			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
            			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
            		</td>
            	</tr>
            </tbody>
            <if condition="$childforumbits">
            <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
            $childforumbits
            </tbody>
            </if>
            You can add the green code to add something before that image:

            Code:
            <tbody>
            	<tr>
            		<td [color=blue]align="center"[/color] class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
            			[color=red]<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>[/color]
            			[color=green]<span style="float:$stylevar[right]">IMAGE CODE HERE</span>[/color]
            			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
            			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
            			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
            		</td>
            	</tr>
            </tbody>
            <if condition="$childforumbits">
            <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
            $childforumbits
            </tbody>
            </if>

            Comment

            • King Kovifor
              Senior Member
              • Nov 2004
              • 591
              • 3.7.x

              #7
              Is there a way to show the expand when it needs to be collapsed?

              Comment

              • Jake Bunce
                Senior Member
                • Dec 2000
                • 46598
                • 3.6.x

                #8
                The "expand" what?

                Comment

                • King Kovifor
                  Senior Member
                  • Nov 2004
                  • 591
                  • 3.7.x

                  #9
                  Originally posted by Jake Bunce
                  The "expand" what?
                  Cateogry collapse and expand buttons. I would like them to BOTH show... at the same time. How would I do that?

                  Comment

                  • Jake Bunce
                    Senior Member
                    • Dec 2000
                    • 46598
                    • 3.6.x

                    #10
                    Problem:
                    I only know of a javascript function to "toggle" the state of the collapsable element, so it wouldn't matter which image you clicked... they would both perform two tasks, collapse or expand, depending on what the current state is.

                    So the buttons would not function as I assume you would want them to, where the "collapse" image only collapses and the "expand" image only expands. This would require custom code to change. I recommend you post on www.vbulletin.org about this.

                    Comment

                    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                    Working...