Jump to content



  • Posts

  • Joined

 Content Type 



IPS4 Providers

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog



Posts posted by SeNioR-

  1. Go to index/forumRow

    find & remove

    				{{if $lastPost AND ( $forum->can_view_others OR \IPS\Member::loggedIn()->modPermission('can_read_all_topics') OR ( \is_array( \IPS\Member::loggedIn()->modPermission('forums') ) AND \in_array( $forum->_id, \IPS\Member::loggedIn()->modPermission('forums') ) ))}}
    						{{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}}
    						<dt class="ipsDataItem_stats_number">{number="$count" format="short"}</dt>
    						<dd class="ipsDataItem_stats_type ipsType_light">{lang="posts_no_number" pluralize="$count" format="short"}</dd>


  2. There is an "Invoices" section in ACP in Customer View.

    Do you mean the public profile?

    On 6/8/2021 at 10:53 PM, HakanYagiz said:

    is possible to give this permission to staff ?

    {{if $member->modPermission() or $member->isAdmin()}}
    Code visible to moderators or admins 


  3. Check that the forums_posts table characters were converted in the correct way. If so, it is the server's fault.

    3 hours ago, sate said:

    The hosting that I am using has defauld charset latin1, should I ask them to change the server charset to UTF8 ?

    Yes definitely. Server character encoding should be set to UTF-8 Unicode (utf8mb4).

  4. It seems to me that it is not so easy to add this option to ACP because it is a CKEditor plugin.

    If you want to change the default code syntax highlighting, try going to applications\core\interface\ckeditor\ckeditor\plugins\ipscode\plugin.js

    Open plugin.js 



    and change the \x26lang\x3dhtml suffix to css or lua or something else.



    I have not tested this method, so I do not guarantee that it will work.

  5. On 6/22/2020 at 3:36 AM, AlexWebsites said:

    I guess this never made it to 4.5 ☹️

    The description should not be set the same for each page, that's why IPS didn't add a meta description tag on other pages, it's only on the first page (main).

    Google itself can choose the most valuable description for each page from user posts, and it does. From an SEO point of view, this is the better solution.


  6. Why is the Q&A Challenge for guests still not added? If captcha has been added then Q&A should also 🙂 

    Can we expect it in the near future? Thanks.


    system\Content\Item.php (public static function formElements)

    if ( !\IPS\Member::loggedIn()->member_id )
    //ADD Q&A
          $question = FALSE;
    			$question = \IPS\Db::i()->select( '*', 'core_question_and_answer', NULL, "RAND()" )->first();
    			catch ( \UnderflowException $e ) {}
    			$return['qagp']	= new \IPS\Helpers\Form\Text( 'qagp', NULL, TRUE, array(), function( $val )
    				$qanda  = intval( \IPS\Request::i()->qagp_id );
    				$pass = true;
    				if( $qanda )
    						$question = \IPS\Db::i()->select( '*', 'core_question_and_answer', array( 'qa_id=?', $qanda ) )->first();
    					catch( \UnderflowException $e )
    						throw new \DomainException( 'qagp_incorrect' );
    						$answers = json_decode( $question['qa_answers'] );
    						if( $answers )
    						$answers = is_array( $answers ) ? $answers : array( $answers );
    						$pass = FALSE;
    						foreach( $answers as $answer )
    							$answer = trim( $answer );
    								if( mb_strlen( $answer ) AND mb_strtolower( $answer ) == mb_strtolower( $val ) )
    								$pass = TRUE;
    					$questions = \IPS\Db::i()->select( 'count(*)', 'core_question_and_answer', 'qa_id > 0' )->first();
    					if( $questions )
    						$pass = FALSE;
    				if( !$pass )
    					throw new \DomainException( 'qagp_incorrect' );
    			} );
    \IPS\Member::loggedIn()->language()->words['qagp'] = \IPS\Member::loggedIn()->language()->addToStack( 'core_question_and_answer_' . $question['qa_id'], FALSE );


  • 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