• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • About Us
  • Contact Us
  • Who’s Who
  • Archive
  • Lauren Stuff
    • Lauren’s To-Do List
    • Bacon Mat Gallery
    • Preschool Quotes
    • Bat Bugs and You
    • Hilarious!
    • Pot Pie recipe
    • Utility Bills
    • Gas Bills
    • Building Committee CDC
  • Lloyd Stuff
    • Lloyd’s To-Do List
    • 50 Best Movies for Middle School
    • Good High School Websites
    • Fantasy Baseball Files
    • Website Rubric & Programming Rubric
    • I Want to Bake Bread
    • I Want to Forge Swords
    • Sorry Chuck. Sorry Brad.
    • The Lloyd Gallery
    • Narnia in Pop Culture
    • myMiniCity WordPress Plugin
    • Settlers Record
  • Prius Camping
  • Brazil
    • Martin Hofman Diaries – 1946
Lloyd and Lauren website logo

LaurenandLloyd.com

where our wasted time becomes your wasted time

  • Most Popular
  • Drawings
  • Videos
  • Worst day ever
  • Journal
  • More
  • Brazil

myMiniCity WordPress Plugin

What is this?

This WordPress plugin displays statistics for your www.myminicity.com town. It also provides links to the various URLs associated with your MiniCity as they are needed. I spent a while looking for a plugin that would do this, and finally decided that this would be a good chance for me to learn how to write WordPress plugins. So this is my first plugin, and it could probably use some work. But it wouldn’t be working at all if not for the Ronald Huereca’s How to Write a WordPress Plugin article.

The plugin can be Downloaded Here.

Features:

  • Display Population, Unemployment, Transportation, Crime and Pollution for your city.
  • Only displays links that your city currently needs. (no Unemployment link with 0% unemployment)
  • Statistics can be set to display with positive descriptions (Employment vs. Unemployment)
  • Population link can be turned off based on other city statistics (i.e. Unemployment <= 3%)
  • City statistics links can be turned off until they fall below a specified level
  • City can be displayed within the plugin
  • Options page to customize the above features plus the following:
    1. URL of the city
    2. whether to include plugin stylesheet on your site
    3. additional HTML to attach before/after the city stats
    4. size of the city object to embed

Demo/Screenshots

It’s over there to the right.

MyMiniCity WordPress plugin screenshotMyMiniCity WordPress plugin administrator options screenshot

To Do:

  • Option to display city name, location and rank.
  • There are some myMiniCity options that are not displayed because I don’t know what they do.
  • Make the plugin work as a widget.
  • Internationalization
  • Allow multiple cities to be displayed from the same plugin installation

Installation:

  1. Download the plugin and unzip it.
  2. Put the ‘ls_myminicity’ folder into your wp-content/plugins/ directory.
  3. Go to the Plugins page in your WordPress Administration area and click ‘Activate’ next to myMiniCity.
  4. Go to Options > myMiniCity to configure your settings and click ‘save’.
  5. Place the statistics where you want by placing <?php ls_myminicity(); ?> into your theme (most likely your sidebar).

Feedback:

Write me at Lloyd@LloydAndLauren.com or leave a comment below. I’m very interested in any suggestions for improving the plugin or the code.

History:

  • v0.5: 01/06/2008 Version as it first appeared on my site.
  • v0.6: 01/07/2008 Added Positive Description feature and Population Link Criteria Feature
  • v0.7: 01/08/2008 Optionally display the city object and show commercial link for cities with population greater than 1000
  • v0.71: 01/12/2008 The plugin now works if you don’t have the Curl library installed on your server
  • v0.8: 01/30/2008 City statistics links can be turned off until they fall below a specified level

MyMiniCity Links

  • MyMiniCity Data: A site to create images with your city statistics.
  • Joomla Module that seems to do about the same thing this plugin does. (note: it doesn’t seem available anylonger)
  • Very nice myMiniCity widget with thumbnail. Written in Chinese, you can change the ouput to English with the parameter &lang=enUS; see comment below. (translation)
  • This site compares any two myMiniCity cities. This one is in Japanese.
  • Another nice Chinese myMiniCity widget, this one is also has a thumbnail. (translation)
  • My Minicity Toolbox: This site has many interesting tools for your city. Lots of good stuff here.
  • CreateMyMiniCity Forums: a group of message boards devoted to myMiniCity (multiple languages). It also contains the MyMiniCity Noobs FAQ with a lot of good information including formulas for city statistics.

Reader Interactions

