MyBB Community Forums

Full Version: Where To Insert? (A Short Code) MYBB 1.2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Or you could put it at the top of the file, before the first "<?php"
DennisTT Wrote:
DrPoodle Wrote:try putting
<?php include 'NEWCJDIR/in.php'; ?>

If you're putting it in index.php, find:
require "./global.php";
and add before:
include 'NEWCJDIR/in.php';

It actually isn't crucial where you place the code, but it must be after <?php at the beginning of the file.

Hello !
Thanks..But It Gives An Error:
Warning: Cannot modify header information - headers already sent by (output started at http://www.alexzander.ro/trade/in.php:1) in /home/alexz/public_html/forum/inc/functions.php on line 799

Ive put that cod on The Index.php

PS:Well The Complete Code (if i add my domain..) Is:

<?php include 'http://www.alexzander.ro/trade/in.php';


I Still need HELP Guys.

Thanks .
Does this included file output an advertisement?
No. That is the only code i have to insert in Index.php .
This code is used To Record Who have sent to me Visits.
Try this then:
Find:
require "./global.php";
and add before:
ob_start(); include 'NEWCJDIR/in.php'; ob_end_clean();
have you tried the code with a relative url instead of including your domain?
DennisTT Wrote:Try this then:
Find:
require "./global.php";
and add before:
ob_start(); include 'NEWCJDIR/in.php'; ob_end_clean();
Working.

>[ FILLED ]< Thank You.
You're welcome. Glad it finally worked Smile
BUMP _Please Help me to use the same code for new MyBB (1.2)
No One ?
Pages: 1 2 3