Log in

View Full Version : vbarcade quick links on front page


yayvb
11-27-2005, 10:00 PM
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
11-28-2005, 06:56 AM
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
11-28-2005, 01:37 PM
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
11-29-2005, 11:37 AM
That is some nice hack!

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

C_P
11-29-2005, 02:01 PM
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
11-29-2005, 04:20 PM
cool dude. installed and working. :)

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

https://vborg.vbsupport.ru/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
12-01-2005, 03:38 AM
I'm getting a no permissions error

yayvb
12-02-2005, 01:31 AM
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:

J?Y.
12-02-2005, 02:30 PM
Excellent installed !! ;)

egyptsons
12-02-2005, 04:07 PM
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
12-04-2005, 03:28 PM
like it :)

Mastar
12-04-2005, 10:01 PM
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
04-24-2006, 08:33 AM
the images dont show up