NationStates Jolt Archive


Show off your nation!

20-04-2004, 08:08
Diplomatic Invasion and I got bored and wrote a bit of code to let you show off your nation on a website, blog, etc. Plus it's got the added benefit of promoting the game. :wink: Unfortunately, I can't paste in an HTML-heavy sample, but you can go here and check it out (my nation's ad is on the front):

http://l.armory.com/~relsqui/nation

Right now it just has your nation's motto, flag, name, and link in a box with your choice of colors. If there's any demand, I'll add other notes like currency/animal, UN category, and maybe even the beginning of the description (size permitting)--all of which will be neatly parsed from your nation page without you lifting a finger. Let me know what you think!


P.S. Although it expects the hex code for a number, you can really enter any string for the foreground and background colors. (For example, try your nation's name and see what color it is.) Also, there's a proper plug for Nationstates on it now.
20-04-2004, 09:52
Added a field: Now you can supply an alternate flag URL to use instead of the one that's pulled automatically from your nation page. This is just in case you have it saved on another server and want to reduce the load on Nationstates's.
21-04-2004, 05:18
Two changes: Fixed the front page so it uses the flag image stored locally instead of the one on the Nationstates server; adjusted the pastable code slightly so that users of Livejournal or anything else that autoformats text won't see extra lines breaks.
Colodia
21-04-2004, 05:21
Hey...nice...
21-04-2004, 05:22
Thanks. :P Let me know if you have any problems with it.
Sliders
21-04-2004, 07:45
pretty cool
if only I had a blog or a webpage....
21-04-2004, 09:12
pretty cool
if only I had a blog or a webpage....

My bandwagon of choice is livejournal.com--I recommend it if you do want a blog. :)
22-04-2004, 17:17
I'm debating adding a box you can check to select a random color for foreground or background. Is that appealing?
Enerica
22-04-2004, 18:14
Incredible, what language is it in?
23-04-2004, 17:57
Incredible, what language is it in?

The frontend (display and everything) is in PHP (mine)--the part that actually parses the page is a shell script (DI's).

Glad you like it. :)
Onion Pirates
23-04-2004, 18:44
Ye stole my flag, lubbers! All ye gave me is a tiny black box, arrr.
Kryozerkia
23-04-2004, 18:47
This is cool!!
Stephistan
23-04-2004, 19:11
Very Kewl! :)
24-04-2004, 06:50
1. Didn't steal it, just borrowed it ;) so you can show it off.
2. Thanks, and
3. Thanks! :D
Arizona Nova
24-04-2004, 07:25
It is nice, though I accomplished the same thing already with my nifty siggy link:


http://anikari.zioncreation.com/azbann2.gif (http://anikari.zioncreation.com/)
26-04-2004, 20:34
Fair enough, but is that freely available?
The Zoogie People
26-04-2004, 20:45
Let arms yield to the toga!

Well, it'd be nice to have just about every single stat the NS XML Feed gives you on it, but it's a great start...cool. Wish I could do something like that.
The Zoogie People
26-04-2004, 20:46
Let arms yield to the toga!

Well, it'd be nice to have just about every single stat the NS XML Feed gives you on it, but it's a great start...cool. Wish I could do something like that.
27-04-2004, 05:51
Let arms yield to the toga!

Well, it'd be nice to have just about every single stat the NS XML Feed gives you on it, but it's a great start...cool. Wish I could do something like that.


... which is funny, because togae don't have arms. :P But it was Latin, so it looks important.

(I do get it, I'm just being silly.)

I do not know of this XML feed business, but that's okay because I don't speak XML. PHP is quite easy to learn, especially if you have any kind of programming background :) it's basically C for the web, except with more useful functions, much simpler variables, and a couple of really useful operators (like string concatenation).

</phpwhore>