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
Hello !
Where To Insert? (A Short Code) MYBB 1.2
Before test mu self Ive thinked to ask here where to put this code:

Here is What The Provider of scripts Say:
The page where your visitors come (e.g. http://www.yoursite.com/index.php) must be .PHP extension! Edit this file and add the following code to the top of the file:
<? include ("NEWCJDIR/in.php");?>

So..Where In index.php I Will insert this CODE:
<? include ("NEWCJDIR/in.php");?>


Thanks !
What does the code do?
Is For (Trade traffic) Traffic exchange (To count).
That Code won't show something..
Mogadishu Wrote:
The page where your visitors come (e.g. http://www.yoursite.com/index.php) must be .PHP extension! Edit this file and [b]add the following code to the top of the file[/b]:
<? include ("NEWCJDIR/in.php");?>
I thought that might have given you a clue? So either right at the top or somewhere above
require "./global.php";
should be fine...
Um..It Gives Error...
If I Put It In index.php

<? include ("NEWCJDIR/in.php");?>
what kind of error?
Umm (I Won't test again because is to late) The Index dosen't Show.

That code close The Code see "?>" And then all is a disorder...

PS: If you Can and have time Please Test this code on a board..
Please Mate.
Thanks.
try putting
<?php include 'NEWCJDIR/in.php'; ?>
Ive Tryed with This Code:
<?php include 'http://www.alexzander.ro/trade/in.php'; ?>

Still Dosen't work Sad
It gives this:
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
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.
Pages: 1 2 3