Announcement

Collapse
No announcement yet.

Postbit size

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

  • Jake Bunce
    replied
    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.

    Leave a comment:


  • ambumann
    replied
    Is it possible to make custom settings for different browsers?

    Leave a comment:


  • ambumann
    replied
    Thanks again, been doing far to advanced thinking as usual...

    Leave a comment:


  • Jake Bunce
    replied
    Admin CP -> Styles & Templates -> Style Manager -> StyleVars (in the menu) -> Message Area Width

    Leave a comment:


  • ambumann
    replied
    http://www.pratekompaniet.com/forum/...ewthread&f=157

    Leave a comment:


  • Jake Bunce
    replied
    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?

    Leave a comment:


  • ambumann
    started a topic Postbit size

    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?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X