Jump to content

Marcher Technologies

Clients
  • Posts

    17,657
  • Joined

  • Days Won

    98

Reputation Activity

  1. Like
    Marcher Technologies got a reaction from sobrenome in Media System   
    {$data['record']['rating_value']} / {$data['record']['rating_hits']}
    Need to open the database templates variables popup... it will make things much easier for you here.
  2. Like
    Marcher Technologies got a reaction from Hatsu in [Pages]More Export/Import options please?   
    I find that I am missing several of the basic tools for getting my work ready for distribution/import to a live site.
    There is no longer the ability to export or import a block, or any templates. The option to download a database replete with all of it's database settings, templates, custom fields and categories is indeed a fine thing, but this very simply does not address the blocks embedded within those templates, the assets included on the page the database is used on that provide a custom style/javascript functionality, or the common need to export just a template for use with an existing generic database like the default articles system, or multiple available templates to choose from for a given database view being added from a given mod, or even the inability to export page templates(from providing more builder templates to custom wrappers this would be useful).
    Could you pretty please possibly review the export/import options present within the pages application and restore the basic tools for distribution where the contents of the database settings and fields are irrelevant?
    As it stands, I'm not going to be able to update several of my mods with it like this, and I've already had to do a manual copy/paste job for a featured articles listing template and a css asset to the live site for a custom, which simply will not fly in distributed works.
     
  3. Like
    Marcher Technologies got a reaction from z929669 in [Pages]More Export/Import options please?   
    I find that I am missing several of the basic tools for getting my work ready for distribution/import to a live site.
    There is no longer the ability to export or import a block, or any templates. The option to download a database replete with all of it's database settings, templates, custom fields and categories is indeed a fine thing, but this very simply does not address the blocks embedded within those templates, the assets included on the page the database is used on that provide a custom style/javascript functionality, or the common need to export just a template for use with an existing generic database like the default articles system, or multiple available templates to choose from for a given database view being added from a given mod, or even the inability to export page templates(from providing more builder templates to custom wrappers this would be useful).
    Could you pretty please possibly review the export/import options present within the pages application and restore the basic tools for distribution where the contents of the database settings and fields are irrelevant?
    As it stands, I'm not going to be able to update several of my mods with it like this, and I've already had to do a manual copy/paste job for a featured articles listing template and a css asset to the live site for a custom, which simply will not fly in distributed works.
     
  4. Like
    Marcher Technologies got a reaction from Joel R in Upload video size 127M - error (-200): fixed   
    Open the network tab of your browser debug tools via inspect element, and then try the upload, you will be able to see what the server responded with and get more information than the generic -200.
  5. Like
    Marcher Technologies reacted to newbie LAC in Select Bug When using $form->error?   
    You can't use integers values as keys options
    Try on front side
    On admin side works because uses the template applications\core\dev\html\admin\forms\select.phtml
    On front side uses \applications\core\dev\html\front\forms\select.phtml
    admin
    {{if ( ( $value === 0 and $k === 0 ) or ( $value !== 0 and $value === $k ) or ( $value !== 0 and \is_numeric( $value ) and \is_numeric( $k ) and $value == $k ) ) or ( \is_array( $value ) and \in_array( $k, $value ) ) or ( !empty( $userSuppliedInput ) and !\in_array( $value, array_keys( $options ) ) and $k == $userSuppliedInput )}}selected{{endif}} vs
    front
    {{if ( ( $value === 0 and $k === 0 ) or ( $value !== 0 and $value === $k ) ) or ( \is_array( $value ) and \in_array( $k, $value ) )}}selected{{endif}}  
  6. Like
    Marcher Technologies got a reaction from media in Upload video size 127M - error (-200): fixed   
    It's counter-intuitive, but the above is correct.
  7. Like
    Marcher Technologies reacted to CodingJungle in Upload video size 127M - error (-200): fixed   
    yeah if the upload limit is too big, it can confuse the chunk uploader, so tune it down to lower file size and try again 🙂 
  8. Thanks
    Marcher Technologies reacted to SJ77 in Upload video size 127M - error (-200): fixed   
    Hi
    Change your PHP max file size to 5MB
    upload_max_filesize  = 5MB
  9. Like
    Marcher Technologies got a reaction from Koper74 in Database Filters Block - Horizontal   
    Per title. It really, really, looks bad. I managed to hack in a horizontal layout with some css, but it's not something that is something I can share due to a lot of nth-of-type usage that meets my specific usage but wouldn't work well with more or less filterable fields. Every other widget has a horizontal view. Please consider baking one in for this.
  10. Like
    Marcher Technologies got a reaction from Sonya* in Why is there such a disconnect between databases and Pages?   
    That's... not something they are going to provide by default. I would ask that you reconsider your data design, I think I'd be less than pleased to have to edit a massive form on a single record that could affect multiple pages, and so will you in the long term.
    Regardless, what you ask is still possible:
    {{$databaseId = 1;}} {{$recordId = 2;}} {{$recordsClass = '\\IPS\\cms\\Records' . $databaseId;}} {{$record = $recordsClass::load($recordId);}} {$record->customFieldDisplayByKey('myFieldKey')|raw}  
  11. Like
    Marcher Technologies got a reaction from AtariAge in How do I get the Forum Name?   
    SELECT     tid,     title AS ThreadTitle,     last_poster_name,     last_post,     title_seo,     pp_main_photo,     starter_name,     last_poster_name,     forums_topics.posts AS PostCount, CASE WHEN core_sys_lang_words.word_custom IS NULL THEN core_sys_lang_words.word_default ELSE core_sys_lang_words.word_custom END AS ForumTitle FROM     forums_topics INNER JOIN core_members ON forums_topics.last_poster_id=core_members.member_id INNER JOIN core_sys_lang_words ON core_members.language=core_sys_lang_words.lang_id AND core_sys_lang_words.word_key=CONCAT('forums_forum_', forums_topics.forum_id) WHERE     forum_id NOT IN(29, 31, 27, 30) ORDER BY     last_post DESC  
  12. Like
    Marcher Technologies reacted to Telemacus2 in We want our paid subscriptions back...   
    Renewing a license is perfectly normal and legal. But that's not what we're talking about here. We're talking about forcing a user to buy the same license to use the same piece of software, not renewing it. 
  13. Haha
    Marcher Technologies reacted to CodingJungle in ips.ui.autocomplete suggestion   
    i don't like this feeling...the shame it carries, that i have to admit @Rikki's javascript kung-fu is better than mine 😞 if any one needs me i'll be crying into my drink at some sleazy bar 😞 
    just kidding, yeah it was definitely my methodology here, i was observing the document for my listener, $(document).on('tokenAdded', function(e, data){}); its why when i originally tried e.currentTarget it was giving me the document lol. 
  14. Like
    Marcher Technologies reacted to CodingJungle in ips.ui.dialog suggestion   
    it doesn't necessarily have to be a link 🙂 i just used a link in my example, in a real world example that i use (well would use if it was capable of it 🙂 ). 

    lets say i want almost all of the white box when clicked to trigger the dialog, but for the user icon on the whitebox, i want it to do something else, other than open up the dialog or do nothing at all 🙂.  
  15. Like
    Marcher Technologies reacted to bfarber in Different content on page   
    If you are creating a page in Pages, you can do this using HTML logic based on Marcher's suggestion.
    If you are adding a database record, however, it is not possible. Translatable fields should ONLY be available to administrators, however quite often database records can and are added on the front end, so we enter a bit of a gray zone there. I've seen this question come up before, but it's not as straightforward as it may seem from a software POV when you only consider one usage.
    The custom language strings approach is honestly your best option, even if it requires a separate app.
  16. Thanks
    Marcher Technologies reacted to bfarber in Filter before saving a comment   
    You might need a good AI suite/API in that case. This is an interesting use case for AI APIs. Something like this maybe:
    https://cloud.google.com/blog/products/gcp/filtering-inappropriate-content-with-the-cloud-vision-api
  17. Like
    Marcher Technologies reacted to CodingJungle in Suggestion: Hooks Improvement   
    I'm back to make another totally unreasonable request! 😛
    as you might know, some of us dev's use dirty taboo things called IDE's, and love their totally useless features like automatic imports, autocomplete/suggestions/etc. 
    the issue i have and would love to see improved, is a slight tweak to the hook system, to allow me to better generate proxy files. currently you use _HOOK_CLASS_, which is great cause it doesn't toss errors up in the IDE, however, they all get this, so there is no easy way to generate a proxy file for _HOOK_CLASS_. I can easily generate them, but the problem becomes my IDE complains about multiple definitions and then throws its hands up in futility and tells me to GTFO. 
    My suggestion would be to psuedo namespace hook, i believe this can be achieved with extremely limited intrusion to the existing code and remain backwards compatible.
    example:
    allow me to append the hooks class to _HOOKS_CLASS_.
    filename: BrandonMakeThisHappen.php
    Content:
    //<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { exit; } class myapp_hook_BrandonMakeThisHappen extends _HOOK_CLASS_myapp_hook_BrandonMakeThisHappen { protected static function baseJs() { parent::baseJs(); Output::i()->jsFiles = array_merge( Output::i()->jsFiles, Output::i()->js( 'front_myapp.js', 'myapp', 'front' ) ); } } and then in the init.php line 457 change:
    $contents = "namespace {$namespace}; ". str_replace( '_HOOK_CLASS_', $realClass, file_get_contents( ROOT_PATH . '/' . $data['file'] ) ); to:
    $contents = "namespace {$namespace}; ". str_replace( array( '_HOOK_CLASS_', '_HOOK_CLASS_'.$data['class'] ), $realClass, file_get_contents( ROOT_PATH . '/' . $data['file'] ) ); this way either are replaced at runtime, backwards compatibility is maintained, and it requires hardly nothing to implement! it is the best of both worlds really, ones who don't use useless IDE's will never notice a difference, and the heathens that do, will be thankful! 
    so @Daniel F @bfarber @Lindy (you guys need code names, lindy is the only one that is easy to find in the @mentions list!), lets make this happen! 🙂 
  18. Thanks
    Marcher Technologies reacted to bfarber in Oauth Client Credentials + @apiclientonly   
    We'll take a look, thanks
  19. Thanks
    Marcher Technologies reacted to Mark in Oauth Client Credentials + @apiclientonly   
    What's the error you're getting?
  20. Thanks
    Marcher Technologies reacted to bfarber in Abstract 'follow' method out of controller   
    I will raise your request for consideration.
  21. Like
    Marcher Technologies got a reaction from teraßyte in Abstract 'follow' method out of controller   
    In the vein of this: 
    And in the  train of thought of avoiding doing this:
    Can the hunk of code that actually 'follows' and 'unfollows' things in IPS\core\modules\front\system\notifications be abstracted out to actually be on the item/node object, or anywhere it could actually be reused?
    The above reason is not the first time I have needed to control follow status dynamically, and currently such strays extremely close to a direct copy-past of a large chunk of code that is not desired to be maintained by me, and falls foul of the license agreement.  
     
  22. Like
    Marcher Technologies got a reaction from Hermans mixen in Mixcloud Audio   
    File Name: Mixcloud Audio
    File Submitter: Marcher Technologies
    File Submitted: 20 Aug 2010
    File Category: Integration

    Adds support for audio files from Mixcloud into the built-in IP.Board bbcode.

    here to download this file
  23. Thanks
    Marcher Technologies got a reaction from AndyF in Hidden form elements still required   
    You need to set required to false on the hidden element, then use the validation callback to validate it manually and conditionally - only when the YesNo is in the desired state.
    Take a look at an \IPS\Node\Model's form() method for any app you own, they all tend to use this.
  24. Thanks
    Marcher Technologies got a reaction from Fosters in Hidden form elements still required   
    You need to set required to false on the hidden element, then use the validation callback to validate it manually and conditionally - only when the YesNo is in the desired state.
    Take a look at an \IPS\Node\Model's form() method for any app you own, they all tend to use this.
  25. Like
    Marcher Technologies got a reaction from Bluto in Var Template dump   
    {expression="var_export($variable, true)"} I use the above. var_dump does not return a result. it literally just prints to screen.
    To clarify, the second line there, and indeed, setting the $varoutput variable itself, is a meaningless no-op because var_dump was used.
    {{var_dump($variable);}} is the exact same thing as the code you posted.
    I prefer var_export both for control of placement of result and because I have seen var_dump do nothing on some servers due to the output buffering used in the suite, thus var_export consistently gives me the debug i'm looking for without fighting install-specific semantics.
×
×
  • Create New...