Announcement

Collapse
No announcement yet.

Postbit size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Postbit size

    How can I decrease the size of my postbit so that I don't have to scroll horisontally to view the banners on the right sidebar?


  • #2
    The postbit is only as wide as your forum width. Do you want to shrink the width of your entire forum?

    Can you post a link or picture that shows the problem?

    Comment


    • #3
      http://www.pratekompaniet.com/forum/...ewthread&f=157

      Comment


      • #4
        Admin CP -> Styles & Templates -> Style Manager -> StyleVars (in the menu) -> Message Area Width

        Comment


        • #5
          Thanks again, been doing far to advanced thinking as usual...

          Comment


          • #6
            Is it possible to make custom settings for different browsers?

            Comment


            • #7
              You can use this conditional in the templates:

              Code:
              <if condition="is_browser('[color=red]name of browser[/color]')">
              	
              </if>
              A list of browser names can be seen in the includes/functions.php file. Find the is_browser() function:

              Code:
              // #################### Start is browser ##########################
              // browser detection script
              function is_browser($browser, $version = 0)
              {
              	global $_SERVER;
              	static $is;
              	if (!is_array($is))
              	{
              		$useragent = strtolower($_SERVER['HTTP_USER_AGENT']);
              		$is = array(
              			[color=red]'opera' => 0,
              			'ie' => 0,
              			'mozilla' => 0,
              			'firebird' => 0,
              			'firefox' => 0,
              			'camino' => 0,
              			'konqueror' => 0,
              			'safari' => 0,
              			'webkit' => 0,
              			'webtv' => 0,
              			'netscape' => 0,
              			'mac' => 0[/color]
              		);
              
              ...
              Example usage:

              Code:
              <if condition="is_browser('firefox')">
              	hehe
              <else />
              	lol
              </if>
              This code will display "hehe" in firefox, and "lol" in all other browsers.

              Comment

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