Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
[OzzModz] Different Post Body Background For Admin And Mods Details »»
[OzzModz] Different Post Body Background For Admin And Mods
Version: 1.0.0, by ozzy47 ozzy47 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 09-16-2013 Last Update: 10-09-2013 Installs: 15
Template Edits
 
No support by the author.

Another mod brought to you by,


Here is a small modification you can do to have a different background in posts, set to users in your Admin and moderator groups, in postbit legacy.

Meaning, you can have a background in the posts for your admins, and a different one for your mods.

To get this to work, follow the instructions in the attached Different Post Body Background For Admin And Mods.txt file

I don't have any screenshots at the moment, I'll try to get some. Or if some of you use this mod, please share a screenshot of what you have done.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 09-29-2013, 10:31 AM
Barbara1 Barbara1 is offline
 
Join Date: Jun 2010
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is a nice hack which i'll setup and use.

a question:
i already have a background (an extremely small tiled gif i'm using)
1) if i use a transparent image with your hack, will this be as a layer above the theme's background,
2) or is it going to replace my existing theme's background for the usergroup's posts i'll assign it to?

crossing my fingers for the "1". but if its "2" then i guess i'll combine both as one image (photoshop) and use that with your hack. so its no so much of a problem
Reply With Quote
  #43  
Old 09-29-2013, 10:33 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1) I don't know, best bet is to test it out and see what the results are.
2) It will replace the background, with what you assign.
Reply With Quote
  #44  
Old 09-29-2013, 10:39 AM
Barbara1 Barbara1 is offline
 
Join Date: Jun 2010
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you, i going to try it right now
Reply With Quote
  #45  
Old 09-29-2013, 11:09 AM
Barbara1 Barbara1 is offline
 
Join Date: Jun 2010
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[S]an error at the second part where i replace the
Code:
<div class="postbody">
when i am replacing and i press the "save" button, i am getting
"Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3965"

and a vbulletin message
"The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish."

is there a solution maybe?[/S]
forgot to replace th X
Reply With Quote
  #46  
Old 09-29-2013, 11:15 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah it should work once you replace the X and X with your admin mod groups
Reply With Quote
  #47  
Old 09-29-2013, 11:21 AM
Barbara1 Barbara1 is offline
 
Join Date: Jun 2010
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
                <!-- ADMIN GROUPS -->
        <
vb:if condition="is_member_of($post, 6)">
                        <
div class="postbody_admin">
                <!-- 
MODERATOR GROUPS -->               
        <
vb:elseif condition="is_member_of($post, 49,)" />
                        <
div class="postbody_mods">
        <
vb:else />
                        <
div class="postbody">
        </
vb:if> 
i am getting the same error again when i press "save"
the usergroup 49 is SySoP but i dont think that matters
Reply With Quote
  #48  
Old 09-29-2013, 11:25 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It could be this:
Code:
<vb:elseif condition="is_member_of($post, 49,)" />
Should be:
Code:
<vb:elseif condition="is_member_of($post, 49)" />
Reply With Quote
  #49  
Old 09-29-2013, 11:29 AM
Barbara1 Barbara1 is offline
 
Join Date: Jun 2010
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes that was it. thank you
Reply With Quote
  #50  
Old 09-29-2013, 11:31 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not a problem, don't forget to mark as installed if you are using the mod.
Reply With Quote
  #51  
Old 09-30-2013, 02:28 AM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nothing is showing up, but I know the image address is correct because I tested it.

Does the image have to be a certain size? Ours isn't big, but just wondering if that has anything to do with it. The image were using is below.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08392 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete