2011-07-05, 07:01 PM
First of all, I have no clue if this belongs here, sorry if it doesn't.
Anyways, here's the problem.
I have been trying to make a sort of avatar shop to keep the site's spirit, and can't get the script to work. Here's the script:
I am quite new to PHP aswell as MyBB. Did I make a small error or a complete mess?
Site: http://brickerz.site50.net/forum
Thanks for moving this!
Anyways, here's the problem.
I have been trying to make a sort of avatar shop to keep the site's spirit, and can't get the script to work. Here's the script:
<?
/**
* Brickerz 1.0
* MyBB 1.6
*
* Website: mybb.com
* License: mybb.com/about/license
*
* $Id: avatarshop.php 5510 2011-7-5 18:56:47z Tomm $
*/
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'avatarshop.php');
$templatelist = "index,index_whosonline,index_welcomemembertext,index_welcomeguest,index_whosonline_memberbit,forumbit_depth1_cat,forumbit_depth1_forum,forumbit_depth2_cat,forumbit_depth2_forum,forumbit_depth1_forum_lastpost,forumbit_depth2_forum_lastpost,index_modcolumn,forumbit_moderators,forumbit_subforums,index_welcomeguesttext";
$templatelist .= ",index_birthdays_birthday,index_birthdays,index_pms,index_loginform,index_logoutlink,index_stats,forumbit_depth3,forumbit_depth3_statusicon,index_boardstats";
require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/functions_user.php";
require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;
?>
<img src="http://brickerz.site50.net/forum/attachment.php?thumbnail=2" alt="Default guy">
<br>
<table border="2">
<th>Name</th><th>Price</th><th>Description</th>
<tr>
<td>Default Guy</td><td>0</td><td>The Default User!</td>
</tr>
</table>
<br>
<form action="avatarshop.php" method="get">
Avatar: <input type="text" name="id" value="http://brickerz.site50.net/forum/attachment.php?thumbnail=2" readonly="true" hidden="true"/>
<input type="submit" value="Get this avatar!" />
</form>
<?php
$mybb->user['avatar'] == $_GET["id"];
?>
I am quite new to PHP aswell as MyBB. Did I make a small error or a complete mess?
Site: http://brickerz.site50.net/forum
Thanks for moving this!