Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Custom User Style Details »
Custom User Style
Mod Version: 1.00, by da420 (Member) da420 is offline
Developer Last Online: Apr 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.4 Rating: (2 votes - 5.00 average) Installs: 15
Released: 08 Feb 2007 Last Update: Never Downloads: 113
Not Supported  

Custom User Style 1.02

Description.

Allow your users to create their own custom style to use on the forum using CSS, which can be generated using a built in generator.

This is just something I whipped up in my spare time just playing around... :P If you can use it, then, great... I will probably be adding more to it as time goes on, such as usergroup permissions, and maybe I'll try and make it a bit more user friendly, but it's as it stands now.

Oh, and I will definitely cache the template... once I figure out how...

DEMO: http://www.mindifidoaj.com/dev/forum/misc.php?do=gencss

Details:

1 product upload
1 template edit (there may be the need to do more customization if you have custom CSS)
1 new profile field

Install:

1. Product Upload:

ACP > Product Manager > Add/Import Product > Upload product-userstyle.xml with over write set to 'Yes.'

2. Create User Options:

ACP > User Profile Fields > Add New User Profile Field

Add a Multiple-Line Text Box...

Title: Custom Style

Description: Design your own color scheme using CSS, use the <a href="misc.php?do=gencss" rel="nofollow">CSS Generator</a> to aid you in creating this code.

Increase the max length to your liking, you may want it to be longer for them to be able to include background images.

I put 75 for the field length, and 20 for the text area heighth.

Field Required --> NO
Field Edited by User --> YES
Private Field --> YES
Field Searchable on Members List --> NO

Display Page: 'Options:Other'


3. Template Edit:

In headinclude...

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

*** Replace 'fieldxx' with the field id of the custom profile field we created.

Now have your users, if they wish, go to edit options in user cp, and use the CSS generator to customize thier style. The default that is in the text boxes is default vBulletin.

*** You may have to edit the code if you require custom CSS definitions.

update history:
*1.0.2 - fixed a phrase

Thank you and Enjoy.

If you use this please click Install!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[Release] Permanent + Custom User Titles For Staff (or any other user you wish) kitzzy vBulletin 2.x Template Modifications 30 15 Nov 2007 18:32
[Tweak] Style ID user is using with link to style. Brad vBulletin 2.x Template Modifications 5 02 Dec 2002 15:34

Comments
  #2  
Old 08 Feb 2007, 09:59
da420 da420 is offline
 
Join Date: Nov 2005
Reserved...


My apologies, demo url has been updated...
Reply With Quote
  #3  
Old 08 Feb 2007, 10:10
Capt. GannA Capt. GannA is offline
 
Join Date: Apr 2004
Interesting. I'm gonna give this a try in a while.
Reply With Quote
  #4  
Old 08 Feb 2007, 13:40
Cyricx Cyricx is offline
 
Join Date: Sep 2002
What a brilliant idea

I'll definately have to test this out!
__________________
Cyricx (Chris)
Reply With Quote
  #5  
Old 08 Feb 2007, 13:41
UncoderMom's Avatar
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Real name: Lisa
Good God! *insert fainting smilie*
Reply With Quote
  #6  
Old 08 Feb 2007, 14:18
MThornback's Avatar
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
I've been asking for this for AGES, your brilliant!
Reply With Quote
  #7  
Old 08 Feb 2007, 14:29
Lizard King's Avatar
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Real name: Mert
How do you prevent people to enter malicius scripts ?
__________________
Mert G÷kšeimam / Crawlability Inc.

DepKaš | vBSEO 3.3.0 - vBulletin Search Engine Optimisation
Reply With Quote
  #8  
Old 08 Feb 2007, 17:15
MThornback's Avatar
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
That occurred to me today too....but if its pulling info from the user profile fields and that field is part of the if condition, it can only call from that persons profile thats logged in the only thing I could think to change is making a member check part of the conditional.
Reply With Quote
  #9  
Old 08 Feb 2007, 19:06
da420 da420 is offline
 
Join Date: Nov 2005
Originally Posted by Lizard King View Post
How do you prevent people to enter malicius scripts ?
The only person that will be using this custom CSS is the user that set it in their profile, nobody else, and I can't imagine why they would want to use malicious scripts on themselves. But, I could be missing something. Are there scripts that I am not aware of that I should consider?

Thank you for your comments everyone.
Reply With Quote
  #10  
Old 08 Feb 2007, 19:19
da420 da420 is offline
 
Join Date: Nov 2005
I tried entering in a meta redirect into the mix, also tried to embed a video, and no go... so Im doubting this can be used maliciously.

vB already does a good job at preventing malicious scripts from being entered in as profile fields as the meta redirect I put in when I looked at the page source shown this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So I think there is nothing to worry about here, again, unless I am missing something...

Last edited by da420; 08 Feb 2007 at 19:23.
Reply With Quote
  #11  
Old 09 Feb 2007, 06:51
bchertov's Avatar
bchertov bchertov is offline
 
Join Date: Dec 2004
Location: Sonoma County, CA
Real name: Barry
Excellent idea! It really needs a color picker for each of the colors. Maybe you can just steal/leverage the code from the vb acp color style sheet picker.
Reply With Quote
  #12  
Old 09 Feb 2007, 10:05
da420 da420 is offline
 
Join Date: Nov 2005
^ yeah i might try something like that, or maybe try implement something else.

I have also updated the zip file because I noticed I messed up a phrase. Everyone should update.
Reply With Quote
  #13  
Old 11 Feb 2007, 03:10
Distance's Avatar
Distance Distance is offline
 
Join Date: Jul 2006
Real name: Josh
Just a suggestion but the only way you are going to stop them from entering malicious coding.. is by not letting them type it in

You should intergrate something where it changes it for them.. ?
__________________
My software never has bugs. It just develops random features.

Distance

Reply With Quote
  #14  
Old 11 Feb 2007, 03:17
da420 da420 is offline
 
Join Date: Nov 2005
It was already discussed before, default vB already does a well enough job by not allowing HTML to be posted in profile fields.

Originally Posted by Distance
You should intergrate something where it changes it for them.. ?
Changes what exactly?
Reply With Quote
  #15  
Old 11 Feb 2007, 03:29
Caerydd's Avatar
Caerydd Caerydd is offline
 
Join Date: Mar 2006
Location: UK
This looks fantastic!

I think Distance meant something like a button at the end of the generator 'use this code!' where vb would then automatically insert the generated code into their user profile field?

I would like some easy usergroup settings/permissions if possible. I know I can do it with conditionals, but I really don't like hand coding them into my templates.
__________________

http://www.aelyria.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 10:21.

Layout Options | Width: Wide Color: