Mediawiki disable Talk pages from public viewing - mediawiki

I recently started using Mediawiki and I am currently on version 1.17.
I would like to disable Talk namespace pages from viewing from public. I already disabled UserCreation as I would like only me to edit the pages. So, I am basically using it as a CMS.
My question is, how can I disable view access for Talk pages for public.
PS: I already disabled the tab bar, so the Discussion link doesn't appear, but if some one manually types Talk:PageName, it opens up. This is what I want to disable.

This will only hide the talk pages. People can still use them by going to the URL directly.
In addition add this to your LocalSettings.php to prevent people from editing talk pages:
for($i = 1;$i < 12; $i += 2) {
$wgNamespaceProtection[$i] = 'noedit';
}

MediaWiki is not designed for this kind of usage since Talk pages are inherent to the system. One possible way for you would be to hide the talk page links by editing your skin.
The following CSS will hide the top talk links:
li#ca-talk {
display: none;
}

In LocalSettings.php set:
$wgDisableAnonTalk = false;
According to the Manual:$wgDisableAnonTalk this 'disables links to talk pages of anonymous users (IPs) in listings on special pages'.

Hide the talk pages like in the other answers and additionally disable access to the talk pages by blacklisting URLs matching that pattern in your web server or WAF.

Related

Add html to a site in a site (proxy)

I imported a web proxy from github known as rhodium on to replit, and, after some editing was satisfied with the results, but i cant seem to add HTML to a site that is proxied. Example: You use rhodium to navigate your way to www.discord.com, but you want HTML added to the page, "yourdomain.example/service/https://discord.com/". I looked at the files and online, but I wasn't able to find a way to edit the index.html of that specific page, but frankly I am extremely new to html. (and to a lot of things web-development).
https://github.com/LudicrousDevelopment/Rhodium
Any help available?
Based on what i know, you can't. Because of the security parameters. You can't attach or redirect a website which isn't on the same directory/server.
You can, however redirect to that site, inside or outside, freely.

How can I conditionally hide dynamic web content from read-later services (ie Instapaper, Pocket)?

I'm building a single-page website that contains a javascript "calculator" that let's users input custom values and see an output immediately.
I don't expect this to work if my page is scraped by a service like instapaper for users to read later from a kindle (for example).
Is there a way for me to show a conditional message for these users (like "visit example.com for the full calculator") or to hide this section entirely?
Opting Out
Most read later services offer ways of blocking your site from their read later functions. Here are the links for the most common ones:
Instapaper: http://www.instapaper.com/publishers
Readability: http://help.readability.com/customer/...
Pocket: http://help.getpocket.com/customer/port... (couldn't find the specific page, so this is just the "contact us" page)
Specifying content to be displayed
Pocket: No specific guidelines.
Instapaper: They use the Open Graph Protocol (doesn't really tell you how to remove content though)
Readability: Article Publishing Guidelines (very easy to understand)

Show different Main Pages based on host name in MediaWiki

I have two domains pointing to the same wiki sharing the same database.
I would like it so that with domainA.com the main page is MainPageA and with domainB.com it is MainPageB.
The only way to change the the main page of MediaWiki that I know of is to edit MediaWiki:Mainpage, but that is stored in the MySQL database. Since both wikis are sharing the same database, both main pages get changed too.
The reason that the databases are shared is because all articles apply to both wikis, just that the logo of the wiki etc. is different.
Is there some kind of PHP conditional variable I can set to set the Main Page?
You could do this in wikicode, by making your Main Page source look something like this:
{{#switch:{{SERVERNAME}}
|domainA.com={{:Main Page for domainA.com}}
|domainB.com={{:Main Page for domainB.com}}
|#default=<span class=error>Unrecognized domain {{SERVERNAME}}.</span>
}}
or even just:
{{:Main Page for {{SERVERNAME}}}}
For more information, see Help:Magic words at mediawiki.org. (Note that the first version also requires the ParserFunctions extension.)
Ps. There might be some issues with MediaWiki's parser caching that could cause the wrong Main Page to appear. If so, a quick and dirty workaround would be to install the MagicNoCache extension and add __NOCACHE__ to the Main Page.
Pps. A better solution for cache issues might be to make sure that the different sites have separate cache keys, by adding the following line to your LocalSettings.php:
$wgRenderHashAppend .= "!$wgServer";

Mediawiki: configuring the entry page, adding a new page

Have a wiki installed in our organization, and want to start using it.
Failed to find the answers for the next 2 basic questions:
How do I configure the entry page to show a list of all existing pages
How do I create a new page (!). Only succeeded doing it by typing a url of an non existing page. Guess there are nicer methods for this
Thanks
Gidi
For how to show a list of all pages, look at DynamicPageList, which is part of MediaWiki. (There's a more advanced third-party version, but it's not needed for such a simple task.)
Creating a new page really is exactly as you said: Type a URL and save some edits. Most beginning editors will edit a link into a page, and then use that link to browse to the page, so that they don't accidentally forget the spelling and lose the page to the Ether. (Of course it would show up in the recently edited and other special pages.)
This is more of a webapps.stackexchange.com question though.

Joomla External HTML and Access Levels

I am trying to use Joomla to create a website that allows users to do the following:
submit links to external html
search through the external websites based on category, rankings, etc.
display the websites in multiple iframes simultaneously ( like google gadgets)
limit access to certain external websites by user
customize users homepage (like igoogle)
I am trying to pull the right joomla plugin and component pieces together.
For i-frame display I am looking at:
http://www.joomlaclub.gr/joomla-free-downloads.html?func=fileinfo&id=46
http://www.cmsmarket.com/extensions-directory/external+content/frames+%26+external+html/praiseframe+module
http://extensions.joomla.org/extensions/style-&-design/popups-&-iframes/3116/details
Can you think of any extensions, plugins, or components that would help me build the aforementioned functionality.
Thanks
By default, Joomla allows users to submit a link after they register / login.
Make sure the 'login module' is published. Then in the Menu Manager, User Menu, make sure the menu items for submitting links are there.
I'm not really sure what you mean by 'search through the external websites based on category, rankings, etc.'
Displaying the web sites in multiple iframes simultaneously could easily be handled by publishing modules which contain iframes in the postion you desire.
In Joomla 1.6, still in beta, there is a fairly robust ACL. But in 1.5, you'd need to use some extension. I've had good luck with the ACL component CorePHP sells.
Good luck with your project !