Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 39

Thread: Make-your-own Userbars.

  1. #11
    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.

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

    Default

    Someone should pay you.

    Keep it up.

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

    Default

    They certainly should.
    I've almost got gradients done.

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

    Default

    Someone should pay you.
    I got a better idea - someone should host him

  5. #15
    The Blair Witch MadBadger's Avatar
    Join Date
    Oct 2005
    Location
    Bac @ Notts!!!
    Posts
    1,720
    Downloads
    0
    Uploads
    0

    Default

    that a blatant subtle hint there eagle?

    ohh and the thinggys great i hada go onit...... mines cool anyway thou

    might make an England one thou.



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

    Default

    Huzzah! Gradients work and they are absolutely beautiful.
    Of course they have a new parameter as well, building on bgc.

    bgc2
    When bgc2 is set, a gradient is created between it and bgc, with bgc at the top and bgc2 at the bottom. It must be input the same way as bgc, as %red%,%green%,%blue%.

    Here's an example:


    Woo! Stickied!


    Time for a quick recap:
    Quote Originally Posted by DeathRay2K at ConsoleNetwork Community
    Yeah, I know its a bit difficult to understand, and I've added several more very useful parameters since I posted.

    Parameters
    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
    r
    The red value of the border.
    g
    The green value of the border.
    b
    The blue value of the border.
    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.
    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.
    bgc2
    When bgc2 is set, a gradient is created between it and bgc, with bgc at the top and bgc2 at the bottom. It must be input the same way as bgc, as %red%,%green%,%blue%.

    How to use
    Use image codes ([img][/img] in forums, or <img> on websites).
    In between [img] and [/img], or after src= in <img>, write: "http://www.d2kstudios.com/userbars/userbar.php?" without the quotation marks.
    After that, you have to decide what parameters you want.
    You must use fgi for the script to add the shine and lines.

    For each parameter, simply write %parameter%=%value%, replacing %parameter% with the parameter you're adding, and %value% with what the parameter's value is.
    You must add an ampersand (&) between each parameter.
    For example, if I wanted a simple userbar with my logo and a blue background, I would write: http://www.d2kstudios.com/userbars/u... Studios&l=275
    This would output:


    Lets look over this one parameter at a time.
    bgc=0,0,255
    This sets the background colour. Since I want a blue background, I set red to 0, green to 0, and blue to 255.

    fgi=fgi.png
    This sets the foreground image, the image that goes on top of everything but the shine. since my logo is in the same place as the script, and called 'fgi.png', I simply wrote that. It can be anything, and at any url.

    t=D2K Studios
    The text. D2K Studios is the name of my website, so I wrote that.

    l=275
    How many pixels from the left that the text should begin. Its a farily high number, because there's not much text in this example, and I wanted to to be close to the right side.


    Its the same with all parameters.

    When I'm completely done the script, I may make a page that allows this all to be done more easily, but at the moment I'm still actively developing it.
    Actually, anyone could make such a page, and just set the parameters for that link.
    Anyone have any ideas for things to add?
    Last edited by DeathRay2K; 08-01-2006 at 02:45 AM.

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

    Default

    Oh, I... er... nope
    Last edited by The Eagle; 08-01-2006 at 11:46 AM.

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

    Default



    uh, can't get my image to load.
    Last edited by The Eagle; 08-01-2006 at 12:36 PM.

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

    Default

    I think you need to include the path to your image...not sure how that'd work though.

    Webmaster of - [CnCWorld]

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

    Default

    the thought crossed my mind - it's on the desktop, does that matter?

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 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
  •