1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Editing Prefixes

Discussion in 'XenForo Questions and Support' started by Morgain, Feb 7, 2013.

  1. Morgain

    Morgain Well-Known Member

    I have a default prefix on each Category to help visually identify it.
    Moving nodes around between 2 categories messed up the default prefixes.

    Most of the threads which failed to get prefixes while things were in flux don't matter. But a few that were started in this period will be long runners so I'd like them to have the proper prefix.
    I can't edit the prefix in Thread Tools so is the on ly option the dreaded database route?

    Secondly how would I get a prefix with a lime green background (not one of the colours on offer on the displayed list ) using the blank css box?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Screen shot 2013-02-07 at 5.20.53 PM.png

    When editing the prefix, specify a custom class name:

    Screen shot 2013-02-07 at 5.22.22 PM.png

    Then define the class in:

    Admin CP -> Appearance -> Templates -> EXTRA.css

    Code:
    .prefixLime
    {
    	color: black;
    	background-color: #BFFF00;
    	border-color: #BFFF00;
    }
    
     
    Shelley and Morgain like this.
  3. Morgain

    Morgain Well-Known Member

    The second advice worked and also something clicked at alst so I finally understand classes - about time!

    But when I click Thread Tools all I can do is make it Sticky or Open. Nothing about Prefixes.
    I tried clicking the moderation box but nothing happened.
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The prefix is under Edit Thread
     
  5. Morgain

    Morgain Well-Known Member

    prefixes.png

    Where? The prefix shows (red arrow in pic) but it's not clickable.
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    In the Title field in your picture.
     
  7. Luis

    Luis Well-Known Member

    Imagen1.png

    The prefixes must be allowed in this forum.

    Edit: Sorry Jake.
     
    Morgain and Jake Bunce like this.
  8. Morgain

    Morgain Well-Known Member

    Luis thank you so much. Have plodded through and got them all to show. It really helps identify which sector athread comes from in the Whats New/ Recent lists which is what my members constantly use to check in.

    prefix list.png

    It also shows in the thread page title which again helps people orient to where they are
    especially as the same coloured boxes appear in my side menu on every page.
    Prefix in title.png

    I do like to know where I am!
     
    Shelley likes this.
  9. Morgain

    Morgain Well-Known Member

    OK my clever mentors ... any chance of making a Prefix appear in a template next to a description of its Category?
    So I can make a mini menu in a template like this:

    prefix menu.png

    This is a completely new template of my own.
     
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  11. kankan

    kankan Active Member

    Greeting All,

    Anyone know where to fix background color and CSS block in this screen ?

    index.png

    Found those line in inline_mod.css

    Code:
    .inlineCtrlGroup
    {
        background: rgb(150,150,150) url('@imagePath/xenforo/gradients/thread-modctrls-30px-dark.png') repeat-x top;
        color: white;
        font-size: 11px;
    }
    tried to change background-color:black for ex, nothing happens

    Thank you

    Nicolas
     

Share This Page