Jump to content

bfarber

Clients
  • Posts

    163,911
  • Joined

  • Days Won

    346

Reputation Activity

  1. Like
    bfarber got a reaction from Ibai in Prevent guests from seeing full size image   
    We store the post content as already generated HTML, which means the same content is served to members and guests. In order to accomplish what is being asked here our options are limited, as such. We could in theory...
    Link to a script that serves the image (instead of to the actual image), and let that script serve an error/alternative "no access" image to guests. Main con: you lose the benefit of using a CDN (such as Cloudfront) to serve your images. Use javascript to provide an alternative experience for guests. Main con: simply disabling javascript circumvents the "protection", so it's not really that useful if you truly want to block guests from seeing the images. Store different content for guests and members. Main con: you duplicate the bulk of your database, and all existing content would need to be rebuilt on upgrade. Realistically there's not a great way to handle what you are asking for when you factor in other considerations as above.
  2. Agree
    bfarber got a reaction from Zdeněk Tůma in Send variables to raw php blocks   
    No, but you may be able to set a session or global variable first if needed, or store data temporarily elsewhere.
    {$_SESSION['tempvar']} {block="blockkey"}  
  3. Like
    bfarber got a reaction from Zdeněk Tůma in Connecting to 3rd party REST API service endpoints   
    If you're trying to call a third party REST API, you would just use the built in HTTP libraries we leverage.
    When I test connecting to our own built in REST API locally I use a test script like so typically
    <?php $apiKey = 'my-api-key'; require 'init.php'; \IPS\Dispatcher\External::i(); $response = \IPS\Http\Url::external( \IPS\Settings::i()->base_url . '/api/core/members/1' ) ->request() ->login( $apiKey, '' ) ->get() ->decodeJson(); var_dump($response); exit;  
  4. Agree
    bfarber got a reaction from Zdeněk Tůma in Developing w/ Cloud Hosted Version   
    you'd probably need to do something like this in your block
    $_SESSION['arrayValues'] = ...;// The array data and then look at $_SESSION['arrayValues'] in the rest of the block/template after. I just used $_SESSION as a globally accessible storage container in this case, you could use other similar paradigms.
  5. Like
    bfarber got a reaction from AlexJ in Redis caching not improving performance - it's worse   
    Yes
  6. Like
    bfarber got a reaction from Jordan Miller in Should be possible to move topics from search result set   
    That's not what he meant. Jordan explicitly tracks certain things he is raising and getting more feedback on. Just to be clear lol - yes this isn't the first time this has come up.
  7. Thanks
    bfarber reacted to Lindy in PayPal changes effective March 11, 2021   
    If you're using it for true mass payment purposes, you should still be within the spirit of the AUP. That policy suggests you would not be in compliance, however, if you are making payments through the system on an individual basis. 
    In any event, there doesn't appear to be any technical changes or impact; it's merely a clarification of policy. 
     
  8. Like
    bfarber reacted to Thomas_B in IPS 4.5.4: InnoDB tables are using Compact row format...   
    *SOLVED*
    Yesterday my host upgraded to mySQL 5.7, which included changing to the Barracuda file format (previously Antelope). So now the SQL commands were successfully executed and my "compact" database tables have been converted to "dynamic."
    So I'd like to report a happy ending to my adventure. A big Thank You to the forum members for the advice and providing the SQL commands to do it.
    - Thomas
  9. Thanks
    bfarber reacted to DawPi in Guest Restrictions   
    The same place:

  10. Thanks
    bfarber got a reaction from balazsp in Redis caching not improving performance - it's worse   
    Yes
  11. Haha
    bfarber got a reaction from The Old Man in Notification followed members in digest format   
    You heard it here. @The Old Man wants me to be less helpful.
  12. Like
    bfarber got a reaction from Jordan Miller in Support from Client Area stored in Client Forum   
    We migrated support requests from Zendesk to Helpscout when we moved, so your ticket should still exist (complete with attachments).
  13. Haha
    bfarber got a reaction from Ryan Ashbrook in Notification followed members in digest format   
    You heard it here. @The Old Man wants me to be less helpful.
  14. Like
    bfarber reacted to Editorn in Include image URL in RSS feeds   
    Better late than never, but we'd like to express our gratitude for implementing this feature – it is working perfectly now. Using RSS for generating newsletters and getting an image when aggregating with other news sources with images looks wonderful. Thanks for listening 
  15. Like
    bfarber reacted to Dean_ in IOS photos are uploaded upside down   
    I'm not sure if the soft does actually fix the above issue but, the main reason this happens is that people don't allow the camera to change its orientation before taking a picture.

    It's something I've had to explain to my members time and time again. Let's say you're in portrait mode and then quickly turn the phone to landscape and take a picture. If you look at the screen you'll notice the words/details on the screen are not at the right orientation. I still get caught out by this on my iPhone 8 and iPhone XS Max at times.
    So, if I have taken the picture and I've noticed it's sideways when uploading, I simply go to Photo's, edit the picture and rotate it once, save it and then rotate it again until it's in the correct orientation and then save it. Now when I go to upload it, the photo is facing the correct way. This issue has been around a very long time. It's even worse when the phone is actually upside down (buttons on the bottom of the phone) as you don't realise you've turned it this way and go to take a picture.

    I hope this helps others who face this issue as it's not IPS's software that is at fault. ☺️
  16. Like
    bfarber reacted to Nathan Explosion in Remove Newsletter block from notifications center   
    Yup, it's not ideal but it's the best that could potentially be done from a CSS point of view.
    @Apfelstrudel a way to see how the CSS can 'go wrong' would be to disable your Messenger....this will then remove it from the notifications list, and Newsletters will have a different numbered row and then something else will be hidden.
    Here's a plugin which will do it the @Daniel F way 😉
     
    (NE) Remove 'Newsletters' from notification settings.xml
  17. Like
    bfarber got a reaction from mark2012 in How to add Meta Description for profiles   
    If you're using the live meta tag editor, it won't support variables.
    If you are editing the template or using a plugin, you'll want to look at $member->name or $this->member->name depending upon where you are making your edits.
  18. Thanks
    bfarber got a reaction from MEVi in SQL downloads_files_records   
    UPDATE downloads_files_records SET column=REPLACE(column, 'https://xyz.old.com', 'https://xyz.new.com'); Take a backup first, add your SQL table prefix to the table name if applicable, and adjust "column" appropriately. Also, it goes without saying, adjust the old and new URLs appropriately.
  19. Like
    bfarber got a reaction from Meddysong in Implemented a live search like Pages DB in ACP   
    I've done it in a custom database before but it was a long time ago so the details escape me. I essentially had to load the AdminCP javascript files that facilitate the live search, and then I think I needed a javascript mixin to adjust a few things. I know this probably isn't super helpful, but just saying - it can be done with a little work.
  20. Like
    bfarber got a reaction from OptimusBain in How to setup the grid view for guests?   
  21. Like
    bfarber got a reaction from Jordan Miller in fURL messed up??   
    If any app other than forums is the default app, then all forum URLs will be prefixed with /forums as you are noticing. Unfortunately that's not something that can change without a plugin, or by making Forums the default application.
  22. Thanks
    bfarber got a reaction from Jordan Miller in Identify Guests as Search Engines?   
    Behind the scenes we flag if it's a search engine, but we do not expose this in the interface.
  23. Haha
    bfarber got a reaction from Jordan Miller in What kind of blog content are you interested in?   
    As an old person here, you could explain how you choose the most appropriate memes for every situation. Meme images to steer clear of, whether to use the built in giphy integration or fetch memes manually from third party sources, those sorts of things. It would be a fascinating read.

  24. Like
    bfarber got a reaction from Ibai in Feedback: IPS is executing a slow statement 1000s times   
    Thanks for reporting your findings - we'll take a look at the suggested change. 🙂 
  25. Thanks
    bfarber got a reaction from Davyc in Small issue in the ACP under Pages menu   
    Yes, when I've seen this come up in the past it has always been due to multiple languages being installed, but the translations for "Records" are not stored in the language pack being used somehow. In any event I'm glad you're all sorted!
×
×
  • Create New...