Results 1 to 5 of 5

Thread: where i should paste this code?

Hybrid View

  1. where i should paste this code?

    please help me with my smf forum
    I've been asking these to the forum but no one answers i maybe you guys can help me
    I've been trying to display users on the online list. please take a look.
    thanks.

    http://www.simplemachines.org/community/index.php?topic=288587.0

    where dyou think or to which file should i paste this code please?

    Code:
    function randomGen($min, $max)
    {
        //  setup our seed
        srand((float) microtime() * 10000000);
        //  Generate the number
        $random = rand($min,$max);
       // Return  the number
        return $random;
    }
    /*adjust these numbers to  display a random number within a range-
    make sure the low number is  on the left.*/
    
    $random_number = randomGen(10,25);
    echo  "<br/>There are " .$random_number. " visitors online";


  2. #2
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    Do you want it site wide? If so can probably stick is between the php tags in the footer? Is this script to fake the actual user counts?

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

  3. yes.
    i wan't it in the footer since this is my sfm forum
    forums.cebupctech
    can i just post it in the footer?


  4. #4
    Join Date
    Jul 2009
    Location
    India, Earth
    Posts
    26
    Yes, you can put everything in the footer.

    Why do you think no one was helping you?

  5. Quote Originally Posted by Naweed View Post
    Yes, you can put everything in the footer.
    Why do you think no one was helping you?
    not that they're not helping its just what i thought of since. one of the mod in their forum told me that they don't encourage such trick and deceive users. so i guess i have to turn to you guys.

    thanks.


Similar Threads

  1. Do you code your designs?
    By Farrhad A in forum Web Design
    Replies: 22
    Last Post: 30 November, 2011, 10:59 AM
  2. Replies: 0
    Last Post: 29 January, 2011, 12:19 PM
  3. Help me with this code
    By weirdnessme in forum Web Proxies
    Replies: 1
    Last Post: 11 December, 2009, 03:48 AM
  4. [WTS] Paste-It script just for 15$
    By chetan in forum Scripts
    Replies: 6
    Last Post: 26 September, 2009, 15:34 PM
  5. [Free] Low rate copy paste forum posting services
    By badmash in forum Services
    Replies: 0
    Last Post: 12 September, 2009, 07:25 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •