Results 1 to 5 of 5

Thread: where i should paste this code?

  1. #1
    garfish's Avatar
    garfish is offline I'm Not Sure.
    Join Date
    May 2009
    Posts
    848
    Blog Entries
    12
    Thanks
    155
    Thanked 57 Times in 54 Posts

    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
    Mr.Bill's Avatar
    Mr.Bill is offline One is glad to be of service
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    Blog Entries
    1
    Thanks
    72
    Thanked 350 Times in 182 Posts
    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. Thanked by:

    garfish (8 April, 2010), m42 (9 April, 2010)

  4. #3
    garfish's Avatar
    garfish is offline I'm Not Sure.
    Join Date
    May 2009
    Posts
    848
    Blog Entries
    12
    Thanks
    155
    Thanked 57 Times in 54 Posts
    yes.
    i wan't it in the footer since this is my sfm forum
    forums.cebupctech
    can i just post it in the footer?

  5. #4
    Naweed is offline Building the net, brick by brick
    Join Date
    Jul 2009
    Location
    India, Earth
    Posts
    26
    Thanks
    69
    Thanked 26 Times in 18 Posts
    Yes, you can put everything in the footer.

    Why do you think no one was helping you?

  6. Thanked by:

    Aziz (9 April, 2010), m42 (9 April, 2010)

  7. #5
    garfish's Avatar
    garfish is offline I'm Not Sure.
    Join Date
    May 2009
    Posts
    848
    Blog Entries
    12
    Thanks
    155
    Thanked 57 Times in 54 Posts
    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, 16:34 PM
  5. [Free] Low rate copy paste forum posting services
    By badmash in forum Services
    Replies: 0
    Last Post: 12 September, 2009, 08: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
  •