![]() |
|
Mod Options |
![]() |
|||||||||||||||||
This modification is in the archives.
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:
Replace with:
*** 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
No members have liked this post.
|
![]() |
||||
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 17:32 |
[Tweak] Style ID user is using with link to style. | Brad | vBulletin 2.x Template Modifications | 5 | 02 Dec 2002 14:34 |
Comments |
#2
|
|||
|
|||
Reserved...
My apologies, demo url has been updated... No members have liked this post.
|
#3
|
|||
|
|||
Interesting. I'm gonna give this a try in a while.
No members have liked this post.
|
#4
|
|||
|
|||
What a brilliant idea
![]() I'll definately have to test this out! ![]()
__________________
Cyricx (Chris) No members have liked this post.
|
#5
|
||||
|
||||
Good God! *insert fainting smilie*
No members have liked this post.
|
#6
|
||||
|
||||
I've been asking for this for AGES, your brilliant!
![]() No members have liked this post.
|
#7
|
||||
|
||||
How do you prevent people to enter malicius scripts ?
__________________
Mert Gökçeimam / Crawlability Inc. DepKaç | vBSEO 3.3.0 - vBulletin Search Engine Optimisation No members have liked this post.
|
#8
|
||||
|
||||
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.
No members have liked this post.
|
#9
|
|||
|
|||
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. No members have liked this post.
|
#10
|
||||
|
||||
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:
So I think there is nothing to worry about here, again, unless I am missing something... No members have liked this post.
Last edited by da420; 08 Feb 2007 at 18:23. |
#11
|
||||
|
||||
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.
No members have liked this post.
|
#12
|
|||
|
|||
^ 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. No members have liked this post.
|
#13
|
||||
|
||||
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 ![]() No members have liked this post.
|
#14
|
|||
|
|||
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
Changes what exactly?
No members have liked this post.
|
#15
|
||||
|
||||
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. No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 18:48.