But when i go to the shop, the image has Aragorn http://members.lycos.co.uk/shireville/shop.php
Plus the images won't show up from my server, but they do for the Avatar galleries.
Code: Select all
Template->make_filename(): Error - file does not exist
The forum you selected does not exist.
Zarath wrote: Earthk: I see your problem, unfortunately the reason I had to restrict titles to the english characters is because people can do stuff like <script>alert();</script> and exploit the title. If you want to edit it, you need to open shop_effects, search for a-zA-Z and add your characters directly after it. Make sure you don't allow < >.
Zarath
Code: Select all
if (empty($_REQUEST['action']))
{
$template->set_filenames(array(
'body' => 'admin/shop_config_body.tpl')
);
$sql = "select * from phpbb_shops order by id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_MESSAGE, 'Fatal Error: '.mssql_error());
}
$shops = '<span class="genmed"><select name="shopid">';
for ($x = 0; $x < mssql_num_rows($result); $x++) // <----- ERROR LINE 71 <-----
{
$row = mssql_fetch_array($result);
$shops .= '<option value="'.$row['id'].'">'.$row['shopname'].'</option>';
}
Code: Select all
create table phpbb_shopitems (id INT NOT NULL IDENTITY,
name CHAR (32) NOT NULL,
shop CHAR (32) NOT NULL,
sdesc CHAR (80) NOT NULL,
ldesc TEXT NOT NULL,
cost INT DEFAULT 100,
stock TINYINT DEFAULT 10,
maxstock TINYINT DEFAULT 100,
sold INT NOT NULL DEFAULT 0,
accessforum INT DEFAULT 0, PRIMARY KEY(id))
create table phpbb_shops (id INT NOT NULL IDENTITY, shopname CHAR (32) NOT NULL, shoptype CHAR (32) NOT NULL, PRIMARY KEY(id), type char (32) NOT NULL, restocktime INT DEFAULT 86400, restockedtime INT DEFAULT 0, restockamount INT DEFAULT 5, amountearnt INT DEFAULT 0)
alter table phpbb_users add user_effects CHAR (255)
alter table phpbb_users add user_privs CHAR (255)
alter table phpbb_users add user_custitle TEXT
alter table phpbb_users add user_specmsg TEXT
alter table phpbb_users add user_items TEXT
alter table phpbb_users add user_trade TEXT