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)

DeadRabbit 07-17-2010 02:36 PM

can i add two or more usergroup ids?

DeadRabbit 07-17-2010 02:37 PM

Quote:

Originally Posted by Fastbird (Post 1962835)
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.

thanks, i havent read this one. lol :D

merk_aus 07-26-2010 09:05 AM

Is it possible to have this linked to custom user fields instead of usergroups?

eg: I want people to select their favorite sporting team and have a background of that sporting team display.

midnz 07-30-2010 09:35 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.

Quote:

Originally Posted by Fastbird (Post 1962869)
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 :(

There is an easier way using vB 4.0.5 for adding a single image to the postbit background. I don't know if it works on postbit_legacy because I haven't tried it. I'm wanting different backgrounds per usergroup which I'm struggling to achieve despite the instructions posted on this thread :confused:

http://img340.imageshack.us/img340/9...background.jpg

midnz 07-31-2010 12:19 AM

Uninstalled until clearer instructions are provided for separate bg postbit images for multiple usergroups or my knowledge increases to where my forum isn't being screwed up with each attempt.
Moving on....

Bouncer222 10-03-2010 08:47 PM

is this still working for 4.0.7??

zonaenlinea 10-07-2010 11:58 AM

for 4.0.7

Prohibit 10-26-2010 06:59 PM

Quote:

Originally Posted by zonaenlinea (Post 2107653)
for 4.0.7

???????????????

:confused:

Prohibit 10-26-2010 07:53 PM

1 Attachment(s)
Well, the background is working.

But it has thrown my post bit kind of out of whack.


Okay, got it going. Thank you for the mod! :)

murekhalir 10-30-2010 09:43 PM

sweeet gotta try this now.


All times are GMT. The time now is 01:44 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.01170 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)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