No announcement yet.

Setting the Default Profile Style.


  • Setting the Default Profile Style.

    Note: This was promoted from the following thread: Which CSS Please

    The issue is that we want the default user profile to match the customer site, not the vBulletin default install. That means we have to map the stylevars to the new profile variables. We need a total of two sets of text/background colors that will have enough contrast to be visible, and four sets of text/link/background colors. There aren't that many combinations that have guaranteed contrast.

    If the site style keeps the current lightish colors lightish, and the darkish colors darkish, then all will be fine. If the colors are all reversed,so the current lightish colors become darkish and the current darkish colors become lightish, all will be well. But if some of the darkish colors become lightish, and some of the lightish colors stay lightish then there could be a problem.

    The long-term solution is that as we add the "theme" capability we will add the ability to customize the default theme. IN 408 we put in the back-end code to process that default style but not the front-end code that allows the admin to set the default. The ability to set this will be in v409.

    So this problem can be fixed with an SQL query. You can do it either in admincp > maintenance > execute sql query, in phpmyadmin, or any other sql query tool you have. This has not been through QA, so this is unsupported and must be done carefully.

    1. Go to your own profile and customize it to look like the default.
    2. Get your userid. It very likely is one but isn't guaranteed.
    3. Execute the query
      UPDATE customprofile SET userid = -1 WHERE userid = ;
      So for example if on your member profile page the url is something like member.php?12-fred, and your table prefix is vbf_, your query would be
      UPDATE vbf_customprofile SET userid = -1 WHERE userid = 12;

      and any users who haven't customized their profile will get the new default.
    4. If you don't like the results, you can remove the profile by executing
      DELETE FROM customprofile WHERE userid = -1
    5. Ifyou execute step 3 and want to change again, please execute the query in step 4 to delete the saved default profile before you save a new one.

    Again, in 409 this won't be necessary.

    • brandondrury
      brandondrury commented
      Editing a comment
      I'm running vB 4.1.1 on my test server. Everything is good to go except for the profile css. Are there any new updates I'm missing?


    • thehawkVB
      thehawkVB commented
      Editing a comment
      Originally posted by Grimsqueaker
      lines 215 & 216 of profilecustomize.php are as below by default
      This worked for me, I only have one style, no dark/light styles worries.

      Thanks Grimsqueaker!

    • The Vegan Forum
      The Vegan Forum commented
      Editing a comment
      Until we can set a default profile Style per Style, or have a solution which makes the profile follow the font/color/background (etc) parameters for the chosen Style, this feature is far from perfect.
    Posting comments is disabled.

About the Author


Edwin Brown Find out more about Edwin Brown

Article Tags


advanced (5) android (2) api (29) array (17) beginner (17) blog (4) calendar (2) caution (1) cms (2) forum (3) forums (4) Intermediate (7) iphone (3) mapi (30) method (1) methods (10) mobile (34) moderation (1) posts (1) search (1) security (2) style (2) threads (4) vb5howto (5) vBulletin (5)

Latest Articles


  • Managing CMS Section and Content
    by Don Kuramura
    Here's a quick Visual Guide on how Manage Sections in the new CMS.

    1. Editing a Section: If you have permissions to manage a Section, as you hover over the Section title, a pencil icon will display.

    After clicking the pencil icon, you will be taken to the Section Edit page. Here's what you will see:

    2. Section Name:
    Enter the Section Name
    3. SEO URL Alias: This is the SEO Friendly URL. By default, if this is blank, the system will automatically copy the section title.
    4. Section Layout: For each section you can define an individual section layout.
    Tue 11th Mar '14, 3:04pm
  • How to Create a New Article
    by Don Kuramura
    Here's a quick visual guide on how to create a new article with the CMS.

    1. Create New Article Button: Navigate to the section you want the article to be published in. Click on the “Create a New Article” button. This will open an article form.

    2. Article Title: In the "Add/Edit Article" screen, enter the title of your article in the “Title” textbox.
    Tue 11th Mar '14, 3:04pm
  • Promoting Articles from the Forums
    by Don Kuramura
    One of the innovative new features on vBulletin 4.0 Publishing Suite is the cross-publishing "Promote to Article" functionality. In the spirit of promoting content discovery, we wanted to create features that will allow content to flow between Forums, Blogs, and Articles. For example, there might be a really popular post in the forums, but unfortunately it is buried inside page 13 of a thread. We will now have an option (if you have permissions) to “promote” a forum (or blog) post as a new artic...
    Tue 11th Mar '14, 3:04pm
  • Welcome to the new CMS. Read me first.
    by Don Kuramura
    Welcome to the new CMS. Here's a quick guide of the different areas of this page.

    1. Section Navigation Widget. This widget allows you to go to different sections. The "plus icon" means that this section has sub-sections. Clicking on the "plus icon" will display the sub-sections. ...
    Tue 11th Mar '14, 3:04pm
  • Recovering a hacked vBulletin Site
    by TheLastSuperman

    Having your site hacked is something no owner wants to experience due to the fact it takes quite a bit of effort to fix, often times requiring payment to a experienced third-party when a owner feels inundated by the sheer amount of work required to troubleshoot and remedy the situation.
    • Site has been defaced - This is the most blatant form of hacking where your sites pages have been replaced with a very disruptive and sometimes rude message from the hacker themselves.
    Tue 12th Jun '12, 2:37am
  • Issues After Upgrading
    by TheLastSuperman
    If your running a completely default forum upgrading is a very simple process. Many sites however run third-party add-ons and even use a custom style therefor when things change between older and newer
    Thu 24th May '12, 1:02pm