MyBB Community Forums

Full Version: Is this fixable?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:

<?
/**
 * 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!
Belongs here but I'll be honest you're very far away from having that working.
(2011-07-05, 08:23 PM)labrocca Wrote: [ -> ]Belongs here but I'll be honest you're very far away from having that working.

Thanks for the info!
@Kieronic: Could you be more specific?
Should this be a plugin to some ponitsystem or how should your users pay for the avatars?
Yeah Kier what are you trying to do with that? If you explain in more detail it'll help us coders out a lot Big Grin

But yeah that script is pretty much nowhere near working..read this page for the base requirements that EVERY plugin must have. That'll give you a place to start at least.

Hope it helps and post in here if you need any more support!