vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Style and Graphics Requests (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=226)
-   -   Postbit Background (https://vborg.vbsupport.ru/showthread.php?t=256250)

basilrath 12-31-2010 10:02 AM

Postbit Background
 
Has anyone added an image to posts such as the transparent png in the image below ....

https://vborg.vbsupport.ru/external/2010/12/2.jpg

BirdOPrey5 12-31-2010 03:27 PM

At one time I had an "ADMIN" watermark behind my own posts but have since taken it down... It was easy enough- edit the postbit/postbit_legacy and find the first <table> or <td> above $post[message] and just add a background image to the table via HTML.

basilrath 01-02-2011 09:12 PM

Nice one Joe

Lynne 01-02-2011 09:30 PM

Could probably just do it via CSS:
HTML Code:

.postbit .postrow {background: xxxxxx;}
http://www.w3schools.com/css/css_background.asp

Nocturnal222 02-17-2011 06:29 AM

how about per usergroup?
I cannot find the modification here anymore.

Lynne 02-17-2011 05:16 PM

A different background based on the usergroup? I don't know of one, but that doesn't mean it doesn't exist. Try a search on "usergroup" in "all mods" "titles only" and see what comes up.

TheLastSuperman 02-17-2011 08:29 PM

That mod does exist however it's for the userinfo background not the actual post message background per say.

You could simply add in more css definitions based on that one then within the template use something along the lines of:

Code:

<div class="<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">CLASS FOR THESE GROUPS<vb:else />THE NORMAL CLASS</vb:if>">
Code Code Code
</div>

So basically your wrapping the css definition name within the class="css definition name" in a template conditional to show the background associated with that class IF the user is in one of those groups OTHERWISE it shows the normal way ;).

Edit: and Basil do us a favor and upload attachments here not on vbulletin.com then posted here as some will help however if they are not logged in to vb.com and here too at the same time then they can't see the image :p.


All times are GMT. The time now is 11:43 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.01061 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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