öffne shop.php
suche:
Code: Alles auswählen
if( eregi(',', $shop_config['pn_admins']) )
{
$admins = str_replace(' ', '', phpbb_ltrim(phpbb_rtrim(stripslashes($shop_config['pn_admins']))));
$admins = explode(',', $shop_config['pn_admins']);
}
else
{
$admins = str_replace(' ', '', trim(stripslashes($shop_config['pn_admins'])));
}
füge dannach ein:
suche:
Code: Alles auswählen
$pn_text = sprintf($lang['shop_buyed_pn'], $userdata['username'], $item['item_name']);
ersetze mit:
Code: Alles auswählen
$pn_text = sprintf($lang['shop_buyed_pn'], $userdata['username'], $item['item_name'], $new);
suche:
Code: Alles auswählen
$template->assign_block_vars('switch_is_item.cat_row.item_row', array(
'ITEM_ID' => $row['item_id'],
'ITEM_URL' => append_sid($phpbb_root_path . 'shop.' . $phpEx .'?buyed='.$row['item_id']),
'ITEM_NAME' => $row['item_name'],
'ITEM_PRICE' => $row['item_price']. ' ' .$shop_config['waehrung'],
'ITEM_DESC' => str_replace('?*"', '"', $row['item_desc'])
));
ersetze mit:
Code: Alles auswählen
$template->assign_block_vars('switch_is_item.cat_row.item_row', array(
'ITEM_ID' => $row['item_id'],
'ITEM_URL' => $userdata['session_id'],
'ITEM_NAME' => $row['item_name'],
'ITEM_PRICE' => $row['item_price']. ' ' .$shop_config['waehrung'],
'ITEM_DESC' => str_replace('?*"', '"', $row['item_desc'])
));
öffne language/lang_german/lang_shop.php
suche:
Code: Alles auswählen
$lang['shop_buyed_pn'] = "Der Benutzer \"%s\" hat folgendes Item gekauft \"%s\", setze dich mit ihm Verbindung\r\n\r\n Dein Shop";
ersetze mit:
Code: Alles auswählen
$lang['shop_buyed_pn'] = "Der Benutzer \"%s\" hat folgendes Item gekauft \"%s\", setze dich mit ihm Verbindung\r\n Zusatz: \"%s\" \r\n\r\n Dein Shop";
öffne templates/subSilver/shop_body.tpl
suche:
Code: Alles auswählen
<td class="row1" width="50%" align="center" valign="top"><a href="{switch_is_item.cat_row.item_row.ITEM_URL}">{switch_is_item.cat_row.item_row.ITEM_NAME}</a><br />
<span class="gensmall">{switch_is_item.cat_row.item_row.ITEM_DESC}</span></td>
<td class="row2" width="50%" align="center" valign="top">{switch_is_item.cat_row.item_row.ITEM_PRICE}</td>
ersetze mit:
Code: Alles auswählen
<td class="row1" width="50%" align="center" valign="top"><form method="get"><input type="submit" name="submit" value="{switch_is_item.cat_row.item_row.ITEM_NAME}">
<input type="hidden" value="{switch_is_item.cat_row.item_row.ITEM_ID}" name="buyed" />
<input type="hidden" name="confirm" value="true" />
<input type="hidden" name="sid" value="{switch_is_item.cat_row.item_row.ITEM_URL}" />
</form><br />
<span class="gensmall">{switch_is_item.cat_row.item_row.ITEM_DESC}</span></td>
<td class="row2" width="50%" align="center" valign="top">{switch_is_item.cat_row.item_row.ITEM_PRICE}</td>
Das dürfte erstmal funktionieren