WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] php stats traffic trade script problems (14 posts)

  1. digimedia
    Member
    Posted 8 years ago #

    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

  2. digimedia
    Member
    Posted 8 years ago #

    Thank U
    but where to put? to which file?
    could U please write example with tags?

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

  4. digimedia
    Member
    Posted 8 years ago #

    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>

  5. 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.

  6. digimedia
    Member
    Posted 8 years ago #

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

    include("in.php");

    Put code in between backticks. - ???

  7. 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?

  8. 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.

  9. digimedia
    Member
    Posted 8 years ago #

    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

  10. digimedia
    Member
    Posted 8 years ago #

    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 #

  11. 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 -->

  12. digimedia
    Member
    Posted 8 years ago #

    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!

  13. GDB
    Member
    Posted 8 years ago #

    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 :D

    sorry for my bad english

  14. GDB
    Member
    Posted 8 years ago #

    no replys for mi question? :(

Topic Closed

This topic has been closed to new replies.

About this Topic