Lifer420
Advanced OT User
- Joined
- Jul 27, 2009
- Messages
- 1,490
- Reaction score
- 196
GESIOR 2012 + TFS 0.4
Okay, so on my shop I have an "ITEMS" section (which comes with the shop) and in the script for the shop there is a 2nd line called "Containers" which doesn't show up unless I edit it. So I edited it to say "IN-GAME ITEMS" which I will use for ingame items and others.
But when I change the code to add "item to in-game items", the item still adds to "ITEMS" because im using a talkaction ingame to make them. Can anyone help?
I change it to
What am I doing wrong? I can edit the items to go to section "in-game items" with myphpadmin, but then there is no picture for X item
Okay, so on my shop I have an "ITEMS" section (which comes with the shop) and in the script for the shop there is a 2nd line called "Containers" which doesn't show up unless I edit it. So I edited it to say "IN-GAME ITEMS" which I will use for ingame items and others.
But when I change the code to add "item to in-game items", the item still adds to "ITEMS" because im using a talkaction ingame to make them. Can anyone help?
Code:
$main_content .= '<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" ALIGN=left CLASS=white colspan="2"><B>Choose a category: </B>';
if(count($offer_list['item']) > 0) $main_content .= '<a href="?subtopic=shopsystem&action=item" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: '.selectcolor('item').';">ITEMS</a>';
if(count($offer_list['container']) > 0) $main_content .= '<a href="?subtopic=shopsystem&action=container" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: '.selectcolor('container').';">CONTAINERS</a>';
$main_content .= '</TD></TR></TD></TR></table><table BORDER=0 CELLPaDDING="4" CELLSPaCING="1" style="width:100%;font-weight:bold;text-align:center;"><tr style="background:#505050;"><td colspan="3" style="height:px;"></td></tr></table>';
}
I change it to
Code:
$main_content .= '<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" ALIGN=left CLASS=white colspan="2"><B>Choose a category: </B>';
if(count($offer_list['item']) > 0) $main_content .= '<a href="?subtopic=shopsystem&action=item" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: '.selectcolor('item').';">ITEMS</a>';
if(count($offer_list['item']) > 0) $main_content .= '<a href="?subtopic=shopsystem&action=container" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: '.selectcolor('container').';">IN-GAME ITEMS</a>';
$main_content .= '</TD></TR></TD></TR></table><table BORDER=0 CELLPaDDING="4" CELLSPaCING="1" style="width:100%;font-weight:bold;text-align:center;"><tr style="background:#505050;"><td colspan="3" style="height:px;"></td></tr></table>';
}
What am I doing wrong? I can edit the items to go to section "in-game items" with myphpadmin, but then there is no picture for X item
Last edited: