Meki

From Mesopoly 3.0
Jump to navigation Jump to search

MEsopust wiKI

Yes, we are using Mediawiki just like Wikipedia. Here, however, software is employed as CMS, with no public interaction intended within wiki. Contakt us with questions ..

Mediawiki syntax

SHORT ANSWER: use edit tab to see how is each sample made - given you have login and are logged in

LONG ANSWER: Go to Mediawiki Help page on Syntax Image syntax

Configuration - Things that have been done to original Mediawiki source on Mesopust

How do I remove the article/edit etc tabs for users who are not logged in?

  • from here (btw its not '$key => $action' but '$key => $tab' !!!)

You can achieve this by modifying the skin. For the default MonoBook skin, in the MonoBook.php file, search for this line:

foreach($this->data['content_actions'] as $key => $action) {

and insert after $action) this

if($this->data['loggedin']==1)

had to place inside the <?php). So it looks like this:

foreach($this->data['content_actions'] as $key => $action) if($this->data['loggedin']==1) {

To conditionally hide individual tabs, modify the code to check the value of each $key inside the foreach loop.


How do I remove the "Create an Account or Login" link at the top right of the screen?

In Monobook.php change this statement:

 foreach($this->data['personal_urls'] as $key => $item) {
   ...
  }

to:

 foreach($this->data['personal_urls'] as $key => $item) {
   if ($key != 'login') {
     ...
   }
 }


robots.txt

User-agent: *
Disallow: /miki/
Disallow: /meki/Special:Random
Disallow: /meki/Special%3ARandom
Disallow: /meki/Special:Search
Disallow: /meki/Special%3ASearch

.htaccess

#ErrorDocument 404 http://www.vinodol.com/404.shtml
# close the php security hole...
#  not actually needed but probably a good idea anyway
php_flag register_globals off

# first, enable the processing - Unless your ISP has it enabled
# already.  That might cause weird errors.
RewriteEngine on
RedirectMatch ^/$ http://www.vinodol.com/meki/
rewriteCond %{HTTP_HOST} .
rewriteCond %{HTTP_HOST} ^(www\.)?mesopust|crowiz\.com
rewriteRule (.*) http://www.vinodol.com/$1 [R=301,L]


#RewriteRule ^(.*) http://www.vinodol.com/$1 [R=301]
# BEGIN Wiki


# Don't rewrite requests for files in MediaWiki subdirectories,
# MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt

RewriteCond %{REQUEST_URI} !^/meki/sitemap.xml.php
RewriteCond %{REQUEST_URI} !^/meki/Sitemap.xml.php
# uncomment this rule if you want Apache to redirect from www.mysite.com/ to
#  www.mysite.com/wiki/Main_Page

#  RewriteRule ^/$ /meki/Main_Page [R]
# do the rewrite
RewriteRule ^meki/?(.*)$ /miki/index.php?title=$1 [L,QSA]
Redirect /mailagro http://www.vinodol.com/ecard/thumbnails.php?album=4&rest=

Edit side menu / navigation menu

Skin

Links

TODO

http://meta.wikimedia.org/wiki/Cite