View Full Version : Gradient in postbit
Neo_Angelo
03-19-2007, 09:10 PM
Heya Guys, i was wondering how to go about adding a gradient to the postbit like ZT has here.
basically i'd like different gradients depending on the rank of the member, so for admins i might have a black gradient, for smods a white maybe and so on.
what should i do to achieve this result?
may thanks in advance to the people who remedy my answer.
TheMilkCarton
03-21-2007, 03:48 PM
https://vborg.vbsupport.ru/showthread.php?t=141272
So, in postbit_legacy, you find <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"> and add "background-image" style <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px; background-image: url ();">Now for inside the url, if you want diff images per usergroup something like this:
url (<if condition="is_member_of($post, 6)">admin_image.jpg<else /><if condition="is_member_of($post, 5, 7)">mod_image.jpg<else />regular_image.jpg</if>) Where the numbers correspond to their Usergroup IDs. Their might be a shorter way to right "is_member_of($post, 5, 7)" but this way you can use an array of IDs
Oh, and you should use background instead of background-image if you want to use things like "no-repeat" or "center" background:url(stuff from last step) no-repeat top left;
Also, if you want it centered like in that picture, just add: <td align="center" to the same code as above.
Neo_Angelo
03-27-2007, 09:35 AM
thanks for the responce, 'll give this ago when i've got my net back up and running at home.
thanks again thats a real help ^_^
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.