Ningja Skin Index has wrong forum url

Elise
Elise
@elise
8 years ago
249 posts
Ooops, found a problem before I go live.
Is this a bug in Ningja skin?

My main forum has a SINGLE category called empath. Categories are required to that members can choose to get notified on new posts.
http://empathcommunity.eliselebeau.com/community/forum/empath

My Ningja skin > Global Config > Site Index is set to the root of my forum
http://empathcommunity.eliselebeau.com/community/forum

My Ningja skin index template (unmodified)
<a href="{$_conf.NingElise_forum_profile}/{$item.forum_cat_url}/{$item._item_id}/{$item.forum_title_url}#last">

But this creates an inaccurate URL from my index page with a category does that not exist:
http://empathcommunity.eliselebeau.com/community/forum/the-empath-life/26463/are-you-a-light-empath-or-a-dark-empath#last

A while back, I renamed that category and "transferred" all the posts to it. Now I only have one category and it is called "empath". (see screenshot)

Btw, the links works fine on the Forum page when you access it from the menu.
http://empathcommunity.eliselebeau.com/community/forum/empath

How can I fix the category so it uses the new name (empath) instead of the old one (the-empath-life)?



updated by @elise: 12/11/16 08:07:40PM
paul
@paul
8 years ago
4,326 posts
With Ningja the forum menu link is set in the skin settings -
ACP=>Skin Settings=>Site Index=>Forum URL

But as your forum only has one category, why not disable forum categories (settings tab on the forum page) then all the topics will show on the forum page itself.
hth
Pa


--
Paul Asher - JR Developer and System Import Specialist
Elise
Elise
@elise
8 years ago
249 posts
because
Elise:
My main forum has a SINGLE category called empath. Categories are required to that members can choose to get notified on new posts.
:)
Elise
Elise
@elise
8 years ago
249 posts
I know where the forum url is set. As I indicated above, my forum URL is set properly.
The links are malformed.
paul
@paul
8 years ago
4,326 posts
Sorry - didn't read your first post properly.
So which template/widget is that wrong link in?


--
Paul Asher - JR Developer and System Import Specialist
Elise
Elise
@elise
8 years ago
249 posts
I think this is the bit that is confused:
My Ningja skin index.tpl
<a href="{$_conf.NingElise_forum_profile}/{$item.forum_cat_url}/{$item._item_id}/{$item.forum_title_url}#last">

I just noticed that even though the URL is inaccurate, it seems to be using a forward to get to the right place. Is that how it's supposed to work when you rename a category?
updated by @elise: 09/12/16 12:27:55PM
Elise
Elise
@elise
8 years ago
249 posts
Note that the jrForum module is working fine (has the right category name).
paul
@paul
8 years ago
4,326 posts
Sorry Elise, I'm not getting the issue. That link in the forums section of your index page is right and its going to the right place.


--
Paul Asher - JR Developer and System Import Specialist
Elise
Elise
@elise
8 years ago
249 posts
Sorry, it's not very obvious.

Look at the link displayed at the very bottom of the screenshot.
That is not the right url. it looks like it gets forwarded.
paul
@paul
8 years ago
4,326 posts
http://empathcommunity.eliselebeau.com/community/forum/the-empath-life/26463/are-you-a-light-empath-or-a-dark-empath#last ?

That's a correct URL, and its working ok ??


--
Paul Asher - JR Developer and System Import Specialist
Elise
Elise
@elise
8 years ago
249 posts
lol. It is not a correct url.

http://empathcommunity.eliselebeau.com/community/forum/the-empath-life/26463/are-you-a-light-empath-or-a-dark-empath#last

it should be
http://empathcommunity.eliselebeau.com/community/forum/empath/26463/are-you-a-light-empath-or-a-dark-empath#last

This is creating duplicate content when google crawls the site (because there is two slugs), which is why I would like the template to use the correct URL like the forum menu link.
paul
@paul
8 years ago
4,326 posts
Ahhh - With you :-)
That is because that bit of the URL is a slug so it doesn't matter what it says there !!
It is picked up from the post item datastore where the category URL string is hard codes to what it was at the time of creation. Have just looked at your datastore and there are 8 posts with this category. All the rest are just 'Empath'. Shall I change those 8 datastore entries for you?


--
Paul Asher - JR Developer and System Import Specialist
Elise
Elise
@elise
8 years ago
249 posts
Sorry it was so painful!
Yes, i would love those changed.

How are you seeing this, if I may learn something new?
paul
@paul
8 years ago
4,326 posts
You can get to your database here - ACP=>Developer=>Developer Tools=>Tools=>Database Admin
You can look at tables, make changes to content and even run MySql queries there, but be careful, this MySql database is the heart of JR and it can be easy to break something if you make any 'unconsidered' changes.

Have changed those 8 entries for you.


--
Paul Asher - JR Developer and System Import Specialist

updated by @paul: 09/12/16 03:17:26PM

Tags