Samstag, 10. Januar 2009

Wikimedia: Suspend registration

How to disable registration for MediaWiki?

If you want to disable the option for your MediaWiki visitors to register accounts at your MediaWiki website you will have to add the following line in the LocalSettings.php file:

$wgGroupPermissions['*']['createaccount'] = false;

You can find below detailed instructions on how to do this on your web hosting account using cPanel:

1. Go to your cPanel. .

2. Click on the File Manager icon

3. Click on the folder icon next public_html folder name

4. Click on the folder icon next to the folder in which your MediaWiki is installed

5. Click on the LocalSettings.php file

6. In the upper right corner you will see several management options for LocalSettings.php file. Click on Edit File

7. Look for a line that starts with $wgGroupPermissions. If there is no such line you should add it yourself and if there already is such a line you should edit it to look this way



$wgGroupPermissions['*']['createaccount'] = false;


8. Save the edited LocalSettings.php file and the new users account creation will be disabled.

http://kb.siteground.com/article/How_can_I_disable_users_registration_on_my_MediaWiki_website.html

Montag, 5. Januar 2009

Joomal: Change logo position.

Ja Purity Change postion of your logo
From Joomla! Documentation
Jump to: navigation, search

Logo image

1. open with a text editor the file templates\ja_purity\css\template.css about at line 957 you will find:

h1.logo a {
width: 208px;
display: block;
background: url(../images/logo.png) no-repeat;
height: 80px;
position: absolute; <---- EDIT THIS
top: 10px; <---- ADD THIS
left: 10px; <---- ADD THIS
z-index: 100;
}

2. now in the added line you have to enter the number of pixel that is better for your logo.
3. finished


Logo text

1. open with a text editor the file templates\ja_purity\css\template.css about at line 972 you will find:

h1.logo-text a {
color: #CCCCCC !important;
text-decoration: none;
outline: none;
position: absolute;
bottom: 40px; <---- EDIT THIS
left: 5px; <---- EDIT THIS
}
p.site-slogan {
margin: 0;
padding: 0;
padding: 2px 5px;
color: #FFFFFF;
background: #444444;
font-size: 92%;
position: absolute;
bottom: 20px; <---- EDIT THIS
left: 0; <---- EDIT THIS
}

2. now in these lines you have to enter the number of pixel that is better for you.
3. finished


http://docs.joomla.org/Ja_Purity_Change_postion_of_your_logo

Joomla: Change size of Image Headers.

Ja Purity resize header

Jump to: navigation, search

1. open with a text editor the file templates\ja_purity\css\template.css
2. about at line 921 you will find:

/* HEADER

--------------------------------------------------------- */

#ja-headerwrap {


background: #333333;
color: #CCCCCC;

line-height: normal;

height: 80px; <---- EDIT THIS

}



#ja-header {

position: relative;

height: 80px; <---- EDIT THIS

}



.ja-headermask {

width: 602px;

display: block;

background: url(../images/header-mask.png) no-repeat top right;

height: 80px; <---- EDIT THIS

position: absolute;

top: 0;

right: -1px;

}

3. change these values with the desidered height.
4. always in the file templates\ja_purity\css\template.css about at line 957 you will find

h1.logo a {

width: 208px; <---- EDIT THIS (same of your logo)

display: block;

background: url(../images/logo.png) no-repeat;

height: 80px; <---- EDIT THIS (same of your logo)

position: relative;

z-index: 100;

}

5. now using your graphic editor you have to resize the heighy of the following files (same height of your header):
1. templates\ja_purity\images\header-mask.png
2. templates\ja_purity\styles\header\blue\images\header-mask.png
3. templates\ja_purity\styles\header\green\images\header-mask.png
6. If the height of your logo is different of the height of your header you probanly need to look here Change postion of your logo
7. Remember that if you resize your header you will need header images with different height (see also Replace the header pictures)
8. Finished
http://goldfey.free.fr/?p=251


Menus:

Text that appears above the main menu is not controlled by the menu manager but rather by the module manager. The text is the title of the module. So simply change the title of the module to what yo would like displayed above the main menu.

