vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I make the thead gradient different for my premium usergroup? (https://vborg.vbsupport.ru/showthread.php?t=131385)

Megadrive 11-12-2006 10:47 PM

How can I make the thead gradient different for my premium usergroup?
 
I'm trying to find out how I can set it so that on any premium members posts, the "thead" gradient is different from normal members posts. Thanks in advance to anyone who can help. Basically that entire top bar where the time / date stamp, post #, etc are displayed. I want to have a different bg gradient there on premium members posts.

Luggruff 11-13-2006 11:14 AM

Lets say that you have a tablecell that says:

Code:

<td class="thead">&nbsp;</td>
..where the gradient for the thead class is BLUE, and you want it to be RED for the ADMIN usergroup, the you just make an own css class for the RED one called something like "theadAdmin" with the same settings as the original thead class and write this instead:

Code:

<if condition="is_member_of($bbuserinfo,6,)">
<td class="theadAdmin">&nbsp;</td>
<else />
<td class="thead">&nbsp;</td>
</if>

only, I don't know how to put more than two conditionals like this into it for more usergroups.
But if you only have one usergroup you would want to change this for, then it works.

Megadrive 11-16-2006 04:15 PM

Cool. Sounds simple enough. Only where exactly would I go to add the css class? I think that's something I've yet to ever edit in vb. Thanks a million for the help.

Luggruff 11-16-2006 04:45 PM

styles and templates in the AdminCP -> pick your style -> press OK -> scroll down allmost all the way to the bottom and you'll find it ;)

Ntfu2 11-16-2006 06:36 PM

that wont display the different color to everyone. It will only display it to users in usergroup 6.

Megadrive 11-16-2006 09:05 PM

^Well darn. How can I make it so everyone see's the different color gradient for premiums?

Megadrive 11-18-2006 01:48 AM

Anyone?

Adrian Schneider 11-18-2006 01:55 AM

Code:

<if condition="is_member_of($post, 6)">stuff for admin posts<else />stuff for non-admin posts</if>

Luggruff 11-18-2006 09:53 AM

Oh, you ment that you wanted the thead to be permanent a sertain color and that everyone sees it?
I thought you just wanted all the thead's to be like red if you're logged in as admin, and green if you're logged in as a regular user and so on (:

Megadrive 11-19-2006 06:39 PM

Yeah basically Im just doing it as an extra perk for my premium members. I need everyone to see that premium members have a different color gradient on their posbits than everyone else.


All times are GMT. The time now is 10:47 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.00988 seconds
  • Memory Usage 1,722KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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