No announcement yet.

Displaying differents style in the same page

  • Filter
  • Time
  • Show
Clear All
new posts

  • Displaying differents style in the same page

    Hi guys,

    Is it possible to have differents forum styles visible on the same forum page??
    Actually we have this layout:

    And since each of our country clans have his own color, we have created a different style for each of them and applyed it in all child forums, its working very fine, but what we would like is to also see the color of the subforums displayed in the main page, like that:

    Is it possible without start to modify the php files???


    Last edited by NER_Whisky; Tue 25 Jan '05, 10:26am.

  • #2
    You can't display multiple styles like that, but you can accomplish the same thing with template conditionals.

    Edit this template:

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

    Add the red code:

    		<td class="tcat" [color=red]<if condition="in_array($forum[forumid], array(X,Y,Z))">style="background: url(images/gradients/gradient_tcat_$forum[forumid].gif) repeat-x top left;"</if>[/color] 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>
    Where X,Y,Z is a comma-separated list of the forumids of the categories for your clan forums.

    Then upload the different gradient images to the images/gradients directory. Use this naming scheme:


    For example, if the forumid of the category is 3, then its image would be named:


    Now the X,Y,Z categories should have different gradient images.


    • #3

      Txs Jake it's working like a charm


      • #4
        How can i get the inside of the forum to have theimage on?

        I have a World Cup 2006 and @ you can now see the new image over there. But i want the image to be on top of the forum ( where is says "Threads in Forum : World Cup 2006"

        Is this possible?

        Thanks in advance.
        My Football Forum


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