Forums / Cotonti / Bugs / Bug in the index Tag cloud

foxhound
#1 2012-09-17 10:49

I hope you are not getting tired of me and my bug reporting but there is also an issue with the tag extension. I have tested this all different ways around and I can only see this as an error with the extension and not my implementation.

If you show the tag cloud on the homepage and you set it to show "all" tags, when you than click a page tag it will not return a result but show you an error message the tag was not found (even though it is right there in the pages). It will however find any forum tag.
If you set the tag cloud on the index to show only "page" tags it works just fine and it can find the tag without issues.
If you set it to "forums" only it can fint all forum tags too.

So, only if you set it to show "all" tags it can not find any page tag.

I went through the php files to see if I could see the issue but it is to complicated for me. I found one line which was commented out which has to do with the page_alias (no idea what exactly):

'TAGS_RESULT_ROW_URL' => empty($row['page_alias']) ? cot_url('page', 'c='.$row['page_cat'].'&id='.$row['page_id']) : cot_url('page', 'c='.$row['page_cat'].'&al='.$row['page_alias']),

Since I use page_alias extension I thought maybe enabling that line of code would fix it did not. So I commented it out again.

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
Trustmaster
#2 2012-09-17 11:40

Confirmed. Please add an issue on Github.

May the Source be with you!
foxhound
#3 2012-09-17 13:46

Maybe one day I even become good at Github  smiley


https://github.com/Cotonti/Cotonti/issues/1032

Added 1 weeks later:

There is more wrong with the tags.
When you show page tags in the list if the first item in the list has a tag it will place that tag in all items in that list which have no tag at all.
If an item below that one already has a tag it will keep its own tag.

To explain clearly:
Item 1 has no tag
Item 2 has no tag
Item 3 has no tag
Item 4 has no tag
Ok!

Item 1 has no tag
Item 2 has no tag
Item 3 has no tag
Item 4 has a tag
Ok!

Item 1 has no tag
Item 2 has no tag
Item 3 has a tag
Item 4 gets items 3 tag
Not ok

Item 1 has a tag
Item 2 gets items 1 tag
Item 3 gets items 1 tag
Item 4 gets items 1 tag
Not ok

I hope it is a bit clear like this, if you can confirm I can add it to Github again!

 

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
This post was edited by foxhound (2012-09-25 21:37, 11 years ago)