vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Home Enhancements - forum distinction from the rest of the forums (https://vborg.vbsupport.ru/showthread.php?t=160493)

al-baker 10-17-2007 10:00 PM

forum distinction from the rest of the forums
 
hi all ,,

forum distinction from other forums

develop by : albaker
changes:
  • forumhome_forumbit_level2_post
  • forumhome_forumbit_leve1_post

first:

go to the css main for ur style and from Additional CSS Definitions put :

https://vborg.vbsupport.ru/attachmen...1&d=1192692259

Code:

.mshaer1
{
        background: #ffffff url(images/mshaer1.jpg) repeat-x bottom ;

}

change the url for bg image ( red word )

second:

open[*]forumhome_forumbit_level2_post

on the 2nd line u will see 2 calss alt2 & alt1active :

https://vborg.vbsupport.ru/attachmen...1&d=1192692259

<td class="alt2">

replace it with :
Code:

<td class="<if condition="$forumid == 2"> mshaer1
  <else />
alt2 </if>
    </if>"

chabge $forumid == 2 for ur fourm id what u want to distinctions

then:
Code:

<td class="alt1Active"
replace it with :

Code:

        <td class="<if condition="$forumid == 2"> mshaer1
  <else />
alt1Active </if>
    </if>"

on same tamplate in line 16 :

https://vborg.vbsupport.ru/attachmen...1&d=1192692269


Code:

<td class="alt2"
replace it with:
Code:

        <td class="<if condition="$forumid == 2"> mshaer1
  <else />
alt2 </if>
    </if>"

then:
Code:

<td class="alt1"
replace it with :
Code:

        <td class="<if condition="$forumid == 2"> mshaer1
  <else />
alt1</if>
    </if>"

then:
Code:

<td class="alt2"
replac it with:
Code:

        <td class="<if condition="$forumid == 2"> mshaer1
  <else />
alt2 </if>
    </if>"

then:
Code:

<td class="alt1"
replace it with:
Code:

        <td class="<if condition="$forumid == 2"> mshaer1
  <else />
alt1 </if>
    </if>"


finaly:
https://vborg.vbsupport.ru/attachmen...1&d=1192692259

==========================================

if u want to distinction 2 forums from other forums

use that code

Code:

<td class="<if condition="$forumid == 20"> mshaer1
  <else />
        alt2 </if>
    </if>
        <if condition="$forumid == 111"> mshaer2
  </if>
  </if>
</if>

and dont forget to put Additional CSS Definitions for the second distinction forum

Code:

.mshaer2
{
        background: #ffffff url(images/mshaer1.jpg) repeat-x bottom ;

}

if u want to distinction by color use this code

Code:

.mshaer1
{
        background: #ffffff

}

===================================

repat this steps on forumhome_forumbit_leve1_post

have fun !

PoetJA-1975 10-18-2007 09:31 AM

um - what on earth does this do?
That's a LOT of template edits...

Jacquii.

yoyoyoyo 10-18-2007 12:00 PM

very confused also

FleaBag 10-18-2007 12:47 PM

I believe it allows you to highlight a particular forum (or forums) as a checked post awaiting moderation would appear, via template edits.

kollam003 10-22-2007 11:20 AM

very confusing ..........

mhackl 10-23-2007 02:47 PM

It appears to me that it allows posts from a certain forum to be highlighted. you could use it to identify premium or administrative posts in say ... the new post lists.

This is very helpful. I don't suppose this would work on posts made in sub-forums of the parent forum id? I need to do this for about six forums that are all part of the same category.

koolfire 05-18-2008 11:30 PM

The most confusing hack seen on vBulletin.org..
Good effort anyway lol.


All times are GMT. The time now is 11:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01133 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (15)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete