vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Different background for unapproved post? (https://vborg.vbsupport.ru/showthread.php?t=236845)

HolyKiller 02-25-2010 07:51 AM

Different background for unapproved post?
 
Hi,

i'd like to ask for little help here. I'm trying set different post background color for unapproved/moderated post, but i can't figure it, why my modifications doesn't work.

What i done is:

In postbit template find <div class="postbody">

and changed it for the first time to:
Code:

<div class="<vb:if condition="$show['moderated']">postbodymod<vb:else />postbody</vb:if>">
for the second time to this:
Code:

<div
<vb:if condition="$show['moderated']">
class="postbodymod"
<vb:else />
class="postbody"
</vb:if>
>

and added into additional.css these rows:
Code:

.postbitlegacy .postbodymod {
        margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width};
        border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border};
        background: #ffeb90;
        _background-image: none;
        padding-bottom: 1em;
}
}

also tried only this:
Code:

.postbodymod {
        background: #ffeb90;
}

and much more combinations or something like that, but nothink works for me. Moderated/Unapproved posts have still standard background. In i look at thread source code, i see <div class="postbody"> for every post.

Can anyone please help me what i'm doing wrong?
My vB version is 4.0.2.

Thanks in advance and sorry for my english ;)

Holy

HolyKiller 02-27-2010 02:57 AM

noone? :(:(

DaRK mAN306 02-27-2010 09:32 AM

Hello there HolyKiller,

First of all, if you are still testing this method online, you might consider posting your forum's URL .!

Anyway, I tested your mod and it works like CHARM .!
The only thing I changed in your mod is that instead of editing the "Postbit" template I edited the "Postbit_legacy" template ..

OH! before I forget, your CSS code should be like this:
Code:

.postbitlegacy .postbodymod {
    margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width};
    border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border};
    background: #ffeb90;
    _background-image: none;
    padding-bottom: 1em;
}

NOT like this:
Code:

.postbitlegacy .postbodymod {
    margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width};
    border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border};
    background: #ffeb90;
    _background-image: none;
    padding-bottom: 1em;
}
}

See the extra RED thing .!

I hope that this helps you out and if it didn't I advice to post your url .!

HolyKiller 02-27-2010 03:15 PM

Bah, now i'm feeling like an idiot :D, i always edited that postbit against postbit_legacy :rolleyes:

Thanks a LOT !!

BTW: About that css, that second bracket was only mistake in first post, but thx for warn too :)

Kimster 08-09-2014 06:32 PM

We've got our unapproved post color changed, but I can't figure out how to make the unapproved posts in the "posts by user" list to change as well. Our moderators are sorely missing this feature that went away when we recently upgraded to 4.2.2.

Thanks in advance for help!


All times are GMT. The time now is 07:10 AM.

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.01022 seconds
  • Memory Usage 1,721KB
  • 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
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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