Skip to content
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

gsitemap - improvements for Downloads plugin #2606

Open
mostym opened this issue Apr 28, 2017 · 13 comments
Open

gsitemap - improvements for Downloads plugin #2606

mostym opened this issue Apr 28, 2017 · 13 comments
Assignees
Labels

Comments

@mostym
Copy link

mostym commented Apr 28, 2017

Hi there! I noticed that the gsitemap plugin doesn't generate a sitemap for sub-categories, nor individual files in the downloads plugin. Can we get this added? You're too good to me ;)

@Moc Moc added the type: enhancement An improvement or new feature request label Mar 5, 2018
@Moc Moc added this to the Future milestone Mar 5, 2018
@Moc Moc added the Help Wanted label Mar 5, 2018
@Jimmi08
Copy link
Contributor

Jimmi08 commented Aug 1, 2018

@BigBoiJefe how you get download categories? I have there no links from download plugin.

@mostym
Copy link
Author

mostym commented Aug 1, 2018

@Jimmi08 I created an entry for each download category... However, this does generate a sitemap for sub categories or the individual files.

@Jimmi08
Copy link
Contributor

Jimmi08 commented Aug 1, 2018

Thanks. So you did it manually...

@Moc
Copy link
Member

Moc commented Aug 19, 2018

Fixed in 226b238

@Moc Moc closed this as completed Aug 19, 2018
@Moc Moc modified the milestones: Future, e107 2.1.9 Aug 19, 2018
@mostym
Copy link
Author

mostym commented Apr 11, 2019

@Moc gsitemap plugin does not include individual files of the subcategories.

@Moc
Copy link
Member

Moc commented Apr 11, 2019

@Jimmi08 thoughts?

@Moc Moc reopened this Apr 11, 2019
@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 11, 2019

Probably wrong description of problem, because I am sure it does. There is no limitation for subcategories
$data = $sql->retrieve("download_category", "*", " ORDER BY download_category_order ASC", true);

@mostym
Copy link
Author

mostym commented Apr 11, 2019

Subcategories work, individual files that belong to categories don't

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 11, 2019

@Moc gsitemap plugin does not include individual files of the subcategories.

so now they work?

individual files that belong to categories don't

I can see them

image

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 11, 2019

@Moc @CaMer0n
Problem is that e_gsitemap checks download_class against classes 0,252
The query code is from e_rss.php plugin, but there are classes 0,251,252,253 .

What is correct fix? To check visibility field or change class list for gsitemap plugin.
It looks weird if visibility is set differently and user still can see link in rss output.

Thanks

@Moc Moc self-assigned this Oct 11, 2019
@Moc Moc modified the milestones: e107 2.1.9, e107 2.2.2 Oct 11, 2019
@Moc Moc removed the Help Wanted label Oct 11, 2019
Moc added a commit that referenced this issue Oct 23, 2019
Now checks against the userclasses of the user (when logged in) or guest.

If not logged in, returns public/guest items, otherwise use classes of logged in user.
@Moc
Copy link
Member

Moc commented Oct 23, 2019

@Jimmi08 I adjusted the e_rss addon for the download plugin to check against the userclasses of the user when logged in. If not logged in, it only displays the public/guest items.

Now for the gsitemap addon, I am not entirely sure what people would like to do. We could do ALL items, but then the admin would need to select which ones to import (this may be a lot of work). We could keep it this way but then not all items are included, and they have to be added manually, which is a lot of work as well.

@mostym @Jimmi08 What do you think?

@Jimmi08
Copy link
Contributor

Jimmi08 commented Oct 23, 2019

@Moc Did you use USERCLASS_LIST instead of hardcoded list? Got I this right?

So output is different for registered (login in user) and for quests?

Gsitemap displays only manually (imported) links, you always select what to import and what not (there is no option to import everything). There is no connection with original record (to check visibility etc)

No idea what is correct. Just notes:

  • sitemap should have links that I want to be indexed by google. F.e if there is news for only registred members, than it shouldn't be in xml version because google gets error (sometimes 404, sometimes no access, result is double content and other problems)

  • download plugin is different - you want the link indexed if visibility is for all (content of page is visible). But if you set visibility to members, why you would want it displayed for google? Google is not member of your site.

@Moc
Copy link
Member

Moc commented Oct 23, 2019

Did you use USERCLASS_LIST instead of hardcoded list? Got I this right?
So output is different for registered (login in user) and for quests?

Correct. This works correctly in forum.

I agree with your notes.. but then maybe @mostym wants to have a sitemap for his users (logged in) which also include the download items for logged in users. Not related to google specifically (or xml).

Hmm... difficult.

Btw, I think the download RSS feed is not working. Will look into it.

@CaMer0n CaMer0n removed this from the e107 2.3.0 milestone Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants