Jump to content

JR Network

Members
  • Posts

    190
  • 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 JR Network

  1. Hi Guys,

    I've been trying to find more info on the way IPS handles charts, I understand it uses Google Charts and all the docs I can find on the implementation is here. 

    I have working charts, my issue is I'm trying to work on a dark theme for my website but a graph in a custom coded application looks horrible, I've been able to remove the background color but I can't seem to change the legend color. I'd like it to use the theme color, but I can't seemingly change it to any color. 

    Has anyone changed the legend color of a graph, if so how ? Also is there any hidden docs to show properties such as this from IPB? Excluding the dev doc.

    Thanks all,

     

     

  2. 41 minutes ago, Adriano Faria said:

    Do you have FTP access to upload the file? This is a quick fix. The points I would have to makes some tests and will take a few days.

    I do, please send me it via a dm.

    So there is a confirmed issue with deduction of points ??

  3. Hi,

    I bought the latest version of membersshop, and when testing it, it does not remove points when buying items from the shop?

     

    As you can see from the log here, I bought rock paper scissors etc and it did not remove the points when it was bought even though I won.

    Could contain: Page, Text

    If you generate purchase within the admin cp, it will remove the money properly as you can see here:

    Could contain: Page, Text, Plot, Chart

    Please let me know if its a setting I haven't changed or if it is a bug ?

    Also disabling items in the shop does not work, they are still active and can be bought:

    Could contain: Page, Text, Number, Symbol

    Could contain: File, Webpage, Person, Page, Text

     

     

    ----------

    @Rick7C2

    On 1/4/2023 at 10:02 PM, Rick7C2 said:

    Would it be possible to add API endpoints so I can allow members to earn points and spend points externally from IPB?

    My goal is to create a Discord bot that rewards points for various things. I would just need API endpoints that would allow me to do the following...

    • Add points to user.
    • Remove points from user.
    • Retrieve point count for user
    • Withdraw points from bank for user
    • Deposit points to bank for user
    • Check points balance in bank for user

    While not supported I'd assume you could insert in to the three tables that it uses for this, the points table to add the balance, the rewards table to signify what reward you are adding and the logs table to ensure it's logged why the user got / lost points etc.

    You might need to slightly modify the code to show the types in the membershop reward log section though.

     

    Could contain: Page, Text, Plot, Chart

  4. Hi,

    I've recently renewed my license and attempted to purchase a couple of resources but each of them do not show a install option within the marketplace.

    Could contain: Text

     

    I've added account credit to my marketplace account thinking that this will resolve it. Any tips on this ? 

    I've tried it on my dev and production environment with the same results.

     

    Many thanks,

    Jamie

  5. Do you have multiple prefixes in your DB files?

    I would copy over your current files with a fresh set of the 4.6.12.1 files, 

    As for your uploads folder, this shouldn't be hidden. How come you can not create it? You should be able to create it in your public_html directory. I believe the uploads directory needs permissions of 0777. If you do not have permissions set correctly you will get an error.

  6. Hi,

    I setup a furl in the .json file in the data of my custom application 

    {
      "topLevel": "servers",
      "pages": {
        "servers": {
          "friendly": "servers",
          "real": "app=serversapp&module=servers&controller=servers"
        }
      }
    }

    This works on my dev site to show dev.com/servers 

    But when I added an extension to add this to the front navigation when I click on the Servers menu item it brings me to dev.com/servers/servers

    The code for the front navigation is:

    <?php
    /**
     * @brief     Front Navigation Extension: servers
     * @author    <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
     * @copyright  (c) Invision Power Services, Inc.
     * @license       https://www.invisioncommunity.com/legal/standards/
     * @package       Invision Community
     * @subpackage JR Servers
     * @since     20 May 2022
     */
    
    namespace IPS\serversapp\extensions\core\FrontNavigation;
    
    /* To prevent PHP errors (extending class does not exist) revealing path */
    if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
    {
       header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
       exit;
    }
    
    /**
     * Front Navigation Extension: servers
     */
    class _servers extends \IPS\core\FrontNavigation\FrontNavigationAbstract
    {
       /**
        * Get Type Title which will display in the AdminCP Menu Manager
        *
        * @return string
        */
       public static function typeTitle()
       {
          return \IPS\Member::loggedIn()->language()->addToStack('frontnavigation_serversapp');
       }
       
       /**
        * Can this item be used at all?
        * For example, if this will link to a particular feature which has been diabled, it should
        * not be available, even if the user has permission
        *
        * @return bool
        */
       public static function isEnabled()
       {
          return TRUE;
       }
       
       /**
        * Can the currently logged in user access the content this item links to?
        *
        * @return bool
        */
       public function canAccessContent()
       {
           return \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'servers', 'servers' ) );
       }
       
       /**
        * Get Title
        *
        * @return string
        */
       public function title()
       {
          return \IPS\Member::loggedIn()->language()->addToStack('frontnavigation_serversapp');
       }
       
       /**
        * Get Link
        *
        * @return \IPS\Http\Url
        */
       public function link()
       {
            return \IPS\Http\Url::internal( "app=serversapp&module=servers&controller=servers", 'front', 'servers' );
       }
       
       /**
        * Is Active?
        *
        * @return bool
        */
       public function active()
       {
          return \IPS\Dispatcher::i()->application->directory === 'serversapp';
       }
    
       /**
        * Children
        *
        * @param  bool   $noStore   If true, will skip datastore and get from DB (used for ACP preview)
        * @return array
        */
       public function children( $noStore=FALSE )
       {
          return NULL;
       }
    }
    

     

    Does anyone have any idea why this could be happening, a pointer in the right direction would really help.

  7. So far so good, can we select a default status for when new ideas are posted. I'd like to have it set to pending review but there is no way to set a default currently 🙂

    Shouldn't be too hard, would need to have a way to select the default status and then every idea is posted with that status.

  8. Okay Jim, it's a shame that IPS doesn't want to help developers with their product.

    Eitherway... I've finally worked it out after a while of head scratching.

    For people who want to understand this better, I might be slightly off but it's the best simple explanation in my own head.

    {
      "topLevel": "servers", <---- this is what will appear after your domain.com for your app
      "pages": { <---- do not change this 
        "servers": { <---- can be anything, probably the same as your friendly 
          "friendly": "servers", <----- what your url will be if its the same as top level it'll be used as the top level
          "real": "app=serversapp&module=servers&controller=servers" <--- what the actual URL is.
        }
      }
    }

    After you add this to your furl.json in the data folder of your application and uploaded to your server reset the caches in the support area otherwise it seems to have issues.

    If I'm wrong with my comments on the code above please correct me so I understand better and if anyone copies and pastes the code I have wrote please remove the comments and arrow I put in the code.

  9. 2 minutes ago, Jim M said:

    Thanks for posting!

    Unfortunately, this issue is beyond the scope of our technical support. 👩‍💻

    Our technical support is happy to help you with the Invision Community platform, but we're unable to help with things like server management, theme questions and modifications.

    I've moved this to our Community Support area where other Invision Community owners will see it and help where they can.

    No offence Jim, I love you guys but this solution is developed by Invision Power? Surely IPS themselves can help with a query like this especially when the docs you have published do not have the answer ? 

  10. Hiya,

    Trying to setup a FURL to a front facing module and I can access the module fine when using the real link but when I use a FURL it doesn't work, when rebuilding the cache I get an error about foreach when I try and visit any page on the site. To resolve I have to remove the furl.json from my app and rebuild the cache.

    I also attempted to add the FURL using the admin tool to modify friendly URLs and this also breaks with another error.

    What am I doing wrong or is this a bug ?

    For friendly URLs I was using: 

    {
      "topLevel": "servers",
        "list": {
          "friendly": "servers/list",
          "real": "/index.php?app=serversapp&module=servers&controller=servers"
        }
    }

    I was trying to find more about it but the docs are a bit vague on how to accomplish this imo.

    Please help 🙂 

  11. 4 minutes ago, Matt said:

    Do you have the IN_DEV constant set in constants.php?

    Ah that would be part of the issue.

    I have enabled this now and I'm getting this for the admin panel?

    Could contain: Text, Page

    I've tried to clean the cache on my browser but it seems to remain the same, I did upload the dev tools as required and removed the folder for downloads as I do not have that application

  12. Hiya,

    After a long hiatus of development with Invision power (only do it for my website not for public dev) I have come into an issue where when I modify template files for admin or front end  (the .phtml files within the dev folder) they don't seem to automatically update on the dev site I have. I have attempted to clear the system cache but it seems that the template files I modify don't update in the database. I haven't attempted to delete the entries in the DB for the templates as I'd say that will cause more headaches.

    Can I ask what I'm doing wrong, or is there a link to a doc that explains how this works so I can refresh my memory. For the life of me I can not remember, sorry if this sounds stupid 😛 

     

     

×
×
  • Create New...