CMS Made Simple

eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

CMS Made Simple

Viesti Kirjoittaja eero »

Hieno ja ilmainen sivusto-systeemi. Pyörii Ubuntussa hienosti.

http://www.cmsmadesimple.org/

Asenna LAMP ja tee muokkaukset.
http://muistio.dyndns.org/viewtopic.php?f=8&t=34

Pura CMS Made Simple haluaamaasi kansioon var/www/-alle ja siirry selaimella serverin osoitteeseen ja asenna.

Kirjaudu ja muuta asetukset:
  • Site admin -> Global Settings
    • Default language for the frontend -> Suomi
      Date Format String: -> %d/%m/%y
    My Preferences -> User Preferences
    • Language: -> Suomi
      Date Format String: -> %d/%m/%y
Hieno sivupohja, joka ei toimi ilman pikku viilausta. Onneksi se on tehty. Alla on tiedostot siitä.
CrystalX_v2.zip
Lataa ja pura
(42.59 KiB) Tiedosto ladattu 1092 kertaa
Siirry Ulkoasu » Teeman hallinta ja valitse tuo -välilehti.

Valitse crystalx.xml-tiedosto ja tuo se.

Siirry cms:n juurihakemistoon ja kopioi tiedostot jotka löytyivät zip-paketista.
Esim.
var/www/cms/images-hakemistoon kopioidaan hakemisto crystalx. Sieltä löytyvät tarvittavat kuvat.
var/www/cms/modules/MenuManager/templates -hakemistoon kopioidaan tiedosto crystalx_menu.tpl

Anna oikeudet crystalx-kansiolle. Komento on chmod 755 -R crystalx. Tee sama crystalx_menu.tpl-tiedostolle.

Siirry Ulkoasu » Sivupohjat ja aseta sivu oletukseksi ja aseta se kaikille sivuille.

Avaa sivu muokkausta varten ja kopioi alla oleva teksti ja korvaa vanha.:



Koodi: Valitse kaikki

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en_US">
<head>
<title>{title} - {sitename}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="english" />
{metadata}
{stylesheet}
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="uploads/crystalx/main-msie.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="uploads/crystalx/ie7hack.css" /><![endif]-->
</head>
<body>
<!-- Main -->
<div id="main" class="box">
    <!-- Header -->
    <div id="header">
        <!-- Logotyp -->
        <h1 id="logo"><strong>PÖYTYÄN INTRANET</strong><span> </span></h1>
        <hr class="noscreen" />
        <!-- Quick links -->
        <div class="noscreen noprint">
            <p><em>Quick links: <a href="#content">content</a>, <a href="#tabs">navigation</a>, <a href="#search">search</a>.</em></p>
            <hr />
        </div>
        <!-- Search -->
        <div id="search" class="noprint">
{search}
        </div> <!-- /search -->
    </div> <!-- /header -->
    <!-- Main menu (tabs) -->
     <div id="tabs" class="noprint">
            <h3 class="noscreen">Navigation</h3>
            {menu template='crystalx_menu.tpl'  start_level='1' number_of_levels='1'}
        <hr class="noscreen" />
     </div> <!-- /tabs -->
    <!-- Page (2 columns) -->
    <div id="page" class="box">
    <div id="page-in" class="box">
        <div id="strip" class="box noprint">
            <!-- RSS feeds -->
<p id="rss">
{cms_selflink page="sivukartta"}    
{cms_module module='sivukartta'}{cms_module module='printing' pdf="false" showbutton="true" popup="true"}{cms_module module='printing' pdf="true" showbutton="true"}
</p>
            <hr class="noscreen" />
            <!-- Breadcrumbs -->
            <p id="breadcrumbs">{breadcrumbs starttext='Olet sivulla' root='Home' delimiter='»'}
            <hr class="noscreen" />
        </div> <!-- /strip -->
        <!-- Content -->
       <div id="content">
            <div class="article">
                <h2><span>{title}</span></h2>
{content} 
        </div> 
</div>
<!-- /content -->
        <!-- Right column -->
        <div id="col" class="noprint">
            <div id="col-in">
                <!-- Category -->
                <!-- Pystysuuntainen valikko -->
                <h3><span>VALIKKO</span></h3>
                <ul id="pysty">
                {menu template='crystalx_menu.tpl' start_level='2' collapse='1'}
                </ul>
<h3 ><span>AJANKOHTAISTA</span></h3>
                <div id="about-me">
{news}
                </div>
                <hr class="noscreen" />
                <!-- Links -->
                <h3><span>LINKKEJÄ</span></h3>
                <ul id="links">
                    <li><a href="#">Eka linkki</a></li>
                    <li><a href="#">Toka linkki</a></li>
                    <li><a href="#">Kolmas linkki</a></li>
                    <li><a href="#">jne</a></li>
                    <li><a href="#">...</a></li>
                </ul>
                <hr class="noscreen" />
            </div> <!-- /col-in -->
        </div> <!-- /col -->
    </div> <!-- /page-in -->
    </div> <!-- /page -->
    <!-- Footer -->
    <div id="footer">
        <div id="top" class="noprint"><p><span class="noscreen">Top</span>
{anchor anchor='header' title="Back on top" text='Back on top <span> </span>'}</p></div>
        <hr class="noscreen" />
        <p id="copyright">
{cms_selflink dir="previous" label="Edellinen sivu: "} | {cms_selflink dir="next" label="Seuraava sivu: "}<br>© 2008 Yläne | Intranet esittely
</p>
    </div> <!-- /footer -->
</div> <!-- /main -->
</body>
</html>



Käytä ja Lähetä.

Siirry Ulkoasu » Tyylisivut ja valitse crystalx : crystalx_main

Kopioi alla oleva teksti ja korvaa vanha.

Koodi: Valitse kaikki

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

    This website template was downloaded from http://www.nuviotemplates.com - visit us for more templates

    Structure:
    display; position; float; z-index; overflow; width; height; margin; padding; border; background; align; font;

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


* {min-height:1px;}
body {border:0; margin:0; padding:0; background:#F2F5FE url("images/crystalx/bg.gif") 0 0 repeat-x; font:70%/160% "verdana",sans-serif; color:#192666; text-align:center;}

a {color:#192666;}
a:hover {color:#4F6AD7;}

p {border:0; margin:15px 0; padding:0;}

div {display:block; border:0; margin:0; padding:0;}

h1, h2, h3, h4, h5 {border:0; margin:15px 0 10px 0; padding:0; font-weight:bold;}
h1 {font-size:260%; line-height:100%; font-family:"georgia",serif; font-weight:normal;}
h2 {font-size:180%; line-height:100%; font-family:"georgia",serif; font-weight:normal;}
h3 {font-size:120%; line-height:100%; font-weight:bold;}
h4 {font-size:120%;}
h5 {font-size:100%;}

table {display:table; border-collapse:collapse; margin:15px 0; padding:0; border:1px solid #B7CAF6; font-size:100%;}
tr {display:table-row;}
th, td {display: table-cell; border:1px solid #B7CAF6; margin:0; padding:5px; vertical-align:top; text-align:left;}
th {background:#E7ECFD; text-align:center; color:#192666; font-weight:bold;}

ul, ol {display:block; border:0; margin:15px 0 15px 40px; padding:0;}
ol {list-style-type:decimal;}
li {display:list-item; border:0; margin:0; padding:0;}
ul ul, ul ol, ol ol, ol ul {margin: 0 0 0 20px;}

dl {border:0; margin:15px 0; padding:0;}
dt {border:0; margin:0; padding:0; font-weight:bold;}
dd {border:0; margin:0 0 0 30px; padding:0;}

form {border:0; margin:0; padding:0;}
fieldset {border:1px solid #ccc; margin:15px 0; padding:10px;}
legend {margin-left:10px; font-size:100%; font-weight:bold; color:#008;}

hr {display:block; height:1px; margin:10px 0; padding:0; background:#CCC; border:0 solid #CCC; color:#CCC;}

a, img, span {border:0; margin:0; padding:0;}
abbr, acronym {border-bottom:1px dotted #CCC; cursor:help;}

del, .through {text-decoration:line-through;}
strong, .strong {font-weight:bold;}
cite, em, q, var {font-style:italic;}
code, kbd, samp {font-family:monospace; font-size:110%;}

.f-left {float:left;}
.f-right {float:right;}

.t-left {text-align:left;}
.t-center {text-align:center;}
.t-right {text-align:right;}

.va-middle {vertical-align:middle;}

.clear {clear:both;}
.box {min-height:1px;}
.box:after {content:"."; display:block; line-height:0px; font-size:0px; visibility:hidden; clear:both;}

.nom {margin:0;}
.noscreen {display:none;}

/* -----------------...........--------------------------------------------------------------------------------------- */

#main {width:770px; margin:20px auto 0 auto; text-align:left;}

#header {position:relative; width:770px; height:100px; margin:0; padding:0; background:#233C9B url("images/crystalx/header.jpg") 0 0 no-repeat; color:#FFF;}

    #header #logo {position:absolute; top:35px; left:35px; margin:0;}
    #header #logo a {color:#FFF;}
    #header #logo a:hover {color:#B5C4E3; text-decoration:underline;}
    
    #header #search {position:absolute; top:35px; right:20px;}
    #header #search form {position:relative;}
    #header #search #search-input-out {position:absolute; top:0; right:45px; width:155px; height:28px; margin:0; padding:0; border:0; background:url("images/crystalx/search_input.gif") 0 0 no-repeat; font:bold 90%/100% "verdana",sans-serif; color:#192666;}
    #header #search #search-input {width:140px; margin:5px 8px; padding:3px 0; border:0; background:#FFF; font:bold 100%/100% "verdana",sans-serif; color:#192666;}
#header #search #cntnt01searchinput {width:140px; margin:5px 8px; padding:3px 0; border:0; background:#FFF; font:bold 100%/100% "verdana",sans-serif; color:#192666;}
    #header #search #search-submit {position:absolute; top:0; right:0px;}
    #header #search fieldset {margin:0; padding:0; border:0;}
    #header #search fieldset {width:200px;}
    #header #search legend {display:none;}

#page {width:770px; min-height:1px; background:#FFF url("images/crystalx/bg_page.gif") 0 0 repeat-y; _height:1px;}
#page-in {min-height:1px; padding:10px 0; background:url("images/crystalx/bg_page_in.jpg") 0 0 no-repeat; _height:1px;}

#strip {position:relative; clear:both; padding:3px 20px 10px 20px; color:#6182D1;}
#strip p {margin:0;}
#strip a {color:#6182D1;}
#strip a:hover {color:#192666;}

    #strip #breadcrumbs {width:520px; margin:0; padding:0;}
    
    #strip #rss {float:right; width:140px; _width:200px; margin:0; padding-left:25px; }

    #strip #rss a{text-decoration:none; }

#content {float:left; width:530px; _width:550px; margin:0; padding:0 0 0 20px;}

    #content .article {clear:both; margin:0; padding:20px; background:url("images/crystalx/content_article_bg.jpg") 0 0 no-repeat;}
    #content .article h2 {margin:0 -20px; padding:10px; background:#DEE5FD url("images/crystalx/content_title_bg.gif") 0 0 repeat-y; color:#192666;}
    #content .article h2 span {background:url("images/crystalx/ico_list.gif") 0 50% no-repeat; padding-left:25px;}
    
    #content .article p {text-align:justify;}
    #content .info {margin:10px 0; padding-bottom:8px; border-bottom:1px solid #DEE5FD; color:#6685CC;}
    #content .info a {color:#6685CC;}
    #content .info a:hover {color:#FF9000;}
    
    #content .info span.date, #content .info span.cat, #content .info span.user, #content .info span.comments {padding-left:15px;}
    #content .info span.date {background:url("images/crystalx/ico_date.gif") 0 50% no-repeat;}
    #content .info span.cat {background:url("images/crystalx/ico_cat.gif") 0 50% no-repeat; margin-left:8px;}
    #content .info span.user {background:url("images/crystalx/ico_user.gif") 0 50% no-repeat; margin-left:8px;}
    #content .info span.comments {background:url("images/crystalx/ico_comments.gif") 0 50% no-repeat; margin-left:8px;}

    #content .btn-more {margin:0 0 15px 0; padding:0; border:0; position:relative;}
    #content .btn-more a {display:block; position:absolute; top:0; right:0; width:67px; _width:95px; height:21px; margin:0; padding:0 0 0 28px; background:url("images/crystalx/btn_more.gif") 0 0 no-repeat; color:#FFF; text-decoration:none;}
    #content .btn-more a:hover {background:url("images/crystalx/btn_more.gif") -95px 0 no-repeat;}

#col {float:left; width:200px; margin:0; padding:0; background:#CEDBF9 url("images/crystalx/col_bg.gif") 0 0 repeat-y;}
#col-in {padding:20px 10px; background:url("images/crystalx/col_top.gif") 0 0 no-repeat;}
#col h3 {padding:13px 15px 14px 15px; margin:0 -10px 15px -10px; background:#A0B9F3 url("images/crystalx/col_title_bg.gif") 0 0 repeat-y; color:#192666;}

    #col #about-me {margin-bottom:15px; line-height:130%;}
    #col #about-me p {margin:0;}
    #col #about-me #me {float:left; width:54px; height:58px; margin-right:7px;}

    #col ul#category {margin:15px 0; padding:0; list-style:none;}
    #col ul#category li {margin:0; padding:0; border-bottom:1px solid #E0E8FA;}
    #col ul#category li a {display:block; padding:3px 0 3px 22px; background:url("images/crystalx/ico_archive.gif") 5px 6px no-repeat; text-decoration:none;}
    #col ul#category li a:hover {background-color:#D3DFF8; color:#192666;}
    #col ul#category li#category-active a {background:#E0E8FA url("images/crystalx/ico_archive2.gif") 5px 50% no-repeat; font-weight:bold;}
    
    #col ul#archive {margin:15px 0; padding:0; list-style:none;}
    #col ul#archive li {margin:0; padding:0; border-bottom:1px solid #E0E8FA;}
    #col ul#archive li a {display:block; padding:3px 0 3px 22px; background:url("images/crystalx/ico_archive.gif") 5px 50% no-repeat; text-decoration:none;}
    #col ul#archive li a:hover {background-color:#D3DFF8; color:#192666;}
    #col ul#archive li#archive-active a {background:#E0E8FA url("images/crystalx/ico_archive2.gif") 5px 6px no-repeat; font-weight:bold;}
    
    #col ul#links {margin:15px 0; padding:0; list-style:none;}
    #col ul#links li {margin:0; padding:0; border-bottom:1px solid #E0E8FA;}
    #col ul#links li a {display:block; padding:3px 0 3px 22px; background:url("images/crystalx/ico_links.gif") 5px 6px no-repeat; text-decoration:none;}
    #col ul#links li a:hover {background-color:#D3DFF8; color:#192666;}

#footer {position:relative; clear:both; width:770px; height:60px; margin-bottom:50px; background:url("images/crystalx/footer.jpg") 0 0 no-repeat; color:#6685CC;}
#footer a {color:#6685CC;}
#footer a:hover {color:#192666;}

    #top {position:absolute; top:55px; left:550px;}
    #top p {position:relative; width:30px; height:25px; margin:0; overflow:hidden;}
    #top p span {display:block; position:absolute; left:0; top:0; z-index:1; width:30px; height:25px; background:url("images/crystalx/ico_top.gif") 0 0 no-repeat; cursor:pointer;}
    #top a:hover span {background:url("images/crystalx/ico_top.gif") -30px 0 no-repeat;}

    #footer p#copyright {position:absolute; top:10px; left:40px; margin:0;}

    #createdby {position:absolute; top:10px; left:562px; margin:0; color:#8CA3D8;}
    #createdby a {color:#8CA3D8;}


Valitse Lähetä

Valitse crystalx : crystalx_menu ja kopioi alla oleva teksti ja korvaa vanha.


Koodi: Valitse kaikki

/* CSS Document */
/* Main menu (tabs) */
#tabs {background:#CEDBF9; margin:0 5px; padding:10px 0 0 0; _height:1px;}
    #tabs ul {margin:0 10px; padding:0; list-style:none;}
    #tabs ul li {margin:0 5px 0 0; padding:0; float:left;}
    #tabs ul li a {display:block; position:relative; padding:7px 15px; border:0; background:url("images/crystalx/tab_link.gif") 0 0 repeat-x; color:#ff99b2; font-weight:bold; text-decoration:none; cursor:pointer;}   
    /* Main menu (tabs - link) */
    #tabs ul li a span.tab-l, #tabs ul li a:hover span.tab-l {position:absolute; top:0; left:0; _left:-15px; width:8px; height:8px; background:url("images/crystalx/tab_link_l.gif") 0 0 no-repeat;}
    #tabs ul li a span.tab-r, #tabs ul li a:hover span.tab-r {position:absolute; top:0; right:0; _right:-1px; width:8px; height:8px; background:url("images/crystalx/tab_link_r.gif") 100% 0 no-repeat;} 
    /* Main menu (tabs - hover) */
    #tabs ul li a:hover {background:url("images/crystalx/tab_hover.gif") 0 0 repeat-x; color:#FFF;}
    #tabs ul li a:hover span.tab-l {background:url("images/crystalx/tab_hover_l.gif") 0 0 no-repeat;}
    #tabs ul li a:hover span.tab-r {background:url("images/crystalx/tab_hover_r.gif") 100% 0 no-repeat;}
    /* Main menu (tabs - active) */
    #tabs ul li a span.tab-l, #tabs ul li a:hover span.tab-l {position:absolute; top:0; left:0; _left:-15px; width:8px; height:8px; background:url("images/crystalx/tab_link_l.gif") 0 0 no-repeat;}
    #tabs ul li a span.tab-r, #tabs ul li a:hover span.tab-r {position:absolute; top:0; right:0; _right:-1px; width:8px; height:8px; background:url("images/crystalx/tab_link_r.gif") 100% 0 no-repeat;}
/********************
MENU PYSTYSUUNTAINEN
*********************/
#pysty {
   padding-left: 0;
   margin-left: -2.8em;
}
/* third level has some padding to have it stand out */
ul#pysty ul ul ul {
   padding-bottom: 0.5em;
}
/* menu li block */
#pysty li {
   list-style: none;
   margin: 0;
   border-bottom: 1px solid #c0c0c0;
   display: block;
}
#pysty ul ul li {
   border: none;
}
/** fix stupid ie bug with display:block; **/
* html #pysty li a { height: 1%; } 
* html #pysty li hr { height: 1%; }
/** end fix **/
/* first level links */
ul#pysty a {
   text-decoration:none; /* no underline for links */
   display: block; /* IE has problems with this, fixed above */
   padding: 0.8em 0.5em 0.5em 1.5em; /* some air for it */
   color: #18507C; /* this will be link color for all levels */
   background: url(images/crystalx/arrow-right.gif) no-repeat 0.5em center; 
   min-height:1em; /* Fixes IE7 whitespace bug */ 
}
/* next level links, more padding and smaller font */
ul#pysty ul ul a {
   font-size: 90%;
   padding: 0.5em 0.5em 0.5em 2.8em;
   background-position: 1.5em center;
}
/* third level links, more padding */
ul#pysty ul ul ul a {
   padding: 0.3em 0.5em 0.3em 4.3em;
   background: url(images/crystalx/dash.gif) no-repeat 2.8em center; 
}
/* AKTIIVISET LINKIT */
ul#pysty a:hover {
   background-color: #A0B9F3;
   color: #192666;
}
ul#pysty a.activeparent:hover {
   background-color: #A0B9F3;
   color: #192666;
}
/* AKTIIVISET LINKIT LOPPUU */
/* 
active parent, that is the first-level parent 
of a child page that is the current page 
*/
ul#pysty li a.activeparent {
   background: url(images/crystalx/arrow-down.gif) no-repeat 0.4em center; 
   background-color: #385C72;
   color: #fff;
}
ul#pysty ul ul li a.activeparent {
   background-position: 1.5em center; 
   background-color: transparent;
   color: #18507C;
}
/* 
current pages in the default Menu Manager 
template are unclickable. This is for current page on first level 
*/
ul#pysty ul h3 {
   background: url(images/crystalx/arrow-right-active.gif) no-repeat 0.4em center;
   background-color: #385C72;
   display: block; 
   padding: 0.8em 0.5em 0.8em 1.5em;  /* some air for it */
   color: #fff;                                 /* this will be link color for all levels */
   font-size: 1em;                           /* instead of the normal font size for <h3> */
   margin: 0;                                  /* as <h3> normally has some margin by default */
}
/* 
next level current pages, more padding, 
smaller font and no background color or bottom border 
*/
ul#pysty ul ul h3 {
   font-size: 90%;
   padding: 0.3em 0.5em 0.3em 2.8em;
   background-position: 1.4em center;
   background-color: transparent;
   border-bottom: none;
   color: #000;     
}
/* current page on third level, more padding */
ul#pysty ul ul ul h3 {
   padding: 0.3em 0.5em 0.3em 4.3em;
   background: url(images/crystalx/arrow-right-active.gif) no-repeat 2.7em center; 
}
/* section header */
ul#pysty li.sectionheader {
   border-right: none;
   font-size: 130%;
   font-weight: bold;
   padding: 1.5em 0 0.8em 0;
   background-color: #fff;
   line-height: 1em;
   margin: 0;
   text-align:center;
}
/* separator */
ul#pysty li.separator {
   height: 1px !important;
   margin-top: -1px;
   margin-bottom: 0;
   padding:2px 0 2px 0;
   background-color: #000;
   overflow:hidden !important;
   line-height:1px !important;
   font-size:1px; /* for ie */
}
ul#pysty li.separator hr {
   display: none; /* this is for accessibility */
}
That's all.


Ja ei kun rajuu sivuntäyttöö vaan... :-)
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

Lisää Tiedostonhallinta

Viesti Kirjoittaja eero »

Kopioi alla oleva tiedosto ja vie se Laajennokset -> Moduulit
Uploads-1.3.1.xml
Kopio tiedosto
(751.19 KiB) Tiedosto ladattu 1163 kertaa
Kopioi ikoneja lisää. Poista tarpeettomat ikonit sillä niitä on aika järjettömästi. Ikonit ladataan kansioon modules/Uploads/images
ikonit.zip
Ikonit
(97.21 KiB) Tiedosto ladattu 1043 kertaa
Moduulin asetukset löytyy Sisältö » Tiedostot (Uploads Module)


Siirry Sisältö » Tiedostot (Uploads Module) » Tiedostotyypit. Muokkaa ne sopiviksi.
  • Musiikki (wav.png)
    • mp3,ogg,wav,au,wma
  • Kuva (jpg.png)
    • png,gif,jpg,jpeg,bmp
  • PDF (pdf.png)
    • pdf
  • Excel (xls.png)
    • xls,xml,xlt,csv,xla
  • Pakattu (zip.png)
    • zip,tar,gz,rar,arj,bz2
  • Teksti (txt.png)
    • txt,text,rtf
  • Video (mpg.png)
    • avi,mpg,mpeg,wmv
  • Word (doc.png)
    • doc,dot,wps
  • html (htm.png)
    • xml,htm,html
  • PowerPoint (ppt.png)
    • ppt,pot,pps,ppa
  • Access (mbd.png)
    • mdb
  • Publisher (ico.png)
    • pub
  • OpenOffice (odt.png)
    • odb,odc,odf,odg,odm,odp,ods,odt,ogg,otg,oth,otp,otd,ott
Siirry välilehdelle Asetukset ja kopioi alla oleva lista kohtaan Hyväksytyt tiedostopäätteet
  • mp3,ogg,wav,png,gif,jpg,jpeg,bmp.pdf,xls,zip,tar, gz,rar,arj,txt,text,avi,mpg,mpeg,wmv,doc,au,wma,bz2, xml,html,htm,ppt,mdb,dot,rtf,wps,xml,xlt,csv,xla, pot,pps,ppa,pub,dot,rtf,wps,xml,xlt,csv,xla,pot,
    pps,ppa,pub,odb,odc,odf,odg,odm,odp,ods,odt,ogg,
    otg,oth,otp,otd,ott
paatteet.txt
Tiedostojen päätteet
(270 Tavua) Tiedosto ladattu 1093 kertaa

Serverillä

Muokkaa kielitiedostoa. "valmis" tiedosto:
modules_Uploads_lang_ext.zip
Kielitiedosto
(8.07 KiB) Tiedosto ladattu 2083 kertaa
Serveriosuus loppuu

Muokataan Default-pohjasta.

Tiedostolistan pohja

Malli:

Koodi: Valitse kaikki

<!-- Start Upload Display Template -->
<br>
{if isset($input_filter) }
{$startform}
{$prompt_filter}{$input_filter}{$hidden_params}{$input_submit}
{$endform}
<br/>
{$matches} {$matchestext}
{/if}
<table>
  <tr>
    <th>{$icon}</th>  
    <th>{$name}</th>
    <th>{$date}</th>
    <th>{$size}</th>
    <th>{$details}</th>
  </tr>
{foreach from=$items item=entry}
  <tr class="{$entry->rowclass}"> 
    <td><img src="{$entry->iconurl}" border=0/></td>
    <td>
      {$entry->namelink}
      <br/>
       </td>
    <td>{$entry->date}</td>
    <td>{$entry->size}</td>
    <td>{$entry->detaillink}</td>
  </tr>
{/foreach}
</table>
<!-- End Upload Display Template -->


Käytännöllinen pohja Lataus pohjalle:

Koodi: Valitse kaikki

<!-- Upload form template -->
<h3>Lataa tiedosto palvelimelle</h3>
{$startform}{$input_key}
<table border='0'>
<tr><td>
{if $noauthor } 
{$input_author}
{else}
{$prompt_author}</td><td>{$input_author}
{/if}
</td></tr>
<tr><td>{$prompt_destname}</td><td>{$input_destname}<br>{$info_destname}</td></tr>
<tr><td>{$prompt_replace}</td><td>{$input_replace}{$info_replace}</td></tr>
<tr><td>{$prompt_upload}</td><td>{$hidden}{$input_browse}</td></tr>
<tr><td>{$captcha_title}</td><td>{$captcha} {$input_captcha}</td></tr>
<tr><td> </td><td>{$input_submit}</td></tr>
</table>
{$endform}
<!-- Upload form template -->
Yksittäisen tiedoston tiedot näyttävä pohja:

Koodi: Valitse kaikki

<!-- Detail template -->
<br>
{if isset($input_filter) }
{$startform}
{$prompt_filter}{$input_filter}{$hidden_params}{$input_submit}
{$endform}
<br/>
{$matches} {$matchestext}<br/>
{/if}
{foreach from=$items item=entry}
<table>
  <tr>
    {if isset($entry->thumbnail_url)}
    <td>{$thumbnail}</td>
    <td><img src="{$entry->thumbnail_url}" border=0/></td>
    {else}
    <td>{$icon}</td>
    <td><img src="{$entry->iconurl}" border=0/></td>
    {/if}
  </tr>
  <tr>
    <td>{$category}</td>
    <td>{$entry->category}</td>
  </tr>
  <tr>
    <td>{$id}</td>
    <td>{$entry->id}</td>
  </tr>
  <tr>
    <td>{$name}</td>
    <td>{$entry->namelink}</td>
  </tr>
  <tr>
    <td>{$date}</td>
    <td>{$entry->date}</td>
  </tr>
  <tr>
    <td>{$author}</td>
    <td>{$entry->author}</td>
  </tr>
  <tr>
    <td>{$size}</td>
    <td>{$entry->size}</td>
  </tr>
 </table>
<br/>
<br/>
{/foreach}
<!-- Detail template -->

Nähdäksesi moduulin luo uusi sivu ja anna koodi {cms_module module="uploads" category="testi" mode="summary" filter="yes"}
  • category = kategorian nimi joka luodaan.
    filter = Jos halutaan hakuruutu tiedostolle.
Jos haluat samalle sivulle tiedostojen latauksen, niin pitää luoda Fronted User management -juttuun käyttäjä ja käyttäjäryhmä tai käytettävä kalenterin luonnissa olevaa ryhmää. Ohjeet luontiin löytyy kalenteri-kohdasta. Anna ryhmälle Manage Uploads oikeudet .
Siirry sivun muokkaukseen ja lisää seuraava koodi:
{cms_module module="uploads" category="testi" mode="upload" nocaptcha="1"}
  • Tämä lisää kategoriaan testi uusia tiedostoja.
Kategoriaa luotaessa hakemistoa ei välttämättä tarvi. Se luodaan kategorian luonnin yhteydessä ja oletuspolku on uploads. Jos laitat poluksi esim. images/omat, niin todellinen polku on juurihakemisto/uploads/images/omat.
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

Lisää kalenteri

Viesti Kirjoittaja eero »

Kalenteri on vähän tönkkö mutta siitä saa kohtuu toimivan. Varsinkin tietojen syöttö on hankalaa.

Asenna seuraavat osat:

Laajennokset » Moduulien hallinta » FrontEndUsers

Calendar
Calendar-0.7.3.xml
Kalenteri
(368 KiB) Tiedosto ladattu 1208 kertaa
FeuCalendar
FeuCalendar-0.1.xml
Lisää tapahtumia
(32.59 KiB) Tiedosto ladattu 1165 kertaa
Älä lataa uusinta kalenteria sillä se ei toimi FeuCalendar:in kanssa.

Siirry Käyttäjät & ryhmät » Ryhmät ja lisää uusi ryhmä
  • kalenteriryhma
Siirry Käyttäjät & ryhmät » Käyttäjät ja lisää uusi käyttäjä.
  • kalenteri
    Liitä se ryhmään kalenteriryhma
Siirry Käyttäjät & ryhmät » Ryhmäoikeudet ja etsi kohta Modify Calendar ja anna kalenteriryhma:lle oikeus.
Siirry Käyttäjät & ryhmät » Frontend User Management ja valitse Käyttäjän ominaisuudet
  • Lisää käyttäjä kalenteri Muista antaa sama nimi kuin kalenterin käyttäjälle annoit yllä!!!!!
    Täytä kaikki kohdat!!!!!
Siirry Ryhmät-välilehdelle
  • Lisää ryhmä kalenteriryhma Muista antaa sama nimi kuin kalenterin ryhmälle annoit yllä!!!!!
    Täytä kaikki kohdat!!!!!
Siirry Laajennokset » Feu Calendar ja laita täppi kohtaan Allow guest usage ja tarkasta, että FrontEndUsers group name on kalenteriryhmä

Oikeudet ovat nyt kunnossa.

Muokataan kalenteria ja liitetään se sivulle:

Siirry Sisältö » Kalenteri ja valitse Kategoriat
Lisää kategoria. (Tässä tapauksessa testi)
Nyt on kaksi gategoriaa. general ja testi.

Mä en halua, että kalenteriin tulee tapahtumien otsikon merkintää. ainoastaan, että näkyy että on tapahtuma eli päivän kohdalle tulee linkki. Muokkaan Kalenterin pohjaa seuraavaksi:

Koodi: Valitse kaikki

<center>
{strip}
<table class="calendar" id="{$table_id}">
{if $compact_view neq 1}
<caption class="calendar-month"><h2>{$month_names[$month]} {$year}</h2><br></caption>
{/if}
<tbody><tr>
{foreach from=$day_names item=day key=key}
<th abbr="{$day}">{$day_short_names[$key]}</th>
{/foreach}</tr>
<tr>
{* initial empty days *}
{if $first_of_month_weekday_number > 0}
<td colspan="{$first_of_month_weekday_number}"> </td>
{/if}
{* iterate over the days of this month *}
{assign var=weekday value=$first_of_month_weekday_number}
{foreach from=$days item=day key=key}
{if $weekday == 7}
	{assign var=weekday value=0}
</tr>
<tr>
{/if}
<td {if $day.class}class="{$day.class}"{/if}>
{if $day.events.0}<a href="{$day.url}">{$key}</a>
{if $summaries == true}
<a href="{$event.url}"></a>
{/if}
{else}{$key}{/if}
</td>
{math assign=weekday equation="x + 1" x=$weekday}
{/foreach}
{* remaining empty days *}
{if $weekday != 7}
<td colspan="{math equation="7-x" x=$weekday}"> </td>
{/if}
</tr>
</tbody>
</table>
{/strip}
<span class="calendar-prev"><a href="{$navigation.prev}">«  Edellinen kuukausi</a></span>  <span class="calendar-next"><a href="{$navigation.next}">Seuraava kuukausi »</a></span>
</center>
<br><h3>{cms_selflink page="lisaeae-varaus" text="Lisää varaus"}</h3>
Muokataan listapohjaa järkeväksi:

Koodi: Valitse kaikki

<div class="calendar-list" id="{$table_id}">
{if $compact_view neq 1}<br>
<h2>{if $day > 0}{$day} {/if}{$month_names[$month]}ta {$year}</h2>
{/if}
{foreach from=$events key=key item=event}
	<div class="calendar-event">
	<h3>{$event.event_title}</h3>

	{assign var=month_number value=$event.event_date_start|date_format:"%m"}
	{assign var=end_month_number value=$event.event_date_end|date_format:"%m"}
	{if $event.event_date_start == $event.event_date_end || $event.event_date_end == ""}
	<div class="calendar-date-from"><span class="calendar-date-title">{$lang.date}: </span>{$event.event_date_start|date_format:"%e"} {$month_names[$month_number]}ta {$event.event_date_start|date_format:"%Y"}</div>
	{else}
	{if $event.event_date_start|date_format:"%d%m%Y" == $event.event_date_end|date_format:"%d%m%Y"}
	<div class="calendar-date-from"><span class="calendar-date-title">{$lang.date}: </span>{$event.event_date_start|date_format:"%e"} {$month_names[$month_number]}ta {$event.event_date_start|date_format:"%Y %H:%M"} {$lang.to}  {$event.event_date_end|date_format:"%H:%M"}</div>
	{else}
	<div class="calendar-date-from"><span class="calendar-date-title">{$lang.date}: </span>{$event.event_date_start|date_format:"%e"} {$month_names[$month_number]} {$event.event_date_start|date_format:"%Y %H:%M"} {$lang.to} {$event.event_date_end|date_format:"%d"} {$month_names[$end_month_number]} {$event.event_date_end|date_format:"%Y %H:%M"}</div>
	{/if}
	{/if}
	{if $event.event_summary !="" && ($detail != 1 || ($event.event_details =="" ||  $event.event_details == "<br />"))}
		<div class="calendar-summary"><span class="calendar-summary-title">{$lang.summary}: </span>{$event.event_summary}</div>
	{/if}
	{if $detail == 1}
		{if $event.event_details !="" && $event.event_details != "<br />"}
		<div class="calendar-details"><span class="calendar-details-title">{$lang.details}: </span>{$event.event_details}</div>
		{/if}
	{else}
		<a href="{$event.url}">{$moretext}</a>
	{/if}

	</div>
{/foreach}
{if $return_url != ""}<br><br>
<div class="calendar-returnlink"><h3>{$return_url}</h3></div>
{/if}
</div>



Seuraavat tehdään serverillä:

Seuraavaksi korjataan idioottimainen virhe, joka on FeuCaledar:ssa. Tiedosto löytyy serveriltä modules/FeuCalendar/FeuCalendar.module.php
  • Siirry riville 293 ja muuta kohdasta $num_cols = 2; kakkonen ykköseksi $num_cols = 1;
Korjataan tapahtumien lisäystä siten, että loppupäivämäärä tulee automaattisesti ja se on tunnin eri ajassa kuin alkupäivä.
  • Siirry riville 237 ja muuta $event_date_start_hour = 0 muotoon $event_date_start_hour = 8 //oletusaloitusaika on kello 8
    Siirry riville 263 ja muuta nolla 9:ksi
    Siirry riville 264 ja muuta nolla date('d'):ksi
    Siirry riville 265 ja muuta nolla date('n'):ksi
    Siirry riville 266 ja muuta nolla $current_year:ksi
Muokkaa modules/FeuCalendar/lang/en_US.php ja käännä sieltä kohdat:
  • success title
    success message
    date_time_separator
    form_cancel
Ja bugeja riittää...
Jotta kalenterista poistuisi ärsyttävä false-teksti, sun on muutettava seuraava arvo:

Siirry tiedostoon modules/Calendar/function.displaycalendar.php
  • Siirry riville 83 ja löydät rivin echo "DEBUG inline = ".(!$debug) ? 'false' : 'true' . '<br>';
    Poista false ja tulos on echo "DEBUG inline = ".(!$debug) ? '' : 'true' . '<br>';
Jotenkin sain söhlättyä kalenterin englanninkieliseksi. Sen saa korjattua muokkaamalla modules/Calendar/lang/en_US.php:tä.
  • Suomenna tekstit tai kopsaa ne ext/fi_FI-tiedostosta
Valmiit tiedostot ovat tässä:
php_tiedostot.zip
php-tiedostot
(11.6 KiB) Tiedosto ladattu 1089 kertaa
Serveriosuus päättyy


Nyt päästään vihdoin luomaan kalenterisivua.
Luo sivu jonka nimi on esim. Kalenteri 1
  • Kirjoita koodi {cms_module module="calendar" category="testi"}
Luo sivu jonka nimi on esim. Kalenteri 2
  • Kirjoita koodi {cms_module module="calendar" category="general"}
Luo sivu jonka nimi on esim. Lisää varaus
  • Kirjoita koodi {cms_module module="FeuCalendar"}
Nyt kalenterissa 1 näkyy kaikki tapahtumat jotka on laitettu gategoriaan testi ja kalenterissa 2 kaikki jotka ovat gategoriassa general
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

Palautelomake

Viesti Kirjoittaja eero »

Halutessasi muokattavan palautelomakkeen imuroi FormBuilder.
FormBuilder-0.5.5.xml
FormBuilder
(1.93 MiB) Tiedosto ladattu 1255 kertaa
Siirry Laajennokset » Lomake editori
Valitse lomake jota haluat muokata tai luo uusi.

Lisää ainakin kentät:
  • * Lähetä vastaukset asetettuihin email osoitteisiin
    Tekstikenttä
    Tekstialue
Valitse kenttä * Lähetä vastaukset asetettuihin email osoitteisiin ja sieltä Lisäasetukset-välilehti
Tässä määritellään vastaanottajan postiin tulevan viestin muoto ja kentät.
Aika hyvä pohja:

Koodi: Valitse kaikki

<html>
<head>
{literal}
<style type="text/css">
<!--
body {font:85%/1.3 Verdana,Arial,sans}
h1, h2, h3, h4, h5, h6 { margin: 0px }
h1 { font-size: 2.2em; padding: 0px; }
h2 { font-size: 1.8em; font-weight: normal }
h2, h3, h4, h5 { font-family: Arial, Geneva; margin-top: 1em; }
h3 {
   font-size: 1.65em;
   font-weight: normal;
   font-style:italic;
   color: #F60;
   border-bottom: 1px solid #000;
}
h4 {
   font-size: 1.25em;
   padding: 0em 0.2em;
   color:#005CAB;
   border-top:1px solid #000;
   border-bottom:1px solid #000;
   margin-top: 0
}
h5 { font-size: 1.2em; font-style:italic; color:#005CAB}
h6 { font-size: 0.9em; color:#666; font-variant:small-caps}
p { margin: 0.5em 0 1em; line-height: 1.4; }
hr { border:0; border-top:1px solid #F60; height:1px;  font-size:1px; background: #F60; color: #fff}
.dotted-border {border: 1px dotted #F60; padding: 0.5em}
-->
</style>
{/literal}
<basefont face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="3" />
</head>
<body>
<h1>Palautetta Pöytyän intranet-sivulta</h1>
<h2>Lähettäjä</h2>

<h2>Viesti</h2>
<div class="dotted-border">
<strong>Otsikko</strong>: {$fld_20}<br />
<strong>Viesti</strong>:<br />
{$fld_19}
</div>
<h3>Muut tiedot</h3>
<p>
<strong>Lähetyspäivä</strong>: {$sub_date}<br />
<strong>Lomakkeen tiedot</strong>: {$sub_form_name}<br />
<strong>Palautelomakkeen URL</strong>: {$sub_url}<br />
<strong>Toimialue:</strong> {$sub_host}<br />
<strong>Lähettäjän ip-osoite</strong>: {$sub_source_ip}
</p>
</body>
</html> 
Toinen aika hyvä pohja:

Koodi: Valitse kaikki

<table border="0" style="margin-left: 30; margin-top: 30">
<tr>
<td colspan="2"><h2><font face="Verdana" color="#FF0000">Viesti palautelomakkeelta</font></h2><br>
<tr>
<td width="203"><font face="Verdana"><strong>Nimi</strong>: </font> </td>
<td width="309"><font face="Verdana">{$nimi}</font></td>
</tr>
<tr>
<td width="203"><font face="Verdana"><strong>Sähköpostiosoite</strong>:  </font>  </td>
<td width="309"><font face="Verdana">{$sahkopostiosoite}</font></td>
</tr>
<tr>
<td width="203"><font face="Verdana"><strong>Puhelinnumero</strong>: </font> </td>
<td width="309"><font face="Verdana">{$puhelinnumero}</font></td>
</tr>
<tr>
<td width="203"><font face="Verdana"><strong>Otsikko</strong>: </font> </td>
<td width="309"><font face="Verdana">{$otsikko}</font></td>
</tr>
<tr>
<td  colspan="2"><font face="Verdana"><strong>Viesti</strong>:</font></td>
</tr>
<tr>
<td  colspan="2"><font face="Verdana">{$viesti}</font></td>
</tr>
<tr>
<td  colspan="2"><font face="Verdana"><br><br><strong>Lähettäjän IP-osoite</strong>: {$sub_source_ip}<br />
</font></td>
</tr>
</table>
Muista laittaa täppi kohtaan Käytä HTML emailia:

Lähetyspohja-välilehdellä määritellään postin lähetyksen jälkeen näytettävä teksti. Muokkaa sitä.
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

Mahdollisia ongelmia

Viesti Kirjoittaja eero »

config.php oikeudet ovat 0500

sudo chmod 0500 /sivustonjuuri/config.php

www-data-käyttäjän pitää olla omistaja.

sudo chown -R www-data:www-data /juurihakemisto/
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

TinyMCE-asetukset kuntoon

Viesti Kirjoittaja eero »

Latausjuttu ei ole oletuksena päällä. Käy napsauttamassa se kohdasta Laajennokset » TinyMCE WYSIWYG Perus moduli » Asetukset ja laita täppi kohtaan Allow upload and creating dirs in FilePicker:

Tämän jälkeen käy korjaamassa kielitiedostoa serveriltä. (Ei valmis mut toimiva)

Polku on /var/www/cms/modules/TinyMCE/lang/ext/fi_FI.php

Koodi: Valitse kaikki

<?php
$lang['friendlyname'] = 'TinyMCE WYSIWYG Perus moduli';
$lang['permission'] = 'Muokkaa TinyMCE asetuksia';
$lang['stripbackgroundtags'] = 'Poista taustatagit CSS:stä';
$lang['source_formatting_text'] = 'Muotoile tulostettavaa HTML:ää';
$lang['onlyxhtmlelements_text'] = 'Salli vain XHTML-yhteensopivat elementit';
$lang['dropdownblockformats_text'] = 'Blockformats alasvetovalikossa';
$lang['allowtables'] = 'Salli taulukko operaatiot';
$lang['newlinestyle_text'] = 'Newline-tyyli';
$lang['pstyle'] = 'p tyyli';
$lang['brstyle'] = 'br tyyli';
$lang['enable_thumbs_text'] = 'Ota käyttöön esikatselukuvat kuvaselaimessa.';
$lang['show_path_text'] = 'Näytä elementin polku editorin alaosassa.';
$lang['toolbar_tab'] = 'Työkalupalkki';
$lang['toolbar_help'] = 'Näiden tulisi sisältää pilkulla erotettu lista painikkeiden/kontrollien nimistä, jotka sijoitetaan työkalupalkkiin.';
$lang['toolbar_text'] = 'Työkalupalkki';
$lang['language_text'] = 'Valitse kieli:';
$lang['editor_width_text'] = 'Editorikentän leveys';
$lang['editor_height_text'] = 'Editorikentän korkeus';
$lang['auto'] = 'Automaattinen';
$lang['or'] = 'tai';
$lang['bodycss_text'] = 'Body-tagin CSS';
$lang['bodycss_help'] = 'Jätä tyhjäksi tai aseta oletus käyttääksesi sivun CSS:ää. Huomaa: Asettaaksesi editorin taustavärin valkoiseksi, anna seuraava arvo: background-color:white;';
$lang['showtogglebutton_text'] = 'Näytä wysiwyg päälle/pois nappi';
$lang['togglewysiwyg'] = 'Wysiwyg päälle/pois';
$lang['styles_tab'] = 'CSS-tyylit';
$lang['styles_help'] = 'Jos jätät ensimmäisen kentän tyhjäksi, TinyMCE käsittelee CSS-tiedostosi ja listaa sen sisältämät tyylit käyttäjälle. Jos haluat vain joidenkin tyylien näkyvän käyttäjälle, määrittele ne tähän tapaan: \"Style 1=style1; Style 2=style2\" ensimmäisessä alla olevassa kentässä. Muissa kentissä voit määritellä CSS-tyylejä taulukoille, riveille ja soluille, joita käytetään vastaavissa dialogeissa. Jos kenttä on tyhjä, käytetään yleisiä tyylejä';
$lang['css_styles_text'] = 'Yleinen';
$lang['accessdenied'] = 'Pääsy estetty. Tarkasta oikeudet.';
$lang['error'] = 'Virhe!';
$lang['submit'] = 'Lähetä';
$lang['update'] = 'Päivitä';
$lang['settings'] = 'Asetukset';
$lang['settingssaved'] = 'Asetukset tallennettu';
$lang['toolbarsaved'] = 'Työkalupalkki tallennettu';
$lang['stylessaved'] = 'Tyylit tallennettu';
$lang['testareatext'] = 'Testialue, sisältö ei sotkeennu tätä muokatessa...';



$lang['youareintext']="Olet kohdassa";


$lang['extrastylestext']="Additions to stylesheet";

$lang['extrastyleshelp']="CSS entered here will be added to the stylesheet read by TinyMCE after it recieves the CMSms styles";


$lang['uploadnewfile']='Uusi tiedosto';
$lang['uploadfile']='Lataa';
$lang['createnewdir']='Uusi hakemisto';
$lang['createdir']='Luo';
$lang['nodirname']="Hakemistonimi puuttuu";
$lang['direxists']="Hakemistonimi on jo olemassa";
$lang['newdircreated']="Uuden hakemiston luonti onnistui";
$lang['newdirfailed']="Virhe hakemiston luonnissa";

$lang["nofile"]="Tiedostoa ei luotu";
$lang["filetoobig"]="Ladattava tiedosto on liian iso";
$lang["uploadfailed"]="Virhe tiedoston siirrossa";
$lang["fileuploaded"]="Tiedosto on ladattu onnistuneesti";

$lang["filepickertitle"]="Tiedostojen hallinta ja latausvalikko";
$lang["success"]="Onnistui";
$lang["fileoperations"]="Tiedostotoiminnat";
$lang["thousanddelimiter"]=",";

$lang["size"]="Koko";
$lang["dimensions"]="WxH";
$lang['advanced_tab'] = 'Edistyneet';





$lang['help'] = '	<h3>Mitä tämä moduuli tekee?</h3>

	<p>Mahdollistaa TinyMCE-nimisen ohjelman käytön sisällön muokkaamiseen WYSIWYG-tilassa.</p>

	<h3>Kuinka moduulia käytetään?</h3>

	<p>Asenna moduuli, jonka jälkeen valitse käyttäjän asetuksista, että tahdot käyttää TinyMCE-ohjelmaa</p>';
$lang['changelog'] = '

		<ul>

		<li>

		<p>Version: 2.2.4</p>

		<p>Fixed the IE toggle bug</p>

		<p>Speeded up turning editor on/off quite a bit (using mceToggleEditor in stead of loading/unloading whole system)</p>

		</li>

		<li>

		<p>Version: 2.2.3</p>

		<p>Updated to TinyMCE version 2.1.2, fixes turning wysiwyg on/off on pages containing multiple textareas</p>

		<p>Fixed a bug making you end up in wrong tab when saving toolbar</p>		

		<p></p>

		</li>

    <li>

		<p>Version: 2.2.2</p>

		<p>Numereous smaller tweeks.</p>

    <p>Fixed problem with changing between pages with Tiny and EditArea.</p>

    <p>Sessionized the live language.</p>

    <p>Added charmap to default toolbar.</p>

		</li>

		<li>

		<p>Version: 2.2.1</p>

		<p>Fixed blockformat dropdown now actually reflecting the values in the edit box</p>

		<p>Rewrote textarea management to using sessions. Should fix the double-tinys appearing randomly.</p>

		</li>

    <li>

		<p>Version: 2.2.0</p>

		<p>Split TinyMCE into 2 modules, one for inclusion in distribution and one for more advanced use. This is the Basic version.</p>

		<p>Made table operations an option</p>

		<p>Removed the nonworking 'replace cms-links while writing'</p>

		<p>Generally trimmed down the module to a size acceptable for the main distribution</p>

		</li>

    <li>

		<p>Version: 2.0.6</p>

		<p>Made it possible to add something extra to the configuration</p>

		<p>Added paste as plain text plugin</p>

		<p>Added an option to show a button turning the wysiwyg-functionality on/off</p>

		<p>General speed improvements</p>

		<p>Updated to Tiny 2.1.1, TinyCompressed 1.1.0 and SpellChecker 1.0.4</p>

		</li>

		<li>

		<p>Version: 2.0.5</p>

		<p>Added a xhtml-elements only option</p>

		<p>Moved javascript config into an external file</p>

		<p>Added selecting p or br/ style newlines</p>

		<p>Updated to new compression engine. Should fix some bugs related to this</p>

		<p>Added plugin descriptions from docs</p>

		<p>Fixed showing of correct testarea even if another wysiwyg is chosen</p>

		<p>Updated to Tiny 2.1.0</p>

		<p>Added thumbnail previews in image browser.</p>

		</li>

		<li>

		<p>Version: 2.0.4</p>

		<p>Fixed customized textarea width</p>

		<p>Updated to Tiny 2.0.7</p>

		<p>Reversed changelog content (from now on at least) ;-)</p>

		<p></p>

		</li>



		<li>

		<p>Version: 1.0</p>

		<p>Original module code for TinyMCE WYSIWYG textarea replacement tool.</p>

		</li>

		<li>

		<p>Author: Simon Brown &lt;simon@uptoeleven.ws&gt;</p>

		<p>Version: 1.1</p>

		<p>Converted for use with new CMS Module architecture.</p>

		<p>Upgraded TinyMCE to version 1.42.</p>

		</li>

		<li>

		<p>Version: 1.2</p>

		<p>Fixed bug with paths being created wrong on image insert.</p>

		</li>

		<li>

		<p>Version: 2.0.0</p>

		<p>Author: Stefan R&ouml;llin</p>

		<p>UPDATED to version 2.0.5.1 of TinyMCE editor.</p>

		<p>ADD plugins simplebrowser, cmsmslink </p>

		<p>ADD some configuration options.</p>

		<p>ADD permission to modify settings.</p>

		</li>

		<li>

		<p>Version: 2.0.1</p>

		<p>UPDATED to version 2.0.6.1 of TinyMCE editor.</p>

		<p>ADD configuration options: language and source_formatting.</p>

		<p>Improved plugin configuration.</p>

		<p>ADD more languages.</p>

		</li>

		<li>

		<p>Version: 2.0.2</p>

		<p>FIX filebrowser</p>

		<p>FIX security flaw in filebrowser</p>

		</li>

		<li>

		<p>Version: 2.0.3</p>

		<p>Converted to new fetch-method of content_array</p>

		<p>FIX security flaw in filebrowser</p>

		<p>Added localization of testarea-text</p>

		</li>

</ul>';
$lang['utma'] = '156861353.42834333.1182870459.1187980805.1187988376.12';
$lang['utmz'] = '156861353.1184768461.5.2.utmccn=(referral)|utmcsr=forum.cmsmadesimple.org|utmcct=/index.php|utmcmd=referral';
?>
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

Taulukon kehykset eivät näy

Viesti Kirjoittaja eero »

Siirry TinyMCE hallintamodooliin
Valitse Advanced-välilehti
Valitse täppi Include only screen CSS
Tallenna asetukset
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

Kirjautumisikkuna kuntoon

Viesti Kirjoittaja eero »

Ohje koskee kun käyttää NCleanGrey-tyyliä

Muokkaa polusta \admin\themes\NCleanGrey\login.php
Malli:

Koodi: Valitse kaikki

<?php
#NCleanGrey Theme - Theme for CMS Made Simple admin side.
#(c)2008/9 by Author: Nuno Costa - nuno.mfcosta@sapo.pt  /  criacaoweb.net / http://dev.cmsmadesimple.org/users/nuno/
#
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#$Id: login.php 5517 2009-04-02 16:42:15Z nuno $
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php echo lang('logintitle')?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_encoding() ?>" />
<meta name="robots" content="noindex, nofollow" />
<link rel="shortcut icon" href="themes/NCleanGrey/images/layout/ncleangrey-favicon.ico" />
<link rel="Bookmark" href="themes/NCleanGrey/images/layout/ncleangrey-favicon.ico" />
<script src="themes/NCleanGrey/includes/standard.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="screen, projection" href="loginstyle.php" />
<base href="<?php global $gCms; $config =& $gCms->GetConfig(); echo $config['root_url'] . '/' . $config['admin_dir'] . '/'; ?>" />
</head>


<body>
<div class="login-all clear">


<div class="top"><?php echo lang('logintitle')?></div>
		<div id="centerLogin" class="formcontainer">
				<?php
						debug_buffer('Debug in the page is: ' . $error);
						if (isset($error) && $error != '')
						{
							echo '<div class="erroLogin">'.$error.'</div>';
						}
						else if (isset($warningLogin) && $warningLogin != '')
						{
							echo '<div class="warningLogin">'.$warningLogin.'</div>';
						}
						else if (isset($acceptLogin) && $acceptLogin != '')
						{
							echo '<div class="acceptLogin">'.$acceptLogin.'</div>';
						}
					?>
					<?php if ($changepwhash != '') {
							echo '<div class="warningLogin">'.lang('passwordchange').'</div>';
					?>
						<div class="lbfieldstext">
							<p class="lbpass"><?php echo lang('password')?>:</p>
							<p class="lbpass"><?php echo lang('passwordagain')?>:</p>
						</div>
						<div class="login-fields">
							<form method="post" action="login.php">
								<input id="lbpassword"  name="password" type="password" size="15" /><br />
								<input id="lbpasswordagain"  name="passwordagain" type="password" size="15" /><br />
								<input type="hidden" name="changepwhash" value="<?php echo $changepwhash ?>" />
								<input type="hidden" name="forgotpwchangeform" value="1" />
								<input class="loginsubmit" name="loginsubmit" type="submit" value="<?php echo lang('submit')?>" /> 
								<input class="loginsubmit" name="logincancel" type="submit" value="<?php echo lang('cancel')?>" />
							</form>
						</div>
					<?php } else if (isset($_REQUEST['forgotpw']) && $_REQUEST['forgotpw']) { ?>
						<p class="lbfieldstart"><?php echo lang('forgotpwprompt')?></p>
						<div class="lbfieldstext">
							<p class="lbuser"><?php echo lang('username')?>:</p>
						</div>
						<div class="login-fields">
							<form method="post" action="login.php">
								<input id="lbusername" name="forgottenusername" <?php if(!isset($_POST['username'])) echo 'class="defaultfocus"' ?> type="text" size="15" value="" /><br />
								<input type="hidden" name="forgotpwform" value="1" />
								<input class="loginsubmit" name="loginsubmit" type="submit" value="<?php echo lang('submit')?>" /> 
								<input class="loginsubmit" name="logincancel" type="submit" value="<?php echo lang('cancel')?>" />
							</form>
						</div>
					<?php } else { ?>
					<div class="lbfieldstext">
					<p class="lbuser"><?php echo lang('username')?>:</p>
					<p class="lbpass"><?php echo lang('password')?>:</p>
					</div>
					<div class="login-fields">
					<form method="post" action="login.php">
						<p>
							<input id="lbusername" name="username" <?php if(!isset($_POST['username'])) echo 'class="defaultfocus"' ?> type="text" size="15" value="<?php echo htmlentities(isset($_POST['username'])?$_POST['username']:'')?>" /><br />
						<?php if(isset($error) && $error!='') {
						  echo '<input id="lbpassword" class="defaultfocus" name="password" type="password" size="15" /><br />';
						} else {
						  echo '<input id="lbpassword"  name="password" type="password" size="15" /><br />';
						} ?>
							<input class="loginsubmit" name="loginsubmit" type="submit" value="<?php echo lang('submit')?>" /> 
							<input class="loginsubmit" name="logincancel" type="submit" value="<?php echo lang('cancel')?>" />
						</p>
					</form>
					<div class="forgot-pw">
						<a href="login.php?forgotpw=1"><?php echo lang('lostpw')?></a>
					</div>
				</div>
				<?php } ?>
    </div>
  </div>

</div>
<div class="login-footer"></div>
<div id="copy"> Kirjoita käyttäjätunnuksesi ja salasanasi
<br /> 
</div>
</body>
</html>
admin.inc.php
Tyylit kuntoon:
Polusta \admin\themes\NCleanGrey\css\style-rtl.css

Koodi: Valitse kaikki

/*CMS Made Simple - NCleanGrey Theme version 1.4
2008/2009 (c) Nuno Costa - nuno.mfcosta@sapo.pt [criacaoweb.net] 
General tags
*/
*  {
	margin: 0;
    list-style: none;
	outline: none;
}
img{border:none;}
legend{
	font-weight: bold;
	font-size: 1.2em;
	color: #243135;
	padding: 5px 5px 10px;
}
fieldset{
	border: 1px solid #CCCCCC;
	padding: 5px;
}
hr{display:none;}	
 a {
 text-decoration: none;
 outline: none ;
}  
a:hover  {
   text-decoration: underline;
   }
.pagecontainer a, .breadcrumbs a , .pageback a, .MainMenu a, .itemmenucontainer a {
	text-decoration: underline;
}
a.move_up {
	margin-left:16px;
}
.pagecontainer a:hover, .breadcrumbs a:hover, .pageback a:hover, .MainMenu a:hover, .itemmenucontainer a:hover  {
	text-decoration: none;
	background: transparent;
	color: #243135;
}
a:hover img {
	background: transparent;
} 	
body  {
	font-size: 70%;
	font-family: Tahoma,Verdana, Arial, Helvetica, sans-serif;
	margin: 0px;
	padding: 0px;
	background:#fff url(themes/NCleanGrey/images/layout/body.jpg) repeat-x scroll left top;
	text-align:center;
   }
h1  {
   font-size: 2em;
   }

h2  {
   font-size: 1.2em;
   }

h3  {
   font-size: 1.2em;
   }
.pagecontainer h3
{
	margin-top:10px;
	margin-bottom:10px;
	}

h4  {
   font-size: 1em;
   }

blockquote, input, li, select, th, td  {
   font-size: 1em;
   }

p  {
   font-size: 1em;
   margin: 0px;
   }
form  {
   margin: 0px;
   display: inline;
   }
input{
	font-size: 1.1em;
	border: 1px solid #ABC6DD;
	background: #F8FAFA;
	margin-right: 5px;	
}
input:hover,input:focus, textarea:hover, select:hover, checkbox:hover
{
	border: 1px solid #4E6972;
	background: #E2EBEB;
}
/*CSS 3*/
  input[type="text"],input[type="password"]{
	padding:4px;
}
input[type="button"],input[type="submit"]
{
cursor: pointer;
background: url(themes/NCleanGrey/images/layout/nav.png) repeat-x left -50px;
color:#fff;
padding:3px 4px 4px 4px;
}
input[type="button"]:hover,input[type="submit"]:hover {
cursor: pointer;
 background: url(themes/NCleanGrey/images/layout/nav.png) repeat-x left 0px;
}
input[type="checkbox"] {
background: #F8FAFA;
}
/*end*/

textarea  {
   font-size: 1.1em;
   font-family:Verdana, Arial, Helvetica, sans-serif;
   border: 1px solid #ABC6DD;
   background: #F8FAFA;
   width: 48em;
   height: 30em;
   }
select  {
   font-size: 1.1em;
   border: 1px solid #ABC6DD;
   background: #F8FAFA;
 }
div
{
   text-align: left;
}
th, td
{
   text-align: left;
 }
code, tt, pre
{
	font-size: 120%;
}
/* container */
#ncleangrey-container
{ 
   margin:0px;
   background-color: #fff;
   text-align: left;
}	  
 /* Top - banner */	  
#logocontainer  {
	height: 100px;
	margin: 0;
	background: #243135 url(themes/NCleanGrey/images/layout/bg_banner.png) repeat-x left top;
	border-bottom: 1px solid #D9E2E6;
	width:auto;
   }
 /* Top - logo */	 
#logocontainer img  {
    float:left;
	padding: 0px;
	margin: 0px;
	
	}
/* Top - logo - text */	
div.logotext  {
   	color: #fff;
	font-weight: bold;
	font-size: 1.0em;
	text-align: right;
	margin-right: 10px;
	padding: 40px 10px 10px 10px;
	width:auto;
	
   }
/* Login - Clean  */
.clear:after {content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
} 
* html .clear {height: 1%;} 
.clear {display: block;} 
div.login-all  {
	/*prepair pre-loader for top admin (cache now)*/
	background:  url(themes/NCleanGrey/images/layout/bg_banner.png) no-repeat -500px;
	/*end*/
	margin: 100px auto 20px;
	width: 715px;
	text-align: left;
	padding: 0px;
	border-left: 1px solid #DDDDDD;
	border-right: 1px solid #DDDDDD;
   }
/*Layer info*/
div.login-all .info {
	float: left;
	width: 350px;
	margin: 0;
	height: auto;
	background: #fff url(themes/NCleanGrey/images/layout/itenmenucontainer.gif) no-repeat right top;
	padding: 0px;
}
.info p , .info ol li{
	list-style: decimal inside;
	padding: 2px;
	margin: 0px;
}
.info h1{
	font: bold 1em Verdana, Arial, Helvetica, sans-serif;
	color: #fff;
	background: #506D76 url(themes/NCleanGrey/images/layout/nav.png) repeat-x 0px -50px;
	width: auto;
	padding: 11px;
	margin: 5px 5px 5px;
}
.centerLogin #img {
	background: url(themes/NCleanGrey/images/layout/Login.gif) no-repeat 5px 5px;
	padding-left: 70px;
	padding-top: 25px;
	display: block;
	color: #628103;
	font-weight: bold;
	font-size: 1em;
	padding-bottom: 25px;
}
.centerLogin span {
	padding-left: 50px;
	margin-top: 50px;
	font-weight: bold;	
}
/*Layer login*/
.login {
	background: #fff url(themes/NCleanGrey/images/layout/itenmenucontainer.gif) no-repeat left top;
	float: left;
	width: 350px;
	margin:0;
	padding-bottom: 50px;	/*border-right: 1px solid #ccc;*/
}
div.forgot-pw {
	margin-top: 10px;
}
div.top  {
	background: #506D76 url(themes/NCleanGrey/images/layout/nav.png) repeat-x left -50px;
	width: auto;
	border-style: none;
	border-width: 0px;
	color:#fff;
	font-size: 1em;
	font-weight: bold;
	text-align: right;
	padding: 11px 10px 11px 0;
	margin:5px 5px 0 5px;
 }
div#copy {
 /*prepair pre-loader for tabs (cache now)*/
	background: #fff url(themes/NCleanGrey/images/layout/tabs.png) no-repeat -500px; 
/*end*/
	font-size: 1em;
	font-weight: normal;
	color: #243135;
	clear: both;
	text-align: center;
}
div#copy a{
	
	font-weight: bold;
	color: #243135;
}
.login-footer {
	height: 50px;
	width: auto;
	clear: both;
}
#centerLogin, .centerLogin {
	height: 100%;
	margin:0px;
	padding: 10px 5px;	
}
div.formcontainer  {
	padding: 10px;
	overflow: hidden;
	margin:0px;
   }
div.erroLogin  {
	margin: 2px 2px 5px 2px;
	padding: 10px 10px 10px 35px;
	border: 1px solid #FD9999;
	color: #000;
	width: auto;
	background: #FEDADA url(themes/NCleanGrey/images/icons/system/stop.gif) no-repeat 5px 5px;
	font-weight: bold;
	height:1%; /*IE6*/
   }
   div.acceptLogin  {
	margin: 2px 2px 5px 2px;
	padding: 10px 10px 10px 35px;
	border: 1px solid #BDD3A3;
	color: #000;
	width: auto;
	background: #D6E4C5  url(themes/NCleanGrey/images/icons/system/accept.gif) no-repeat 5px 5px;
	font-weight: bold;
	height:1%; /*IE6*/
   }
div.lbfieldstext  {
	float: left;
	margin-left: 10px;
	margin-top: 10px;
	font-size: 0.8em;
	text-align:right;
   }
div.login-fields  {
	float: left;
	margin-left: 10px;
	padding-left: 10px;
   }
div.login-fields input.loginsubmit  {
margin-top: 5px;
 }
div.formcontainer #lbpassword, div.formcontainer #lbusername, div.formcontainer #lbpasswordagain   {
   margin-top: 5px;
   width:120px;
}
input.order { 
   width:2em;
   font-size: 1em;
   text-align: center;
   }
p.lbuser  {
   color: #555555;
   font-size: 1.2em;
   }
p.lbpass  {
   color: #555555;
   font-size: 1.2em;
   margin-top: 10px;
   }
 /*layout is in cache now (the importants images)*/
 
/* MENU*/
div.topmenucontainer  {
 	background-color: #243135;
	height:1%;
	width:auto;
	border-top: 1px solid #3F565C;  /*height:50px;*/
	 margin: 0;
     padding: 0;
	   }
ul#nav, ul#nav ul  {
   list-style-type: none;
   margin: 0;
   padding: 0;
}
ul#nav{
  	padding-top:10px;
	padding-left:10px;
   }
ul#nav ul  {
	border-top: 1px solid #C8D3D7;
	border-right: 1px solid #C8D3D7;
	border-bottom: 1px solid #ADC0C7;
	border-left: 1px solid #A5B9C0;
   }
ul#nav li  {
   float: left;
   margin: 0px;
   padding: 0px;
   }	
ul#nav a  {
	text-decoration: none;
	display: block;
   }
ul#nav li a  {
	font-size: 1em;
	font-weight: normal;
	color: #fff;
    padding: 12px 15px 15px;
	display: block;
 }  
ul#nav li:hover, ul#nav li.cssHover, ul#nav a.module:hover, ul#nav a.first_module:hover ,ul#nav li .selected:hover,ul#nav ul li a:hover  {
 background:  url(themes/NCleanGrey/images/layout/nav.png) repeat-x left -50px;
 color: #fff;
   } 
ul#nav li a.selected  {
	background:  url(themes/NCleanGrey/images/layout/nav.png) repeat-x left 0px;
	color: #000000;
	font-weight: bold;	
   }
ul#nav li ul a  {
	text-align: left;
	margin: 0px;
	position: relative;
	padding: 6px 30px 6px 15px;
	font-weight: normal;
	color: #000;
	border-top: 0 none;
	border-right: 0 none;
	border-left: 0 none;
   }
ul#nav li ul  {
	background: #F3F5F5;
	margin: 0px;
	padding: 0px;
	position: absolute;
	width: auto;
	height: auto;
	display: none;
	position:absolute;
	z-index:999;
	border-top: 1px solid #FFFFFF;
	border-bottom: 1px solid #374B51;
	/*
	Info:
	The opacity property is  CSS3, however, will be valid just in CSS 3.
	1) http://jigsaw.w3.org/css-validator
	2) More Options chose CSS3 
	3) is full validate ;)
	*/
opacity:0.95;/* CSS 3 */
}
ul#nav li li  {
   float: none;
   margin: 0px;
   padding: 0px;
}
ul#nav li:hover ul ul, ul#nav li.cssHover ul ul  {
   display: none;
   }
ul#nav li:hover ul, ul#nav li.cssHover ul  {
   display: block;
    }
a.module  {
	background: #E1E8EA;
   }
a.first_module  {
	background: #E1E8EA;
	border-top: 1px solid #BBCCD0;
   }
ul#nav li.sep  {
   line-height: 2px;
   border-bottom: 1px solid #333333;
   }
/* Nav Tools  */
div.MainMenu { 
  margin-right: auto;
	margin-left: auto;
	float:left;
	height: auto;
	width: auto;
}
div.navt_menu  {
   opacity:0.90;
   position: absolute;
   z-index:1110;
   right: 0px;
   top:155px;
   }
div.navt_show  {
	background: transparent url(themes/NCleanGrey/images/layout/atalhos.gif) no-repeat left top;
	float: left;
	width: 22px;
	height: 85px;
	cursor: pointer;
	margin: 0px;
	padding: 0px;
   }
div.navt_hide  {
	background:transparent url(themes/NCleanGrey/images/layout/atalhos.gif) no-repeat right top;
	float: left;
	width: 22px;
	height: 85px;
	cursor: pointer;
	margin: 0px;
	padding: 0px;
   }
#navt_container  {
	float: left;
	width: 20em;
	background-image: url(themes/NCleanGrey/images/layout/itenmenucontainer.gif);
	background-repeat: no-repeat;
	background-position: center top;
	border-right: 1px solid #CCCCCC;
	border-bottom: 1px solid #CCCCCC;
	border-left: 1px solid #CCCCCC;
	background-color: #FFFFFF;
   }
#navt_tabs div  {
	color: #3D5258;
	background: #EBF0F1;
	padding: 5px;
	border-right: 1px solid #ccc;
	border-left: 1px solid #E4E4E4;
	border-bottom: 1px solid #CFCFCF;
	width: auto;
	text-align: center;
	float: left;
	padding: 5px;
	cursor: pointer;
	font-weight: bold;
	margin-top: 2px;
   }
#navt_tabs div:hover, #navt_tabs div.cssHover  {
	background-color: #FFFFFF;
}
#navt_tabs div.active  {
 background-color: #FFFFFF;
}
#navt_content  {
   color: #666666;
   margin:10px 5px;
   padding: 5px;
   }
#navt_content a  {
   color: #666666;
   }
.visible  {
   display: block;
   }
.invisible  {
   display: none;
   }
/* Page Tabs - used for all page tabs */
#page_tabs  {
	overflow: hidden;
	margin-top:20px;
	margin-left:20px;
	height:1%; /*IE6*/
}
#page_tabs div  {
	color: #000000;
	font-size: 1em;
	background: #F9F9F9 url(themes/NCleanGrey/images/layout/tabs.png) repeat-x left 0px;
	text-align: center;
	float: left;
	cursor: pointer;
	white-space: nowrap;
	padding: 11px;
	border-right: 1px solid #DBDBDB;
	border-left: 1px solid #B5B5B5;
	margin-top: 1px;
	margin-right: 1px;
   }
/*if have icons in tabs fixed to height:14px;*/
#page_tabs div img {
height:14px;
margin-top:2px;
margin-left:5px;
margin-right:5px;
}

#page_tabs div:hover, #page_tabs div.cssHover  {
	background-position: left -45px;	
   }
#page_tabs div.active  {
	background-position:left -95px;
	border-right: 1px solid #666;
	border-left: 1px solid #666;
	border-bottom: none;
	margin-right: 1px;
	margin-left: 1px;
	font-weight: bold;
   }
#page_content  {
	background: transparent;
	padding: 20px 10px;
	border-right: 1px solid #CCCCCC;
	border-bottom: 1px solid #CCCCCC;
	border-left: 1px solid #CCCCCC;
	border-top: 1px solid #F4F4F4;
   }
/* top*.php files */
a.itemlink  {
   color: #384654;
   font-weight: bold;
   font-size: 1.1em;
   }
a.itemsublink  {
   color: #384654;
   }
div.itemmenucontainer  {
	color: #666666;
	background: transparent;
	padding: 20px 10px 10px;
	width: 582px;
	background-image: url(themes/NCleanGrey/images/layout/itenmenucontainer.gif);
	background-repeat: no-repeat;
	background-position: right top;
	min-height:70px;
    height:auto !important;
    height:70px;
	margin: 0 10px;
}
div.itemoverflow  {
  overflow: hidden;
   }
div.itemoverflow img  {
	border: none;
   }
div.itemoverflow a  {
	border: none;	
   }
p.itemicon  {
   float: left;
   margin-right: 10px;
   }
p.itemtext  {
   float: left;
   width: 39em;
   }
div.shortcuts {
   width: 11.8em;
   margin-left:0px;
   margin-right:0px;
   }
div.shortcuts h2 {
   border-bottom: 1px solid #ccc;
   margin: 0 0 0.3em 0;
}
div.shortcuts h3 {
   padding-top: 1em;
}
div.shortcuts ul {
  margin: 0.5em 0 0 0;
  padding-left: 0;
  }  
div.shortcuts li {
	background-image: url(themes/NCleanGrey/images/icons/topfiles/shortcut.gif);
	background-repeat: no-repeat;
	background-position: 1em 0.5em;
	padding-top: 0.5em;
	padding-left: 3em;
	padding-bottom: 0.5em;
	list-style: none;
	line-height: 1.3em;
   }   
div.shortcuts a {
   color: #384654;
   }
 /* All pages - Content */
#MainContent  {
   background: transparent;
   padding-top: 5px;
   padding-bottom: 5px;
   }
div.hstippled  {
	font-size: 1px;
	height: 1px;
   }
div.breadcrumbs{
    margin:0px;
	background: #F2F5F7;
	border-bottom: 1px solid #E2E9EB;
	padding: 10px 10px 10px 20px;
	color: #243135;
	height:1%;
   }
a.breadcrumbs  {
   color: #243135;
}
/*p.breadcrumbs  {
  color: #243135;
}*/
/*FOOTER*/
#footer  {
	color: #fff;
	text-align: center;
	padding: 20px;
	clear:both;
	background: #314348 url(themes/NCleanGrey/images/layout/bg_banner.png) repeat-x left top;
    width: auto;
	margin-top: 5px;
   }
#footer a  {
   color: #fff;
   text-decoration: underline;  
   }
/* Standard pages output */
div.pagecontainer  {
	padding: 10px;
	/*border: 1px solid #CADADD;*/
	background: transparent;
	margin-right: 10px;
	margin-left: 10px;
	height:1%; /*IE6*/
	    }
div.pagecontainer p {
   margin-bottom: 1em;
}
div.pageerrorcontainer , div.pageerrorinstalldir  {
	margin: 10px;
	padding: 10px;
	border: 1px solid #FD9999;
	color: #000;
	width: auto;
	background: #FEDADA;
	font-weight: bold;
	height:1%; /*IE6*/	
   }
div.pageerrorcontainer a:link {
	color: #DE2C27;
	text-decoration: underline;
}
div.pagemcontainer  {
	margin: 10px;
	padding: 10px;
	border: 1px solid #BDD3A3;
	background: #D6E4C5;
	height:1%;/* IE6*/
   }
div.pageoverflow  {
   clear: left;
   padding-top: 1px;
   width:auto; 
   overflow: hidden;
   }
div.pageoverflow a, div.pagecontainer a  {
	color: #384654;
      }
div.pageoverflow img  {
   border: 0px;
   }
div.pageoptions  {
   padding-top: 1px;
   }
img.pageicon  {
   border: none;
   }
img.systemicon  {
   border: none;
   vertical-align: middle;
   }
a.pageoptions  {
   color: #384654;
   vertical-align: 3px;
   }
a.pageback  {
   color: #384654;
   }
.pageback  {
   margin: 10px;
   }
div.pagecontainer .pageheader  {
    padding-bottom:7px;
	padding-left:2px;
	color: #384654;
	font-weight: bold;
	font-size: 1.2em;
	margin-bottom: 5px;
	border-bottom: 1px solid #D6DFE2;
	clear:both;
	   }
textarea.pagetextarea  {
   width: 48em;
   height: 30em;
   }  
div.pagecontainer span.helptext {
	font-size: 0.8em;
	font-weight: normal;
	padding: 2px;
	position: absolute;
	z-index:10;
	margin-top:-4px;
	right: 35px;	
	}
div.pagecontainer .pagetext  {
	color: #384654;
	/*float: left;*/
	margin: 1em 0 0.2em 0;
	padding: 0;
	/*padding-right: 1em;*/
	margin-left: 20%;
	width: auto;
	font-weight: bold;	/*margin-bottom: 0.5em;*/
/*	background:green;*/
	/*text-align:right;*/
 }	
div.pagecontainer .pageinput  {
   color: #384654;
  /* float: left;*/
   padding: 0;
   margin: 0;
   margin-left: 20%;
  /* margin-bottom: 0.5em;*/
   width: auto;
   text-align:left;
  /* background:red;*/
     }
p.pageinputwysiwyg  {
   padding-top: 5px;
   }
 p.pagemessage  {
	margin-bottom: 0;
	padding: 5px;
	font-weight: bold;	/*background: #D6E4C5;*/
   }
.pageshowrows  {
   width:50%;
   color: #384654;
   text-align: right;
   float: right;
   margin-right: 5px;
   }
p.pagesubtitle  {
   color: #384654;
   font-weight: bold;
   padding-top: 5px;
   }
p.pageoptions  {
   color: #384654;
   padding-top: 5px;
   }
.pagerows {
   font-size: 1.3em;
}
table.pagetable  {
	font-size: 1em;
	margin-bottom: 5px;
	border: 1px solid #E6ECEE;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	 /* sugested - Forge #241*/
   border-spacing:0px;
     /* end*/
   }
table.pagetable th  {
	color: #fff;
	background: #243135 url(themes/NCleanGrey/images/layout/bg_titles.png) repeat-x left top;
	height: 50px;
	text-align: left;
	white-space: nowrap;
	padding-left: 5px;
	padding-right: 5px;
   }   
table.pagetable th a {
	color: #C6D5D9;
	}	
table.pagetable th.active { 
	color: #C6D5D9;
	}	
table.pagetable th.active a { 
	color: #C6D5D9;
	text-decoration: underline;
	}
table.pagetable th a:hover { 
	color: #fff;
	text-decoration: underline;
	}
table.pagetable tr  {
	height: 2.5em;	
   } 
table.pagetable td  {
   color: #384654;
   padding-left: 5px;
   padding-right: 5px;
   }
table.pagetable a  {
   color: #384654;
   }
table.pagetable th.pagepos  {
   text-align: center;
   }
.move  {
   width: 60px;
   text-align: left;
   padding-left: 5px;
   }
.checkbox {
   padding-left: 10px;
   }
th.pagew10  {
   width: 10%;
   }
th.pagew25  {
   width: 25%;
   }

th.pagew50  {
   width: 50%;
   }
th.pagew60  {
   width: 60%;
   }
th.pagew70  {
   width: 70%;
   }
th.pageicon  {
   width: 0px;
   }
td.pagew30  {
   width: 30%;
   }
td.pagepos  {
   text-align: center;
   }
tr.row1  {
   background-color: #fff;
   }
tr.row2  {
	background: #E2EAEB;
   }  
 
tr.row1hover  {
	background: #CCDBDD;
   }
tr.row2hover  {
	background: #CCDBDD;
   }
td.pageicon  {
   background-color: #fff !important;
   }
td.icons_wide {
	width: 25px;
	}
iframe.imageframe  {
   margin-top: 10px;
   border: none;
   width: 100%;
   }
iframe.preview  {
   background-color: #fff;
   margin: 10px;
   border: solid 1px #666;
   width: 95%;
   height: 400px;
   }
input.standard { }

input.pagebutton {
	cursor: pointer;
	background: transparent	url(themes/NCleanGrey/images/layout/nav.png) repeat-x left -50px;
	color:#fff;
   }
input.pagebuttonhover  {
  background: transparent url(themes/NCleanGrey/images/layout/nav.png) repeat-x left 0px;
   cursor: pointer;
   }
input.pagecheckbox  {
   border: none;
   }
textarea.pagebigtextarea { 
	height: 40em; 
	width: 55em; 
	}
textarea.pagesmalltextarea { 
	height: 15em; 
	width: 48em; 
	}
textarea.pageheadtags  {
   height: 5em;
   }
ul.pageerror  {
   margin: 0;
   padding-left: 10px;
     }
ul.pageerror li {
	padding: 10px 10px 10px 35px;
	margin-left: 5px;
	background: url(themes/NCleanGrey/images/icons/system/stop.gif) no-repeat left center;
   }
div.pageerrorcontainer a {
	color: #fff;
	}
.clearb  {
   clear: both;
   }

.loginerror  {
   color: #ce374e;
   }
.imageframe  {
   height: 300px;
   }

.ajaxbutton  {
   clear: both;
   padding-top: 5px;
   padding-left: 1px;
   }
ul.sortableList {
	list-style-type: none;
	padding: 10px;
	margin: 5px;
	width: 95%;
	color: #243135;	
}
ul.sortableList li {
	cursor: move;
	padding:10px;
	margin: 2px 0px;
	border: 1px solid #8AA3B7;
	background: #fff url(themes/NCleanGrey/images/layout/nav.png) repeat-x scroll left -55px;
	font-weight: bold;
	color: #FFFFFF;	
}
ul.sortableList li li {
	background: #F2F5F7;
	font-weight: normal;
	border: 1px solid #D9E1E8;
	color: #243135;
 }
ul.sortableList li li li { 
	background:  #fff;	
	color: #243135;	
 }
ul.sortableList li li li li {
	background: #F2F5F7;
	font-weight: normal;
	color: #243135;
 }
ul.sortableList li li li li li { 
	background:  #fff ;
	color: #243135;		
 }
.important {
 color: red;
 font-weight: normal;
}
/*FILEMANGER MESSAGES*/
span.fm-messages{
margin-left:20px;
padding: 0px 2px 2px 10px;
display:block;
}
/*ICONS SYSINFO*/
.icon-extra{
padding-left:0.8em;
clear:left;
margin:0.8em 0 0 0.8em;
}
/*h2, 3, 4, etc  inside*/
div.pagecontainer .h-inside{
	float: left;
	padding-top: 8px;
	padding-right: 1em;
	margin-left: 10%;
	width: 18em;
	margin-bottom: 0.5em;
	text-align:right;
}
/*ICONS VIEW SITE AND LOGOUT ADMIN*/
div#nav-icons_all
{
	margin:0px;
	padding:0px;
	float:right;
	width:100px;
	height:auto;
	}
div#nav-icons_all ul#nav-icons
{
	margin:0px;
	list-style-type: none;
	padding:0px;
	text-indent: -999em;
}
div#nav-icons_all ul#nav-icons li
{
	padding:0px;
	float:left;
	height: 1%;	/*IE6*/
	margin-left:10px;
}
div#nav-icons_all ul#nav-icons li.viewsite-icon a
{
	display:block;
	padding: 10px 0;
	width: 35px;
	background: transparent url(themes/NCleanGrey/images/icons/extra/nav-icons.gif) no-repeat  0px 0px ;	
}
div#nav-icons_all ul#nav-icons li.logout-icon a
{
	display:block;
	padding: 10px 0;
	width: 35px;
	background: transparent url(themes/NCleanGrey/images/icons/extra/nav-icons.gif) no-repeat  -45px 0px ;	
}
/*hover*/
div#nav-icons_all ul#nav-icons li.viewsite-icon a:hover
{
	background-position:  0px -37px ;	
}
div#nav-icons_all ul#nav-icons li.logout-icon a:hover
{
	background-position:   -45px -37px ;	
}  
/*since 1.4*/
.group {  padding-right: 5px; padding-bottom: 5px; padding-top: 5px;}

.group_memberships
{   margin:0;
	height:1%; /*IE*/
	padding:5px  10px;
	background:#F0F3F4;
	border: 1px solid #DCE4E7;
}
#copy_paste_in_forum{
width:80%;
margin:0 10%;
}
/* ------- Notifications ------- */
.full-Notifications
{

clear:both;
margin:10px 10px 0 15px;
}
.full-Notifications a, .full-Notifications a:visited
{
	color: #042B3E;
	text-decoration: none;
	font-weight: bold;
}
.full-Notifications a:hover, .full-Notifications a:active
{
	color: #577782;
	text-decoration: underline;
}

div.notifications-show  {
	background: transparent url(themes/NCleanGrey/images/icons/Notifications/notifications_icons.gif) no-repeat left top;
	float: left;
	width:20px;
	height:20px;
	float:left;
	margin:0 5px;
	cursor: pointer;
	margin: 0px;
	padding: 0px;
   }
div.notifications-hide  {
	background:transparent url(themes/NCleanGrey/images/icons/Notifications/notifications_icons.gif) no-repeat right top;
	float: left;
	width: 20px;
	height: 20px;
	cursor: pointer;
	margin: 0px;
	padding: 0px;
   }
.Notifications-title
{
	margin: 0;
	font:  1.0em Arial, Helvetica, sans-serif;
	color: #333;
	padding: 3px 0px 1px;	
	float:left;
	height:10px;
	margin-right:5px;
}
.full-Notifications ul#Notifications-area
{
	margin: 20px 0px 0px -20px;
	padding: 0 5px 0 0;
	height: 1%;/*IE*/
	float:left;
	border-top: 1px solid #E2E2E2;
	list-style: none;
	width:550px;
}

.NotificationsItem
{
	margin: 5px 5px 5px 0px;
	padding:2px 0px 2px 30px;
	height: 1%;/*IE*/
	width: auto;
} 
.NotificationsPriority1
{
	background: url(themes/NCleanGrey/images/icons/Notifications/1.gif) no-repeat left top;
} 
.NotificationsPriority2
{
	background: url(themes/NCleanGrey/images/icons/Notifications/2.gif) no-repeat left top;
} 
.NotificationsPriority3
{
background: url(themes/NCleanGrey/images/icons/Notifications/3.gif) no-repeat left top;
} 

/* ------- Dashboard page ------- */

.clear-db:after
 {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
} 
* html .clear-db
{
height: 1%;
} 
.clear-db {display: block;
} 

.full-content
{
margin:7px 0;
padding:0;
}
/*CORE*/
.coredashboardcontent 
{
	padding:0px 1px;
	border:1px solid #93AEB7;
	width:98%;
	margin:5px 1% 5px 1%;
}
.dashboardheader-core
 {
	background: #fff url(themes/NCleanGrey/images/layout/nav.png) repeat-x 0px -50px;
    color:#fff;
	width:auto;
	font-size: 1.2em;
	font-weight: bold;
	padding:4px;
 }
.dashboardcontent-core
 {
	color:black;
	width:auto;
	background: #F8F8F8;
	padding:10px 5px;
 }
/*NOT CORE*/
.moduledashboardcontent 
 {
padding:0px 1px;
  border:1px solid #AAC0C6;
   width:48%; 
  float:left;
  margin:5px 0 5px 1%;
 }
.dashboardheader
 {
	background: #fff url(themes/NCleanGrey/images/layout/nav.png) repeat-x 0px 0px;
	color:black;
	width:auto;
	font-size: 1.2em;
	font-weight: bold;
	padding:4px;
 }
.dashboardcontent
 {
	color:black;
	width:auto;
	background: #fff;
	padding:5px;
 }
/*TOOLTIPS*/
 a.admin-tooltip {
  font-weight:bold;
  text-decoration:none;  
}

a.admin-tooltip-box {
  padding: 2px;
  margin: 2px;
  border: 1px solid #aaaaaa;
  cursor: help;
}

a.admin-tooltip:hover {
  background:#ffffff;
  text-decoration:none;
} /*BG color is a must for IE6*/

a.admin-tooltip span {
  display:none;
  padding:2px 3px;
  margin-left:8px;
  width:150px;
  font-weight:normal;
}
a.admin-tooltip:hover span {
  display:inline;
  position:absolute;
  background:#ffffff;
  border:1px solid #cccccc;
  color:#6c6c6c;
}

Ja kieliasetukset kuntoon:

Polusta \admin\lang\ext\fi_FI\admin.inc.php
admin.inc.php.txt
(115.41 KiB) Tiedosto ladattu 2005 kertaa
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

Hymiöt

Viesti Kirjoittaja eero »

Kielitiedosto

Koodi: Valitse kaikki

<?php

$lang["friendlyname"]="Hymiöt";

$lang["permission"]="Muuta hymiöt modulin asetuksia";
$lang["moddescription"]="Tämä moduuli on kokoelma hymiöitä joita muut moduulit voivat hymiöiden näyttämiseen.";
$lang["uninstalled"]="Hymiö moduuli on poistettu";
$lang["upgraded"]="Hymiö moduuli on päivitetty";
$lang["installed"]="Hymiö moduuli on asennuettu";
$lang["really_uninstall"]="Haluatko varmasti poistaa hymiö moduulin? Hymiöitä ei näytetä muissa moduuleissa tämän jälkeen.";


$lang["settingssaved"]="Asetukset tallennettu";
$lang["defaulttheme"]="Oletustyyli";
$lang["save"]="Tallenna";
$lang["cancel"]="Peruuta";
$lang["smileyexamples"]="Esimerkit:";
$lang["nosmileys"]="älä näytä graafisia hymiöitä";
$lang["defaultsmileys"]="Käytä hymiö moduulin oletusasetuksia";
$lang["gaim"]="GAIM tyyliset hymiöt";
$lang["yahoo"]="Yahoo tyyliset hymiöt";
$lang["msn"]="MSN tyyliset hymiöt";
$lang["skype"]="Skype tyyliset hymiöt";

$lang['show_all'] = 'Näytä hymiöt';
$lang['somesmileys'] = 'Muut hymiöt';
$lang['replacemode'] = 'Muuta malli';
$lang['replacemode_plain'] = 'selkeä';
$lang['replacemode_spaced'] = 'kohotettu';
$lang['replacemode_whitespaced'] = 'Kolmiulotteinen (Hidas)';

$lang["help"]="
This module is a small utility allowing other modules easily to access a central library of smileys.
Functions are provided to exchange all text-smileys within a string to <img>-tags pointin to the appropriate graphic file.
<br/>
The module can be used as smarty modifier like this in your template:
<pre>
{content|smileys}
</pre>
which will replace any smileys in the content with graphical links. <br /> 
To use it as modifier, you must copy the modifier.smileys.php file to the cms/plugins directory. 
<br/>
<br/>
The module can be accessed like this from other modules:
<pre>
\$smileys=\$this->GetModuleInstanse(\"Smileys\");
if (\$smileys!=false) {
  \$outputwithsmileys=\$smileys->ReplaceSmileys(\$outputwithoutsmileys);
} else {
  //manage without
}
</pre>
<br/>
<strong>Functions to be used in other modules</strong><br/>
<pre>
function SetToAdminFocus();
</pre>
Sets the Smiley-systems' internal path and url's to assume admin-focus.
<pre>
function SetBasePath(\$basepath,\$baseurl);
</pre>
Sets the Smiley-systems' internal path and url's. Allows access from other focuses (as used in the Chat-module)
<pre>
function ReplaceSmileys(\$stringwithtextsmileys,\$theme=\"default\");
</pre>
Returns a new string containing the same text but with all text-smileys replaced with proper <img>-tags pointing to graphics in the smiley-theme selected.
If no theme is specified the default set in the Smileys-settings is used.
<pre>
function GetOneSmiley(\$textsmiley,\$theme=\"default\");
</pre>
Returns an <img>-tag pointing to the proper smileys within the selected smiley-theme. \$textsmiley should contain just 1 smiley like \":-)\".
If no theme is specified the default set in the Smileys-settings is used.
<pre>
function GetSmileyThemes();
</pre>
Returns an array of the possible smiley-themes which can be chosen in the other functions.
<pre>
function GetSmileyList(\$theme=\"default\");
</pre>
Returns an array containing all the smileys in the specified theme. They are returned as an associative array in the form:
<pre>
array(textsmiley=><img-tag>,
      \":-)\"=>\"<img src='modules/Smileys/themes/default/happy.png'>; // for instance
      );
</pre>
<pre>
function GetSomeSmileys(\$wantedsmileys=array( ':)', ':(', ':D', ';)' ), \$theme=\"default\");
</pre>
Returns an array containing the smileys specified in the array \$wantedsmileys, using in the specified theme. They are returned as an associative array in the same form as GetSmileyList() (see above).
<pre>
function GetPopupExampleLink(\$linkcontent, \$theme=\"default\");
</pre>
Return the html-code for a clickable link containing \$linkcontent, which opens a samall popupwindow containing all smileys from \$theme. If no \$linkcontent is given a link containing \"Show Smileys\" is displayed.
";
$lang["changelog"]="
<pre>
version 0.2.0 
 - chanched to JavaScript insert
 - added different text smiley replacment algorithms. Adjustable in the admin panel. 
    * plain: same as in 0.1.3
    * spaced: replace any smiley text if surrounded with spaces
    * whitespaced: replace any smiley text if surrounded with whitespaces (space, newline, tab, etc.) This is a performance killer!
 - added a skype theme
 - added preferences for 'some smiles' to the admin panel.
 - fixed the sequence of some smileys in the definitions. Generally longer smileys are in front now. That avoid partially replacment of long smileys with short smileys <img> links.
 - fixed background transparency of some icons.
 - fixed prevent a page change when the smileys popup link is clicked
 - fixed the smiley modifier does not work with cmsms 1.2. Provide a modifier file to copy manually in the plugins directory 
version 0.1.3 - added GetSomeSmileys, added smarty modifier, added GetPopupExampleLink, fixed path issues when symlinking module (thanks DeeEye)
version 0.1.2 - bugfix release
version 0.1.1 - fixed default settings when called from other modules,
version 0.1.0 - first working version, including three smiley sets

</pre>
";
?>
fi_FI.php.txt
Hymiöiden kielitiedosto
(5.41 KiB) Tiedosto ladattu 1507 kertaa
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

Vieraskirja

Viesti Kirjoittaja eero »

Jotta vieraskirja toimisi niin poista kommenttimerkit kohdasta
Function nl2pnbr($text) {

Tiedosto on lib/misc.functions.php

Kielitiedosto:

Koodi: Valitse kaikki

<?php

/**
*------------------------------------------------------
* General begin
*------------------------------------------------------
*/
$lang['module_friendlyname'] = 'Vieraskirja';
$lang['module_example_stylesheet'] = 'Vieraskirja (oletus tyyli)';
$lang['module_example_stylesheet_intro'] = 'Oletus / esimerkki tyyli vieraskirja moduulia varten.
Moduli kirjoittaa taman päälle päivityksen yhteydessa ja se tullaan poistamaan modulin poiston yhteydessä.
Tee kopio jos haluat muuttaa
';
$lang['captcha'] = 'Captcha';
$lang['captcha_title'] = 'Syötä kuvassa näkyvä teksti';
$lang['captcha_failure_message'] = 'Virhe captcha tekstissä';
$lang['timespan'] = 'Minimi aikaväli merkintöjen välillä (flood esto)';
$lang['err_invalid_mode'] = "Virhe: Määrittelit virheellisen parametrin moodin. Oikea moodi on: %s.";
$lang['err_no_entry_id'] = "Virhe: id parametri puuttuu. Jos moodina on entry pitää id-parametri olla määritelty.";
$lang['err_entry_not_found'] = "Virhe: vieraskirjaa jonka id on %s ei löydy";
$lang['error_template_filenotfound'] = "Virhe: template-tiedostoa %s ei löydy!";

/**
*------------------------------------------------------
* General end
*------------------------------------------------------
*/

/**
*------------------------------------------------------
* Guestbook entry begin
*------------------------------------------------------
*/
$lang['id'] = 'Id';
$lang['date']     = 'Päivä';
$lang['sender'] = 'Lähettäjä';
$lang['email'] = 'E-mail';
$lang['country'] = 'Maa';
$lang['location'] = 'Sijainti';
$lang['homepage'] = 'Kotisivu';
$lang['message'] = 'Viestit';
$lang['posted'] = 'Kirjoitettu';
$lang['ip_addr']  = 'IP-osoite';
$lang['alength'] = 'Merkkejä jäljellä';
$lang['active'] = 'Aktiivinen';

/**
*------------------------------------------------------
* Guestbook entry end
*------------------------------------------------------
*/

/**
*------------------------------------------------------
* Admin related begin
*------------------------------------------------------
*/

$lang['access_denied'] = 'Pääsy kielletty';
$lang['restore_to_defaults'] = 'Palauta oletukset';
$lang['restore_to_defaults_warning'] = 'Tämä toiminto palauttaa templaten modulin oletukseksi. Kaikki muutokset häviävät. Oletko varma?
';
$lang['addgait'] = 'Lisää vieraskirja merkintä';
$lang['postdate'] = 'Päivämäärä';
$lang['ativi'] = 'Aktivoi';
$lang['deakti'] = 'Passivoi';
$lang['title_mod_admin'] = 'Hallitse vieraskirjan merkintöjä';
$lang['title_mod_template'] = 'Muokkaa syöttö pohjaa';
$lang['title_mod_settings'] = 'Vieraskirjan asetukset';

// end admin navigation
$lang['templatecontent'] = 'Pohjan sisältö';


$lang['admin_template_modified_logmessage'] = 'Muokkaa vieraskirjan pohjaa';
$lang['admin_template_restored_logmessage'] = 'Vieraskirjan pohja palautettu oletusarvoonsa';
$lang['admin_entry_added_logmessage'] = 'Vieraskirjaan lisätty merkintä';
$lang['admin_entry_modified_logmessage'] = 'Vieraskirjan merkintää muokattu';
$lang['admin_entry_deleted_logmessage'] = 'Vieraskirjan merkintä poistettu';
$lang['admin_entry_activated_logmessage'] = 'Vieraskirjan merkintä aktivoitu';
$lang['admin_entry_deactivated_logmessage'] = 'Vieraskirjan merkintä passivoitu';

$lang['admin_entry_message_nosender'] = 'Ole hyvä ja täytä lähettäjän nimi';
$lang['wrong_date_format'] = 'Date format should have the format: YYYY-MM-DD HH:MM:SS';
$lang['fieldnames'] = 'Kenttien nimet';

$lang['captcha_module_installed'] = 'Captcha moduli on asennettu';
$lang['captcha_module_not_installed'] = 'Captcha modulia ei ole asennettu';

$lang['smileys_module_installed'] = 'Hymiö moduli on asennettu';
$lang['smileys_module_not_installed'] = 'Hymiö modulia ei ole asennettu';

$lang['admin_wysiwyg_title'] = 'käytä WYSIWYG vieraskirjan sivulla kun lisätään viesti';
$lang['searchsmileys_title'] = 'käytä hymiöitä hakutuloksissa';
$lang['save_settings'] = 'Tallenna asetukset';
$lang['badwords_title'] = 'Sensuroidut sanat';
$lang['badwords_replacement_title'] = 'Korvaa sensuroidut sanat merkeillä';
$lang['admin_entries_per_page_title'] = 'Viestejä sivulla (hallinta)';

/**
*------------------------------------------------------
*Admin related end
*------------------------------------------------------
*/

/**
*------------------------------------------------------
*Contenttype related begin
*------------------------------------------------------
*/
$lang['nummer'] = 'Numero';
$lang['postchar'] = 'Viestin maksimi pituus';
$lang['emailnot'] = 'Email ilmoitus';
$lang['sortasc'] = 'Järjestä laskevaan järjestykseen';
$lang['smile'] = 'Hymiö';
$lang['shmenow'] = 'Näytä viesti välittömästi';
$lang['datefora'] = 'Päiväyksen muoto';
$lang['lang'] = 'Lokalisaatio (esim. fi_FI)';
$lang['showaddform'] = 'Näytä lisäys kaavake viestien alapuolella';
/**
*------------------------------------------------------
*Contenttype related end
*------------------------------------------------------
*/

/**
*------------------------------------------------------
*Visitor related begin
*------------------------------------------------------
*/
$lang['fabsend'] = 'Ole hyvä ja täytä nimi';
$lang['fmessag'] = 'Ole hyvä ja täytä viesti';
$lang['femail'] = 'Ole hyvä ja täytä email osoite';
$lang['tolong'] = 'Viestin maksimi pituus ylitetty, ole hyvä ja lyhennä viestiäsi';
$lang['toosoon'] = 'Kirjoitit viestin %s sekuntia sitten. Viestien kirjoituksen väli tulee olla %s sekuntia. Ole hyvä ja odota hetki ja yritä uudelleen.';
$lang['fui'] = 'Viestisi on jo lähetetty';
$lang['badwords_message'] = "Seuraavat sanat ovat sensuroitu: %s";
$lang['showitnow'] = 'Viestisi on lisätty';
$lang['showitlater'] = 'Kiitos, viestisi tulee näkyville ylläpitäjän hyväksyttyä sen';
$lang['msg_back'] = 'takaisin';

$lang['inam'] = 'Nimi';
$lang['imessag'] = 'Viestisi';
$lang['smessage'] = 'Viesti';
$lang['sdate'] = 'Päiväys';
$lang['ginsert'] = 'Lähetä';
$lang['cancel'] = "Peruuta";
$lang['uhr'] = ' ';
$lang['e_mailnotibetr'] = 'Uusi merkintä vieraskirjassa';
$lang['e_mailnotimessage'] = 'Vieraskirjassasi on uusi merkintä';

$lang['neuein'] = 'Uusi viesti';
$lang['einerseit'] = 'Yksi sivu';
$lang['eintragauf'] = 'Viestiä';
$lang['seitpage'] = 'Sivulla';
$lang['backzu'] = '<< Edellinen';
$lang['nextwei'] = 'Seuraava >>';

// Pagination
$lang['first_text'] = "ι‹";
$lang['prev_text'] = "< edellinen";
$lang['next_text'] = "seuraava >";
$lang['last_text'] = "›ι";
$lang['pagination_of'] = "viestejä yhteensä";

$lang['title_table_smileys'] = 'Hymiöt';
/**
*------------------------------------------------------
*Visitor related end
*------------------------------------------------------
*/

/**
*------------------------------------------------------
*Confirmmessage begin
*------------------------------------------------------
*/
$lang['ativimes'] = 'Aktivoi tämä viesti';
$lang['deaktimes'] = 'Passivoi tämä viesti';
/**
*------------------------------------------------------
*Confirmmessage end
*------------------------------------------------------
*/

/**
*------------------------------------------------------
*Events begin
*------------------------------------------------------
*/
$lang['event_info_GuestbookEntryPosted']='Event triggered when a new Guestbook entry is added';
$lang['event_help_GuestbookEntryPosted']='<p>Event triggered when a new Guestbook entry is added.</p>
  	 <h4>Parameters</h4>
  	 <ul>
		<li><em>entry_id</em> - The entry id (int)</li>
		<li><em>entry_sender</em> - The name the sender entered (string)</li>
		<li><em>entry_email</em> - The E-mail address entered (string)</li>
		<li><em>entry_homepage</em> - The homepage entered (string)</li>
		<li><em>entry_message</em> - The message entered (string)</li>
		<li><em>entry_country</em> - The country entered (string)</li>
		<li><em>entry_location</em> - The location entered (string)</li>
		<li><em>entry_date</em> - The post date (string)</li>
		<li><em>entry_approved</em> - Whether the entry is activated at once, 1 if it is, -1 if not (int)</li>
  	 </ul>
';
$lang['event_info_GuestbookEntryDeleted'] = 'Merkitty viesti vieraskirjassa on poistettu';
$lang['event_help_GuestbookEntryDeleted'] = 'Merkitty viesti vieraskirjassa on poistettu
  	 <h4>Parameters</h4>
  	 <ul>
	  	 <li><em>id</em> - Viestin id (int)</li>
  	 </ul>
';
$lang['event_info_GuestbookEntryActivated'] = 'Merkitty viesti vieraskirjassa on aktivoitu';
$lang['event_help_GuestbookEntryActivated'] = 'Merkitty viesti vieraskirjassa on aktivoitu
  	 <h4>Parameters</h4>
  	 <ul>
  	 <li><em>entry_id</em> - The entry id (int)</li>
  	 </ul>
';
$lang['event_info_GuestbookEntryDeactivated'] = 'Merkitty viesti vieraskirjassa on merkitty ei-aktiiviseksi';
$lang['event_help_GuestbookEntryDeactivated'] = 'Merkitty viesti vieraskirjassa on merkitty ei-aktiiviseksi
  	 <h4>Parametrit</h4>
  	 <ul>
  	 <li><em>id</em> - Viestin id (int)</li>
  	 </ul>
';

/**
*------------------------------------------------------
*Events end
*------------------------------------------------------
*/


/**
*------------------------------------------------------
*Install & Uninstall & Help & Changelog begin
*------------------------------------------------------
*/
$lang['inposmes'] = 'Make sure to set the "Modify Guestbook Entries" permission for users who will be administering Guestbook items and "Modify Guestbook Template" permission for users who should be able to modify the guestbook template.<br />Attach the Stylesheet named "%s" to the template used to style the guestbook.';
$lang['moddescription'] = 'Hallitse vieraskirjan merkintöjä ja pohjia';
$lang['uninstall_pre_message'] = '%s merkintää poistetaan. Toimintoa ei voi perua!';
$lang['uninstall_pre_message_single'] = '1 merkintä poistetaan. Toimintaa ei voi perua!';
$lang['postuninstall'] = 'Vieraskirja poistettu';




$lang['help'] = '<h3>What does it do?</h3>
<p>
    The guestbook module is a content module and a CMSMS tagmodule.
    It gives visitors the ability to leave a message, for example about how they like the website.
</p>

<h3>Security</h3>
<p>
    The user must belong to a group with the 'Modify Guestbook Entries' permission in order to add, edit, or delete guestbook entries.<br />
    In order to be able to modify the guestbook entry template, 'Modify Guestbook Template' permission is required.
</p>

<h3>How do I use it?</h3>
<p>
    The easiest way is to create a new page and change the "Content Type" to Guestbook. This way you will be able to set the guestbook options as page properties.<br />
    If you want to add the module after some other content you can insert it using the cms_module tag. This will insert the guestbook into your template/page anywhere you wish.<br /> 
    The code would look something like: <code>{cms_module module="Guestbook" number="5" shownow="1" smiley="1"}</code>
</p>

<h3>What Parameters Exist?</h3>
<ul>
<li><em>(optional)</em> textleng="1000" - Sets how many characters can be entered. The default is 1000 characters. This parameter affects both server-side and client-side validation.</li>
<li><em>(optional)</em> number="10" - Maximum number of entries on a page.  Leaving it empty will show 10 entries</li>
<li><em>(optional)</em> mailnoti="youremail@example.com" - E-mail address to send a notification to if a message was submitted</li>
<li><em>(optional)</em> sortasc="1" - Sort guestbook items in ascending date order (new posts will go to the end).</li>
<li><em>(optional)</em> dateformat="dateformat" - Change the way the Date will display, it takes the MySQL format codes</li>
<li><em>(optional)</em> shownow="1" - Shows messages right after submission, without approval by an admin.</li>
<li><em>(optional)</em> smiley="1" - Translate text-based smileys to image smileys and shows the smiley table on the entry submit form.</li>
<li><em>(optional)</em> showaddform="1" - Shows the insert form on the first page.  Replaces the "New Guestbook Entry" button.</li>
<li><em>(optional)</em> lang="xx_XX" - Custom locale. For example lang="de_DE".</li>
</ul>

<h3>What Design potentials are there?</h3>
<p>
    The database template that is used to show a guestbook entry can be edited from the admin panel.
</p>
<p>
    An example stylesheet for the default database template is installed with the module.<br />
    The default stylesheet is deleted when the module is uninstalled and may be overwitten by an upgrade, so you might want to use a copy if you modify it.<br />
    Attach the stylesheet to the page template used.
</p>
<p>
    These variables are assigned in the guestbook entry template:
    <pre>
    date_title
    date
    time
    time_hour_title
    
    sender_title
    sender
    
    country
    
    e_mail_title
    e_mail
    
    homepage_title
    homepage
    
    message_title
    message
    </pre>
</p>
<p>
    In the module directory there's a directory called templates where all other templates are stored. You can modify these to fit your needs:
</p>

<strong>Administration</strong>
<p>
admin_entries_top.tpl -> The paganition and row names for the entry list<br/>
admin_entries_entry.tpl -> The list of guestbook entries<br/>
admin_entries_bottom.tpl -> The bottom of the guestbook entries admin form<br />
admin_entry.tpl-> The form used to insert or edit guestbook entries<br/>
admin_template_edit.tpl -> Used for editing the guestbook entry database template
</p>

<strong>Front End</strong>
<p>
newguest.tpl -> Button to go to the entry form<br/>
insertform.tpl -> The guestbook entry form<br />
smiley.tpl -> The smiley table<br/>
prevnext.tpl -> The buttons to go to the previous and next pages (will show only if entries do not fit on one page)<br/>
success_message.tpl-> The message that will show in place of the insert form after successful post submission.
</p>

<p>
    Inside the template directory there's a directory called db. This stores the guestbook entry template that is copied to the database during module installation and when the template is restored to default from the admin panel.<br />
    By default the file guestbook_entry-default.tpl is used, but if a (custom) file guestbook_entry.tpl is present, this file will be used instead.
</p>
<h3>Importing gastbuch messages</h3>
<p>
    If you have one of the beta "gastbuch" module versions installed and want to import your guestbook messages into the Guestbook module, a script is available to do so.
    Simply point your browser to the file gastbuch-import.php in the module folder (for example: http://www.example.com/cms/modules/Guestbook/gastbuch-import.php) before uninstalling the old gastbuch module.
</p>';
$lang['changelog'] = '<ul>
    <li>
	<p><b>Version 1.0</b></p>
	<ul>
	    <li>Renamed module (from gastbuch) to Guestbook to represent the projects natural language and follow CMS Made Simple module naming conventions.</li>
	    <li>Enabled handling (deleting, activating and deactivating) of multiple guestbook entries from the admin panel.</li>
	    <li>There are now seperate 'Modify Guestbook Entries' and 'Modify Guestbook Template' permissions.</li>
	    <li>A default/example stylesheet is installed (and uninstalled) with the module</li>
	    <li>The database template can be restored to default</li>
	    <li>Changed to tabbed navigation</li>
	    <li>Cleanup/rewrite of the guestbook(item) database template and the variables used in it.</li>
	    <li>Translated many variable names and code comments to english.
	    <li>Moved some admin and log messages to the language file.</li>
	    <li>Re-formatted source code for better readability.</li>
	</ul>
    </li>
    <li>
	<p><b>Version 0.9</b></p>
	<ul>
	    <li>The guestbook frontend now uses a database template (in stead of the showmessage*.tpl files) that can be modified from the admin panel</li>
	    <li>The dateformat parameter is now called dateformat (was dateform). Note: this means you will have to recreate any guestbook content pages or manually edit the tables cms_content and cms_content_props</li>
	    <li>New french translation and modified translations for other languages from the translation center</li>
	</ul>
    </li>
    <li>
	<p><b>Version 0.8</b></p>
	Fixed:
	<ul>
	    <li>not working smileys on gastbuch Content page in version 0.7</li>
	</ul>
	Cleanup:
	<ul>
	    <li>mainly removal of unneccary references to the global $gCms</li>
	    <li>renamed email textfield to e_mail (it was called betreff, probably an old subject field)</li>
	</ul>
	Improvements:
	<ul>
	    <li>newly submitted newsentry is shown in the list</li>
	    <li>brackets around submitter country are no longer shown if a country wasn't entered</li>
	    <li>translated the lang file to dutch (except for help and changelog)</li>
	    <li>the gastbuch module now makes use of translations entered in the translation center translations.cmsmadesimple.org</li>
	</ul>
	Changed:
	<ul>
	    <li>The template variable name for the country in showmessage.tpl is now called $country (was $countryshow in previous versions)</li>
	</ul>
    </li>
    <li>
	<p><b>Version 0.7</b></p>
	<ul>
	    <li>Added lang attribute to support multiple locales</li>
	    <li>Show insert form on the first page</li>
	    <li>Fixed bug with textlength javascript not working</li>
	    <li>Fixed a few minor bugs</li>
	</ul>
    <li>
	<p><b>Version 0.6</b></p>
	<ul>
	    <li>Redesigned source code for better readability</li>
	    <li>Added lang attribute to support multiple locales</li>
	    <li>Added showaddform parameter</li>
	    <li>Fixed bug with textlength javascript not working in case of "Content" content type</li>
	    <li>Merged vorzu and backzu templates into one</li>
	    <li>Added template success_message.tpl</li>
	    <li>Fixed a few minor bugs caused by mismatches in lang variable names</li>
	</ul>
    </li>
    <li>
	<p><b>Version 0.5</b></p>
	<p>
	    The guestbook was modified with better design and functions, for example: 
	    Template based Content, Spam protection for inserted e-mails, etc.
	</p>
    </li>
    <li>
	<p><b>Version 0.4</b></p>
	<p>The gastbuch module is now a new module</p>
    </li>
</ul>
';
$lang['utma'] = '156861353.1775561005.1147781292.1154025475.1154032229.17';
$lang['utmz'] = '156861353.1150026931.12.6.utmccn=(referral)|utmcsr=tsw.backspace.fi|utmcct=/svn2/index.php|utmcmd=referral';
?>
fi_FI.php.txt
Kielitiedosto
(19.14 KiB) Tiedosto ladattu 1495 kertaa
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

True type text

Viesti Kirjoittaja eero »

Jos paikallisella koneella ei ole oikeaa fonttia, niin tällä saat luotua tekstistä kuvan.

Toimii siten, että tuot fontin koneelle, muokkaat tekstiä ja tallennat.
TruetypeText-2.1.1.xml.txt
True type Text
(244.52 KiB) Tiedosto ladattu 1562 kertaa
TEE SEURAAVA KORJAUS JOTTA TOIMII MUISSAKIN KUIN IE:ssä:

1. Tioedostosta class.style.php muuta seuraavat:

etsi: $filepath
muuta: $urlpath

2. rivillä 219 muuta cms_join_path seuraavaksi:
$urlpath = 'cache/'.$this->getCacheName($text).'.'.$this->format;

3. Seuraavalta riviltä muuta:
$fileabsolutepath = cms_join_path(dirname(__FILE__),'cache', $this->getCacheName($text).'.'.$this->format);

4. muuta rivit 230 - 232 seuraaviksi:

$urlpath = '../modules/TruetypeText/'.$urlpath;
else
$urlpath = './modules/TruetypeText/'.$urlpath;
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

Muutamia hyviä vinkkejä

Viesti Kirjoittaja eero »

LOGON MUUTTAMINEN:

Etsi tyylitiedostosta seuraava kohta:

Koodi: Valitse kaikki

div#header {
     height: 80px; /* adjust according your image size */
     background: #385C72;           
  }

  div#header h1 a {
  /* you can set your own image here */
     background: #385C72 url(images/cms/logo1.gif) no-repeat 0 12px; 
     display: block; 
     height: 80px;         /* adjust according your image size */
     text-indent: -999em;  /* this hides the text */
     text-decoration:none; /* old firefox would have shown  underline*/
  }                        /*  for the link, this explicitly hides it*/
Voit määrittää kuvan korkeuden ja leveyden. height ja width

Tee kahteen paikkaan


.HTACCESS-TIEDOSTO KÄYTTÖÖN

Muuta Apachen asetuksia ja ota #LoadModule rewrite_module modules/mod_rewrite.so käyttöön


MUUTA SIVUSTON LEVEYTTÄ

Muuta tyylitiedostosta kohtaa div#pagewrapper

Koodi: Valitse kaikki

 /* center wrapper, min max width */
  div#pagewrapper {
     border: 1px solid black;
     margin: 0 auto;     /* this centers wrapper */
     max-width: 80em; /* IE wont understand these, so we will use javascript magick */
     min-width: 60em;
     background-color: #fff;;
     color: black;
  }
ja koska IE ei ymmärrä kaikkea sivupohjassa on määritys:

Koodi: Valitse kaikki

 </script>
  <!--[if lte IE 6]>
  <style type="text/css">
  #pagewrapper {width:expression(P7_MinMaxW(720,950));}
  #container {height: 1%;}
  </style>
  <![endif]-->
  {/literal}

YKSINKERTAINEN VALIKKO ESIM. KUVALLA

Koodi: Valitse kaikki

  {if $count > 0}
    {foreach from=$nodelist item=node}
      {if $node->current == true or $node->parent == true}
        <a href="{$node->url}"><span>{cms_module module="TruetypeText" style="OmaTyyli" text=$node->menutext}</span></a>
      {/if}
    {/foreach}
  {/if}

MENUMANAGERIN $NODE-MÄÄRITYKSET

■ $node->id -- Content ID
■ $node->url -- URL of the Content
■ $node->accesskey -- Access Key, if defined
■ $node->tabindex -- Tab Index, if defined
■ $node->titleattribute -- Description or Title Attribute (title), if defined
■ $node->hierarchy -- Hierarchy position, (e.g. 1.3.3)
■ $node->depth -- Depth (level) of this node in the current menu
■ $node->prevdepth -- Depth (level) of the node that was right before this one
■ $node->haschildren -- Returns true if this node has child nodes to be displayed
■ $node->menutext -- Menu Text
■ $node->alias -- Page alias
■ $node->target -- Target for the link. Will be empty if content doesn't set it.
■ $node->index -- Count of this node in the whole menu
■ $node->parent -- True if this node is a parent of the currently selected page

LISÄMÄÄRITYKSIÄ

■(optional) includeprefix="" - Include only those items who's page alias matches one of the specified (comma separated) prefixes. This parameter cannot be combined with the excludeprefix parameter.
■(optional) excludeprefix="" - Exclude all items (and their children) who's page alias matches one of the specified (comma separated) prefixes. This parameter must not be used in conjunction with the includeprefix parameter.
■(optional) template="bulletmenu.tpl" - The template to use for displaying the menu. Templates will come from the database templates unless the template name ends with .tpl, in which case it will come from a file in the MenuManager templates directory (defaults to simple_navigation.tpl)
■(optional) start_page="home" - Starts the menu displaying at the given start_page and showing that element and it's children only. Takes a page alias.
■(optional) start_element="1.2" - Starts the menu displaying at the given start_element and showing that element and it's children only. Takes a hierarchy position (e.g. 5.1.2).
■(optional) start_level="2" - This option will have the menu only display items starting a the given level. An easy example would be if you had one menu on the page with number_of_levels='1'. Then as a second menu, you have start_level='2'. Now, your second menu will show items based on what is selected in the first menu.
■(optional) show_root_siblings="1" - This option only becomes useful if start_element or start_page are used. It basically will display the siblings along side of the selected start_page/element.
■(optional) show_all="0" - This option will cause the menu to show all nodes even if they are set to not show in the menu. It will still not display inactive pages however.
■(optional) number_of_levels="1" - This setting will only allow the menu to only display a certain number of levels deep.
■(optional) items="contact,home" - Use this item to select a list of pages that this menu should display. The value should be a list of page aliases separated with commas.
■(optional) collapse="1" - Turn on (set to 1) to have the menu hide items not related to the current selected page.
■(optional) lang="en_US" - Parameter is used to specify what language to use for display on the frontend. Not all modules support or need this.
eero
Site Admin
Viestit: 329
Liittynyt: 07 Marras 2007 20:17

Lisää vinkkejä

Viesti Kirjoittaja eero »

JAVASCRIPT TOIMIMAAN

{literal}
<script language="JavaScript" type="text/javascript">
// koodi tähän tai linkki js-tiedostoon
//<script src="uploads/sivupohja/koko.js" type="text/javascript">
</script>

<style type="text/css">
/* css tähän */
</style>
{/literal}


MONTA MUOKATTAVAA SISÄLTÖLOHKOA SAMALLE SIVULLE

{content block="Textblock-2"} //voi olla minkä niminen tahansa

Ja näytetään vain jos on tekstiä:

{content block='mysidebar' assign='mysidebar'}{if !empty($mysidebar)}{$mysidebar}{/if}


LISÄÄ OMAA PHP-SCRIPTIÄ SIVUSTOON

Tee uusi User Defined Tag.

Muokkaa config.php ja muuta $config['use_smarty_php_tags'] false:sta true:ksi ja putsaa cache

Nyt voidaan laittaa sivulle:
{php}
your_source
{/php}

Toinen tapa on laittaa

Luodaan User Defined Tag nimellä OmaPHP
Laitetaan koodiksi:
include($params['filename']);
Lisätään sivulle tagi {OmaPHP filename='path/to/your/file.php'}.
(TÄssäkin tapauksessa 2. kohta on tehtävä


SALASANAN NOLLAUS

Aja MySQL komento UPDATE `cms_users` SET PASSWORD = md5('admin') WHERE user_id =1;
tai päivitä salasana komennolla UPDATE `cms_users` SET password = '21232f297a57a5a743894a0e4a801fc3' WHERE user_id = 1;


Frontend Users And Custom Content

Here's a quick introduction to Frontend Users and Custom Content.
Assuming you have no properties in feusers defined
■Create a property called "Full_Name", prompt: "Full Name", Type Text, Length 50, Maxlength 50
■Create a property called "email", prompt "Email Address", type Email, Length 80, maxlength 80
■Create a group called "Users", and add the give the "full_name" property a sort order of 1, and select required. give the email property a sort order of 2, and mark it as required also.
■Create a new user "user1", full name "John Doe", email "somebody@somewhere.com", and make sure you check that he is in the Users group created above. Make sure you give the user a password.
And now for the content:
In a new page add this:

Koodi: Valitse kaikki

 {cms_module module=FrontEndUsers}
  {cms_module module=CustomContent}

  {if $customcontent_loggedin > 0}
    You are authorized to see this text
  {else}
    You are not authorized yet, you need to log in
  {/if}
HUOMAA!!!!!!!!!!!!!!!!!

You can place the code above also in your html-template. (one with the code and one without) But don't forget to check your printtemplate (Module Printing)! Probably you also have to add the code in there! Otherwise non-authorized visitors can see the secured content anyway, by just printing the page!
Vastaa Viestiin