Jump to content


Making a games website but can't figure something out

  • Please log in to reply
1 reply to this topic

#1 Justinx89x

  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 18 April 2006 - 11:11 PM

How can I modify my template file to put something like this...

[img src=\"http://www.dxcr.com/whatiwant.JPG\" border=\"0\" alt=\"IPB Image\" /]

[img src=\"http://www.dxcr.com/whatihave.JPG\" border=\"0\" alt=\"IPB Image\" /]

The template file I am trying to change is the file that has the template for everytime a game is opened. I want my users to be able to see a code that they can copy and paste on to their site.
Here is my template code...<br>
$templates = array();

$templates['category'] = '<div class=\"header\">{$category[\'cName\']}</div>

$templates['game'] = '<div class=\"game\">
<p class=\"img\">
<img src=\"{$this->imgdir}/{$game[\'gThumb\']}\" alt=\"{$game[\'gName\']} - {$game[\'gDescription\']}\" />
<p class=\"ic\">
<br />
<br />
<strong><a href=\"{$_SERVER[\'PHP_SELF\']}?act=play&id={$game[\'gId\']}\">Play</a></strong>
<div style=\"clear:both\"></div>
$templates['gdoublewrapper'] = '<div>
<div style=\"clear:both\"></div>

$templates['list_wrapper_all'] = '<div class=\"header\">{$action}</div>
<p class=\"general\" style=\"margin-bottom: 10px;\">

$templates['list_repeat_all'] = '<a href=\"{$_SERVER[\'PHP_SELF\']}?act=play&id={$stat[\'gId\']}\">{$stat[\'gName\']}</a><em>{$extra}</em><br />';

$templates['game_play'] = '
<div class=\"playcenter\">
<p class=\"header\">{$game[\'cName\']} ยป {$game[\'gName\']}</p>
<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"{$game[\'gWidth\']}\" height=\"{$game[\'gHeight\']}\">
  <param name=\"movie\" value=\"{$this->swfdir}/{$game[\'gSwfFile\']}\" />
  <param name=\"quality\" value=\"high\" />
  <embed src=\"{$this->swfdir}/{$game[\'gSwfFile\']}\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"{$game[\'gWidth\']}\" height=\"{$game[\'gHeight\']}\"></embed>
<p class=\"header\"> </p>
<p class=\"general\"><strong>Description: </strong>{$game[\'gDescription\']}<br />

<strong>Player: </strong>You are player number {$this->gamedata[$game[\'gInCategory\']][\'games\'][$game[\'gId\']][\'Played\']}</p>



#2 Justinx89x

  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 19 April 2006 - 08:21 PM


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users