alienhunt's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
29 (0.01 per day)
Joined:
05-November 07
Profile Views:
773
Last Active:
User is offline Apr 04 2012 03:53 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
Playstation
Your Car:
Honda
Dream Kudos:
0

Latest Visitors

Icon   alienhunt has not set their status

Posts I've Made

  1. In Topic: PHP+Wordpress Counter

    Posted 3 Apr 2012

    RESOLVED. please close commenting, thanks.
  2. In Topic: PHP+Wordpress Counter

    Posted 3 Apr 2012

    My friend wrote a counter from scratch and it works now. Thanks though!
  3. In Topic: PHP+Wordpress Counter

    Posted 2 Apr 2012

    so let me get this straight.. I made the plugin, called it travelcounter.php, uploaded and activated it in Wordpress. Then, I went to the page I wanted to display the code on and placed the code in it. Well, it's not working.. so what now??
  4. In Topic: PHP+Wordpress Counter

    Posted 2 Apr 2012

    <?php
     
        /*
    Plugin Name: TravelCounter
    Plugin URI: I have no idea what this is
    Description: This is a way for me to display the number of days
    Version: 1.0
    Author: Sean Weisbrot
    Author URI: I still don't know what this is
        */
    	     
        function displayCounter()
        {
    $start = "July 1, 2008";
    $now = "March 16, 2011";
    
    $now = strtotime ("$now");
    $then = strtotime ("$start");
    $difference = $now - $then ;
    $num = $difference/86400;
    $days = intval($num);
    $num2 = ($num - $days)*24;
    $hours = intval($num2);
    $num3 = ($num2 - $hours)*60;
    $mins = intval($num3);
    $num4 = ($num3 - $mins)*60;
    $secs = intval($num4);
        }
     
    ?>
    


    I did everything you said, what you see above is travelcounter.php. But when I put the displaycounter function on my page, it does this;


    Days I’ve lived in China: < ?=displayCounter();?>

    So now what?
  5. In Topic: PHP+Wordpress Counter

    Posted 31 Mar 2012

    I'm sorry, but my PHP understanding isn't so good.. which is why I'm having issues here.. but what I don't understand is how the code worked before on my old theme, but not now.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
China
Programming Languages:
PHP, CSS

Contact Information

E-mail:
Private
Website URL:
Website URL  http://www.worldresolution.net/travel

Friends

alienhunt hasn't added any friends yet.

Comments

alienhunt has no profile comments yet. Why not say hello?