Support » Fixing WordPress » php stats traffic trade script problems

  • Resolved digimedia

    (@digimedia)


    I am trying to add traffic trade script to my wordpress blog.. for to count referers I have to add:
    -For PHP (.php) Add this line in the header part of the main page html code :

    include(“in.php”);

    I am have try in many ways… but getting errors i think conflict with WP.

    Should I add it to index.php root file? where? how?

    please help

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thank U
    but where to put? to which file?
    could U please write example with tags?

    Moderator James Huff

    (@macmanx)

    Add it to your theme’s Header Template, just after the <title> </title> tags.

    I am sorry I dont understand U…
    this is the code I have to insert:
    include(“in.php”);

    please write example with my code for header temp and where exactly to insert.

    do U mean like this?
    <title><?php include(“in.php”); ?></title>

    Moderator James Huff

    (@macmanx)

    If you want an example for your Header Template, then you will have to post URL of your blog so that I can actually see your Header Template.

    I am only asking an example of my code
    how to insert

    include(“in.php”);

    Put code in between backticks. – ???

    Moderator James Huff

    (@macmanx)

    I can’t give you an example of your code without seeing exactly where it’s going to go. Would you please post a URL to your blog?

    Moderator James Huff

    (@macmanx)

    The best that I can tell you to do right now is to put <?php include("in.php"); ?> after </title> in your Header Template. If you want a more exact example, you will have to post your blog’s URL.

    Thank You very much for fast replies! great support team!

    I have wordpress DEFAULT wordpress theme and header is defaulgh ( so U have those files already 🙂
    wp-content/themes/default/header.php

    and this is a part of readme file about the code I need to insert:
    ———————————————————
    -Your main page needs to end with .shtml or .php. The main page is where the trades are gonna send the hits to. Most people use index.shtml

    -For SSI (.shtml) Add this line in the header part of the main page html code :
    <!–#include file=”in.php”–>

    -For PHP (.php) Add this line in the header part of the main page html code :
    include(“in.php”);

    -If you installed the script to a subfolder of your main page, use this instead of the one above:

    for SSI:
    <!–#include file=”foldername/in.php”–>

    for PHP:
    $cju_dr = getcwd();
    chdir($cju_dr . “/foldername”);
    include(“in.php”);
    chdir($cju_dr);
    ———————————————————-

    and here full info and the script ZIP http://www.cjultra.com

    Not working like that…
    The best that I can tell you to do right now is to put <?php include(“in.php”); ?> after </title> in your Header Template. If you want a more exact example, you will have to post your blog’s URL.

    Posted: 2005-10-12 17:23:56 #

    Moderator James Huff

    (@macmanx)

    Go to Presentation/Theme Editor and select your Header Template. This is an example excerpt with the include in it:

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    <?php include("in.php"); ?>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

    I did this yesterday 3 times 🙂 thought U bring fresh idea, anyway
    its… not working.
    Now installed CGI trade script… works fine!

    So WP PHP and some other PHPs scripts not working together…

    thanks for fast replies, macmanx!

    I had the same problems with cjultra and im tired of scripts that dont work properly

    digimedia could you specify wich script are you using now for fraffic trade PLEASE 😀

    sorry for my bad english

    no replys for mi question? 🙁

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘php stats traffic trade script problems’ is closed to new replies.