Jump to content

FFXIV RPC

Clients
  • Posts

    6
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by FFXIV RPC

  1. Hello!

    Does this plugin allow me to use objects within the IPS namespace? I'm hoping to write some custom code that requires their datetime object, but when I try to stick that code in a php block, it errors out the entire page and I have to manually remove the block from the database.

    Perhaps I'm doing something wrong? I'm not very familiar with how to import a class into PHP, especially the IPS ones if they allow it. (I really jsut want their client-side timezone conversion)

    <?php
    require("init.php");
    
    // this block runs fine, but if I remove the die() for the rest, it kills the page.
    if ( !defined( '\IPS\DateTime' ) )
    {
    	echo "Something has gone wrong.\n";
    	echo getcwd();
    	die(1);
    }
    
    // I've clipped out some other code, but it's safe to assume $event exists with these properties
    // The code worked fine when I used normal php datetime objects
    $eventStart =  \IPS\DateTime::createFromFormat(DateTime::ISO8601, (string)$event->startTimeUTC);
    $eventEnd =  \IPS\DateTime::createFromFormat(DateTime::ISO8601, (string)$event->endTimeUTC);

     

  2. On 9/16/2020 at 10:03 PM, newbie LAC said:
    On 9/16/2020 at 11:27 AM, FFXIV Admin said:

    Hello,

    I've updated to the latest version, and this issue seems to persist.

    Hello,

    From which version did you updated?

    If you don't have pinned posts you can reinstall the plugin

    I was on version 1.0.12 previously. Pinned posts were showing up when I did my IPS 4.4 to 4.5 upgrade, and then broke after I updated the plugin to the latest version. My community had made use of pinned posts previously and I'd like to retain them if possible, but if it's easier to uninstall the plugin and erase its data and then reinstall it, I can post an update to advise users to re-pin their content as needed.

×
×
  • Create New...