Topic on Project:Support desk

Show feedback from for not log-in user on home page (ArticleFeedbackv5)

8
Carolina Reid BangingRocks (talkcontribs)

I would like to know if it is possible to show the feedback form on the home page for the non-logged-in users. I have Mediawiki 1.31.6. The form is getting displayed on the home page for logged-in users, but not for the non-logged-in users.

Is it possible to make it visible?

Below you can find the link to the site.

http://jpwiki.clicklaw.bc.ca/index.php?title=Main_Page

Thanks in advance for your help.

TiltedCerebellum (talkcontribs)

Your site is password protected (on the server) before even entering the wiki so it is impossible to view it to see the wiki.

Carolina Reid BangingRocks (talkcontribs)
TiltedCerebellum (talkcontribs)

Can you provide a link to where the feedback form is located or displaying elsewhere? (We can't see it because we're non-logged in, we can't view the page source because that appears to be hidden, we can't create an account because that is also removed or hidden from its normal location). Without something to go on or being able to view how the page is composed it's impossible to help, sorry. What method was used to put the form on the homepage? I can't even view that. Without view source ability at the very least, it's pretty tough to help.

Carolina Reid BangingRocks (talkcontribs)

@TiltedCerebellum, yes, feedback form is getting displayed in this page: https://wiki.clicklaw.bc.ca/index.php?title=Covid-19_Resources_for_British_Columbians even if you are not logged in, it is at the very bottom of the page, just above the footer. I would like the form (article feedback) to get displayed in the main page (https://wiki.clicklaw.bc.ca/index.php?title=Main_Page) even if you are not logged in. If you are logged in, it gets displayed in the main page, but not when you are not logged in.


I am not sure which specific method is use to put the form. But the article feedback v5 (Extension:ArticleFeedbackv5) extension is the one that is "creating" this feedback form.


Thanks in advance for your help.

TiltedCerebellum (talkcontribs)

I'm not sure it is possible with the extension currently as-is, the extension maker would have a better idea. Have you tried posting on the extension's talk page to ask if it's possible? It's not clear from the config options presented on the extension page. I see someone suggested in the link below that you should probably post it on the extension's talk page and consider rephrasing your question as a feature request. There was also some information related to how it might be done if it isn't supported:

https://phabricator.wikimedia.org/T259194

Extension talk:ArticleFeedbackv5 (talk page for the extension)

I don't see anything related to it on the extension page's config options currently... so it may not be a current feature and may require a feature request or modification as he suggested.

Carolina Reid BangingRocks (talkcontribs)

Thanks @TiltedCerebellum. I did not know where the extension's talk page was so I have just posted my question.


About how it might be done if it is not supported (customize code via if !$wgUser->isLoggedIn()) ). I am not sure how and where to apply that piece of code in the existing code.


Thanks again for your help.

TiltedCerebellum (talkcontribs)

I'm not sure, I'm sorry I'm just taking another look at the extension page again now, and I see that the extension is labeled as unstable. I personally usually try to avoid unstable extensions and look for a replacement that is stable rather than trying to find a workaround. I'm sorry I'm sure that's not helpful to where you currently are at this moment. I feel it is also important to mention that support ended for Mediawiki 1.31 in June of this year, normally the support staff (I'm just a MediaWiki user) here would encourage you to update to a currently supported version but I know that can be a bit of an undertaking. They might also link you to Professional development and consulting if you need help with customizing an extension, writing a hook to accomplish what you want, or upgrading your MediaWiki.

I did find Extension:PageNotice in my search, seems to do footer notices either site-wide or on individual pages I think I read, I don't know enough about your existing extension to know if it has a special page that could be linked to from that... and you wouldn't want doubling of the form on some pages for some users.

I'm sorry I can't be of more help, I found examples of hook use for LocalSettings.php to, for example, use CSS to hide items globally, I'm not super familiar with writing hooks (I cobble together simple things when needed) but targeting a single page and that way and inserting something after the content from an extension, is a bit beyond my skill level. I hope the extension maintainers or someone on the help desk with more knowledge in this area gets back to you. Strange that it would not appear on only that one page when not logged in.

Reply to "Show feedback from for not log-in user on home page (ArticleFeedbackv5)"