Turn your wordpress blog into a games arcade!
This beta version WordPress plugin, WP Games Embed, makes it easy to embed games into your WordPress blog by using shortcodes in your posts and pages. WP Games Embed is intended to be able to support content offered by the various free games sites out there using the codes or downloads they provide.
FEATURES
4 Different views:
- Grid view - a grid of thumbnail images linking to each game (can be restricted to a single category or parent category)
- Category view - this view includes a medium sized image and a written description of the game
- Single page view - the page where you play the game itself
- Featured Game view - this view is similar to category view, but allows you to pick the games yourself to create your own 'Featured Games' page.
Different embedding modes:
- iFrame embedding - embed iFrame content using code provided by free games sites, or use this method to display games from your own server where an html file has been provided with the free game download.
- Flash embedding - embed Flash content using embed codes provided by other sites, or embed flash games directly from your own site. You can even upload them easily using the wordpress 'Add Media' tool.
WORKING EXAMPLE
Visit Zap Gamez Arcade to see an example of the plugin in action.
INSTALLATION
- Download the plugin from the link at the bottom of this page
- Upload the wp-games-embed.php file to your wp-content/plugins folder.
- Activate the plugin from the Plugins page in WordPress.
USAGE
Use shortcodes to embed games into your posts, or to create a grid of thumbnails on a page or your home page.
Embedding a game in a post:
Shortcode: [game /]
Additional attributes:
- width - the width of the game
- height - the height of the game
- src - the url of the game (html file for iframe embedding, swf file for flash embedding)
- flash - if set to true flash embedding will be used, if set to false iframe embedding will be used. (default=false)
- thumb - the url of the thumbnail image (70px x 60px)
- main - the url of the large image (appx 300px wide)
- title - the name of the game!
- description - your description including controls etc.
- featured - whether this should be formatted as a featured game. (default=false)
- game_url - only to be used in Featured mode (when featured is set to true). See the shortcode examples below for more details.
Shortcode Example 1 (embedding game as iFrame):
[game width="640" height="480" src="http://www.example.com/games/pacman.html" thumb="http://www.mysite.com/images/pacman-small.jpg" main="http://www.mysite.com/images/pacman-medium.jpg" title="PacMan" description="This is a great game! Use the arrow keys to play." flash="false"/]
Shortcode Example 2 (embedding game as Flash):
[game width="640" height="480" src="http://www.mysite.com/games/pacman.swf" thumb="http://www.mysite.com/images/pacman-small.jpg" main="http://www.mysite.com/images/pacman-medium.jpg" title="PacMan" description="This is a great game! Use the arrow keys to play." flash="true"/]
Creating a grid of thumbnails on a page:
Shortcode: [get_latest_games /]
Additional attributes: list_category - the category id for the games you want to appear in the list.
The list_category attribute makes it possible to display the latest games under a certain category e.g. 'Arcade' or the latest games under all categories. Simply set up a main category called 'games' and then create all your games categories (action,adventure,sports, etc.) as sub-categories.
Shortcode Example 3 (thumbnail grid):
[get_latest_games list_category="2" /]
Creating a Featured Games page:
Shortcode: [game /]
Additional atrtributes: (see above)
The important attributes for creating a features games list are 'featured' which should be set to true, and 'game_url' the url where the game can be played on your site.
Shortcode Example 4 (featured games):
[game main="http://www.myblog.com/uploads/pacman-medium.jpg" title="PacMan" description="This is a great game! Use the arrow keys to play." featured="true" game_url= "http://www.myblog.com/games/pacman/" /]
[game main="http://www.myblog.com/uploads/donkeykong-medium.jpg" title="Donkey Kong" description="This is a great game! Use the arrow keys to play." featured="true" game_url= "http://www.myblog.com/games/donkey-kong/" /]
DOWNLOAD THE PLUGIN
good article, thanks for this useful info, I have dug and stumbled this article. I will keep visiting for more useful information.
great article. thank
this game is so good I have played it several days ago
Keep it up man! Now, when I need useful info I’ll come here.
Smarter than an average blog…cheers
Nice Kindly visit my site
[...] Games Arcade Website powered by WordPress Sam Burdge Posted by root 19 hours ago (http://www.samburdge.co.uk) 4 responses to games arcade website powered by wordpress comment by ashish date march 17th 2009 at 7 58 am good article thanks for this useful info Discuss | Bury | News | games arcade website powered by wordpress sam burdge [...]
This is a great game. Great info
[...] Games Arcade Website powered by WordPress Sam Burdge Posted by root 6 hours ago (http://www.samburdge.co.uk) 5 responses to games arcade website powered by wordpress comment by ashish comment by budi date april 23rd 2009 at 1 34 pm keep it up man reliable web hosting linux amp windows hosting starting at just 1 99 per month Discuss | Bury | News | games arcade website powered by wordpress sam burdge [...]
wow i think wordpress just for blog, but im wrong, good idea bro
visit mine i have lotz of free games too -yay-
Nice plugin, made myself also a mochiads wordpress plugin, its still in decelopment.
i heavily cusomized a video theme for the layout.
you might wanne check it some times.
god job…
grts,
chris
Hey, this is cool free stuff
Awesome post. Very informative
This post must contain keywords that are attracting too many spam bots. Sorry but comments are now closed on this post.
i am new to wordpress but i like this site, good article… and i like the sound od the flash arcade….
i have downloaded your beta plugins, nice plugin mate, thanks
So, this is interesting for me, I will translate it and post to my saite http://grang.info Thanks, Alex
Great article, adding it to my bookmarks!
Great work with the blog mate let me know if you want to partner up with my blog as well! =]
Nice your beta
I’ll gonna translate in romanian language this post and i will put a direct link to your site. Thank you
Very cool. I finally got around to changing my own games site, http://www.kwikgames.com over to Wordpress earlier this year. After years of updating static HTML pages it was high time I made the switch and was thoroughly worth it…
I love your thumbnail “grid”! You might want to use a rating plugin, there are quite a few good ones, so you can show most popular games and encourage more user interaction, but overall it looks great. And to anyone thinking of using WP for a games site I highly recommend it!
that is what i need
thanks!