Jump to content

Leaderboard

  1. Jrock

    Jrock

    Retired Staff


    • Points

      2

    • Posts

      612


  2. Tony

    Tony

    Administrator


    • Points

      1

    • Posts

      5,256


  3. kiddo

    kiddo

    Apprentice


    • Points

      1

    • Posts

      73


  4. Sandakelum

    Sandakelum

    Apprentice


    • Points

      1

    • Posts

      34


Popular Content

Showing content with the highest reputation on 03/10/2013 in all areas

  1. Hi all at WebFlake! I am the very proud owner of the BensTechTips forums (Link in signature)! I just wanted to introduce myself here. I will be 'hanging out' in the web hosting part of the WebFlake forum. I own an IPB forum, so will also be offering some help there too! Just wanted to say high!
    1 point
  2. Following functions are very useful to you but they haven't built-in right into IP.Board yet. So you gotta add them manually. Those two functions as follows... 1. timespan( $timespanToDate ) - Counts how much time between a pass date your specify through parameters and today. 2. daysleft( $toDate ) - Counts how much days left for a future date you specify through parameters. You can use these functions as an example to show how much days left to christmas and/or how much time spent since your board started! Open admin/sources/classes/class_localization.php and add following code right after getTimeOffset() function. (You're free to place wherever you like, but remember to add it outside of functions and inside the class) /** * Timespan to get years, months, days and etc between a specified date and the current timestamp * * @access public * @param string Date target * @return string */public function timespan( $timespanToDate ){ if( !is_int( $timespanToDate ) ) { $timespanToDate = strtotime( $timespanToDate ); } $diff = abs( time() - $timespanToDate ); $years = floor( $diff / ( 365 * 60 * 60 * 24 ) ); $months = floor( ( $diff - $years * 365 * 60 * 60 * 24 ) / ( 30 * 60 * 60 * 24 ) ); $days = floor( ( $diff - $years * 365 * 60 * 60 * 24 - $months * 30 * 60 * 60 * 24 ) / ( 60 * 60 * 24 ) ); // $hours = floor( ( $diff - $years * 365 * 60 * 60 * 24 - $months * 30 * 60 * 60 * 24 - $days * 60 * 60 * 24 ) / ( 60 * 60 ) ); // $minutes = floor( ( $diff - $years * 365 * 60 * 60 * 24 - $months * 30 * 60 * 60 * 24 - $days * 60 * 60 * 24 - $hours * 60 * 60 ) / 60 ); // $seconds = floor( ( $diff - $years * 365 * 60 * 60 * 24 - $months * 30 * 60 * 60 * 24 - $days * 60 * 60 * 24 - $hours * 60 * 60 - $minutes * 60 ) ); $string = ""; if( $years AND $years >= 1 ) { $string .= $years. " years, "; } if( $months AND $months >= 1 ) { $string .= $months. " months and "; } if( $days AND $days >= 1 ) { $string .= $days. " days ago"; } return $string;}/** * Count how much days left from the current timestamp * * @access public * @param string Date target * @return integer */public function daysleft( $toDate ){ if( !is_int( $toDate ) ) { $toDate = strtotime( $toDate ); } $timeleftTime = $toDate - time(); $timeleftDays = round( ( ( $timeleftTime / 24 ) / 60 ) / 60 ); return $timeleftDays;} Indent the code once to keep the code structure intact. That's it! Enjoy using these in your board. Examples (PHP)... $this->registry->getClass('class_localization' )->timespan( '02 September 1993' );$this->registry->getClass('class_localization' )->daysleft( '05 April 2013' );
    1 point
  3. Hello. I want to post an html in a post and have it become html. that i figured out how to do. But, when i do post the html in a html editor it works, but when i post the html in a topic in ipb it doesn't. here is an example As you see on the right side, it says "put your mouse over here" http://prntscr.com/vsp8h when i do that i get this http://prntscr.com/vsprq But when i post the code into ipb, this is what i get http://prntscr.com/vspit And when i put my mouse over the text the picture doesn't show up. Why does it show up in a html editor but not ipb? i have html turned on
    1 point
  4. It's an application... download it, upload the necessary files, install it, and configure it. You can also use the tutorial posted by Sanctuary a few moments ago, to hard-code it:
    1 point
  5. I like the green fractals used in the background. Those are my favorite ones that I've downloaded lol. Good job on this. Ghost was my favorite character in the MW games.
    1 point
  6. Thanks everyone!
    1 point
  7. So I've been asked to create a photo montage to show the past few years at my school. I just need some songs to go with the photos that I've got. So far I've chosen a few songs: Owl City - Fireflies (Definitely)Labrinth - Earthquake (Definitely)EMF - You're Unbelievable (Possibly) Has anyone else got some other ideas for modern songs that may fit with a photo montage like the above? Thanks all!
    1 point
  8. You don't want to wait...i'm afraid you're in for a shock when you reach adulthood, that's life i'm afraid and you will have to deal with it, 15 download post limit is ample, unless you're a leccher, if you're not a leecher well then you'll just have to wait lol.
    1 point
  9. Nice tutorial! This really helped me when I wanted to connect my forum to Facebook and Twitter! Thanks again!
    1 point
  10. sounds like a leecher complaining but trying to look like he's not complaining
    1 point
This leaderboard is set to New York/GMT-05:00
×
×
  • Create New...