Welcome to Our Community

Registration on our forums are now open for some days! Feel free to sign up today.

Promotion Based Images for User Titles

Discussion in 'XenForo Tips & Guides' started by samueldupont, Sep 26, 2016.

Tags:
  1. samueldupont

    samueldupontRegistered
    Registered

    Joined:
    Jun 11, 2016
    Messages:
    14
    Likes Received:
    3
    This example will apply a custom image for usergroup if a user is valid and has between 0-100 posts. Use this as a template to create as many groups as you want. Just remember that for it to apply that the Display Styling Property must be the highest of all usergroups a user is in.

    1. Create new User Group:
      @ Admin Control Panel -> Users -> User Groups
      • Title: Less than 100 Posts
      • Display Styling Priority: 3
      • User Title Override: 'X' - Use the following user title:
        Code:
        <span class="title100"><span>
    2. Create new User Group Promotion:
      @ Admin Control Panel -> Users -> User Groups -> User Group Promotions
      • Title: Less than 100 posts
      • Add user to user groups: 'X' - Less than 100 Posts
      • Privileges and Status: 'X' - User state is valid
      • Content and Achievements:
        User has posted at least X messages: 0
        User has posted no more than X messages: 100

    3. Add custom styling
      @ Edit Template: EXTRA.css

      (you may use this placeholder image until you verify everything works then simply replace with a path/to/your.image.png)
      Code:
      /* title for less than 100 posts */
      .title100 {
        background-image: url("http://www.bbcod.es/title100.png");
        background-repeat: no-repeat;
        display: block;
        height: 15px;
      } 

    ___________________________________________
    TO TEST / PUSH PROMOTIONS
    (cron jobs are as the name intends...they are jobs that run at specific intervals, doing this will let you see your results without waiting)
    ACP -> Tools -> Cron Entries
    User Group Promotions - controls - run

    You changes will be applied and if done correctly this will be pushed to all applicable members.
     

Share This Page

  • About Us

    Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.
  • Like us on Facebook

  • Buy us a beer!

    The management works very hard to make sure the community is running the best software, best designs, and all the other bells and whistles. Care to buy us a beer? We'd really appreciate it!

    Donate to us!