vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - User-select Forum Background (https://vborg.vbsupport.ru/showthread.php?t=203374)

ViciousCode 01-27-2009 10:00 PM

User-select Forum Background
 
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
http://solidsyn.net/uploadzone/image...attern-Set.jpg

apiasto 01-28-2009 12:31 PM

looks like a good idea,any screenies

ViciousCode 01-28-2009 12:33 PM

is it really necessary?

its like the vbulletin.org color thing but slightly altered

just give it a try and you will see :)

GlamRockTalk 01-28-2009 01:56 PM

Demo available anywhere?

ViciousCode 01-28-2009 02:13 PM

not yet.

i will submit some screenshots soon.

princeedward 01-29-2009 02:39 PM

do you have any demo site pls... ;)

edermix 01-29-2009 09:51 PM

Demo pls

GlamRockTalk 01-29-2009 09:55 PM

I'm waiting for a demo of this because I'd love to have the mod!

To the two of you that installed it, any feedback?

apiasto 01-29-2009 11:48 PM

i am too,this will save time instaling diferent skins

ViciousCode 01-30-2009 02:15 PM

here is the demo

http://solidsyn.net/vb_forum/index.php

user: DemoUser
Pass: 123456

to change the background, go to the UserCP > Edit Your Details (located on the top)

Note: This is only a demo-forum. only used to show the demo of this mod


All times are GMT. The time now is 12:28 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.01082 seconds
  • Memory Usage 1,726KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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