Jump to content

teraßyte

Clients
  • Posts

    33,395
  • Joined

  • Days Won

    47

Reputation Activity

  1. Haha
    teraßyte reacted to Jim M in Staff Notes for what content   
    I take back what I said 😅, I thought this was a different feature . I need more coffee to get past this midday slump. It is indeed elsewhere and the guide is correct. Thank you, terabyte!
  2. Agree
    teraßyte reacted to Adriano Faria in Staff Notes for what content   
    Any app that you extend \IPS\Content\MetaData.
  3. Like
    teraßyte got a reaction from Adriano Faria in Staff Notes for what content   
    The Add Message option is available also in other areas:
    Downloads Files Calendar Events Gallery Images Blog Entries Pages Database  
    At least I'm seeing it everywhere. 🙄
  4. Thanks
    teraßyte reacted to Marc Stridgen in Direct attack on attachment URLs   
    Logged
  5. Agree
    teraßyte got a reaction from David N. in Direct attack on attachment URLs   
    @Marc Stridgen The error should still be fixed, though:
    Call to undefined method IPS\core\extensions\core\EditorLocations\Contact::attachmentPermissionCheck()  
    Even if the ID being looked up doesn't exist, it shouldn't throw a PHP error but show a proper error page at least.
  6. Agree
    teraßyte got a reaction from Thomas P in Direct attack on attachment URLs   
    @Marc Stridgen The error should still be fixed, though:
    Call to undefined method IPS\core\extensions\core\EditorLocations\Contact::attachmentPermissionCheck()  
    Even if the ID being looked up doesn't exist, it shouldn't throw a PHP error but show a proper error page at least.
  7. Agree
    teraßyte got a reaction from G17 Media in Direct attack on attachment URLs   
    @Marc Stridgen The error should still be fixed, though:
    Call to undefined method IPS\core\extensions\core\EditorLocations\Contact::attachmentPermissionCheck()  
    Even if the ID being looked up doesn't exist, it shouldn't throw a PHP error but show a proper error page at least.
  8. Haha
    teraßyte reacted to Randy Calvert in Memory use issues with host   
    It happens... I start typing and then end up going off on a tangent.  

  9. Agree
    teraßyte reacted to Randy Calvert in Memory use issues with host   
    One thing to consider as well...  maybe they're referring to "memory" as RAM and not as disk space usage.  This may not be a storage issue, but them saying your site has too many concurrent users (guests and real).  
  10. Haha
    teraßyte got a reaction from Randy Calvert in Memory use issues with host   
    Exactly this. I meant to add a mention about the RAM when I said to confirm what the hosting is asking, but forgot to. 😅
  11. Haha
    teraßyte reacted to Marc Stridgen in Can I be the only one allowed to create new tags?   
    Yes, that is correct
    Incidentally, also correct 
  12. Haha
    teraßyte reacted to Marc Stridgen in Updating active members list - bulk add?   
    It's almost like he's been here a while 🙂 
  13. Thanks
    teraßyte got a reaction from WebCMS in Emojis are surrounded by invisible chars ​ 🐈‍⬛ ​ 🥚 ​   
    See this topic:
  14. Like
    teraßyte got a reaction from Marc Stridgen in Updating active members list - bulk add?   
    You can't import a CSV list of the active members, it would just duplicate the accounts or skip importing them if the same email already exists (I forget which right now).
     
    If you already have a list of active members, it would be best to:
    Move all members to a new group. Run a script to move the active members (based on your list) back to the correct group. Mass delete the members that remain in the new group. Delete the new group.  
    As I mentioned, you need to write a custom script that accepts the format of the list of active members and updates the accounts. Or, for example, if you have a query based on the email field, you can do step #2 above without a custom script and simply run your query with all the active members' emails.
     
    In any case, be sure to do a backup before making any changes.
  15. Like
    teraßyte got a reaction from David N. in Pages as Default App - Still Shows Unread Content, etc.   
    You should be able to hide those links with some CSS by targeting that specific page. Each page has a body element similar to this one (this is taken from this very page):
    <body class="ipsApp ipsApp_front ipsJS_has ipsClearfix" data-controller="core.front.core.app,cloud.front.realtime.viewingService" data-message="" data-pageapp="forums" data-pagelocation="front" data-pagemodule="forums" data-pagecontroller="topic" data-pageid="475515" >  
    You can use a rule similar to this one:
    body[data-pagelocation="front"][data-pageapp="cms"][data-pagecontroller="page"][data-pagemodule="pages"][data-pagename="PAGE_FILENAME"] nav.ipsBreadcrumb.ipsBreadcrumb_top { display: none; } Just replace PAGE_FILENAME with your page's filename.
  16. Like
    teraßyte got a reaction from I_cant_Swim_ in Can I force logout for all guests?   
    If you are on Windows, once you find the access logs, you can try using this application to parse/view them in a more readable format: https://www.apacheviewer.com/
    The free version should be more than enough for what you need. You can filter by those guests' IPs, etc.
  17. Thanks
    teraßyte got a reaction from I_cant_Swim_ in Can I force logout for all guests?   
    You could remove the guests' permission to see those specific forums, but it would impact the ability of search engines to index your content, too.
     
    You might be able to tell what they're doing if you look at the access logs of your server. If you're unsure where they are, try asking your hosting. Every page opened/viewed is recorded in those logs (as log as the server has the option enabled). You might be able to see what exactly they're doing that way.
  18. Like
    teraßyte got a reaction from I_cant_Swim_ in Can I force logout for all guests?   
    Guests aren't "logged in" so you can't log them out. If you don't want them around, the only option is to ban their IP (range?) at the server level.
    However, as you mentioned, it's possible those "guests" are actually bots crawling your site to index it. Unless you have some reason to be wary of those guests, I'd just ignore them.
  19. Like
    teraßyte got a reaction from SeNioR- in CHMOD Settings   
    You can find the recommended CHMOD settings inside the init.php file:
    // File permissions // For example: when making folders for files to be uploaded to, what permissions // that should be created with 'IPS_FOLDER_PERMISSION' => 0777, // Writeable folders 'FOLDER_PERMISSION_NO_WRITE' => 0755, // Non-writeable folders 'IPS_FILE_PERMISSION' => 0666, // Writeable files 'FILE_PERMISSION_NO_WRITE' => 0644, // Non-writeable files Those are the default values IPS suggests (and uses), but depending on your server's configuration, you might need to adjust them. That part is best discussed with your hosting, though.
     
    As for writable folders, the default ones usually are applications, datastore, plugins, and uploads.
    Anyway, you'll get an error during upgrades if something that needs to be writable isn't. Unless you're having issues with your site (for example, files not uploading, etc), I wouldn't change anything.
  20. Like
    teraßyte got a reaction from SeNioR- in Can I force logout for all guests?   
    Guests aren't "logged in" so you can't log them out. If you don't want them around, the only option is to ban their IP (range?) at the server level.
    However, as you mentioned, it's possible those "guests" are actually bots crawling your site to index it. Unless you have some reason to be wary of those guests, I'd just ignore them.
  21. Like
    teraßyte got a reaction from SeNioR- in [4.7.15] Cloning a custom Commerce package throws an "Access to undeclared static property" error   
    I created a new type of Commerce package for a client, and when trying to clone it an error is thrown.
    Here's the stacktrace:
    Error thrown with message "Access to undeclared static property IPS\premium\Package\Premium::$packageDatabaseColumns" Stacktrace: #6 Error in \applications\nexus\sources\Package\Package.php:264 #5 IPS\nexus\_Package:__clone in \system\Node\Controller.php:915 #4 IPS\Node\_Controller:copy in \system\Dispatcher\Controller.php:107 #3 IPS\Dispatcher\_Controller:execute in \system\Node\Controller.php:69 #2 IPS\Node\_Controller:execute in \applications\nexus\modules\admin\store\packages.php:46 #1 IPS\nexus\modules\admin\store\_packages:execute in \system\Dispatcher\Dispatcher.php:153 #0 IPS\_Dispatcher:run in \init.php:934  
    The issue is caused by the __clone() method in applications/nexus/sources/Package/Package.php which is missing the isset() check:
    foreach ( $this->_data as $k => $v ) { if ( !\in_array( $k, array( 'id', 'reviews', 'unapproved_reviews', 'hidden_reviews' ) ) ) { if ( \in_array( "p_{$k}", static::$packageDatabaseColumns ) ) { $secondaryTable[ "p_{$k}" ] = $v; } else { $primaryTable[ "p_{$k}" ] = $v; } } } Every other method properly checks if the variable is set before using it, but the __clone() method doesn't.
     
    Here's an example from the save() method where the isset() check is properly implemented:
    foreach ( $this->changed as $k => $v ) { if ( isset( static::$packageDatabaseColumns ) and \in_array( "p_{$k}", static::$packageDatabaseColumns ) ) { $secondaryTable[ "p_{$k}" ] = $v; unset( $this->changed[ $k ] ); } elseif ( !\in_array( "p_{$k}", array( [...] ) ) ) { unset( $this->changed[ $k ] ); } }
  22. Like
    teraßyte got a reaction from Marc Stridgen in How to sort template_ipc_group Error?   
    The error is coming from the ipc_group plugin: class_core_global_plugins->ipc_group
     
    The name doesn't remind me of anything right now, though. 🤔
    Do you have a plugin with that name? And if you do, does disabling it make the error go away?
  23. Like
    teraßyte got a reaction from AlexWebsites in Uses deprecated APIs ...   
    It's the same file, simply loaded from a different file storage.
  24. Like
    teraßyte got a reaction from sulervo in [4.7.15] Cloning a custom Commerce package throws an "Access to undeclared static property" error   
    I created a new type of Commerce package for a client, and when trying to clone it an error is thrown.
    Here's the stacktrace:
    Error thrown with message "Access to undeclared static property IPS\premium\Package\Premium::$packageDatabaseColumns" Stacktrace: #6 Error in \applications\nexus\sources\Package\Package.php:264 #5 IPS\nexus\_Package:__clone in \system\Node\Controller.php:915 #4 IPS\Node\_Controller:copy in \system\Dispatcher\Controller.php:107 #3 IPS\Dispatcher\_Controller:execute in \system\Node\Controller.php:69 #2 IPS\Node\_Controller:execute in \applications\nexus\modules\admin\store\packages.php:46 #1 IPS\nexus\modules\admin\store\_packages:execute in \system\Dispatcher\Dispatcher.php:153 #0 IPS\_Dispatcher:run in \init.php:934  
    The issue is caused by the __clone() method in applications/nexus/sources/Package/Package.php which is missing the isset() check:
    foreach ( $this->_data as $k => $v ) { if ( !\in_array( $k, array( 'id', 'reviews', 'unapproved_reviews', 'hidden_reviews' ) ) ) { if ( \in_array( "p_{$k}", static::$packageDatabaseColumns ) ) { $secondaryTable[ "p_{$k}" ] = $v; } else { $primaryTable[ "p_{$k}" ] = $v; } } } Every other method properly checks if the variable is set before using it, but the __clone() method doesn't.
     
    Here's an example from the save() method where the isset() check is properly implemented:
    foreach ( $this->changed as $k => $v ) { if ( isset( static::$packageDatabaseColumns ) and \in_array( "p_{$k}", static::$packageDatabaseColumns ) ) { $secondaryTable[ "p_{$k}" ] = $v; unset( $this->changed[ $k ] ); } elseif ( !\in_array( "p_{$k}", array( [...] ) ) ) { unset( $this->changed[ $k ] ); } }
  25. Agree
    teraßyte reacted to Nathan Explosion in Mention Tags Cannot Be Removed on Mobile   
    GBoard is the default keyboard of the Google Android OS (it's on Pixel devices, it's on most OnePlus devices, plus others that don't massively deviate from the stock OS)
    'Samsung Keyboard' is the native keyboard on the Samsung version of the Google Android OS, but can be overridden by the manual installation of GBoard from Google Play, just like SwiftKey is available for all Android devices.
×
×
  • Create New...