MyBB Community Forums

Full Version: Displaying News on your homepage
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
Direct initialization of this file is not allowed.

Please make sure IN_MYBB is defined.


?
You have forgot to put:
define("IN_MYBB", 1);

BEFORE
require('./global.php');
require_once MYBB_ROOT."inc/class_parser.php";
i did that and still gettin same error

http://goranv.co.nr/index2.php
Ok, can I see your code? PM me it if you don't want to post it publicly.
echo "Hey, $mybbuser[username].<br>
Thanks for logging in.";

not showing username?
Not the thread for it, but:
$mybb->user['username']
says this now

Hey, Array['username'].
Thanks for logging in.
Works for me:
echo("Hey, {$mybb->user['username']}");
need help with displaying poll...
The code isn't designed to show polls. I'll take a look into later, right now I'm at Uni trying to work out how to make a model in 3DS Max (I'm a programmer, not an artist so I don't like doing arty stuff much); afterwards I plan on sleeping for a while.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33