Jump to content

aXenDev

Members
  • Posts

    658
  • Joined

  • Days Won

    6

 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 aXenDev

  1. 6 hours ago, misfit76 said:

    Default Theme does not have this problem.  It seems to only happen on the Databases where there are no Categories.  As this page seems to work ok. https://www.bmw2002faq.com/articles/technical-articles/brakes/conversion-to-vw-disk-brakes-r113/

     

     

    This isn't fault of the theme. I see this problem also on the default theme, but to a lesser extent.

    It is likely fault of the ads you have on the page or the pages template itself.

  2. Hi,
    I have a problem with pagination in user profiles (Tabs).

    I create an application:

    1. I'll add a Profile named ProfileClassname.php in Extensions
      image.png.85241e3ca7d4f1a606bd657b12a89c20.png
    2. Its contents have not been changed, except for the render function to:
      	/**
      	 * Display
      	 *
      	 * @return	string
      	 */
      	public function render()
      	{
      		$table = new \IPS\Helpers\Table\Content('IPS\testpagination\TestPagination', $this->member->url()->setQueryString(array('tab' => 'node_testpagination_Profile')));
      		$table->rowsTemplate = array(\IPS\Theme::i()->getTemplate('profile', 'testpagination', 'front'), 'testpaginationRow');
      		$table->limit = 2;
      		$table->noModerate = TRUE;
      
      		return (string) $table;
      	}

       

    3. I have created a testpaginationRow.phtml file with the contents:
      <ips:template parameters="$table, $headers, $rows" />
      {{foreach $rows as $row}}
      test
      {{endforeach}}
    4. IPS\testpagination\TestPagination class content:
      <?php
      
      namespace IPS\testpagination;
      
      /* To prevent PHP errors (extending class does not exist) revealing path */
      
      if (!\defined('\IPS\SUITE_UNIQUE_KEY')) {
        header((isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0') . ' 403 Forbidden');
        exit;
      }
      
      class _TestPagination extends \IPS\Content\Item
      {
        /**
         * @brief	Database Table
         */
        public static $databaseTable = 'testpagination_members';
      
        /**
         * @brief	Application
         */
        public static $application = 'testpagination';
      
        /**
         * @brief	Database Prefix
         */
        public static $databasePrefix = 'testpagination_';
      
        /**
         * @brief	Database Column Map
         */
        public static $databaseColumnMap = array(
          'date'      => 'date'
        );
      }

       

    The effect is what I wanted:

    image.thumb.png.91ef3256b9f063806dac08be4c35f807.png

    But when I change the page, nothing happens and console in the browser shows me an error:

    Ajax request failed (parsererror): SyntaxError: Unexpected token < in JSON at position 0

    image.png.56332a561912249408db36ecc79a5060.png

     

    Here is test application:
    test pagination 1.0.0 (1).tar

    dev.zip

  3. 2 hours ago, byMarcoX said:

    For the rest, despite having emptied the cache several times via the support and having tested on Google Chrome and Microsoft Edge, I have the same problem, not the right pages and no more buttons at the bottom ...

    The theme does not affect caching. Are there any errors in the browser console or in the AdminCP logs?

  4. 3 minutes ago, byMarcoX said:

    Hello, since the last update, I have this problem on the theme admin, I cannot access the sections and the validate (save) button no longer appears at the bottom of each admin page?

    Refresh cache by support in AdminCP.

    3 minutes ago, byMarcoX said:

    Then on the topic at the home of the forum, the right bar automatically disappears at the bottom of the forum ?!

    I guess your ad is misplaced.

×
×
  • Create New...