Jump to content

Community

BomAle

Members
  • Posts

    817
  • Joined

  • Last visited

  • Days Won

    2

BomAle last won the day on October 2 2016

BomAle had the most liked content!

5 Followers

IPS Marketplace

  • Resources Contributor
    Total file submissions: 9

Profile Information

  • Gender
    Male
  • Location
    italy

Recent Profile Visitors

7,201 profile views
  1. I would add a motivation/encourage any "not active clients" on invisioncommunity, include also "old contributors" to consider this suggestion like a opportunity to take into action to create a "micro" community and permise scalability for future.
  2. Hello, I am interested to start a new project but I would adopt one of my two license which contains Forums, Blogs, Commerce, Downloads (85$ price for renew) but before renew I would only pay for Commerce and Pages app (50$ for renew) I have asked before to support/sales team but they confirm it is not possible at this stage. I suppose this is interesting for improve license scope and support new initiative, make it flexible please. Thanks for your attention, good job Alessandro.
  3. There are some news about possibility for dropshippers to integrate orders from Commerce app with orders Amazon/ebay or viceversa (like Lengow with Magento)?
  4. I also interested with ability to convert user-defined hashtags into item tag list based on permission by author/groups with some relevance algorithm into search result and avoid "seo keywords" duplication. [taxonomy]
  5. I like so much this article, please keep it updated 👍
  6. I suggest to edit the plugin file \applications\core\dev\ckeditor\plugins\ipsautolink\plugin.js like following code: CKEDITOR.plugins.add( 'ipsautolink', { init: function( editor ) { editor.widgets.add( 'ipsembedded', { inline: false, //WHY NOT INLINE????? upcast: function( element ) { if ( ( element.name == 'div' && element.hasClass( 'ipsEmbeddedVideo' ) ) || ( element.name == 'iframe' && !_.isUndefined( element.attributes['data-embedcontent'] ) ) ) { return true; } }, //+++ADDED http://origin-docs.ckeditor.com/ckeditor4/docs/?print=/api/CKEDITOR.plugins.widget.definition#property-styleToAllowedContentRules styleableElements: 'div(ipsEmbeddedVideo); iframe{data-embedcontent}' //add data function for control align style ,data:function(){} }); ips.utils.emoji.getEmoji(function(emoji){ new CKEDITOR.plugins.ipsautolink( editor, emoji ); }); }, //+++ADDED afterInit: function ( editor ) { function setupAlignCommand (value) { var command = editor.getCommand('justify' + value); if (command) { if (value in { right:1,left:1,center:1 }) { command.on('exec', function (event) { var widget = getSelectedWidget(editor); if (widget && widget.name === 'ipsembedded') { widget.setData({ 'align': value }); event.cancel(); } }); } command.on('refresh', function (event) { var widget = getSelectedWidget(editor), allowed = { left:1,center:1,right:1 }, align; if (widget) { align = widget.data.align; /*if ( enabled === undefined ) enabled = editor.filter.checkFeature( editor.widgets.registered.ipsembedded.features.align ); if ( !enabled ) this.setState( CKEDITOR.TRISTATE_DISABLED ); else {*/ this.setState( ( align == value ) ? ( CKEDITOR.TRISTATE_ON ) : ( ( value in allowed ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED ) ); //} event.cancel(); } }); } } function getSelectedWidget (editor) { var widget = editor.widgets.focused; if (widget && widget.name === 'ipsembedded') { return widget; } return null; } setupAlignCommand('left'); setupAlignCommand('right'); setupAlignCommand('center'); } } ); I don't test it
  7. I would report a feedback with alignment of internal link rich embed Currently there is not a possibility to align the block inside ckeditor, I think this should be a option to align it but the default "justify" ckeditor widget don't catch iframe block because javascript code remove the parent paragraphs <p> (CKEDITOR.plugins._replaceLinkWithEmbed) and the only allowed content alignable is this.allowedContent = { 'caption div h1 h2 h3 h4 h5 h6 p pre td th li': { // Do not add elements, but only text-align style if element is validated by other rule. propertiesOnly: true, styles: this.cssClassName ? null : 'text-align', classes: this.cssClassName || null } }; // In enter mode BR we need to allow here for div, because when non other // feature allows div justify is the only plugin that uses it. if ( editor.config.enterMode == CKEDITOR.ENTER_BR ) this.allowedContent.div = true; \applications\core\dev\ckeditor\plugins\justify\plugin.js I tried to submit a ticket into invisionpower.zendesk support for report it but the reply about "In order to assist you with the issue, you'll need to reactivate the application" An example below
  8. http://sandbox.onlinephpfunctions.com/code/5bef0ff1fdb892b1a577dff02420625518d45ec2 I suggest to replace return array( str_replace( \IPS\ROOT_PATH, \IPS\Http\Url::baseUrl(), $path ) ); into return array( \substr_replace( $path, \IPS\Http\Url::baseUrl(), 0, \strlen(\IPS\ROOT_PATH) ) );
  9. http://sandbox.onlinephpfunctions.com/code/a305c2d09672d5775d2110c9bfc67847185bb63a
  10. $settings = ['it' => 12, 'en' => 1]; foreach ( $settings as $k => $v ) { if( $this->member->skin !== $v AND \strtolower( \substr( $this->member->language()->short, 0, 2 ) ) === $k ) { $this->member->skin = $v; if( $this->member->member_id ) { $this->member->save(); } return NULL; } } return call_user_func_array( 'parent::getTheme', func_get_args() ); this will work for sure (return NULL prevent resetting to default theme see system/Theme/Theme.php:284)
  11. $settings = ['it' => 12, 'en' => 1]; foreach ( $settings as $k => $v ) { if( $this->member->skin !== $v AND \strtolower( \substr( $this->member->language()->short, 0, 2 ) ) === $k ) { $this->member->skin = $v; if( $this->member->member_id ) { $this->member->save(); } } } return call_user_func_array( 'parent::getTheme', func_get_args() ); but this code is valid only if you overload \IPS\Session\Front::getTheme With switchTheme the theme is set only for current location, with getTheme overload you can set it permanently only once occur preventing more call or redirection (like a silent code that automatically cover default IPS code and your needs)
  12. This is also what I want for mention taxonomy not only a group but also a "members interested" and link a page like myweb.site/list/besthelpers with a hashtag where there are some content and a list of members inside it (as club dashboard and stream discover) #besthelpers because tag a group is not flexible as a club/s or a open page where are listed, some list could be closed/protected/private or based by invite/request (MORE RELEVANT compared open system) when use a hashtag the framework create a new taxonomy, where the author is inserted on the list and the content attached into. example #link instagram #link twitter and facebook...
  13. Italian Films (myweb.site/index/italian-films) child of Films and Italian taxonomy content filter: forum cats[1,2,3], clubs [1,2], tags['film'], topic [33,35], people interested: member [1,2,3], groups[15], pfields [1 in it], following notification based on last update or change history summary/stats: last update (cached page with task background for scan each X time) suggestion insert semantic schema json-ld with link to structured data markup helper external sources, advertising purpose...
  14. some code example, docs... https://core.trac.wordpress.org/browser/tags/5.3/src/wp-includes/taxonomy.php#L0 https://codex.wordpress.org/Function_Reference/wp_set_object_terms https://developer.wordpress.org/themes/basics/categories-tags-custom-taxonomies/#database schema https://wordpress.org/support/article/taxonomies/ https://kinsta.com/knowledgebase/what-is-taxonomy/ https://generatewp.com/taxonomy/?clone=music-genre-taxonomy
×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy