Jump to content

Search the Community

Showing results for tags 'board time'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • The Initiative Services and Features
  • Forum Building and Management
  • Writing Materials
  • Being a Member
  • Software
    • IPS Character Manager
  • Coding
  • Graphics

Categories

  • Roleplay Search
  • Writing Partner Search
  • Character Home Search

Categories

  • General Update
  • Announcement
  • Articles
  • Feedback
  • Tomfoolery

Categories

  • Application Templates
  • Plotters
  • Post Templates
  • Staff Templates
  • Thread Trackers
  • Other
  • Pending Challenge Entries
  • Past Challenge Entries

Categories

  • Active Challenges
  • Archived Challenges

Categories

  • Communications
  • Contributions
  • Operations

Categories

  • Jcink Themes
  • ProBoards/FreeForums Themes
  • MyBB Themes
  • IPS Themes
  • SMF Themes
  • phpBB Themes
  • Other Themes
  • Modifications
  • Make My Life Make Sense's Files
  • Dragonriders of Pern Boards's Files
  • PHPBB Staff people's Files
  • Xenforo Staff People's Files
  • Cyberpunk and Transhumanism's Files

Blogs

  • Morrigan's Madness
  • Staff Blog
  • A pirate captain's log
  • Somnia News
  • Ghost's One-Shots
  • Bits & Bones.
  • Amelia's Blog
  • Mobydoll's Blog
  • a medieval world
  • Just a girl and her stuff....
  • Everything Super
  • Icewolf's Musings
  • Ask GR - advice for RPers
  • Loose Ends
  • Tales From The Shoebox
  • Thoughts on Roleplay
  • Salt Box
  • The Salt Mine
  • Little bit of Gothic
  • The Totally Epic and True Tales of Kit the Human
  • Obvious Blog Is Obvious
  • Fountain of Thoughts
  • Please Turn The Device Off and Back On
  • gbwhatsapp apk
  • The Veritas
  • That Necromancer Life
  • Back to the narrative jungle
  • Make My Life Make Sense's Blog
  • Dragonriders of Pern Boards's Blog
  • Cryptozoology's Blog
  • Cyberpunk and Transhumanism's Blog

Calendars

  • Community Calendar
  • Character Birthdays
  • Book Club's Events
  • Make My Life Make Sense's Events
  • Dragonriders of Pern Boards's Events
  • NaNoWriMo's Virtual Write Ins
  • Cryptozoology's Events
  • Xenforo Staff People's Events
  • Cyberpunk and Transhumanism's Events

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Discord


Twitter


Skype


NaNo House


Game of Thrones House


Bending Nation

Found 1 result

  1. Specific Board Time Tutorial Created By: isoldehn Tutorial Permissions: Please do not re-post this tutorial else where, instead link someone to this thread. - Additionally, you are NOT required to credit me if you use this on your board BUT I do wish for you to share this with those that ask about it if they ever do (share the knowledge, be kind). Tutorial Needs: Overall, the ability to copy and paste. - FTP Access & Knowledge On Editing Core Files OR PHP In Templates / Complex Templates Plugin Step One Determine the usage you would prefer. If you are going to edit a core file to insert this script then open global.php, else if you are going to use the PHP In Templates / Complex Templates plugin ensure it is uploaded and activated. Step Two IF editing a core file follow as directed: I am going to assume that you would like to show this in the header template, therefor in global.php find: // Set up some of the default templates eval('$headerinclude = "'.$templates->get('headerinclude').'";'); eval('$gobutton = "'.$templates->get('gobutton').'";'); eval('$htmldoctype = "'.$templates->get('htmldoctype', 1, 0).'";'); eval('$header = "'.$templates->get('header').'";'); Directly above the find previously add: date_default_timezone_set("PHPTIMEZONEFORMAT"); $boardTime = date("PHPDATEFORMAT"); From here we need to declare time zone and date formatting! We are working with PHP therefore we need to use the proper formats. EXAMPLE: date_default_timezone_set("America/Chicago"); $boardTime = date("m-d-Y, h:i A"); Save the global.php file, return to your site and refresh the page. If the page turns white you have done something wrong. Go back remove the code you added and try again. It is suggested that you ALWAYS use a code editor of sorts to do this, else you may run into errors with formatting. If the board is still there then it should be working. So lets head to our header templates. Admin CP --> Templates & Style --> Templates --> your current template set --> Header Templates --> header and add in where you would like the time to show: <b>Board Time:</b> {$boardTime} Save and check for results. IF using the mentioned plugin follow as directed: As this is no longer core file specific, we can add this anywhere we please in any template BUT again I am going to assume you would like this in the header template. Admin CP --> Templates & Style --> Templates --> your current template set --> Header Templates --> header and add in where you would like the time to show: <?php date_default_timezone_set("PHPTIMEZONEFORMAT"); $boardTime = date("PHPDATEFORMAT"); ?> <b>Board Time:</b> {$boardTime} From here we need to declare time zone and date formatting! We are working with PHP therefore we need to use the proper formats. EXAMPLE: <?php date_default_timezone_set("America/Chicago"); $boardTime = date("m-d-Y, h:i A"); ?> <b>Board Time:</b> {$boardTime} Save and check for results. -------------- All finished!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.