Jump to content

Adriano Faria

Clients
  • Posts

    31,586
  • Joined

  • Days Won

    473

 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 Adriano Faria

  1. - New topic: hook on \IPS\forums\Topic:

    	public static function createFromForm( $values, \IPS\Node\Model $container = NULL, $sendNotification = TRUE )
    	{
    		$item = parent::createFromForm( $values, $container, $sendNotification );
    
    		//do your stuff
    
    		return $item;
    	}

    - New post: hook on \IPS\forums\Topic\Post:

    	public static function create( $item, $comment, $first=FALSE, $guestName=NULL, $incrementPostCount=NULL, $member=NULL, \IPS\DateTime $time=NULL, $ipAddress=NULL, $hiddenStatus=NULL, $anonymous=NULL )
    	{
    		$reply = parent::create( $item, $comment, $first, $guestName, $incrementPostCount, $member, $time, $ipAddress, $hiddenStatus, $anonymous );
    
    		//do your stuff
    
    		return $reply;
    	}

     

  2. 2 minutes ago, DawPi said:

    Supporting for v5 mean create it from scratch! 🙂

    Nope. Template stuff will, the PHP part, no. We'll have to change a lot of stuff like \IPS\Member::loggedIn() to Member::bla bla bla (declaring it before) and a lot of extensions into listeners... and convert the existing hooks into listeners, where it's possible. Not a FULL rewrite but some will require boring work.

  3. 1 hour ago, Molly Schwartz said:

    I've got a large list of tags that I want to use on my forum. Is it not possible to cut and paste these all at once? Or do I need to copy and paste each tag individually?

    I’m not sure you want to copy tags between the forums or mass add to topics.

    if you mean in topics, with the following resource, you can add prefixes/tags to multiple topics at same time:

    Screenhost2.png.d218dd7fb8289cd46e098139

     

    Screenhost4.png.6c75b6ca363df6e12bba8308

     

    https://www.sosinvision.com.br/index.php?/file/166-mass-tag-topics/

  4. Delete the tcw directory in applications. Delete the 3 tables it created; they will start with tcw_. Delete the corresponding records from core_sys_conf_settings and core_sys_lang_words. Probably there will be some orphaned records in other tables but nothing that will make your site be useless.

    Go to support tool and rebuild the cache.

    Make a backup of filed and database first just in case.

  5. Just now, Clover13 said:

    OK I see how it works now. 

    It's a great add-on to be able to do the bulk of the work of promotions of a Post to a Database.

    Seeing a few things

    1. Can this be configured in some way to pick a database for a specific post?  I may want to promote one post to Database ABC and another post to Database DEF.  Is that possible or is it strictly a global single database?

    2. Seeing an issue where a post gets promoted and the attached images do not appear after the initial save to create.  The appear in the template being filled but not in the initial saved record.  I had create/submit it to create the database record, then reopen the record via the UI, edit it (which shows everything still there), and re-save it.

    Steps:

    • Click Promote to Article on a Topic post that contains attached images
    • Complete Pages Database record form and save it
    • Review result page of newly created record which shows no images in the record view
    • Edit the record, which will show the images are still there
    • Save the record again (no need to make any changes) and see the images now appear in the record view.

    3. Validation errors with the record form will not maintain the values entered.  The title defaults to the title of the original Topic, but will often be changed.  Have to go and recreate it again and fill out other fields if there is a validation error.

    4. Record Image Required plugin you have doesn't honor the Post conversions.  It won't require the image when you are converting/creating the record, but it will show required when editing it after it's been created.

    Support is provided in my board only. 👍

×
×
  • Create New...