vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   vbarcade quick links on front page (https://vborg.vbsupport.ru/showthread.php?t=101753)

yayvb 11-27-2005 10:00 PM

vbarcade quick links on front page
 
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:
Here's what to do:

In your FORUMHOME template, find $navbar.

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

Code:

<!-- 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:


All times are GMT. The time now is 03:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01049 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete