Dynamic Userbar Text!

All topics related to The Userbar Designer (UBDesigner.com) go here.

Dynamic Userbar Text!

Postby drunnells on Fri, 01 Aug 2008 04:41 +0000

The Userbar Designer now supports dynamic text! At the moment this feature is available to ALL ubdesigner users. Here is a quick summary of this new feature.

The text in userbars created with The Userbar Designer can now change automatically depending on a variety of factors including (but not limited to); A countdown timer, Your latest listen on Last.fm, Your latest blog post, your last "tweet" on Twitter or even your current USCF chess rating! Scroll down to the examples to get an idea of how you can use this powerful feature. If you have an idea for a dynamic source that isn't listed here, reply to this post and we'll see about adding it!

While this is an advanced feature of UBDesigner, novice users may still be able to get the dynamic text they want by using the Dynamic Text Assistant (linked at the bottom of the Text layer box in the designer). More advanced users should keep reading.

Dynamic text is achieved by the use of variables in your normal userbar text. A variable is usually surrounded by '%'s and will be replaced by the dynamic value once every 5 minutes. The contents of a variable are determined by the dynamic commands you set in the userbar text.

Available dynamic sources:
counterDate - Count Down/Up to/since date (date range can be from Jan 1 1970 to Jan 18 2038).
Code: Select all
[counterDate=10/28/1976]

dynamicInfo - Internal dynamic data (Remote IP, current time, etc)
Code: Select all
[dynamicInfo=true]

