PDA

View Full Version : vbarcade quick links on front page


yayvb
28 Nov 2005, 04:39
This is very amateur, but I am not a coder, just thought someone without much knowledge may find this helpful. I feel this small template modification may increase user registrations since it has the ability to quickly show that you have games on your site.

This is a simple modification, not intended for advanced users as these images are static and not at all randomized, etc. But atleast if someone humors me and clicks install someday I will feel special. :)

Also if you see that I'm not showing the correct way, or a proper way to do something here, please let me know so I can correct it in case someone ever does use this.

Here's a screenshot:
http://www.420boards.com/images/screenie.gif
Here's what to do:

In your FORUMHOME template, find $navbar.

Between $navbar and <!-- main --> add this:

<!-- arcade -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="thead" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">Check out some of our NEW arcade games </td>
</tr>
<tr> <td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
<table align="center" border="0" width="100%">
<tr class="alt2">
<td align="center"><a href="../arcade.php?do=play&gameid=1"><img src="../images/arcade/snake1.gif" border="0"></a> </td>
<td align="center"><a href="../arcade.php?do=play&gameid=5"><img src="../images/arcade/chopper1.gif" border="0"> </td>
<td align="center"><a href="../arcade.php?do=play&gameid=2"><img src="../images/arcade/spaceinvaders1.gif" border="0"> </td>
<td align="center"><a href="../arcade.php?do=play&gameid=7"><img src="../images/arcade/asteroids1.gif" border="0"> </td>
<td align="center"><a href="../arcade.php?do=play&gameid=6"><img src="../images/arcade/tetris1.gif" border="0"> </td>
<td align="center"><a href="../arcade.php?do=play&gameid=13"><img src="../images/arcade/simon1.gif" border="0"> </td>
<td align="center"><a href="../arcade.php?do=play&gameid=12"><img src="../images/arcade/breakout1.gif" border="0"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="tcat" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">(Click on any of these games above to begin playing that game.)</td>
</tr>

</thead>
</table>
</br>
<!-- end arcade -->

This is assuming that you have the five packaged vbarcade games, and you have installed the first two additional available (Breakout & Simon).

You will have to change the location reference for each of the above icons to the ID that your arcade games are listed under. In other words the above links will bring you to where my games are, but each install may produce a different game ID, do hover your mouse over your game to find out it's unique id.

If you think my modification is pointless, sorry lol.

G-Force 199
28 Nov 2005, 07:56
It looks like a simple table using vBulletin classes.
Otherwise, thanks any way.

But you should upload the screenshot as a attachment.
Clicked Install

LiQuid ArroW
28 Nov 2005, 14:37
Very nice mate, the images of the arcade games won't show though, probably something I have done wrong.

EDIT:

Problem solved.. you had ../images ... so I had to make it ./ as my forum is in a folder and not in the root folder.

Working great btw.

Snake
29 Nov 2005, 12:37
That is some nice hack!

youradultworld
29 Nov 2005, 13:50
Thanks so much guys, I felt strange posting something like this, but sometimes simple is ok. :)

C_P
29 Nov 2005, 15:01
Nice little mod. I too had to modify image paths a bit as suggested but worked nicely!
http://www.cpfools.com/forum/index.php

deaconxgp
29 Nov 2005, 17:20
cool dude. installed and working. :)

youradultworld
01 Dec 2005, 02:01
Hi everyone, MioTraGusa has made a '5 random game icons on the front page' template modification which can be found here:

http://www.vbulletin.org/forum/showthread.php?p=837268

That's beyond the scope of what I can do, and I think it may be a better solution too. Thanks for installing what I made though. :)

Chris

Mastar
01 Dec 2005, 04:38
I'm getting a no permissions error

yayvb
02 Dec 2005, 02:31
No permissions? All that this modification does is add some html to the template, so I don't see why you would see that message. Are you sure you're not speaking about the 5 random images on the front page?

If you just added the code to the template and are getting this problem afterwards and you didn't before hand, then I would recommend reverting your template and perhaps try the other 5 random arcade images hack.

Hope I atleast helped in some way with this message. :squareeyed:

JY.
02 Dec 2005, 15:30
Excellent installed !! ;)

egyptsons
02 Dec 2005, 17:07
nice but this is for Which game I will decide to put on the table not the really installed
any way good idea :)

xtreme-mobile
04 Dec 2005, 16:28
like it :)

Mastar
04 Dec 2005, 23:01
No permissions? All that this modification does is add some html to the template, so I don't see why you would see that message. Are you sure you're not speaking about the 5 random images on the front page?

If you just added the code to the template and are getting this problem afterwards and you didn't before hand, then I would recommend reverting your template and perhaps try the other 5 random arcade images hack.

Hope I atleast helped in some way with this message. :squareeyed:

Thanks for your response, I've already installed that onther a 5 random arcade image hack.

I don't see why I'm getting that message either.

saba
24 Apr 2006, 09:33
the images dont show up