vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - [OzzModz] Post Body Background For Specific Users (https://vborg.vbsupport.ru/showthread.php?t=301592)

ozzy47 11-17-2013 12:59 AM

Link to site please.

Harpo 11-17-2013 01:07 AM

PM sent.

ozzy47 11-17-2013 01:35 AM

Sorted on the users site. For future reference, I changed repeat; to background-repeat:repeat-x;

Harpo 11-17-2013 03:22 AM

Thanks. One more question.. I added the ID #s including the admin. But the background image shows itself to a few registered users. The rest is default.. with no bg image. Some registered members have the New bg and some don't. Weird.

Any thoughts? Maybe I need to update in maintenance?

ozzy47 11-17-2013 03:33 AM

I dunno, if they are not the userid's you set, There is no reason for the BG to show on them.

Harpo 11-17-2013 05:32 AM

Quote:

Originally Posted by ozzy47 (Post 2461319)
I dunno, if they are not the userid's you set, There is no reason for the BG to show on them.

Quote:

<vb:if condition="in_array($post['userid'], array(2,5,6,7,))">
I want all usergroups to have the same BG. staff & Members alike. So i added them to the ID sections. I'm admin ID-6 my postbit is still on default.

I notice this only effects the old members, new members have no problems.

If anyone else is coming across this please let me know.

Great Mod.

ozzy47 11-17-2013 09:56 AM

That is because this is for users, not usergroups. :) So it is showing for those users. But you can change:

Code:

<vb:if condition="in_array($post['userid'], array(2,5,6,7,))">
To this:
Code:

<vb:if condition="is_member_of($post, 2,5,6,7)">

Harpo 11-18-2013 01:36 AM

All done Ozzy. :D thank you.

ozzy47 11-18-2013 01:56 AM

Not a problem, glad to help. :)

3lou 55 12-08-2013 03:58 PM

I had a question, is it also possible to change the background color for some users, so for by example user id 1, background color white, and user id 2, background color white.

ozzy47 12-08-2013 05:34 PM

Not at this time, sorry. But I do intend on doing a different version, which may allow that.

3lou 55 12-08-2013 05:42 PM

I have actually found out a way to do it, still thanks ! :)

<vb:if condition="in_array($post['userid'], array(X,X,X))">
<div class="postbody_specific_user">

<vb:elseif condition="in_array($post['userid'], array(X,X,X))" />
<div class="postbody_specific_user">

<vb:else />
<div class="postbody">
</vb:if>

ozzy47 12-08-2013 05:52 PM

Ahhh good deal, glad you got it the way you want. :)


All times are GMT. The time now is 02:48 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.01041 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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