Kunena 6.3.0 released
The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3
Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.
Important Syntax errors in search
14 years 4 days ago - 14 years 4 days ago #1
by lev
Sorry for my English.
Syntax errors in search was created by lev
Has found syntax errors in search в 11 version
\template\default\plugin\advancedsearch\advsearch.php
Syntax is a theory
for the unit Identifier <INPUT> with which it is necessary to establish connection.
There are two ways of binding of the object and a label. The first consists in identifier usage id in tag INPUT and instructions of his name as parametre for a tag <LABEL>. At the second way the tag <INPUT> is located in the container <LABEL>.
Has substituted name on id and has swapped:
Or other variant:
id = "fb_forumsearch" has substituted on id = "fb_forumsearch_1" - the same reason two id with identical names cannot be.
\template\default\plugin\advancedsearch\advsearch.php
Syntax is a theory
Code:
<input id="identifier"><label for="identifier">text</label>
<label><input type="..."> text</label>
for the unit Identifier <INPUT> with which it is necessary to establish connection.
There are two ways of binding of the object and a label. The first consists in identifier usage id in tag INPUT and instructions of his name as parametre for a tag <LABEL>. At the second way the tag <INPUT> is located in the container <LABEL>.
Code:
<label for="exactname">
<input type="checkbox" name="exactname" value="1" <?php if ($exactname) echo $checked; ?> />
<?php echo _KUNENA_SEARCH_EXACT; ?>
</label>
Code:
<label for="childforums">
<input type="checkbox" name="childforums" value="1" <?php if ($childforums) echo 'checked="checked"'; ?> />
<?php echo _KUNENA_SEARCH_SEARCHIN_CHILDREN; ?>
</label>
Has substituted name on id and has swapped:
Code:
<input type="checkbox" id="exactname" value="1" <?php if ($exactname) echo $checked; ?> />
<label for="exactname">
<?php echo _KUNENA_SEARCH_EXACT; ?>
</label>
Code:
<input type="checkbox" id="childforums" value="1" <?php if ($childforums) echo 'checked="checked"'; ?> />
<label for="childforums">
<?php echo _KUNENA_SEARCH_SEARCHIN_CHILDREN; ?>
</label>
Or other variant:
Code:
<label>
<input type="checkbox" value="1" <?php if ($exactname) echo $checked; ?> />
<?php echo _KUNENA_SEARCH_EXACT; ?>
</label>
Code:
<label>
<input type="checkbox" value="1" <?php if ($childforums) echo 'checked="checked"'; ?> />
<?php echo _KUNENA_SEARCH_SEARCHIN_CHILDREN; ?>
</label>
id = "fb_forumsearch" has substituted on id = "fb_forumsearch_1" - the same reason two id with identical names cannot be.
Sorry for my English.
Last edit: 14 years 4 days ago by lev.
Please Log in or Create an account to join the conversation.
14 years 4 days ago #2
by sozzled
Blue Eagle vs. Crypsis reference guide
Read my blog and
Replied by sozzled on topic Re: Syntax errors in search
Can you make this really simple for me, please? What's your problem? :side:
Can this "syntax error" issue/problem be demonstrated at www.kunena.com . If so, how?
Thank you.
Can this "syntax error" issue/problem be demonstrated at www.kunena.com . If so, how?
Thank you.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
14 years 3 days ago - 14 years 3 days ago #3
by lev
Sorry for my English.
Replied by lev on topic Re: Syntax errors in search
kunena Validation
Line 215, Column 41: reference to non-existent ID "exactname"
Line 320, Column 45: reference to non-existent ID "childforums"
My Website
My Website Validation
Of course I have myself checked
I made a correction, but do not quite understand what is the point, those who drafted the script ...) I think that will make this correction in the official release?
Do you understand what I wrote? Sorry for my English!
Line 215, Column 41: reference to non-existent ID "exactname"
Line 320, Column 45: reference to non-existent ID "childforums"
My Website
My Website Validation
Of course I have myself checked
I made a correction, but do not quite understand what is the point, those who drafted the script ...) I think that will make this correction in the official release?
Do you understand what I wrote? Sorry for my English!
Sorry for my English.
Last edit: 14 years 3 days ago by lev.
Please Log in or Create an account to join the conversation.
14 years 3 days ago - 14 years 3 days ago #4
by @quila
Replied by @quila on topic Re: Syntax errors in search
Hi lev,
thank you for reporting this error. Now we understand what you mean.
thank you for reporting this error. Now we understand what you mean.
Last edit: 14 years 3 days ago by @quila.
Please Log in or Create an account to join the conversation.
14 years 3 days ago - 14 years 1 day ago #5
by lev
Sorry for my English.
Replied by lev on topic Re: Syntax errors in search
@quila wrote:
By the way I have made some corrections may also be useful?
download
com_kunena_v1.5.11_stable_b1884_2010-04-20.zip
1.28MB
who.php
change:
report.php
listcat.php
/default_ex/view.php
router.php
kunena.credits.php
kunena.parser.php
kunena.rules.php
stats.php
advsearch.php
/default_ex/flat.php
Replaced:
components\com_kunena\template\default\plugin\fbprofile\fbprofile.php
Last Edit
change:
That looks better - I recommend!
Hi lev,
thank you for reporting this error. We understand what you mean.
By the way I have made some corrections may also be useful?
download
com_kunena_v1.5.11_stable_b1884_2010-04-20.zip
1.28MB
who.php
Code:
<?php
if ($user->userid == 0) {
echo $user->username;
}
else
{
echo CKunenaLink::GetProfileLink($fbConfig, $user->userid, $user->username);
}
?>
change:
Code:
<?php
if ($user->userid == 0) {
echo $user->username;
}
else
{
echo CKunenaLink::GetProfileLink($fbConfig, $user->userid, $_user->name);
}
?>
report.php
listcat.php
/default_ex/view.php
router.php
kunena.credits.php
kunena.parser.php
kunena.rules.php
stats.php
advsearch.php
/default_ex/flat.php
Code:
<th class = "th-7 <?php echo $boardclass ?>sectiontableheader" width="1%" align="center">[X]</th>
Replaced:
Code:
<th class = "th-7 <?php echo $boardclass ?>sectiontableheader" width="1%" align="center">[x]</th>
components\com_kunena\template\default\plugin\fbprofile\fbprofile.php
Last Edit
Code:
if ($kunena_my->id) //registered only
{
require_once(KUNENA_PATH_LIB .DS. 'kunena.authentication.php');
require_once(KUNENA_PATH_LIB .DS. 'kunena.statsbar.php');
$task = JRequest::getCmd('task', 'showprf');
switch ($task)
{
case "showprf":
$userid = JRequest::getInt('userid', 0);
$page = 0;
showprf((int)$userid, $page);
break;
}
}
else {
echo '<h3>' . _COM_A_REGISTERED_ONLY . '</h3>';
}
change:
Code:
require_once(KUNENA_PATH_LIB .DS. 'kunena.authentication.php');
require_once(KUNENA_PATH_LIB .DS. 'kunena.statsbar.php');
$task = JRequest::getCmd('task', 'showprf');
switch ($task)
{
case "showprf":
$userid = JRequest::getInt('userid', 0);
$page = 0;
showprf((int)$userid, $page);
break;
}
That looks better - I recommend!
Sorry for my English.
Last edit: 14 years 1 day ago by lev.
Please Log in or Create an account to join the conversation.
14 years 3 days ago #6
by sozzled
Blue Eagle vs. Crypsis reference guide
Read my blog and
Replied by sozzled on topic Re: Syntax errors in search
Yes, thank you very much for reporting this and for your suggestions. We'll make sure the right people get to review this information.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
Time to create page: 0.499 seconds