Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39

Thread: Make-your-own Userbars.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    24
    Downloads
    0
    Uploads
    0

    Default Make-your-own Userbars.

    Because there's some sort of userbar fetish at this forum(), I'll share with you a little thing I made to make making them easier.
    To use it, put this in a image code:
    http://www.d2kstudios.com/userbars/userbar.php?
    along with the parameters below.

    The parameters are:
    bgi
    The background image; Will be scaled to 350*19. If you don't supply a background, the background will be black.
    fgi
    The foreground image; Will remain exactly the same. If you don't supply a foreground, it will only display the background and text.
    t
    The text.
    l
    The number of pixels from the left side that the text should be. That is a lowercase L. Defaults to 225

    Easy eh? It automatically adds the shine and lines, you just need to supply a background image and a foreground image, plus text.
    Here's an example one:
    Last edited by DeathRay2K; 07-01-2006 at 11:29 AM.

  2. #2
    Community Kid
    Join Date
    Nov 2005
    Location
    England
    Posts
    525
    Downloads
    0
    Uploads
    0

    Default

    interesting DeathRay, post this in some Userbar forums - it looks very useful.

    btw, I find no userbar is complete without a border, is there any way to add that into it?

  3. #3
    Junior Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    24
    Downloads
    0
    Uploads
    0

    Default

    Sure, I'll add that now.
    Alright, they now have borders. And, I've added three more possible parameters:
    r
    The red value of the border.
    g
    The green value of the border.
    b
    The blue value of the border.
    All three default to 0 if they aren't set, so, for instance, if you want an all red border, you only have to set r=255.
    Last edited by DeathRay2K; 07-01-2006 at 11:43 AM.

  4. #4
    Moderator EatsP1es's Avatar
    Join Date
    Oct 2005
    Posts
    940
    Downloads
    0
    Uploads
    4

    Default

    dude

    /slaps him for being so good

    and yeah, canada, good nation :P my bro's marrying a canadian so i have no choice but to say that :P
    x

  5. #5
    Junior Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    24
    Downloads
    0
    Uploads
    0

    Default

    lol
    I'm also thinking about adding the ability to generate gradients as backgrounds as well...

    Edit:
    I've added a new parameter, that acts as r,g, and b all together, as well as an added alpha (Note, alpha is only up to 100, wheras the others go up to 255)

    c
    A combined r,g, and b, as well as an alpha channel. Seperated by commas (,), and in this order: r,g,b,a. Alpha channel ranges from 0 to 100, with 100 being the least opaque. You only need to set it as far as you need to. For instance, if you wanted a green border, you would set it to c=0,255. All values default to 0.
    Last edited by DeathRay2K; 08-01-2006 at 12:36 AM.

  6. #6
    Junior Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    24
    Downloads
    0
    Uploads
    0

    Default

    Alrighty then.
    I've added yet another parameter, this time for setting the background colour, if you don't want to use an image for it. It works the same as c, except without an alpha channel.

    bgc
    The colour of the background, in the format %red%,%green%,%blue%. It defaults to 0,0,0, so if you want a yellow background you'd just need to set bgc=255,255.

    Now, and example that uses some of the new stuff:
    Last edited by DeathRay2K; 08-01-2006 at 01:38 AM.

  7. #7
    Dipper of Chickens chickendippers's Avatar
    Join Date
    Sep 2005
    Location
    Sheffield, UK
    Posts
    3,023
    Downloads
    35
    Uploads
    418

    Default

    That's very cool! Check out my userbar biatches!

    Webmaster of - [CnCWorld]

  8. #8
    Community Kid
    Join Date
    Nov 2005
    Location
    England
    Posts
    525
    Downloads
    0
    Uploads
    0

    Default

    LOL

    ... nothing on it

  9. #9
    Dipper of Chickens chickendippers's Avatar
    Join Date
    Sep 2005
    Location
    Sheffield, UK
    Posts
    3,023
    Downloads
    35
    Uploads
    418

    Default

    That is the point

    Webmaster of - [CnCWorld]

  10. #10
    Deadministrator Flak's Avatar
    Join Date
    Sep 2005
    Location
    N. Ireland
    Posts
    394
    Downloads
    0
    Uploads
    0

    Default

    He's as deep as a rather shallow puddle.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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