Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
User-select Forum Background Details »»
User-select Forum Background
Version: 1.00, by ViciousCode ViciousCode is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.x Rating:
Released: 01-27-2009 Last Update: Never Installs: 10
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

Give the user an option to use a different background for the forum.

This mod works with all versions of 3.5 to 3.8

1. first remove the css customization for the body part of the css (remove only the body background css setting)

2. make a new profile field - single selection menu
with the following options

Name - Background Pattern
Description - Select your background Pattern for the forums
Set Default - Yes, but No First Blank Option
Field Required - Yes, registration and profile updating
Field Editable by User - Yes
Private Field - No
Field Searchable on Members List - No
Show on Members List - No

Options
Light
Dark
Orange
Blue
Brown
Black
Red
Green
Winter
Lepard
Punk
Script
Pink-Flower
Pink-Hearts
Green-Stars
Green-Flowers
Music-Dark
Music-Light

3. add the following code to the end of headerinclude template
Code:
<if condition="$bbuserinfo['fieldX']">
<body style="background: #1d2e40 url(images/Pattern-$bbuserinfo[fieldX].gif) top left fixed;">
<else />
<body style="background: #1d2e40 url(images/Pattern-Blue.gif) top left fixed;">
</if>
and make sure to change the fieldX to the actual field number (example: field5)

4. upload the patterns to the forum root/images folder

thats it and youre done

Screenshot

Show Your Support

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

Comments
  #12  
Old 01-30-2009, 05:15 PM
GlamRockTalk's Avatar
GlamRockTalk GlamRockTalk is offline
 
Join Date: Nov 2008
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting. No "preview" window to see what the backgrounds look like make it a little tedious for the users. Can someone create an image with a little 'piece' of each background to show the members?

I like the idea though :up:
Reply With Quote
  #13  
Old 01-30-2009, 06:56 PM
ViciousCode ViciousCode is offline
 
Join Date: Oct 2008
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pattern screenshot has been added
Reply With Quote
  #14  
Old 01-31-2009, 12:02 AM
GlamRockTalk's Avatar
GlamRockTalk GlamRockTalk is offline
 
Join Date: Nov 2008
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ViciousCode!

I'll try and add this in the near future to one of my sites. :up:
Reply With Quote
  #15  
Old 01-31-2009, 02:50 AM
KevinL KevinL is offline
 
Join Date: Apr 2005
Posts: 1,287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

actually a pretty cool idea!
Reply With Quote
  #16  
Old 02-01-2009, 02:37 PM
brianoakes brianoakes is offline
 
Join Date: Dec 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So what am I doing wrong?

I don't see the list of patterns has a drop list? I just see a empty text box.

Please point out the glaring obvious thing I am missing. Thanks!
Reply With Quote
  #17  
Old 02-01-2009, 02:39 PM
brianoakes brianoakes is offline
 
Join Date: Dec 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind, I'm an idiot. I figured it out.
Reply With Quote
  #18  
Old 02-01-2009, 09:06 PM
ViciousCode ViciousCode is offline
 
Join Date: Oct 2008
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can also add your own patterns, just add it to the field

then call the new pattern gif this for example, if you add

Black-Box to user profile field, you will have to name the pattern this way

"Pattern-Black-Box.gif" and upload it to the same directory as the others
Reply With Quote
  #19  
Old 12-22-2011, 03:46 PM
temsamane temsamane is offline
 
Join Date: Sep 2010
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i want this one for vb 4
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 06:18 PM.


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.04225 seconds
  • Memory Usage 2,274KB
  • 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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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