DragonByte Tech | vBulletin Mods & Addons - Powered by vBulletin





DragonByte Tech Proudly Hosted By Hivelocity.net
Custom Fitted Forum Hosting from Hivelocity

User Tag List

Results 1 to 7 of 7

Thread: Add Custom user title change


Forum: vBShop Lite Support

Questions & Answers for vBShop.
Click here to buy!

  1. #1
    Member
    Level 0 (0 Loyalty Points)

    Total Downloaded
    0
    Gil
    236 (0 Banked)
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Jul 2010
    Posts
    44
    Points
    236
    Credits
    332
    Rep Power
    0

    Default Add Custom user title change

    Hi, how do I add custom user title changes? Say I have a new effect called "Rainbow", how do I add it to User title changes for users to select?

  2. #2
    Member
    Level 4 (2,742 Loyalty Points)
    xandyx's Avatar
    Total Downloaded
    0
    Gil
    268 (20 Banked)
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Jan 2011
    Posts
    47
    Points
    268
    Credits
    4,332
    Rep Power
    0

    Default

    If you really wanted to implement any items like this, you could of course use the 'Custom Item' and in the option for Notifications put your ID and this would inform you of the purchase then you just insert the HTML code to the appropriate field.
    Anything like this I notify the Buyer that the action will be implemented within 24hrs...

    That's How I'm Doing It...

  3. #3
    Member
    Level 0 (0 Loyalty Points)

    Total Downloaded
    0
    Gil
    236 (0 Banked)
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Jul 2010
    Posts
    44
    Points
    236
    Credits
    332
    Rep Power
    0

    Default

    Quote Originally Posted by xandyx View Post
    If you really wanted to implement any items like this, you could of course use the 'Custom Item' and in the option for Notifications put your ID and this would inform you of the purchase then you just insert the HTML code to the appropriate field.
    Anything like this I notify the Buyer that the action will be implemented within 24hrs...

    That's How I'm Doing It...
    That's hacky... I would like to see the official way of doing it.

  4. #4
    Member
    Level 4 (2,742 Loyalty Points)
    xandyx's Avatar
    Total Downloaded
    0
    Gil
    268 (20 Banked)
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Jan 2011
    Posts
    47
    Points
    268
    Credits
    4,332
    Rep Power
    0

    Default

    That's hacky... I would like to see the official way of doing it.
    There isn't!

  5. #5
    Former Developer
    Level 36 (18,841 Loyalty Points)
    Ozzy47's Avatar
    Total Downloaded
    0
    Gil
    19,188 (0 Banked)
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Mar 2010
    Posts
    6,510
    Blog Entries
    14
    Points
    19,188
    Credits
    63,020
    Rep Power
    36

    Default

    Their is not a way to do Rainbow effect yet, it was asked before and is currently under consideration for a future update.

    My Free Mods are available at OzzModz.com and vB.org

    New vBulletin Spider Definitions, vBulletin Spiders List Updated

    Please do NOT PM me for Support, Ask for support in the relevant forums.
    I no longer work for DBTech and cannot offer official help with any questions or problems, please contact a member of the DBTech team for information on products and support. Any support I may give is unofficial.

  6. #6
    Member
    Level 0 (0 Loyalty Points)

    Total Downloaded
    0
    Gil
    236 (0 Banked)
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Jul 2010
    Posts
    44
    Points
    236
    Credits
    332
    Rep Power
    0

    Default

    No, I was asking if I can add them myself, as a mod.

  7. #7
    Member
    Level 4 (2,742 Loyalty Points)
    xandyx's Avatar
    Total Downloaded
    0
    Gil
    268 (20 Banked)
    Total Downloaded
    0
    User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
    Join Date
    Jan 2011
    Posts
    47
    Points
    268
    Credits
    4,332
    Rep Power
    0

    Default

    For those that would like to have Rainbow Text For User Names;

    I've messed about and found a way to give you just what you want....

    Tested on vB4.1.5

    {The PHP code is not mine and is freely available}

    1: Create a usergroup
    Title: Rainbow
    You can set the Usergroup to have any permissions you want. {I just used the basic user permissions}

    If you want the user to determine when they wish to turn off/on the rainbow from their usercp:
    Public Group Settings: YES
    Otherwise leave as no and admin will have control



    Username HTML Markup
    Insert this code into the first box;

    HTML Code:
    <strong style="color: #FFBC58; rainbow: true;">
    And in the second box;
    HTML Code:
    </strong>


    2: Create a new Plugin
    Plugins & Products > Add New Plugin

    Product: vBulletin
    Hook Location: fetch_musername
    Title: Rainbow
    Execution Order: 1
    Active: Yes

    Plugin PHP Code:
    PHP Code:
    if( strpos$user['musername'], 'rainbow: true;' ) !== false )
    {
        
    $i $b 0;
        
        
    $username '';

        
    $colours = array('d31539''ff7e00''ffc20e''90d125''187acb''6f3198''ab1d8e');

        while( 
    $i strlen$user['username'] ) )
        {
            if( 
    $b > ( count$colours ) - ) ) $b 0;
            
            
    $username .= '<span style="color: #' $colours$b ] . '">' $user['username'][$i] . '</span>';
            
            ++
    $b;
            ++
    $i;
        }
        
        
    $user['musername'] = '<strong>' $username '</strong>';

    Save!


    3: Create The Item
    DBTech - vBShop > Manage Items

    From the Item Management dropdown select : Usergroup Change

    Fill in all the fields as you like except for:
    Item Type Specific Fields

    User Group: Rainbow
    Usergroup Type: Secondary Usergroup
    Add / Remove: Add

    To inform the member how to activate/deactivate you could put in the Description something like this:
    Description:
    This Item Gives The Buyer The Opportunity To Have Their Username Shine Like A Rainbow In The Sky.

    To Activate/Deactivate You Will Find The Setting In Your UserCP
    My Settings :: My Account :: Permission Groups

    Or Copy and paste this Url:
    Mysite.com/profile.php?do=editusergroups




    This is the only other way that I have been able to get the rainbow text working for the User name, it also has the advantage of allowing the user to switch on & off.

    Enjoy!
    Last edited by xandyx; 25th April 2012 at 00:49.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. User Title Style Changes Adds Up...
    By CheeSie in forum vBShop Lite Support
    Replies: 2
    Last Post: 22nd July 2010, 12:05

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •