--------------------------------------------------------------------------- in templates/primary.php find the poppup stuff and add this to it --------------------------------------------------------------------------- function openitempopup1(){ var popurl="index.php?do=showitem:1" winpops=window.open(popurl,"","width=520,height=520,scrollbars") } function openitempopup2(){ var popurl="index.php?do=showitem:2" winpops=window.open(popurl,"","width=520,height=520,scrollbars") } function openitempopup3(){ var popurl="index.php?do=showitem:3" winpops=window.open(popurl,"","width=520,height=520,scrollbars") } function openitempopup4(){ var popurl="index.php?do=showitem:4" winpops=window.open(popurl,"","width=520,height=520,scrollbars") } function openitempopup5(){ var popurl="index.php?do=showitem:5" winpops=window.open(popurl,"","width=520,height=520,scrollbars") } function openitempopup6(){ var popurl="index.php?do=showitem:6" winpops=window.open(popurl,"","width=520,height=520,scrollbars") } --------------------------------------------------------------------------- in templates/rightnav.php --------------------------------------------------------------------------- replace the whole item part with this WeaponWeapon: {{weaponname}} ArmorArmor: {{armorname}} ShieldShield: {{shieldname}} Slot 1: {{slot1name}}
Slot 2: {{slot2name}}
Slot 3: {{slot3name}} --------------------------------------------------------------------------- in templates/ create a new php file called showitem.php and add this to it --------------------------------------------------------------------------- {{title}} {{content}} THEVERYENDOFYOU; ?> --------------------------------------------------------------------------- in index.php find the misc $do stuff and add this to them --------------------------------------------------------------------------- elseif ($do[0] == "showitem") { showitem($do[1]); } --------------------------------------------------------------------------- still in index.php add this function somewhere --------------------------------------------------------------------------- function showitem($id) { global $itemrow, $userrow; if ($id == 1) { $itemquery = doquery("SELECT * FROM {{table}} WHERE id='$userrow[weaponid]' LIMIT 1", "items"); } if ($id == 2) { $itemquery = doquery("SELECT * FROM {{table}} WHERE id='$userrow[armorid]' LIMIT 1", "items"); } if ($id == 3) { $itemquery = doquery("SELECT * FROM {{table}} WHERE id='$userrow[shieldid]' LIMIT 1", "items"); } if ($id == 4) { $itemquery = doquery("SELECT * FROM {{table}} WHERE id='$userrow[slot1id]' LIMIT 1", "items"); } if ($id == 5) { $itemquery = doquery("SELECT * FROM {{table}} WHERE id='$userrow[slot2id]' LIMIT 1", "items"); } if ($id == 6) { $itemquery = doquery("SELECT * FROM {{table}} WHERE id='$userrow[slot3id]' LIMIT 1", "items"); } if (mysql_num_rows($itemquery) == 1) { $itemrow = mysql_fetch_array($itemquery); } else { display("$userrow[weaponid] No such item.", "Error"); } // Make page tags for XHTML validation. $xml = "\n" . "\n" . "\n"; $page = $xml . gettemplate("showitem"); if ($itemrow["special"] == "X") { $array = array("content"=>"$itemrow[name]

This item has no special abilities
", "title"=>"$itemrow[name]"); } else { $special = explode(",",$itemrow["special"]); $array = array("content"=>"$itemrow[name]
$special[0]
$special[1]
", "title"=>"$itemrow[name]"); } echo parsetemplate($page, $array); die(); }