Jump to content

SeNioR-

Members
  • Posts

    1,154
  • Joined

  • Days Won

    5

 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 SeNioR-

  1. 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.

    description-123.png.56388a9acfb8bc83dca1efb8be5ff9a0.png

  2. 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.

    qa-guest.png.faf97e155f96a947dc7d652f3c47633b.png

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

    if ( !\IPS\Member::loggedIn()->member_id )
    {
    //ADD Q&A
          $question = FALSE;
    		try
    		{
    			$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 )
    				{
    					try
    					{
    						$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;
    							}
    						}
    					}
    				}
    				else
    				{
    					$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 );
    }

     

  3. On 5/31/2021 at 2:29 PM, Adlago said:

    Hi guys,
    How do you think you should upgrade to 4.5.2 from ipb 3.1.
    Will it be better from 3.1 to 3.4.x or should I try straight from 3.1 to 4.5.2.
    I appreciate every opinion.
    Thanks.

    I had a different experience and in my opinion it is better to upgrade to 3.4.9 (last version) and then to IPS 4

  4. You can use the built-in classes to change the background color

    1. ipsButton_link
    2. ipsButton_veryLight
    3. ipsButton_light 
    4. ipsButton_negative (red)
    5. ipsButton_positive (green)
    6. ipsButton_intermediate (orange)

    example

    <a href="YOUR_URL" class="ipsButton ipsButton_negative ipsButton_medium">YOUR TEXT</a>

    or customize the button using inline CSS styles

    <a href="YOUR_URL" style="background:blue; color:yellow; font-size:30px;" class="ipsButton ipsButton_primary ipsButton_medium">YOUR TEXT</a>

     

×
×
  • Create New...