PDA

View Full Version : Mini Mods - User-select Forum Background


ViciousCode
01-27-2009, 10:00 PM
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
<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/images/973338Pattern-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

GlamRockTalk
01-30-2009, 05:15 PM
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:

ViciousCode
01-30-2009, 06:56 PM
Pattern screenshot has been added :)

GlamRockTalk
01-31-2009, 12:02 AM
Thanks ViciousCode! :D

I'll try and add this in the near future to one of my sites. :up:

KevinL
01-31-2009, 02:50 AM
actually a pretty cool idea!

brianoakes
02-01-2009, 02:37 PM
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!

brianoakes
02-01-2009, 02:39 PM
Never mind, I'm an idiot. :) I figured it out.

ViciousCode
02-01-2009, 09:06 PM
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

temsamane
12-22-2011, 03:46 PM
i want this one for vb 4