Hello. I tried to write code to get 'Maps' by some parameter with single function.
But faced with an almost insurmountable obstacle.
Not works:
public static function getMapsCountByParam( $param, $val )
{
$db = \XF::db();
$map = $db->fetchOne("SELECT COUNT(id) FROM...
This chat can block further message input if the message exceeds the maximum length?
( i can enter message with any length, but possible need just block input if entered message bigger that maximum length?)
Yes, while displaying "Posting message..." chat lost focus, and in this time can be used any default hotkeys. (Space, ' , . / ' ...)
( The problem will affect those who are quick prints. )
How to use 'for loop' in Xenforo 2.0 language (templates.xml)
For example pseudocode:
// create $n and $i local variables, do action while $i < 100
<xf:for var="$n = 0; $i = 0" while="$i < 100" do="$i++">
// set $n as $i % 10
<xf:set var="$n" value="$i % 10" />
//... do something with $n ($i...