Comments

  1. Deanne says

    January 7, 2008 at 7:00 am

    Fabulous, Lloyd! Now I’ll remember every time I come to the site that I need to add a new person to Laurenburg. I’ve been doing it at work, on & off. But having the toolbar will surely help me to remember to do it regularly.

    Laurenburg is really looking good now!

    Reply
    • arenas says

      June 13, 2009 at 3:40 am

      hi

      look at her 🙂

      http://de.geocities.com/arnold_at_home/MyMiniCity_MiniVille.html

      by

      Reply
  2. evenrain says

    January 8, 2008 at 8:09 pm

    Hi,
    I’m the author of the “myMiniCity widget”,
    you can translate the widget to English by adding parmater “lang”.
    Like, <script src=”http://widgets.evenrain.net/myminicity.php?city=yourcityname&lang=enUS” type=”text/javascript” charset=”UTF-8″></script>
    FYI

    BTW, the fourth and fifth link is Japanese site, not Chinese 🙂

    Reply
    • Lloyd says

      January 8, 2008 at 8:36 pm

      Hi, very nice work on the widget. I didn’t think about including the flash application until I saw yours.

      I’m stuck on how to compute the final parameter for the flashVars variable. Did you scrape it from myminicity.com? Or can you compute it?

      Dang, sorry about the Chinese/Japanese mixup. I clicked on a lot of google [translate this page] links.

      Reply
  3. evenrain says

    January 8, 2008 at 9:13 pm

    I scrape the last paeameter from myminicity.com, cause I don’t know how to compute it 🙂

    Reply
  4. zhooibaal says

    January 9, 2008 at 2:53 pm

    Cool stuff, I think I’ll add this to my blog as well whenever I have the time to work on it. I have a complete makeover planned for the layout, but I lack the time like I lack the time to post anything…

    Anyways, thanks for the comment 🙂

    Reply
  5. TKLolicon says

    February 19, 2008 at 1:56 am

    Hi, i donwload th plugin but this not work in wordpress widget! and my template not support sidebar! Only widgets! Please helpme! sorry for my english I speak spanish! 🙁

    Reply
  6. blah says

    May 10, 2008 at 1:28 am

    The Nordmograph one is available for download on the Nordmograph site here:
    http://www.nordmograph.com/index.php?option=com_docman&task=doc_details&gid=2&Itemid=28

    Reply
  7. Edem says

    June 12, 2008 at 11:25 pm

    Is there any chance to insert an option to invoke this not as a php code? I’d like to call it from a sidebar widget, but the textbox widget won’t interpret php…

    Reply
    • Lloyd says

      June 13, 2008 at 5:47 am

      I don’t actually know anything about how sidebar widgets are written. I would think that it wouldn’t be too hard to compare a sidebar widget to a “normal” plugin and make changes. But I don’t think I’ll have the time to do that soon.

      But are you sure it won’t work? Sure, it won’t work as a widget, but if you just insert <?php ls_myminicity(); ?> into your sidebar.php file?

      Reply
  8. Maxxon says

    November 26, 2008 at 6:09 pm

    Thanks a lot for the plugin. =)
    I started to think about making one, but found yours and it was really simple to customize. =)

    Reply
  9. Bozz277 says

    March 27, 2009 at 6:00 am

    i dont understand this`?
    http://k-town277.myminicity.com

    Reply
  10. http://martinmanija.myminicity.com says

    May 14, 2009 at 7:53 am

    VISIT please

    Reply
  11. Joomla Experts says

    July 11, 2009 at 12:38 pm

    Love this

    Reply
  12. Togdoorgo says

    September 5, 2009 at 6:05 am

    Thanks!

    Reply
  13. Sam says

    June 18, 2011 at 5:25 am

    Can you help my city have more people please its name is Billstone

    Reply
  14. Sam says

    November 2, 2012 at 7:34 pm

    I’m trying to download the plugin but it looks like it’s not there any longer. Can you please help? Anybody have it?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Comments

  • Karla January 28, 2023 at 9:23 am on Lauren Gets a Smart Phone….. with resistanceArron is just about done paying off his watch with vitality. Helpful hint: if you’re having a bad month and[more]
  • Kristi January 27, 2023 at 1:00 pm on God is awesome.The delivery guys are the best!!! They carry the goods; they really do.
  • Brad January 27, 2023 at 9:22 am on God is awesome.Ha! That's awesome! When I ordered my bathroom sink it required a signature. Ugh. Fortunately, my neighbor saw the FedEx[more]
  • Mark January 27, 2023 at 7:32 am on God is awesome.Post pictures! Post pictures! I want to see this first-smart-phone in your hands. It’s almost unbelievable!
  • Beth January 27, 2023 at 6:32 am on God is awesome.I saw that post…I laughed out loud knowing that you were on a mission to get something from him. Now[more]

Friends

  • Brad
  • Deanne
  • Gretchen
  • Kitt
  • Kris
  • Kristi
  • Top

Sites

  • CSTA Nebraska
  • Lincoln Lutheran
  • Lorenz Family
  • Preschool Pointers
  • Programming Class
  • Sommerer Family
  • St. John CDC
  • Weber Family
  • WP Login

Tags

add art auction Bacon bathroom birthday brad camera Cartoon cat cats choir christmas clothing computer Cricket family food Gadget game garden geek green hair house ipad iphone kitchen laundry mail Meta movie movies music mystery omaha Peggy preschool reunion royuks School seward Small Town tv ukulele

Brad Quote

Brad Royuk could teach Chuck Norris a thing or two.

Copyright © 2023 · Genesis Sample on Genesis Framework · WordPress · Log in