Jump to content

Community

aXenDev

+Clients
  • Posts

    499
  • Joined

  • Days Won

    4

 Content Type 

Profiles

Downloads

IPS4 Providers

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Forums

Store

Posts posted by aXenDev

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

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

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

  4. In file MemberSync/Donate.php query to database is wrong:

    \IPS\Db::i()->update( 'donate_member', array( 'donate_member_id' => $member->member_id ), array( 'donate_member_id=?', $member2->member_id ) );

    and

    \IPS\Db::i()->delete( 'donate_member', array( 'donate_member_id=?', $member->member_id ) );

    donate_member is not exist. It should be donate_members.

  5. 1 hour ago, GillyMe said:
    ArgumentCountError: Too few arguments to function IPS\Theme\class_core_front_profile::profile(), 6 passed in /home/evolutionwarfare.com/public_html/system/Theme/SandboxedTemplate.php on line 61 and exactly 7 expected in /home/evolutionwarfare.com/public_html/system/Theme/Theme.php(860) : eval()'d code:1198
    Stack trace:
    #0 /home/DOMAIN/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_profile->profile(Object(IPS\Member), '\n\n\t<div class='...', Array, Array, Object(IPS\Db\Select), Object(IPS\Http\Url\Friendly))
    #1 /home/DOMAIN/public_html/applications/core/modules/front/members/profile.php(428): IPS\Theme\_SandboxedTemplate->__call('profile', Array)
    #2 /home/DOMAIN/public_html/system/Dispatcher/Controller.php(101): IPS\core\modules\front\members\_profile->manage()
    #3 /home/DOMAIN/public_html/applications/core/modules/front/members/profile.php(73): IPS\Dispatcher\_Controller->execute()
    #4 /home/DOMAIN/public_html/system/Dispatcher/Dispatcher.php(152): IPS\core\modules\front\members\_profile->execute()
    #5 /home/DOMAIN/public_html/index.php(13): IPS\_Dispatcher->run()
    #6 {main}

    This is the error that I see on the logs

    I can't reproduce this error. Please contact me by PM.

  6. Hi,

    In the IPS 4.6 update user's hovercard information what user do was removed.
    I propose to restore this option.


    Currently it looks like this:
    image.png.7930a2a5f274d5ad5994fc0ee5c66c0d.png
    The word "Online now" appears all the time for 15 minutes after the last user action.
    In my opinion this is confusing and should be changed.

    Here is my suggestion:
    image.png.64420f839f42a52244eba200c2ebccc8.png

    or
    image.png.95ca71b1be1310aea495d5e212ac3717.png

    What do you think about it?
    In my opinion, this last suggestion makes the most sense.

×
×
  • 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