MyBB Community Forums

Full Version: make 1 more portal ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
oh i see...hehe
1 more sir, i can't include my script into
echo 'content here';
can u tell me the clue sir
^ what exactly you want to show there
i want move script in index.php (Heroes content and Items content, etc) to heroes.php and items.php
it must be running javascript
so i can let index.php as portal.
but forget it sir, i must read again the php basic, lol
btw
require_once 'forum/global.php';
doesn't work
i got error
Fatal error: require() [function.require]: Failed opening required './global.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/sites/dota2id.com/www/items.php on line 5

=======UPDATE======

its work sir, i just not carefull enough with that script

<?php
define("IN_MYBB", 1);
// put correct path to global.php in below line
require_once  'forum/global.php';
echo $headerinclude;
echo "<title>Page Title</title>";
echo $header;

echo 'content here';

echo $footer;
?>
its works, thank u sir ^_^
if you put items.php file in forum folder then use this => require_once './global.php';
if you put items.php file in domain folder then use this => require_once 'forum/global.php';

however I'd suggest to not use this type of simple php file to add java script and such things.
it would be better to use earlier suggested guidance for making custom php files
or use OUGC pages plugin
ok thank u sir, i'll try the plugin ^_^
Pages: 1 2