Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.
The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.
The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.
Question Ban Manager Display limit
14 years 4 months ago - 14 years 4 months ago #114122
by C0n
Ban Manager Display limit was created by C0n
So i am slightly confussed if Kunena's ban manager has a display limit or not or if i have to do so with a template override ?
Since currently the ban manager is displaying 2269 banned users that is a hell of allot to load up at one time in a page.
//EDIT : Problem fixed, www.kunena.org/forum/114-user-written-ha...display-limit#114177
Since currently the ban manager is displaying 2269 banned users that is a hell of allot to load up at one time in a page.
//EDIT : Problem fixed, www.kunena.org/forum/114-user-written-ha...display-limit#114177
Last edit: 14 years 4 months ago by C0n.
Please Log in or Create an account to join the conversation.
14 years 4 months ago #114145
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re: Ban Manager Display limit
Hello,
What Kunena part are-you talking ?
What Kunena part are-you talking ?
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
14 years 4 months ago - 14 years 4 months ago #114161
by C0n
Replied by C0n on topic Re: Ban Manager Display limit
Since i can not display file directories since it appears the code does not exsist i will have to show you.
That is only as much as i could fit in for the picture, It loads "2269 users" going straight down the page.
The reason no usernames are displayed is because i delete banned accounts (purge out accounts older than 7 days that are disabled).
Accessing the ban manager via viewing my profile on the forum.
That is only as much as i could fit in for the picture, It loads "2269 users" going straight down the page.
The reason no usernames are displayed is because i delete banned accounts (purge out accounts older than 7 days that are disabled).
Accessing the ban manager via viewing my profile on the forum.
Last edit: 14 years 4 months ago by C0n.
Please Log in or Create an account to join the conversation.
14 years 4 months ago #114162
by sozzled
Blue Eagle vs. Crypsis reference guide
Read my blog and
Replied by sozzled on topic Re: Ban Manager Display limit
The short answer to your question is that, yes, there probably is a limit (but I don't know what it is or what happens when you reach the limit) and the limit is probably a very large number (like 4294967296 or something).
What you have shown is that 2269 have been banned from your site by you or by those others you've authorised to ban users. BTW, we don't delete banned user accounts; we leave the account disabled so that no-one else can use the account, either).
What you have shown is that 2269 have been banned from your site by you or by those others you've authorised to ban users. BTW, we don't delete banned user accounts; we leave the account disabled so that no-one else can use the account, either).
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
14 years 4 months ago - 14 years 4 months ago #114164
by C0n
Replied by C0n on topic Re: Ban Manager Display limit
The account is disabled then after 7 days it gets deleted if the ban is not lifted for what ever reason (perm ban), And when a user registers a new account with the same username they have a diffrent userid anyway so it does not matter.
But i will search through kunena's core to find the ban manager and put a limit onit. And post the code here since it appears there has not been one set by default.
The post tab has a display limit of 20 as defined in
\com_kunena\template\default\threads\posts.php
Line 65:
This would be what load's up the banned user's
\com_kunena\template\default\profile\banmanager.php
Allot diffrent to the way the other tab's contents are loaded....
But i will search through kunena's core to find the ban manager and put a limit onit. And post the code here since it appears there has not been one set by default.
The post tab has a display limit of 20 as defined in
\com_kunena\template\default\threads\posts.php
Line 65:
Code:
<?php echo CKunenaLink::GetThreadLink ( 'view', intval($firstpost->catid), intval($firstpost->id), KunenaParser::parseText ($firstpost->subject, 20), KunenaParser::stripBBCode ($firstpost->message), 'follow', 'ktopic-title km' ) ?>
This would be what load's up the banned user's
\com_kunena\template\default\profile\banmanager.php
Code:
<?php
if ( $this->bannedusers ) {
foreach ($this->bannedusers as $userban) :
$bantext = $userban->blocked ? JText::_('COM_KUNENA_BAN_UNBLOCK_USER') : JText::_('COM_KUNENA_BAN_UNBAN_USER');
$j++;
?>
Allot diffrent to the way the other tab's contents are loaded....
Last edit: 14 years 4 months ago by C0n.
Please Log in or Create an account to join the conversation.
14 years 4 months ago - 14 years 4 months ago #114177
by C0n
Replied by C0n on topic Re: Ban Manager Display limit
I fixed it just made a little hack to the code nothing special i'm sure there are many diffrent ways and decent / better ones for counting foreach statements.
Limited it to display only 10 banned user's.
Code:
<?php
$counter = 0;
if ( $this->bannedusers ) {
foreach ($this->bannedusers as $userban) :
$bantext = $userban->blocked ? JText::_('COM_KUNENA_BAN_UNBLOCK_USER') : JText::_('COM_KUNENA_BAN_UNBAN_USER');
if(++$counter >= 11)
{ break; }
$j++;
?>
Limited it to display only 10 banned user's.
Last edit: 14 years 4 months ago by C0n.
Please Log in or Create an account to join the conversation.
Time to create page: 0.284 seconds