rssLci - Latest Channel Item from RSS feed.
Code: Select all
[rssLci=http://someuser.livejournal.com/data/rss]

uscfId - USCF (United States Chess Federation) ID, for use with USCF rating variables.
Code: Select all
[uscfId=55555555]

wowId - World Of Warcraft Stats (retrieved from The WoW Armory. Format is: "(RegionCode)Realm Name|Character Name". Available region codes are (us,eu,kr,cn,tw), or if no region is specified "us" is assumed.
Code: Select all
[wowId=(Region)RealmName|CharacterName]

runescapeName - RuneScape Stats (retrieved from http://hiscore.runescape.com).
Code: Select all
[runescapeName=YourRuneScapeName]

xboxLiveId - Xbox Live Stats (retrieved using Duncan Mackenzie awesome API).
Code: Select all
[xboxLiveId=YourXboxLiveId]

imId - Instant Messenger Status (Format is: "Protocol|Login/ID". Available protocols are (aim, icq, yahoo, msn and skype),
Code: Select all
[imId=aim|myAimName]


Available dynamic text commands:
timeZone - Time zone considered in all date/time dynamic commands. Use PHP's available timezone options. This command must be entered BEFORE the source is specified.
Code: Select all
[timeZone=EDT]

dateFormat - Display RSS item pubDate format. (ex. "m/d/Y" is "08/01/2008"), see PHP's date() function fore more options. This command must be entered BEFORE the source is specified.
Code: Select all
[dateFormat=m/d/Y H:i]

titleSplit - Split RSS item title by a character and use only the Nth part. This command must be entered AFTER the source is specified. (Below example will make the %title% be only the word "Smith" if the RSS item title was "My name is:Smith")
Code: Select all
[titleSplit=:,2]

Note: When entering multiple commands they MUST be entered in the order listed above and precede any variables.

Available variables are:
%minutesUntil% - Minutes until counterDate.
%hoursUntil% - Hours until counterDate.
%daysUntil% - Days until counterDate.
%yearsUntil% - Years until counterDate.
%minutesSince% - Minutes since counterDate.
%hoursSince% - Hours since counterDate.
%daysSince% - Days since counterDate.
%yearsSince% - Years since counterDate.
%remoteIp% - IP address of viewer.
%now% - The current date/time (formatted by dateFormat)
%title% - Title of RSS item.
%pubDate% - Publish date of RSS item.
%uscfRegularRating% - USCF Regular Rating.
%uscfQuickRating% - USCF Quick Rating.
%uscfCorrespondenceRating% - USCF Correspondence Rating
%wowRealm% - World of Warcraft Realm
%wowName% - World of Warcraft Character Name
%wowRank% - World of Warcraft Rank
%wowLevel% - World of Warcraft Level
%wowClass% - World of Warcraft Class
%wowRace% - World of Warcraft Race
%rsName% - RuneScape Name
%rsSkillName_Rank% - RuneScape Skill Rank (replace SkillName with exact skill name from the highscores page)
%rsSkillName_Level% - RuneScape Skill Level (replace SkillName with exact skill name from the highscores page)
%rsSkillName_Xp% - RuneScape Skill XP (replace SkillName with exact skill name from the highscores page)
%rsMinigameName_Rank% - RuneScape Minigame Rank (Replace MinigameName with actual name of Minigame - Use underscores (_) instead of spaces if necessary!)
%rsMinigameName_Score% - RuneScape Minigame Score (replace MinigameName with actual name of Minigame - Use underscores (_) instead of spaces if necessary!)
%xboxGamertag% - Your Xbox Live Gamertag
%xboxStatus% - Your Current Xbox Live Status (online/offline)
%xboxGamerScore% - Your Xbox Live Gamer Score
%xboxZone% - Your Xbox Live Zone (Recreation, etc)
%xboxGameName_GamerScore% - Game Gamer Score (Replace spaces with underscores)
%xboxGameName_Achievements% - Game Achievements (Replace spaces with underscores)
%xboxGameName_TotalGamerScore% - Game Total Possible Gamer Score (Replace spaces with underscores)
%xboxGameName_TotalAchievements% - Game Total Possible Achievements (Replace spaces with underscores)
%xboxGameName_LastPlayed% - Game Last Played, use dateFormat to adjust (Replace spaces with underscores)
%imStatus% - Instant messenger status, either "online" or "offline".

Important: All dynamic text MUST contain at least one dynamic source (counterDate, rssLci, etc). You may not use the same dynamic source command more than once per userbar (for example, more than one imId per userbar will not work).
Important: Final text (dynamic or not) will always be truncated to 50 characters, unless you are a premium subscriber and check the "Multi-Frame" text option. With Multi-Frame you can also place a \n anywhere in the text to cause a new frame. For example:
Image
Important: Scroller layers are ignored when dynamic text is present.
Important: Dynamic userbars can NOT be combined with other userbars at The Userbar Animator.
Important: Dynamic Userbars that have not been viewed at least once in 30 days will be automatically deleted.

Examples:
Here are a few examples, some of these you can just edit for your use and plug right into the Text field on ubdesigner.com. If you have any that you'd like to see added for other users, reply to this post and I'll update!

Image
Count up counter:
Code: Select all
[counterDate=06/29/2006]The Ubdesigner is %daysSince% days old.


Image
Last artist played on last.fm (replace the word "username" with your real last.fm username:
Code: Select all
[timeZone=EDT][dateFormat=D @ g:ia][rssLci=http://ws.audioscrobbler.com/1.0/user/username/recenttracks.rss][titleSplit= - ,1]Listened to %title% on %pubDate%


Image
World of Warcraft character information, replace the "Realm" and "Name" with your actual WoW realm and character name.
Code: Select all
[wowId=Realm|Name]%wowRank% %wowName%: Level %wowLevel% %wowRace% %wowClass%


Image
Latest Xbox Live Achievements for GTA IV (replace "MyXboxLiveGamertag"):
Code: Select all
[dateFormat=m/d/Y @ g:ia][xboxLiveId=MyXboxLiveGamertag]Last Played %xboxMostRecentName% on %xboxMostRecentLastPlayed%


Image
Latest tweet on Twitter (replace the url for rssLci with your twitter timeline RSS url):
Code: Select all
[timeZone=EDT][dateFormat=D @ g:ia][rssLci=http://twitter.com/statuses/user_timeline/14479789.rss][titleSplit=: ,2]%pubDate%: %title%


Image
Your current instant messenger status (replace protocol and login):
Code: Select all
[imId=icq|55555]ICQ (55555): %imStatus%


Last post on LiveJournal (replace "username"):
Code: Select all
[timeZone=EDT][dateFormat=D @ g:ia][rssLci=http://username.livejournal.com/data/rss]%pubDate%: %title%'


Last post to a Wordpress blog (replace rssLci url):
Code: Select all
[timeZone=EDT][dateFormat=D @ g:ia][rssLci=http://somewordpressblog.com/?feed=rss2]%pubDate%: %title%


Current Chess Rating at USCF (replace USCF ID):
Code: Select all
[uscfId=55555555]USCF Reg Rating: %uscfRegularRating%


Current RuneScape Stats (replace runescapeName and skill/minigame):
Code: Select all
[runescapeName=MyRuneScapeName]%rsName% - Attack Rank: %rsAttack_Rank%

or
Code: Select all
[runescapeName=MyRuneScapeName]%rsName% - Bounty Hunter Score: %rsBounty_Hunters_Score%
Last edited by drunnells on Fri, 07 Aug 2009 11:26 +0000, edited 19 times in total.
Reason: Added IM Status
Dustin - drunnells
Image
Image
Image
User avatar
drunnells
Site Admin
 
Posts: 518
Joined: Sat, 28 Jan 2006 06:38 +0000
Location: Rochester, NY
Real Name: Dustin Runnells


Re: Dynamic Userbar Text!

Postby BBFlights on Tue, 13 Oct 2009 12:16 +0000

Is it possible to get various Vatsim statuses? It is retrieved in the following manner:

1) The script should retrieve http://usa-s1.vatsim.net/data/status.txt once every 24 hours.
2) Reading from status.txt, it should randomly choose a url0 location every five minutes and download the information locally.
3) From vatsim-data.txt, the script should look for the user's Vatsim ID (2nd field in !Clients) and show the following depending on the result:
-If the ID is not found, return "Vatsim ID %FieldTwo% is offline" (ex. "Vatsim ID 915973 is offline")
-If the ID is found, return "VATSIM %FieldFour%: %FieldOne%" (ex. "VATSIM ATC: DTW_TWR" or "VATSIM PILOT: AFA1979")

Perhaps the variable used could be %VatsimStatus%, where:
-%VatsimStatus% returns "Offline" when the ID is not found
-%VatsimStatus% returns the first field when the ID is found
BBFlights
Newbie
 
Posts: 1
Joined: Tue, 13 Oct 2009 12:03 +0000

Re: Dynamic Userbar Text!

Postby DavisJ3608 on Mon, 26 Oct 2009 12:20 +0000

Also, could we get a system for displaying Steam information? I know it's possible, but I kinda suck with stuff like this...
Image
"Remember when I was like 'Goodbye!' and you were like 'No way!' and I was like 'We pretended we were going to murder you!'? That was great."
-GLaDOS

"..."
-Gordon Freeman
User avatar
DavisJ3608
Newbie
 
Posts: 5
Joined: Fri, 23 Oct 2009 10:42 +0000
Location: West Salem, Oregon
Real Name: Phil

Re: Dynamic Userbar Text!

Postby DeathDog009 on Fri, 22 Jan 2010 11:21 +0000

ok for this to work with steam it would have to look at your steamprofile (http://steamcommunity.com/id/*steam account name here*), which has to be public for this to work.
couple things that would be nice to display would be online/when last online, What game your in currently. These are all shown on the steam page.
other than that it should be quite similar to an xbox gamertag page, i think.
DeathDog009
Newbie
 
Posts: 1
Joined: Fri, 22 Jan 2010 11:05 +0000

Re: Dynamic Userbar Text!

Postby Shooter87 on Tue, 02 Feb 2010 08:37 +0000

DeathDog009 wrote:ok for this to work with steam it would have to look at your steamprofile (http://steamcommunity.com/id/*steam account name here*), which has to be public for this to work.
couple things that would be nice to display would be online/when last online, What game your in currently. These are all shown on the steam page.
other than that it should be quite similar to an xbox gamertag page, i think.


A Steam profile status bar could come in handy, maybe Dustin can do it :wink:
| UB.com Contest Staff | PSN-ID: Shooter877
Image
Image
User avatar
Shooter87
UB.com Contest Staff
 
Posts: 701
Joined: Fri, 22 Aug 2008 03:25 +0000
Location: U.S.A somewhere


Return to Userbar Designer

Who is online

Users browsing this forum: No registered users and 1 guest

Forum Top Sites