Omnimaga

General Discussion => Technology and Development => Web Programming and Design => Topic started by: {AP} on March 22, 2010, 07:33:52 pm

Title: Dynamic Userbars!
Post by: {AP} on March 22, 2010, 07:33:52 pm
Website: http://userbars.removedfromgame.com/
Generator: http://userbars.removedfromgame.com/generator.php
------------------------------------------------------------
I needed to do a bit of PHP to get ready for college and these things are useful. This allows you to make dynamic, simple mini-userbars. (195x20 px) I needed these on Facebook for 2 reasons. Normal userbars are too big, and using a generator or doing them myself in Photoshop would require reuploading eveytime my level changed or I wanted to add a game to my list. Afterwards, I expanded the code to be a bit more useful for others. So, I thought I'd share.

For an example, just look at my signature. You can change the name of the game, the level, or just put a message on it. You can also change the BG color, but I only have 5 options at the moment. Later on, I'll add more colors, maybe some logos, maybe an option to add a picture/logo to it. If you have any other ideas, let me know.

Here's how it all works.

Blank Bar
(http://userbars.removedfromgame.com/miniuserbar.php)
Code: [Select]
http://userbars.removedfromgame.com/miniuserbar.php(http://userbars.removedfromgame.com/userbar.php)
Code: [Select]
http://userbars.removedfromgame.com/userbar.phpThis just gives a gray bar with nothing on it. Now, the fun stuff.

BG Color
(http://userbars.removedfromgame.com/miniuserbar.php?bg=red)
Code: [Select]
http://userbars.removedfromgame.com/miniuserbar.php?bg=red(http://userbars.removedfromgame.com/userbar.php?bg=red)
Code: [Select]
http://userbars.removedfromgame.com/userbar.php?bg=redJust add a ? to separate the commands from the rest of the url then bg= and your color and you can change it. If it's not one of the supported colors, it defaults to gray OR if you don't use bg= at all it will default to gray.
Current available colors:

Adding a Message
(http://userbars.removedfromgame.com/miniuserbar.php?bg=brown&msg=I like pie)
Code: [Select]
http://userbars.removedfromgame.com/miniuserbar.php?bg=brown&msg=I like pie(http://userbars.removedfromgame.com/userbar.php?bg=brown&msg=I like pie even more than I did in the other bar)
Code: [Select]
http://userbars.removedfromgame.com/userbar.php?bg=brown&msg=I like pie even more than I did in the other barTo separate the commands, you use & and for messages add msg= then the text. Note, don't use anything but letters, numbers, and spaces. It'll most likely not work if you do... unless you use my converter!
http://userbars.removedfromgame.com/converter.php

Just type in the string you want, special characters and all, and it'll give out the results with examples.

Game Mini-Userbar
(http://userbars.removedfromgame.com/miniuserbar.php?game=farmville&lvl=19)
Code: [Select]
http://userbars.removedfromgame.com/miniuserbar.php?game=farmville&lvl=19(http://userbars.removedfromgame.com/miniuserbar.php?game=nyaar&lvl=0)
Code: [Select]
http://userbars.removedfromgame.com/miniuserbar.php?game=nyaar&lvl=0(http://userbars.removedfromgame.com/miniuserbar.php?game=nyaar&bg=black&lvl=999)
Code: [Select]
http://userbars.removedfromgame.com/miniuserbar.php?game=nyaar&bg=black&lvl=999(http://userbars.removedfromgame.com/userbar.php?game=farmville&lvl=19)
Code: [Select]
http://userbars.removedfromgame.com/userbar.php?game=farmville&lvl=19(http://userbars.removedfromgame.com/userbar.php?game=nyaar&lvl=0)
Code: [Select]
http://userbars.removedfromgame.com/userbar.php?game=nyaar&lvl=0(http://userbars.removedfromgame.com/userbar.php?game=nyaar&bg=black&lvl=999)
Code: [Select]
http://userbars.removedfromgame.com/userbar.php?game=nyaar&bg=black&lvl=999For the 4 supported games, you don't need to change the BG but if it's not either "farmville", "mafiawars", "ninjawarz", or "castleage" (and it most likely won't be) you should add the bg= or it'll default to gray. Basically, game= works the same way as msg= but handles the background color for any supported games too so you can easily replace the two if you want. The other command, lvl= will simply add "Level: ###" to the right side. Preferred if it was 0-999. You can do longer numbers, but it might not show it all.

Username (only for normal userbars)
(http://userbars.removedfromgame.com/userbar.php?game=nyaar&bg=purple&lvl=999&name=bob)
Code: [Select]
http://userbars.removedfromgame.com/userbar.php?game=nyaar&bg=purple&lvl=999&name=bobJust add in a name= and your name. (Remember, only letters, numbers, spaces, and underscores.)



That's pretty much the gist of it. Just typing in the URL will show you the image, so you don't have to post it somewhere to test. Any questions, just ask. Any ideas, then let me know. I'm having fun with this. =)
Title: Re: Mini-Userbars (Mini Project)
Post by: SirCmpwn on March 22, 2010, 07:40:22 pm
Nice!

Test:
(http://removedfromgame.com/miniuserbar.php?bg=gray&msg=XNA Developer)
Title: Re: Mini-Userbars (Mini Project)
Post by: Raylin on March 22, 2010, 07:54:16 pm
VERY nice.

Test:
(http://removedfromgame.com/miniuserbars.php?bg=black&msg=SMT:%20ROTBM&lvl=23)

Be sure to add more to this! :D :D
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 22, 2010, 07:56:57 pm
Glad you guys like them. =)

I'm thinking about expanding to also doing normal sized userbars and more colors will be coming soon for sure. Other than that, I don't have too many ideas so let me know what you'd like to see and I'll work on it. ^^
Title: Re: Mini-Userbars (Mini Project)
Post by: SirCmpwn on March 22, 2010, 07:58:12 pm
Hey could you maybe let us provide a url to an image and have it insert it into the background?
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 22, 2010, 08:03:39 pm
I'm not entirely sure. I'll think about it... but that's the one of the reasons why current userbar generators don't have dynamic URLs like this and such. I'll try some things out though, it's a nice thought.
Title: Re: Mini-Userbars (Mini Project)
Post by: SirCmpwn on March 22, 2010, 08:04:40 pm
Either way, well done.

++
Title: Re: Mini-Userbars (Mini Project)
Post by: Eeems on March 22, 2010, 08:08:50 pm
Wow, cool! I was wondering if you could give me the source so I could play around with it?
Title: Re: Mini-Userbars (Mini Project)
Post by: Raylin on March 22, 2010, 08:10:29 pm
Perhaps username support?
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 22, 2010, 08:10:55 pm
Sure, I'll try to clean it up and comment it first. I'll PM you the code when done.

EDIT: Username support? (Just need a little elaboration to make sure I'm on the same page.)
Title: Re: Mini-Userbars (Mini Project)
Post by: Raylin on March 22, 2010, 08:14:14 pm
It would be cool if you could have the game name and then have a parameter to put your alias in and THEN the level. :D
Title: Re: Mini-Userbars (Mini Project)
Post by: Eeems on March 22, 2010, 08:14:58 pm
K sweet! Can't wait!
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 22, 2010, 08:24:41 pm
It would be cool if you could have the game name and then have a parameter to put your alias in and THEN the level. :D

That's what I thought. =P
Only issue I see with that is the size. You may have to wait until I expand to normal sized userbars too.
I'll see about finishing that first tonight. Shouldn't take TOO long.
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 22, 2010, 09:36:11 pm
UPDATE:
Check the first post, but for a summary... I added more colors, normal sized userbars, and "username" for the bigger userbars.
I noticed that I need to fix the bigger userbars and new colors for the miniuserbars a bit. The highlight is a bit too bright. I'll do it later though... I'm lazy. ;P

Just need to remember now, miniuserbars.php should be userbars.php for the bigger bars.

NOTE:
Levels above 999 now accepted and an easter egg has been added. ^_~
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 22, 2010, 11:47:03 pm
Pretty nice. ^^
Title: Re: Mini-Userbars (Mini Project)
Post by: Geekboy1011 on March 23, 2010, 12:06:26 am
very nice and great idea XD
Title: Re: Mini-Userbars (Mini Project)
Post by: TsukasaZX on March 23, 2010, 01:37:18 am
Awesome, {AP}! Reminds me of my journey into dynamic user bars. I should try making some more :P

Omnimaga needs userbars/badges :O
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 23, 2010, 01:38:56 am
Well I could always eventually add a mod allowing them, altough not now x.x
Title: Re: Mini-Userbars (Mini Project)
Post by: Silver Shadow on March 23, 2010, 01:46:04 am
Very nice! I have the impression that this project will grow out to be bigger than you actually expected... ^^
Title: Re: Mini-Userbars (Mini Project)
Post by: SirCmpwn on March 23, 2010, 09:04:10 am
Yes, you can tell that I have taken to them.
OFF-TOPIC: 200th post!  ^.^

Also, if you want symbols like "#" or "+" like I have, you need to convert them to hex first and replace it with %1A, for example.
Title: Re: Mini-Userbars (Mini Project)
Post by: TsukasaZX on March 23, 2010, 11:41:39 am
Well I could always eventually add a mod allowing them, altough not now x.x
Why not now? Just wondering.
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 12:11:05 pm
Also, if you want symbols like "#" or "+" like I have, you need to convert them to hex first and replace it with %1A, for example.

Didn't even think about that. Thanks!

But, I realized that the hex codes aren't very well known... so... I made THIS!
http://removedfromgame.com/converter.php

Just type in the string you want, special characters and all, and it'll give out the results with examples.
If you notice a special character I missed, tell me and I'll add it... but I think I got it all.
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 23, 2010, 01:31:03 pm
mhmm nice ^^ altough for me Opera appears to do it for me (maybe not for all chars and servers, tho?)
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 02:05:50 pm
Not sure really. I just know that most symbols aren't accepted usually.
But, if Opera works fine then use it that way. =P
Title: Re: Mini-Userbars (Mini Project)
Post by: Galandros on March 23, 2010, 05:56:52 pm
I almost forgot to follow this subforum. Well, very nice idea and well done.
I suggest adding colour support to hex (like #FF0000, for red).

Now PHP details: what PHP extension or lib you use? And I am eager to see the source, too.
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 23, 2010, 05:58:11 pm
I wonder if we can use custom background images?
Title: Re: Mini-Userbars (Mini Project)
Post by: meishe91 on March 23, 2010, 06:22:12 pm
These look handy, can't wait to see where these lead :D
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 06:34:17 pm
I almost forgot to follow this subforum. Well, very nice idea and well done.
I suggest adding colour support to hex (like #FF0000, for red).

I may. The deal is that the 'colors' are just different images I used for the background, from there the text is added on top.
I could basically allow "#FF0000" to be the same as "red" but something like "#FE0000"—which is basically red too—wouldn't be supported because of the method used.

Now PHP details: what PHP extension or lib you use? And I am eager to see the source, too.

I'm using PHP5 with the GD library. (I'm pretty sure PHP4 would be fine too.) I'll send a copy of the source a bit later. Messing with something else at the moment. ^^;

I wonder if we can use custom background images?

Due to the method used so far, I couldn't easily allow it. I'm new to image manipulation so the different backgrounds are all different images that I add text on to. I could let you specify an image, but it'd have to be the right size (195x20 or 350x20) for it to look right and you'd still have to add the border and any other little effects you want.

I'll keep learning and I might be able to add this feature one day.



Now, for some updates!

As I said earlier, I added support to properly show level 0-9999 and threw in an easter egg.

Also, I threw together a generator for the links to help people who don't understand how to do it very well or just to test things out more easily and faster.

http://removedfromgame.com/generator.php

Sorry for the simple black text on white background look. I'll make it prettier later... but it's fully functional.
Let me know what you think~
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 23, 2010, 06:38:48 pm
oooh nice :D

I wonder if eventually it could be integrated in Omnimaga forums and the same host as Omnimaga (maybe a sub-domain like userbars.omnimaga.org)? I was gonna say I could give you FTP access, but you alerady got it since about half a year now so I guess i woul;d just need to setup a folder.

I noticed that when you iframe something in a post, the iframe bg color is the same as the post. I wonder if it's the same in every browser? (see radio/playlist thread)
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 06:42:33 pm
I have no objection to integrating it into Omnimaga later. Might be a good idea since I'm not sure how long I'll be able to maintain my 1and1 account. I'll have no problem affording the account once I finally get a job... but I need to finish college first so it'll be awhile.

As for the iframing thing, I have no clue. I haven't done anything with iframes in years.
Title: Re: Mini-Userbars (Mini Project)
Post by: meishe91 on March 23, 2010, 06:45:13 pm
Might we have any hint on what this easter egg is or does? Just thought I'd give it a shot and ask :P
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 23, 2010, 06:48:18 pm
Ouch I hope you can keep it x.x, it would suck if you had to put all your stuff there offline :S

I guess then you could always put your stuff on my acct, though, maybe in some other sub-folder or soemthing (including RFG forums and images, for example). I only use 5-7% of my bandwidth (which may go unlimited on APril 23rd) and have about 107 GB left, with like 15 databases and a bunch of subdomains
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 06:52:31 pm
Thanks, Omni! I still have a few months that are free, so I'll wait a bit to see if I can maintain it or not.

Might we have any hint on what this easter egg is or does? Just thought I'd give it a shot and ask :P

Nah, I'll let you guys figure it out. If no one finds it in a couple of days, I'll just PM it to anyone who wants to know

Though, you asking about it did give me ideas for more easter eggs. I'll get to work on them later on. =)
Title: Re: Mini-Userbars (Mini Project)
Post by: meishe91 on March 23, 2010, 06:54:50 pm
Haha ya, I figured as much I'd get that as an answer, but cool :)
Is it basically just a hidden command that you can add? (If I can ask that :P)
Title: Re: Mini-Userbars (Mini Project)
Post by: Eeems on March 23, 2010, 06:55:06 pm
I think I figured it out.
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 06:55:36 pm
Haha ya, I figured as much I'd get that as an answer, but cool :)
Is it basically just a hidden command that you can add? (If I can ask that :P)

Nope, but that's another good idea. xD

I think I figured it out.

You did. Thought it'd be easy enough. =P
Title: Re: Mini-Userbars (Mini Project)
Post by: meishe91 on March 23, 2010, 06:56:56 pm
Dang it...I need to stop talking before you get all sorts of easter egg ideas :P

But I'm completely stumped on the easter egg now, that was my only guess on what it was haha.
Title: Re: Mini-Userbars (Mini Project)
Post by: Eeems on March 23, 2010, 07:02:24 pm
Yay! :p
hmm, well you should try it out for a while, you might figure it out :p
Title: Re: Mini-Userbars (Mini Project)
Post by: meishe91 on March 23, 2010, 07:06:36 pm
Well I would...I just have no idea what I'm looking for in an easter egg of this sort (or what it is supposed to look like :P). That's all haha.
Title: Re: Mini-Userbars (Mini Project)
Post by: Eeems on March 23, 2010, 07:33:19 pm
well, look carefully at this page, very carefully :P
Title: Re: Mini-Userbars (Mini Project)
Post by: SirCmpwn on March 23, 2010, 07:34:22 pm
Lol I tried that!  It didn't work earlier
Title: Re: Mini-Userbars (Mini Project)
Post by: meishe91 on March 23, 2010, 07:37:53 pm
By page do you mean your signature? The only thing I really see is the that could be is the ">9000" for your level...but I wouldn't think that is it.
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 07:39:08 pm
If you did it on the mini-userbar yesterday then it didn't work.
I forgot to update that file last night and only updated the normal userbars.

But yeah, you all got it. =)
Title: Re: Mini-Userbars (Mini Project)
Post by: SirCmpwn on March 23, 2010, 07:40:26 pm
You should make a rickroll easter egg.  Just saying.
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 07:46:40 pm
Way ahead of ya. ;P

Well, not WAY ahead of you because it's not in there yet... but I'm working on it. =P
Title: Re: Mini-Userbars (Mini Project)
Post by: meishe91 on March 23, 2010, 07:48:04 pm
So it is the ">9000" thing?
And doesn't surprise me one bit there Rick Astley will be incorporated some how :P
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 07:52:25 pm
Yep, if your level is anything over 9000 it changes to ">9000".

(Gotta love meaningless memes. ;P )

As for the Rick Roll easter egg, that's the very next update./me scurries off to Photoshop
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 23, 2010, 07:54:43 pm
Yep, if your level is anything over 9000 it changes to ">9000".
Lol nice :P, kinda like that thing you had in your sig that showed what game you were playing
Title: Re: Mini-Userbars (Mini Project)
Post by: SirCmpwn on March 23, 2010, 07:54:49 pm
I notice you made a generator, very nice.
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 08:15:56 pm
I did. Also, I added the new easter egg.
(Do you have any idea how hard it is to get Astley to fit in 350x20px? Not easy. On that note... only normal userbars have the easter egg on them and there's SEVERAL ways to activate it. If you activate it, nothing else matters. It overwrites everything else no problem. =D )
Title: Re: Mini-Userbars (Mini Project)
Post by: meishe91 on March 23, 2010, 08:21:04 pm
Oh ok haha. I didn't think that was it just because you said it supported levels 0-9999. But cool :P Should look for this new one. Sounds...interesting.
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 08:29:07 pm
I didn't think that was it just because you said it supported levels 0-9999.

That was meant to be a hint. xP
Though it is a feature since it only properly showed 1-3 digit numbers earlier.

Well, I'm going to go 'study' some more and see what else I can do with this project. =)
Title: Re: Mini-Userbars (Mini Project)
Post by: meishe91 on March 23, 2010, 08:34:04 pm
Haha ya, I realize that now after I know what the easter egg was. :)

Edit: Found it ;)
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 08:46:18 pm
There's like 10 others. xP
Same result, but different means of getting there.

Hint: What can normal userbars have that mini-userbars can't? ;P
Title: Re: Mini-Userbars (Mini Project)
Post by: Juju on March 23, 2010, 08:47:13 pm
That thing is intersting.
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 23, 2010, 08:47:21 pm
/me wonders if there's a lobster easter egg
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 08:48:54 pm
/me wonders if there's a lobster easter egg

xD So many ideas you guys keep giving me!
I'll work on that in a bit. I think I've gained ground on custom backgrounds. =)
Title: Re: Mini-Userbars (Mini Project)
Post by: SirCmpwn on March 23, 2010, 08:51:08 pm
Spoiler For Spoiler:
(http://removedfromgame.com/userbars.php?bg=red&game=rickroll)
Title: Re: Mini-Userbars (Mini Project)
Post by: meishe91 on March 23, 2010, 09:03:22 pm
Well I have discovered about three ways you can do it :P
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 23, 2010, 09:21:37 pm
Lol I just saw that Rickroll userbar :P
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 11:43:52 pm
Major Update!

Custom backgrounds now available, but there's a few catches in this early stage.

The generator (http://removedfromgame.com/generator.php) is already updated with the new features. Give 'em a try. =)
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 23, 2010, 11:50:49 pm
w00t nice! gonna check this out I think :)
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 23, 2010, 11:53:36 pm
A couple of tests I did.

Mini-Userbar, Large Image
(http://removedfromgame.com/miniuserbars.php?msg=test&bgurl=http://sziur18.files.wordpress.com/2009/06/touhou_touhousouyuushinpi.png?w=480&h=480&lines=true)

Mini-Userbar, Small Image
(http://removedfromgame.com/miniuserbars.php?bg=custom&game=touhou&lvl=9001&lines=true&bgurl=http://a3.twimg.com/profile_images/411909145/touhou003_normal.png)

Normal Userbar, Big Image, No Lines
(http://removedfromgame.com/userbars.php?bg=custom&game=touhou&name=%7BAP%7D&lvl=9001&bgurl=http://sziur18.files.wordpress.com/2009/06/touhou_touhousouyuushinpi.png?w=480&h=480)
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 23, 2010, 11:58:05 pm
Nice ^^

I tried with random images and many stuff fits pretty well :)
Title: Re: Mini-Userbars (Mini Project)
Post by: SirCmpwn on March 24, 2010, 12:01:05 am
Very nice!
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 24, 2010, 12:02:17 am
Yeah, that's what I was doing as well, I just googled "touhou" and grabbed random .PNGs to try out.

Also, just made the "Level:"s line up better and fixed where it displayed ">9000" if your level is 9000. (Now it properly has to be a number over 9000)

On that note, this is the power of dynamic userbars! I fixed everyone's userbars without them having to reupload or resubmit any information. =D
Title: Re: Mini-Userbars (Mini Project)
Post by: SirCmpwn on March 24, 2010, 12:05:35 am
^++
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 24, 2010, 12:09:57 am
nice :)

Btw is that script cpu intensive server-side? I wonder if it can error when many people use it at once?
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 24, 2010, 12:48:19 am
Good thought. It definitely takes a bigger toll on the server than normal userbar generators since it has to process the code for every image (and most likely for the duplicates when it comes to sigs too) but it's also not doing too much in total and I could probably optimize it more.

However, even with all that, it still could error with too many people... I'm just not sure how many is "too many".
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 24, 2010, 01:28:31 am
Aaah ok. Well, I guess if you ever put it here directly, we'll just have to see if it works well, and if during high activity periods we get too many errors or site runs ridiculously slow, then we'll hve to keep it on your webspace x.x

The cool thing, tho, is that since we both use 1and1, the script will not need any modification to run on my space
Title: Re: Mini-Userbars (Mini Project)
Post by: Silver Shadow on March 24, 2010, 01:46:35 am
So, you can modify the people's sigs yourself... :P I just hope that you won't involve any lobsters if you want to do some pranks! XD
Title: Re: Mini-Userbars (Mini Project)
Post by: DJ Omnimaga on March 24, 2010, 01:47:20 am
Lol

Well if sigs were modified abusively people would quit using them altogether anyway :P
Title: Re: Mini-Userbars (Mini Project)
Post by: trevmeister66 on March 24, 2010, 10:06:11 am
This is looking great AP. Now to find some custom pics to use for some userbars.
Title: Re: Mini-Userbars (Mini Project)
Post by: {AP} on March 24, 2010, 01:11:49 pm
Site up! http://userbars.removedfromgame.com/

Everything but the generator is under construction. I'll work on it more today.

Everyone, update the URLs for your userbars today. Tomorrow, I'm taking the files off of the old URL. (the change is just adding "userbars." in front of "removedfromgame.com")
The next change, if any, will be to http://userbars.omnimaga.org/ so it won't be a big issue to change either, but that won't happen for another couple of months if ever.

Anyway, tell me what you think. =)
Title: Re: Dynamic Userbars!
Post by: Eeems on March 24, 2010, 01:30:03 pm
Nice! I like it!
Can't wait for the rest of the content :p
Title: Re: Dynamic Userbars!
Post by: DJ Omnimaga on March 24, 2010, 02:56:15 pm
Wow looks very nice! Can't wait to see with the generator. Hopefully maybe it will become popular even outside Omnimaga ^^
Title: Re: Dynamic Userbars!
Post by: {AP} on March 24, 2010, 02:59:31 pm
Hopefully maybe it will become popular even outside Omnimaga ^^

That wasn't the original goal, but it looks like it might get popular the more I work on it. =P

Anyway, I had a bit of a detour, but I'm going to work on getting the other 3 pages up now.
Shouldn't take more than an hour or so.
Title: Re: Dynamic Userbars!
Post by: DJ Omnimaga on March 24, 2010, 03:09:25 pm
Nice, keep us updated :)

On a side note, I am really thinking about putting this in the Misc page. I should have a 3rd section there for non-calc stuff that is still Omnimaga-related, like the #omnimaga logs, and your generator. I might link to the music playlist there too.
Title: Re: Dynamic Userbars!
Post by: {AP} on March 24, 2010, 04:24:23 pm
I'm fine with you linking it. =)

Everything but the "More Info" page is finished for now.
Everything's working fine. Remember, if you're using a userbar now, you need to update the URL today because the code is going down on the old URL tonight.

The Site (again)
http://userbars.removedfromgame.com/
Title: Re: Dynamic Userbars!
Post by: SirCmpwn on March 24, 2010, 04:36:24 pm
Sigs updated, thank you!
Title: Re: Dynamic Userbars!
Post by: {AP} on March 24, 2010, 05:25:31 pm
New feature! (hasn't been added to the generator yet, I'll do that now though)

Progress!
(http://userbars.removedfromgame.com/miniuserbars.php?bg=blue&game=Nyaar&pct=0)
Code: [Select]
http://userbars.removedfromgame.com/miniuserbars.php?bg=blue&game=Nyaar&pct=0(http://userbars.removedfromgame.com/userbars.php?bg=purple&msg=Dynamic Userbars!&pct=99)
Code: [Select]
http://userbars.removedfromgame.com/userbars.php?bg=purple&msg=Dynamic Userbars!&pct=99
Just add "&pct=" followed by the percent number to show progress on your project. Won't work if you use "name=" in your URL but works with both "msg=" and "game=" fine. Enjoy?
Title: Re: Dynamic Userbars!
Post by: SirCmpwn on March 24, 2010, 05:38:20 pm
Yay!
Was that influenced by my sig spoiler at all?
Title: Re: Dynamic Userbars!
Post by: {AP} on March 24, 2010, 05:45:58 pm
Actually, I had the idea awhile ago... but you spoiler sig did remind me to do it and gave me an excuse to do it now. =P
Title: Re: Dynamic Userbars!
Post by: SirCmpwn on March 24, 2010, 05:46:22 pm
Lol, very nice.
Title: Re: Dynamic Userbars!
Post by: {AP} on March 24, 2010, 05:58:05 pm
Oh, and the generator has been upgraded. Added the progress option and changed sizes of text boxes (plus adding character limits on level and progress). Also, should now give the most optimized URL possible for your combination of inputs and dispose of anything that conflicts with another part of the code. It doesn't do this for the easter eggs though. This is on purpose.

Title: Re: Dynamic Userbars!
Post by: Juju on March 24, 2010, 05:59:23 pm
I like this thing. It's great. Of course your script runs lots of times each time an Omnimaga page shows up?
Title: Re: Dynamic Userbars!
Post by: {AP} on March 24, 2010, 06:03:12 pm
Glad you guys like it so far. =)

Man, I'm amazed at how far I got in such a short time. Well, no where to go but up!
Any suggestions? =D

(EDIT: To answer your question, juju, yes it does.)
Title: Re: Dynamic Userbars!
Post by: SirCmpwn on March 24, 2010, 06:16:04 pm
I updated my sig for the new project support, and I would like to request you add the ability to position custom backgrounds in the banner, because it was hell to get that Half-Life 2 image lined up properly.

*EDIT*
juju2143 certainly has taken a liking to them ;)
Title: Re: Dynamic Userbars!
Post by: Juju on March 24, 2010, 06:19:25 pm
Yeah, got 8 of them in my sig lol :P
Title: Re: Dynamic Userbars!
Post by: SirCmpwn on March 24, 2010, 06:20:39 pm
Thanks to you I JUST LOST THE GAME!
Title: Re: Dynamic Userbars!
Post by: {AP} on March 24, 2010, 06:34:30 pm
and I would like to request you add the ability to position custom backgrounds in the banner, because it was hell to get that Half-Life 2 image lined up properly.

This won't be too easy. I can let you change the coordinates it starts the cropping, but if you go through the trouble to figure out the coordinates, it'd be easier to just crop the part you want out yourself and upload it to imageshack.us or something. PHP alone isn't capable of making it easier. I'd have to either learn some advanced javascript (I'm a novice at javascript really) or switch the generator to Flash or Java. (Unfortunately, I don't know much Java... but I guess I can try to get a flash version running... I just haven't messed with Flash in a web environment much before)

Still, I'll think about it. Definitely won't be a new feature very soon though. Sorry. =(
Title: Re: Dynamic Userbars!
Post by: SirCmpwn on March 24, 2010, 06:38:41 pm
No problem, I don't mind waiting.  I am a member of the calculator community, and I am still waiting for DCS7 ;)
Title: Re: Dynamic Userbars!
Post by: {AP} on March 24, 2010, 09:58:54 pm
Well, threw in the "More Info" page which is basically a "Why I Made This Program" and "Who Am I" section plus the copyright.
Nothing special, but it completes the site.

I'll keep thinking up ideas.
Title: Re: Dynamic Userbars!
Post by: trevmeister66 on March 24, 2010, 10:22:28 pm
Maybe a way to do a different style of text?
Title: Re: Dynamic Userbars!
Post by: {AP} on March 24, 2010, 10:31:46 pm
Hm, any fonts you guys would want in particular? I just used this one because it's the standard for userbars.
Title: Re: Dynamic Userbars!
Post by: trevmeister66 on March 24, 2010, 10:47:07 pm
Heh I don't personally have any preferences, because I do like the one you use, but it was the only thing that came to mind that you could possibly have options for
Title: Re: Dynamic Userbars!
Post by: DJ Omnimaga on March 24, 2010, 11:54:15 pm
Wow nice updates, I love the progress thing. I'm sure gonna use this in my sig when I work more on projects :)
Title: Re: Dynamic Userbars!
Post by: {AP} on March 25, 2010, 12:39:13 pm
Well, I'm taking the day off of coding. Assuming I get some ideas, I'll continue tomorrow.

Until then... I'm off for some DDR and FFXIII.
Title: Re: Dynamic Userbars!
Post by: SirCmpwn on March 25, 2010, 12:40:06 pm
FFXIII
++
Title: Re: Dynamic Userbars!
Post by: DJ Omnimaga on March 25, 2010, 04:59:59 pm
(I should start playing FFXIII... my bro bought it when it came out and sometimes plays on my Xbox Live account, but I also need to finish Star Ocean for PSP... I tend to not play often since I'm not a huge gamer. For example, last night I played one game of Starcraft with Cooliojazz then went to bed an hour later)

Title: Re: Dynamic Userbars!
Post by: SirCmpwn on March 25, 2010, 05:05:05 pm
Lol
I notice you have ODST as well, wanna play sometime?
Title: Re: Dynamic Userbars!
Post by: DJ Omnimaga on March 25, 2010, 05:31:16 pm
Unfortunately I don,t like ODST really :(, to me it was just not Halo anymore. I prefered Halo with master chief. My favourites are Halo 2 and 3. I might play sometimes, altough I am not really in a Halo mood lately x.x
Title: Re: Dynamic Userbars!
Post by: SirCmpwn on March 25, 2010, 05:35:09 pm
The reason I talked about ODST is because it has the Mythic disc (its called Mythic, right?) which has all the maps and such.
Title: Re: Dynamic Userbars!
Post by: DJ Omnimaga on March 25, 2010, 05:46:55 pm
oh yeah that, I'm not sure if it's mythic, cuz it seemed to have a bunch of other maps too. I usually use that disc now to play Halo 3 multiplayer. I still kinda regret having paid $69.99 for ODST tho x.x (had I known I wouldn't like it that much I would have waited until it drops at like $39.99)

Anyway back on topic, I was wondering if gradients would be easy to implement in custom background userbars?


Also, another worry I had: you use the same fonts as the userbars.com site. Wouldn't there be risks that you get in trouble for copyright infrigments or something?
Title: Re: Dynamic Userbars!
Post by: {AP} on March 25, 2010, 06:23:13 pm
Actually, it's the same font as almost every userbar site out there.
Also, it's a free font (http://www.dafont.com/visitor.font) available for use anywhere.

As for the gradients in the custom BG userbars, what do you mean? I'd assume that you could make a image that's a gradient then upload and use that like any other custom background, unless you mean something else and I'm completely wrong. (It happens. A lot.) ^^;
Title: Re: Dynamic Userbars!
Post by: DJ Omnimaga on March 25, 2010, 06:28:44 pm
Aaah, then I guess you should be fine ^^. By gradient, I mean, for example, if I use a small version of Omnimaga banner as background image, could you add a feature that let the user choose if he wants some sort of gradient effect on top of it, like the plain colors userbars?
Title: Re: Dynamic Userbars!
Post by: {AP} on March 25, 2010, 06:31:15 pm
Ah, that. I was actually trying to do that earlier, but I'm having a bit of trouble figuring out how to get it to work right.
I'll add it back to my 'to-do' list and work on it tomorrow. =)
Title: Re: Dynamic Userbars!
Post by: ztrumpet on April 02, 2010, 02:46:44 pm
This is an excellent tool!  Awesome job {AP}!  I really like it.  Check out what I did: ;D
(http://userbars.removedfromgame.com/userbars.php?bg=green&msg=Elmgon&lines=true&pct=14) (http://www.omnimaga.org/index.php?board=63.0)(http://userbars.removedfromgame.com/userbars.php?bg=red&msg=Illusiat%2013%3A%20The%20Final%20Chapter%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Supporter%20) (http://www.omnimaga.org/index.php?board=88.0)

On a side note, I am now Leet! O0
Title: Re: Dynamic Userbars!
Post by: {AP} on April 02, 2010, 05:04:40 pm
Thank you and congratz! =D

I plan on working more on this a bit later, but I have several other projects that need attention now. A couple of them are almost done though so I'll have more free time soon-ish. =)
Title: Re: Dynamic Userbars!
Post by: DJ Omnimaga on April 02, 2010, 07:33:28 pm
lol nice ztrumpet ^^

As for AP I can,t wait to see more of them :)