Difference between revisions of "Meki"

From Mesopoly 3.0
Jump to navigation Jump to search
Line 8: Line 8:
  
 
== Configuration - Things that have been done to original Mediawiki source on Mesopust ==
 
== Configuration - Things that have been done to original Mediawiki source on Mesopust ==
 +
===How do I remove the "Create an Account or Login" link at the top right of the screen?===
 +
*from [http://www.mediawiki.org/wiki/Help:FAQ#How_do_I_remove_the_.22Create_an_Account_or_Login.22_link_at_the_top_right_of_the_screen.3F here]
 +
In Monobook.php change this statement:
 +
  foreach($this->data['personal_urls'] as $key => $item) {
 +
    ...
 +
  }
 +
to:
 +
  foreach($this->data['personal_urls'] as $key => $item) {
 +
    <b>if ($key != 'login') {</b>
 +
      ...
 +
    <b>}</b>
 +
  }
 +
 +
 
*[http://meta.wikimedia.org/wiki/Preventing_Access#Disable_anonymous_edits disable anonymous edits in mediawiki1.5]
 
*[http://meta.wikimedia.org/wiki/Preventing_Access#Disable_anonymous_edits disable anonymous edits in mediawiki1.5]
 
* [http://meta.wikimedia.org/wiki/Layout_customization#How_do_I_remove_the_toolbox_for_users_that_are_not_logged_in.3F removed toolbox for non logged usrs]
 
* [http://meta.wikimedia.org/wiki/Layout_customization#How_do_I_remove_the_toolbox_for_users_that_are_not_logged_in.3F removed toolbox for non logged usrs]

Revision as of 11:51, 8 September 2006

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

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

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=

Links