JA_Purity template header graphic:

The JA_Purity template uses the function getRandomImage() in /templates/ja_purity/index.php to display a random image from the folder templates/ja_purity/images/header. The function getRandmoImage() is defined in /templates/ja_purity/ja_templatetools.php. It looks for images of type .gif, .jpg or .png in templates/ja_purity/images/header/. Any other files in that directory are ignored. The mask, templates/ja_purity/images/header-mask.png, and the CSS code need all the images in the templates/ja_purity/images/header to be 600x80 pixels.

There is a "PHP Cross Reference of Joomla 1.5.6 Documentation" at apostilas.fok.com.br/docs/joomla-1.5. This is vary handy.
http://cliffcrabtree.com/index.php?option=com_content&view=article&id=3&Itemid=3
http://docs.joomla.org/Replace_the_header_pictures_in_JA_Purity

Joomla: Change Image Width

Ja Purity was not a template club template so I am not 100% sure of this, but if you are using the 1.013 version I would try the directory templates/japurity/ja_vars.php

and find the following code

# BEGIN: TEMPLATE CONFIGURATIONS ##########
####################################
#support extra color themes
$ja_color_themes = array('default','green','blue'); // You can add more color array if needed
$ja_header_images_wide = array ('header1.jpg','header2.jpg','header3.jpg','header 4.jpg','header5.jpg');
$ja_header_images_narrow = array ('header1-n.jpg','header2-n.jpg','header3-n.jpg','header4-n.jpg','header5-n.jpg');
####################################
# Change the width of the template
$ja_width_default = 'wide'; // 'narrow': 800x600; 'wide': 1024x768
# default color
$ja_color_default = 'green'; //blank for default, else pick one of in extra color themes $ja_color_themes
#font size default
$ja_font_size_default = 3;
# Enable users option
$ja_tool = 6; // 0: 0: disable all; 1: Screen tool; 2: font tool; 3: screen + font; 4: color tool; 5: screen + color; 6: font + color; 7: all;
# Choose your prefer Menu Type
$ja_menutype = 2; // 1: Split Menu; 2: Son of Suckerfish Dropdown Menu; 3: Moomenu
# END: TEMPLATE CONFIGURATIONS ##########
__________________
Everyone has a photographic memory, some just don't have film.


http://www.joomlart.com/forums/showthread.php?t=11427

Joomla: Logo change

Here are some basic instructions to change the logo part.

For Joomla 1.5.3
Changing the Joomla logo in the Purity template


First step design your logo, as a JPG, or suitable image file
/templates/ja_purity/images/

“remember the name of the file”
Upload to your site in the directory

/templates/ja_purity/images/

using your upload tool, Filezilla etc.


Open up your web browser, on two tabs

One with the site, and one in Administrator


In the administrator log-in and go to

Extensions menu
[Template manager]

Choose the template you want to edit

Eg
2
JA_Purity

1.2.0 12/26/07 JoomlArt.com

Then Edit
Then edit ccs

And choose

template.css Unwritable


Then edit


Use ctrl f to find “logo” on the page

h1.logo a {
width: 400px;
display: block;
background: url(../images/trainsforyou.jpg) no-repeat;
height: 80px;
position: relative;
z-index: 100;


then Change background: url(../images/logo.png) no-repeat

to the file name you placed there like


background: url(../images/trainsforyou.jpg) no-repeat

click save and apply you may need to change the width and the height.like I did.

http://www.joomlart.com/forums/showthread.php?t=7092

The Solution

Plan A:
First I tried changing my gif image to a png. This made it show up in IE fine, but my png in Firefox and Safari displayed with a funny outline that I couldn't explain or get rid of.

Plan B:
I went back to using my gif image and simply edited ja_purity/index.php as follows:

1. Removed the call to fixPNG for the logo tag by removing the line
Code:

fixIEPNG($E('h1.logo a'));

2. Removed the logo tag from the IE CSS modifier that moved the background image off the screen. To do this, I changed:

Code: