Announcement

Collapse
No announcement yet.

Displaying differents style in the same page

Collapse
X
 
  • 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:

    http://www.ner-clan.net/global/forumdisplay.php?f=7

    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:

    http://www.ner-de.net/gallery/suggestion.jpg

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

    Cheers,

    Whisky.
    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:

    Code:
    <tbody>
    	<tr>
    		<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:

    gradient_tcat_forumid.gif

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

    gradient_tcat_3.gif

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

    Comment


    • #3
      http://www.ner-clan.net/global/forumdisplay.php?f=7



      Txs Jake it's working like a charm

      Comment


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

        I have a World Cup 2006 and @ www.myfootballforum.com you can now see the new image over there. But i want the image to be on top of the forum (http://www.myfootballforum.com/forumdisplay.php?f=95) where is says "Threads in Forum : World Cup 2006"

        Is this possible?

        Thanks in advance.
        My Football Forum

        Comment

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