Jump to content

Tournaments 1.1.2


Recommended Posts

	public static function getItemsWithPermission( $where=array(), $order=NULL, $limit=10, $permissionKey='read', $includeHiddenItems=\IPS\Content\Hideable::FILTER_AUTOMATIC, $queryFlags=0, \IPS\Member $member=NULL, $joinContainer=FALSE, $joinComments=FALSE, $joinReviews=FALSE, $countOnly=FALSE, $joins=NULL, $skipPermission=FALSE, $joinTags=TRUE, $joinAuthor=TRUE, $joinLastCommenter=TRUE, $showMovedLinks=FALSE )
	{
		$member = $member ?: \IPS\Member::loggedIn();
		if ( !$member->isAdmin() )
		{
			$joinContainer = TRUE;
		}
		
		return parent::getItemsWithPermission( $where, $order, $limit, $permissionKey, $includeHiddenItems, $queryFlags, $member, $joinContainer, $joinComments, $joinReviews, $countOnly, $joins, $skipPermission, $joinTags, $joinAuthor, $joinLastCommenter, $showMovedLinks );
	}

this function is the problem i think it should be converted to php 8.0+

this function is present in 2 files sources\Tournaments\Tournaments.php and sources\Teams\Teams.php

Link to comment
Share on other sites

  • 1 month later...
37 минут назад, hardkboy сказал:

How i can make it work on ips 4.7.9 ? is not compatible.

Have you already tried to install this app on version 4.7.9 or are you just asking?

Link to comment
Share on other sites

At 10.05.2023 at 10:26, ryancoolround said:

Have you already tried to install this app on version 4.7.9 or are you just asking?

I try to install it but i get this error.

1C133/K The application you uploaded cannot be installed because it is not a valid application, the archive is corrupt or the file and directory permissions in /applications do not allow it.

Link to comment
Share on other sites

Ok i manage to install it bow if i click on tournaments in front i get 

 

ParseError: syntax error, unexpected variable "$location", expecting ")" (0)
#0 [internal function]: IPS\IPS::autoloader()
#1 /home/gameport.ro/public_html/system/Dispatcher/Front.php(254): is_subclass_of()
#2 /home/gameport.ro/public_html/system/Dispatcher/Dispatcher.php(110): IPS\Dispatcher\_Front->init()
#3 /home/gameport.ro/public_html/index.php(13): IPS\_Dispatcher::i()
#4 {main}

Link to comment
Share on other sites

3 часа назад, hardkboy сказал:

Ok i manage to install it bow if i click on tournaments in front i get 

 

ParseError: syntax error, unexpected variable "$location", expecting ")" (0)
#0 [internal function]: IPS\IPS::autoloader()
#1 /home/gameport.ro/public_html/system/Dispatcher/Front.php(254): is_subclass_of()
#2 /home/gameport.ro/public_html/system/Dispatcher/Dispatcher.php(110): IPS\Dispatcher\_Front->init()
#3 /home/gameport.ro/public_html/index.php(13): IPS\_Dispatcher::i()
#4 {main}

В части кода, где находится $location в конце ожидается скобка ), , а не переменная.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...