-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tags in "blog pagination" has a bug! #123
Comments
I don't understand what I should use to reproduce this. What should I do? And your solution is just switching the execution sequence, is that really helping?? |
Yes. SELECT A.pid, A.page But the sql must be SELECT A.pid, A.page |
I think I understand the case. Thanks for explaining! I prefer that the |
Problem is in line 291 of file "helper/entry.php". line 291: ') AND A.pid = B.pid GROUP BY A.pid' When you have tags ,the query will be like as This is the problem. |
Not sure if this is related what I did recognize, but it looks similar. To me it looks like syntax extensions of plugins will not be parsed - more worse at least not all. The 'abstract' 'line is limited to 50 chars by default, so "tags" have to be exist inside this limit. Lets say you use the bbcode plugin and use the "monospace" tag [b][/b] against the initial syntax of 2 apostrophes. [m]something[/m] was written .... --> doesn't work (tags will be displayed) Unfortunately bbcode's [color] tag is removed correct, so it seems that not all tags are effected. Additional entries in entities.(local.)conf will not be parsed and removed. I tried the changes from @WeTogetherDo, but it doesn'work for me. |
@kp-org abstract creation is offtopic. Please create separate issue. |
When you want to use "tags" in , it can't been executed.
So I read the source code, I found a bug in file "helper/entry.php".
public function xhtml_pagination($conf){
...
$query = 'SELECT A.pid, A.page
FROM entries A'.$tag_table.'
WHERE '.$blog_query.$tag_query.'
AND GETACCESSLEVEL(page) >= '.AUTH_READ;
...
}
It should be change to
$query = 'SELECT A.pid, A.page
FROM entries A'.$tag_table.'
WHERE GETACCESSLEVEL(page) >='.AUTH_READ.' AND '.$blog_query.$tag_query;
The text was updated successfully, but these errors were encountered: