vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Postbit Legacy - Usergroup Backgrounds vb4 (https://vborg.vbsupport.ru/showthread.php?t=229487)

TimberFloorAu 01-17-2010 07:16 PM

Still have this tagged Fastbird, get it going for 4.0.2 please :up:

TimberFloorAu 01-17-2010 07:20 PM

Ignore me I am a knob, will install :up:

Add:

Where does it pull the image from? Looking over code changes, I cant see where the image is extracted from. Is it profile pic?

Fastbird 01-18-2010 09:37 PM

Quote:

Originally Posted by TimberFloorAu (Post 1958518)
Ignore me I am a knob, will install :up:

Add:

Where does it pull the image from? Looking over code changes, I cant see where the image is extracted from. Is it profile pic?

If you want an image, you need to supply one and place it in the CSS. It's commented out. Check the first section of code to add/replace for it.

TimberFloorAu 01-18-2010 09:48 PM

Quote:

Originally Posted by Fastbird (Post 1959647)
If you want an image, you need to supply one and place it in the CSS. It's commented out. Check the first section of code to add/replace for it.

Yeah got that but tried everything and to no avail. Great hack, but couldnt get it working for us.

Thanks anyhoo :)

your code:
Code:

background: #xxxxxx /*url(url to image here) no-repeat*/;
our code change:
Code:

background: #ff9900 images/bg.jpg no-repeat;
Didnt produce anything.
Even tried absolute URL

Fastbird 01-18-2010 10:22 PM

Quote:

Originally Posted by TimberFloorAu (Post 1959658)
Yeah got that but tried everything and to no avail. Great hack, but couldnt get it working for us.

Thanks anyhoo :)

your code:
Code:

background: #xxxxxx /*url(url to image here) no-repeat*/;
our code change:
Code:

background: #ff9900 images/bg.jpg no-repeat;
Didnt produce anything.
Even tried absolute URL

That's because you removed too much of the code from the CSS. You need to use this line:

Code:

background: #ff9900 url(images/bg.jpg) no-repeat;

Bouncer222 01-21-2010 09:54 PM

I see on your site you used different images for different usergroups, how do I do the same??

Fastbird 01-21-2010 10:07 PM

One usergroup is like this:
Code:

<vb:if condition="is_member_of($post, #)"><dl class="userinfo_extra2">
<vb:else />
<dl class="userinfo_extra">
</vb:if>

Two usergroups is like this:
Code:

<vb:if condition="is_member_of($post, #)"><dl class="userinfo_extra2">
<vb:else />
<vb:if condition="is_member_of($post, #)"><dl class="userinfo_extra3">
<vb:else />
<dl class="userinfo_extra">
</vb:if>
</vb:if>

You keep adding the statement over and over and then add a vb:if at the end for each additional phrase you add. Then, you must duplicate the css each time for each usergroup. So, in the example for installation, I use userinfo2 for the duplicate css codes. Each additional usergroup will have an incremental increase, so the css for the 2nd usergroup would be userinfo3, the 3rd user group would use userinfo4, and so on. Just keep duplicating each of the steps above for each usergroup.

Bouncer222 01-21-2010 10:22 PM

It's not possible to make it simpler? Because duplicating css I think shouldnt be necessary if you can somehow do that.

Fastbird 01-21-2010 10:45 PM

Quote:

Originally Posted by Bouncer222 (Post 1962848)
It's not possible to make it simpler? Because duplicating css I think shouldnt be necessary if you can somehow do that.

If there's a simpler way, I don't know it. The way I explained it is known to work, so if there is a better way, then by all means go for it. I just don't know what that way is, sorry :(

patrick91 02-28-2010 05:05 PM

1 Attachment(s)
Thnx i will install this soon! but how do you get your postbit look like that???


All times are GMT. The time now is 08:06 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.01207 seconds
  • Memory Usage 1,740KB
  • 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
  • (7)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete