Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Usergroup Background in postbit Legacy Details »»
Usergroup Background in postbit Legacy
Version: 1.00, by Dr.osamA Dr.osamA is offline
Developer Last Online: Oct 2015 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.1 Rating:
Released: 02-04-2010 Last Update: Never Installs: 23
Template Edits
Code Changes  
No support by the author.

Hi all !!

It's just the idea of making the background of the responses and posts a usergroup in postbit Legacy

Demo

see pic in attachment

lets do it and try

Style Manager -> template postbit.css find

PHP Code:
.postbitlegacy .postbody, .eventbit .eventdetails .eventbody {
    
margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width};
    
border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border};
    
background: {vb:stylevar postbit_background};
    
_background-imagenone;
    
padding-bottom1em;

add ander it

PHP Code:
/* Dr.osamA - alra7ba editing postbit */
.postbitlegacy .postbody_admin, .eventbit .eventdetails .eventbody {
    
margin-{vb:stylevar left}: {vb:stylevar postbitlegacy_userinfo_width};
    
border-{vb:stylevar left}: {vb:stylevar postbit_userinfo_border};
    
backgroundurl(http://www.xxxx.net/forum/xxx/Back-Admin-1.gif) repeat;
    
_background-imagenone;
    
padding-bottom1em;

chenge the link to your image URL
PHP Code:
http://www.xxxx.net/forum/xxx/Back-Admin-1.gif 
then save work

in template postbit_legacy find


PHP Code:
<div class="postbody"
replece with

PHP Code:
<vb:if condition="is_member_of($post, #)"><div class="postbody_admin">
<
vb:else />
<
div class="postbody">
</
vb:if> 
the red # is your usergroup's ID

then save work

it is all

you can use this image
http://www.alra7ba.net/vb/alra7ba/Back-Admin-1.gif

or this one
http://www.alra7ba.net/vb/alra7ba/Back-Admin-2.gif

or any image you want

PS: this working in VB 4.0.1 too

Demo

Enjoy

Screenshots

File Type: jpg adm.jpg (68.9 KB, 0 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 02-13-2010, 03:08 AM
n_only n_only is offline
 
Join Date: Oct 2003
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

بارك الله فيك

god bless you brother
Reply With Quote
  #13  
Old 04-11-2010, 11:47 AM
vitoreis vitoreis is offline
 
Join Date: Nov 2005
Location: Portugal
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work! Thanks for sharing
Reply With Quote
  #14  
Old 04-14-2010, 08:26 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Welcome vitoreis
Reply With Quote
  #15  
Old 04-14-2010, 09:19 AM
ToNetU ToNetU is offline
 
Join Date: Mar 2003
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great work, tagged for now...
Reply With Quote
  #16  
Old 04-14-2010, 08:59 PM
JohnMcClane JohnMcClane is offline
 
Join Date: Jan 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to have this only for members when it's their birthday? Would be amazing if so!
Reply With Quote
  #17  
Old 04-25-2010, 11:58 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JohnMcClane View Post
Is it possible to have this only for members when it's their birthday? Would be amazing if so!
hi
i well try to do this for you when i have sometime man

you are welcome
Reply With Quote
  #18  
Old 06-27-2010, 11:40 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know this thread hasn't been posted in for a little while however I was wondering if someone was able to help me.

I have a sports website and what I am trying to do is have a profile field where people select their favorite sport and when they select that sport it loads a background for them.

Can this mod be edited to read profile fields instead of usergroup eg: If I select football as my favorite sport it turns around and puts a football background in my postbit.

Is anyone able to help?
Reply With Quote
  #19  
Old 07-11-2010, 12:00 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi merk_aus

can you more explain plzzz
Reply With Quote
  #20  
Old 07-11-2010, 06:21 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will try:
I want to have custom profile fields where my members select their favorite sports. Their options will be like:
- Football
- Golf
- Baseball
- Motorsport

Is there a way to set this up so if I select Motorsport from that custom profile field that this mod/template that you have created will then put a MOTORSPORT background (that I will create) as their postbit background for it.

So if you came to my site and put GOLF as your favorite sport then the GOLF background that I have created will display in your postbit.
Reply With Quote
  #21  
Old 08-10-2010, 04:53 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by merk_aus View Post
I will try:
I want to have custom profile fields where my members select their favorite sports. Their options will be like:
- Football
- Golf
- Baseball
- Motorsport

Is there a way to set this up so if I select Motorsport from that custom profile field that this mod/template that you have created will then put a MOTORSPORT background (that I will create) as their postbit background for it.

So if you came to my site and put GOLF as your favorite sport then the GOLF background that I have created will display in your postbit.
i will try to do this for you bro

give me some time

brb
Reply With Quote
Reply


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 06:20 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.07554 seconds
  • Memory Usage 2,346KB
  • Queries Executed 27 (?)
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
  • (5)bbcode_php
  • (2)bbcode_quote
  • (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
  • (2)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
  • (1)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete