Jump to content

JR Network

Clients
  • Posts

    190
  • Joined

  • Last visited

Recent Profile Visitors

7,081 profile views

JR Network's Achievements

  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. 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. If you generate purchase within the admin cp, it will remove the money properly as you can see here: 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: ---------- @Rick7C2 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.
  4. I relogged in twice and it didn't seem to work, strange.
  5. Seems to have been a cached resource issue in the browser, different browser resolved this issue. Just incase other people have this issue.
  6. 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. 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
  7. 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.
  8. Fixed it, "topLevel": "servers", "pages": { "servers": { "friendly": "", "real": "app=serversapp&module=servers&do=list" }, I found if you emptied the friendly it will use the top level for the app.
  9. 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.
  10. 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.
  11. 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.
  12. 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 ?
  13. 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 🙂
  14. Will do, thanks a million for your help either way.
  15. I found that enclosing the TRUE in: define('IN_DEV', TRUE); with quotation marks causes this. Removing the quotation marks fixed this straight away.
×
×
  • Create New...