View Single Post
  #55  
Old 03-03-2006, 12:47 PM
Morrus Morrus is offline
 
Join Date: Jan 2002
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A slight variation I made which I think is a tad cleaner. This is a replacement for the article_randomgame5_alt template.

Use alt1 and alt2 as your two colours in the settings in the AdminCP.

Place the $showrandomgame just below the <!-- end what's going on box --> line in FORUMHOME.

Code:
	  
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="341%" align="center">
  <thead> 
  <tr> 
    <td class="$vboptions[ranstyle1]" colspan="5"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_randomtopic')"><img id="collapseimg_forumhome_randomtopic" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" alt="" border="0" /></a>5 
      Random Arcade Games (Buy an <a href="http://www.enworld.org/nuttest/estore.php?do=action&itemid=32">Arcade 
      Pass</a> from the eStore!)</td>
  </tr>
  </thead> <tbody id="collapseobj_forumhome_randomtopic" style="$vbcollapse[collapseobj_forumhome_randomtopic]"> 
  <tr> 
    <td class="$vboptions[ranstyle2]" width="5%" valign="middle"> 
      <center><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid0"> 
        <img src="$vboptions[arcadeimages]/$randomstimg0" title="$randomdescr0" border=0 width=50 height=50 hspace=2 vspace=1 align=absmiddle> 
      </center></a>
      </td>
    <td class="$vboptions[ranstyle2]" width="5%" valign="middle"> 
      <center><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid1"> 
        <img src="$vboptions[arcadeimages]/$randomstimg1" title="$randomdescr1" border=0 width=50 height=50 hspace=2 vspace=1 align=absmiddle> 
      </center></a>
      </td>
    <td class="$vboptions[ranstyle2]" width="5%" valign="middle"> 
      <center><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid2"> 
        <img src="$vboptions[arcadeimages]/$randomstimg2" title="$randomdescr2" border=0 width=50 height=50 hspace=2 vspace=1 align=absmiddle> 
      </center></a>
      </td>
    <td class="$vboptions[ranstyle2]" width="5%" valign="middle"> 
      <center><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid3"> 
        <img src="$vboptions[arcadeimages]/$randomstimg3" title="$randomdescr3" border=0 width=50 height=50 hspace=2 vspace=1 align=absmiddle> 
      </center></a>
      </td>
    <td class="$vboptions[ranstyle2]" width="5%" valign="middle"> 
      <center><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid4"> 
        <img src="$vboptions[arcadeimages]/$randomstimg4" title="$randomdescr4" border=0 width=50 height=50 hspace=2 vspace=1 align=absmiddle> 
      </center></a>
      </td>
  </tr>
  <tr> 
    <td class="$vboptions[ranstyle2]" width="17%" valign="middle" align="center"><font size=1><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid0">$randomtitle0</a><br>
      <a href="arcade.php?categoryid=$randomcatid0">$randomcatn0</a> <br>
      <a href="member.php?$session[sessionurl_q]u=$randomhigid3" target="_blank">$randomname0</a><a href="arcade.php?categoryid=$randomcatid0"> 
      </a> <br>
      <img src="$vboptions[arcadeimages]/rstb$randomrating0.gif" title="$vbphrase[rating5]" border=0 hspace=4 align=absmiddle> 
    </td>
    <td class="$vboptions[ranstyle2]" width="17%" valign="middle" align="center"><font size=1><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid1">$randomtitle1</a><br>
      <a href="arcade.php?categoryid=$randomcatid1">$randomcatn1</a> <br>
      <a href="member.php?$session[sessionurl_q]u=$randomhigid3" target="_blank">$randomname1</a><a href="arcade.php?categoryid=$randomcatid1"> 
      </a> <br>
      <img src="$vboptions[arcadeimages]/rstb$randomrating1.gif" title="$vbphrase[rating5]" border=0 hspace=4 align=absmiddle> 
    </td>
    <td class="$vboptions[ranstyle2]" width="17%" valign="middle" align="center"><font size=1><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid2">$randomtitle2</a><br>
      <a href="arcade.php?categoryid=$randomcatid2">$randomcatn2<br>
      </a><a href="member.php?$session[sessionurl_q]u=$randomhigid3" target="_blank">$randomname2</a><a href="arcade.php?categoryid=$randomcatid2"> 
      </a><a href="arcade.php?categoryid=$randomcatid2"> <br>
      <img src="$vboptions[arcadeimages]/rstb$randomrating2.gif" title="$vbphrase[rating5]" border=0 hspace=4 align=absmiddle> 
      </a></td>
    <td class="$vboptions[ranstyle2]" width="17%" valign="middle" align="center"><font size=1><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid3">$randomtitle3</a><br>
      <a href="arcade.php?categoryid=$randomcatid3">$randomcatn3<br>
      </a><a href="member.php?$session[sessionurl_q]u=$randomhigid3" target="_blank">$randomname3</a><a href="arcade.php?categoryid=$randomcatid3"> 
      <br>
      <img src="$vboptions[arcadeimages]/rstb$randomrating3.gif" title="$vbphrase[rating5]" border=0 hspace=4 align=absmiddle> 
      </a></td>
    <td class="$vboptions[ranstyle2]" width="17%" valign="middle" align="center"><font size=1><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid4">$randomtitle4</a><br>
      <a href="arcade.php?categoryid=$randomcatid4">$randomcatn4</a> <br>
      <a href="member.php?$session[sessionurl_q]u=$randomhigid4" target="_blank">$randomname4<br>
      <img src="$vboptions[arcadeimages]/rstb$randomrating4.gif" title="$vbphrase[rating5]" border=0 hspace=4 align=absmiddle> 
      </a></td>
  </tr>
  </tbody> 
</table>
<br />
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01487 seconds
  • Memory Usage 1,799KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete