2015-01-17, 12:22 PM
Pages: 1 2
2015-01-17, 12:33 PM
^ what exactly you want to show there
2015-01-17, 12:35 PM
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
i got error
=======UPDATE======
its work sir, i just not carefull enough with that script
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 worki 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 ^_^2015-01-17, 12:49 PM
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
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
2015-01-17, 12:58 PM
ok thank u sir, i'll try the plugin ^_^
Pages: 1 2