Difference between revisions of "Meki"

From Mesopoly 3.0
Jump to navigation Jump to search
m (Miki moved to Meki)
 
(40 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
[[Category:Technical]]
 
[[Category:Technical]]
*[http://meta.wikimedia.org/wiki/Help:Contents MediaWiki Help]
+
== MEsopust wiKI ==
*[http://meta.wikimedia.org/wiki/Layout_customization layout customization] - [[MediaWiki:Sidebar]]
+
Yes, we are using [http://www.mediawiki.org Mediawiki] just like [http://en.wikipedia.org Wikipedia]. Here, however, software is employed as CMS, with no public interaction intended within wiki. [http://vinodol.com/osticket 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 [http://meta.wikimedia.org/wiki/Help:Editing Mediawiki Help] page on Syntax [http://en.wikipedia.org/wiki/Wikipedia:Extended_image_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 [http://www.mediawiki.org/wiki/Help:FAQ#How_do_I_remove_the_article.2Fedit_etc_tabs_for_users_who_are_not_logged_in.3F 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?====
 +
*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/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 removed top links for nonlogged users]
 +
* removed 'special page' tab. (as described on links above)
 +
* removed section edit in includes/DefaultSettings.php via unhashing 'editsecion' line (may need some ctrl + F5 - reloads)
 +
*To remove guest IP from the top page remove <tt>$wgShowIPinHeader      = false;</tt> in DefaultSettings.php (1.5.6)
 +
*[http://www.thinklemon.com/wiki/MediaWiki_talk:Google_Sitemaps google sitemaps funkcionalnost] [http://www.mesopust.com/miki/sitemap.xml.php >> Mesopust Wiki XML Sitemap file <<] - [https://www.google.com/webmasters/sitemaps/login login to sitemaps]
 +
*[http://www.analyticsguide.com/google-analytics-and-mediawiki/ Google Analytics code addded ..] [http://www.google.com/analytics/ login to google analytics]
 +
*google adsense via adsense.php and skin/Monobook ..
 +
*tasks extension + tasks images
  
 +
===robots.txt===
 +
<pre>
 +
User-agent: *
 +
Disallow: /miki/
 +
Disallow: /meki/Special:Random
 +
Disallow: /meki/Special%3ARandom
 +
Disallow: /meki/Special:Search
 +
Disallow: /meki/Special%3ASearch
 +
</pre>
  
== Instaled Extenzije ==
+
===.htaccess===
 +
<pre>
 +
#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
  
[http://wiki.arandeltac.com/MediaWiki_Tasks Tasks]
+
# 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]
  
*[http://meta.wikimedia.org/wiki/Help:Export#Export_format Export_format] (ne bi li se jedanred exportiralo u Google Base)
 
  
 +
#RewriteRule ^(.*) http://www.vinodol.com/$1 [R=301]
 +
# BEGIN Wiki
  
<tasks>
 
[x] isprobat taskove
 
[ ] short url
 
[ ] customizacija na hrvatski
 
[ ] integracija sa googlom
 
[ ]  project functionality. event?
 
[ ] http://www.mediawiki.org/wiki/Configuring_file_uploads
 
</tasks>
 
  
 +
# Don't rewrite requests for files in MediaWiki subdirectories,
 +
# MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt
  
== HACKS - Things that have been done to original Mediawiki source on Mesopust ==
+
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=
 +
</pre>
 +
==Edit side menu / navigation menu==
 +
*http://www.vinodol.com/miki/index.php?title=MediaWiki:Sidebar
 +
==Skin==
 +
*http://tweeki.thai-land.at/index.php?title=Navigation
  
* smanjena je velicina textarea polja kod editiranja ...
+
==Links==
 +
*[http://meta.wikimedia.org/wiki/Help:Contents MediaWiki Help]
 +
*[http://meta.wikimedia.org/wiki/Layout_customization layout customization] - [[MediaWiki:Sidebar]]
 +
==TODO==
 +
http://meta.wikimedia.org/wiki/Cite

Latest revision as of 18:30, 3 October 2015

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