Jump to content

DawPi

Clients
  • Posts

    8,325
  • Joined

  • Last visited

  • Days Won

    19

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by DawPi

  1. 2 minutes ago, Donnie95 said:

    Restoring from binlog is too hard.

    I remember there was a plugin that could change the topic author, but I can't recall its name or where to find it.

    I believe I can use it to assign the "Guest" posts to a new account, then recalculate the reputation and post count.

    https://forum.invisionize.pl/topic/55445-przywracanie-usuniętego-użytkownika/

  2. 7 hours ago, HDiddy said:

    Sorry don't take this as rude, but why show us something to help fix it, if your not going to provide it to anyone (paid or free)?

    It's normal behaviour here. Almost all devs doing that if they something privately done. PM if you're interested and I'll send you more details how and where you may buy it.

     

    [ + ]

    Don't forget that Marketplace was closed here - https://invisioncommunity.com/forums/topic/473428-no-caps-topic-titles/?do=findComment&comment=2967780

     

  3. 6 minutes ago, Eleeist said:

    I believe it could be achieved with custom friendly URLs: System->Settings->Advanced Configuration->Friendly URLs

    It can't be done from there.

    Such changes require custom modding. I might be interested in doing something like this so anyone interested PM me please.

  4. It won't work in my situation I affraid. I needed to change that part in the uploader but... It's done. I've added custom script code before body end:

    <script defer>
    $(document).ready(function() {
      (... rest of the code ....)

     

    But thanks for your efforts!

  5. 2 minutes ago, teraßyte said:

    Your only option currently is to create a separate module (with a different/similar name), change only the code you need, and add the new module to the HTML.

    What kind of module you're talking about?

  6. Hello,

    we have mixins for controllers:

     

    But what about mixins for UI? For example how can I change that part from a ips.ui.uploader.js:

    		/**
    		 * Sets up this instance
    		 *
    		 * @returns 	{void}
    		 */
    		var init = function () {
    			
    			uploaderID = $( elem ).identify().attr('id');
    
    			if( options.listContainer ){
    				listContainer = $( options.listContainer );
    			} else if( $( elem ).find('[data-role="fileList"]').length ) {
    				listContainer = $( elem ).find('[data-role="fileList"]');
    			} else {
    				listContainer = $( elem );
    			}
    
    			// Do we need to insert a wrapper though?
    			if( ips.templates.get( options.template + 'Wrapper' ) ){
    				listContainer.prepend( ips.templates.render( options.template + 'Wrapper' ) );
    
    				// Move any existing items
    				var firstItem = listContainer.children().first();
    				firstItem.append( listContainer.children().not( firstItem ) );
    
    				// Set listContainer to the wrapper
    				listContainer = firstItem;
    
    				// And initialize any widgets we might have
    				$( document ).trigger( 'contentChange', [ listContainer.parent() ] );
    			}
    
    			// Add document events
    			$( document ).on( 'addUploaderFile', _addUploaderFile );
    			$( document ).on( 'removeAllFiles', _removeAllFiles );
    
    			// Any files to start with?
    			if( options.existingFiles ){
    				try {
    					var files = $.parseJSON( options.existingFiles );
    
    					if( files.length ){
    						_buildExistingFiles( files );
    					}
    				} catch (err) {
    					Debug.error("Couldn't build existing files: " + err );
    				}
    			}
    
    			if( _supportsDraggable() ){
    				$( elem ).find('.ipsAttachment_supportDrag')
    					.show()
    				.end()
    				.find('.ipsAttachment_nonDrag')
    					.hide();
    			}
    
    			// Load the appropriate files
    			var load = ['core/interface/plupload/plupload.full.min.js'];
    
    			if( !ips.getSetting('useCompiledFiles') ){
    				load = ['core/interface/plupload/moxie.js', 'core/interface/plupload/plupload.dev.js'];
    			}
    
    			ips.loader.get( load ).then( function () {
    				_setUpUploader();
    				_initUploader();
    				_postInitEvents();
    				_setUpFormEvents();
    			});
    		},

    And add something after:

    _setUpFormEvents();

     

×
×
  • Create New...