PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : تغییر یک قالب



saso
02-05-2011, 04:19 PM
با سلام به شما عزیزان که واقعا زحمت همه ما رو می کشید
من یک قالب رایگان دارم که کد
INDEX
ان به صورت زیر است

<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$siteName = $this->params->get('siteName');
class tjC {
function isFrontPage(){
return (JRequest::getCmd('option')=='com_content' && !JRequest::getInt('id'));
}
}
$TJ = new tjC($this);
?>
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
&lt;!--
Design by ThemesJoomla.com
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
Released for free under a Creative Commons Attribution 2.5 License
--&gt;
&lt;html xmlns=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> xml:lang=&quot;&lt;?php echo $this-&gt;language; ?&gt;&quot; lang=&quot;&lt;?php echo $this-&gt;language; ?&gt;&quot; &gt;
&lt;head&gt;
&lt;jdoc:include type=&quot;head&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo $this-&gt;baseurl ?&gt;/templates/&lt;?php echo $this-&gt;template ?&gt;/css/template_css.css&quot; type=&quot;text/css&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;top&quot;&gt;
&lt;div id=&quot;top-cover&quot;&gt;
&lt;div id=&quot;logo&quot;&gt;&lt;a href=&quot;&lt;?php echo $this-&gt;baseurl ?&gt;&quot; title=&quot;&lt;?php echo $siteName; ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php echo $this-&gt;baseurl ?&gt;/templates/&lt;?php echo $this-&gt;template ?&gt;/images/logo.png&quot; border=&quot;0&quot; alt=&quot;&lt;?php echo $siteName; ?&gt;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div id=&quot;topmenu&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;mymainmenu&quot; style=&quot;xhtmlxtd&quot; /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div id=&quot;contentarea&quot;&gt;
&lt;?php if(!$TJ-&gt;isFrontPage()) { ?&gt;
&lt;div id=&quot;content&quot;&gt;
&lt;jdoc:include type=&quot;message&quot; /&gt;
&lt;jdoc:include type=&quot;component&quot; style=&quot;xhtml&quot;/&gt;
&lt;/div&gt;
&lt;div id=&quot;right&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;myright&quot; style=&quot;xhtml&quot; /&gt;
&lt;/div&gt;
&lt;?php } else { ?&gt;
&lt;div class=&quot;spotlight&quot;&gt;&lt;img src=&quot;&lt;?php echo $this-&gt;baseurl ?&gt;/templates/&lt;?php echo $this-&gt;template ?&gt;/images/spotlight.jpg&quot; border=&quot;0&quot; alt=&quot; &quot; /&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;myspotlight&quot; style=&quot;xhtmlxtd&quot; /&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;/div&gt;
&lt;div id=&quot;bottom&quot;&gt;
&lt;div id=&quot;user1&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;myuser1&quot; style=&quot;xhtml&quot; /&gt;
&lt;/div&gt;
&lt;div id=&quot;user2&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;myuser2&quot; style=&quot;xhtml&quot; /&gt;
&lt;/div&gt;
&lt;div id=&quot;user3&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;myuser3&quot; style=&quot;xhtml&quot; /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;footer&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;myfooter&quot; style=&quot;xhtml&quot; /&gt;
&lt;p&gt;Copyright &amp;copy; &lt;?php echo $siteName; ?&gt;. All Rights Reserved. &lt;?php echo JText::_(&#039;Powered by&#039;) ?&gt; &lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>!&lt;/a&gt;. &lt;?php echo JText::_(&#039;Valid&#039;) ?&gt; &lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> &lt;?php echo JText::_(&#039;and&#039;) ?&gt; &lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
&lt;!-- You CAN NOT remove (or unreadable) those links without permission. Removing the link and template sponsor Please visit themesjoomla.com or contact with e-mail (webmaster@themesjoomla.com) If you don&#039;t want to link back to themesjoomla.com, you can always pay a link removal donation. This will allow you to use the template link free on one domain name. Also, kindly send me the site&#039;s url so I can include it on my list of verified users . Please read license.txt --&gt;
&lt;br /&gt;
&lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> rel=&quot;follow&quot;&gt;Joomla Themes&lt;/a&gt; by &lt;a rel=&quot;follow&quot; href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
&lt;/div&gt;
&lt;/div&gt;

&lt;jdoc:include type=&quot;modules&quot; name=&quot;debug&quot; /&gt;
&lt;/body&gt;
&lt;/html&gt;



و کد
CSS

body {
margin: 0px;
padding:0px;
background: #000000;
}
body, td, th {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #FFFFFF;
line-height: 160%;
}
h1, h4, h5, h6 {
font-size: 12px;
color: #fff;
font-weight: normal;
}
h4 {
font-size: 11px;
font-weight: bold;
margin: 0;
padding: 0;
color: #FF9900;
margin-left: 2px;
}
h2 {
color: #fff;
font-weight: normal;
font-size: 30px;
text-transform: uppercase;
margin:0;
padding:0;
font-family: Arial, Helvetica, sans-serif;
line-height: 32px;
}
h3 {
color: #990000;
font-weight: normal;
font-size: 12px;
text-transform: none;
margin-bottom: 10px;
padding-top: 0;
margin-top: 0;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a {
color: #1F6BB2;
}
a:hover {
color: #FFF;
}
.container {
width: 950px;
margin: 0 auto;
}
#contentarea {
width: 950px;
clear: left;
margin-top: 0;
float: left;
padding-bottom: 30px;
background:#151515;
}
#top {
width: 100%;
height: 90px;
}
#top-cover {
width: 950px;
margin: 0 auto;
}
#logo {
width: 200px;
float: left;
margin-top: 15px;
margin-left: 5px;
}
#header {
width: 950px;
float: left;
display: inline-block;
margin-bottom: 20px;
}
#content {
width: 630px;
float: left;
margin-top: 20px;
margin-left: 20px;
}
#content2 {
width: 850px;
float: left;
margin-top: 20px;
margin-left: 20px;
}
#right {
width: 255px;
float: right;
padding-bottom: 70px;
margin-top: 20px;
color: #666;
margin-right:15px;
}
#right .moduletable {
margin-bottom: 20px;
}
#bottom {
width: 950px;
clear: left;
float: left;
color: #666;
background:#151515;
padding:0 0 20px;
}
#right h3, #bottom h3 {
margin: 0px;
font-weight: bold;
color: #1F6BB2;
font-size: 18px;
font-family:&quot;Trebuchet MS&quot;, Tahoma, Arial, Helvetica, Sans-serif;
border-bottom:5px solid #242424;
padding:0 0 5px 0;
}
#user1 {
width: 285px;
float: left;
margin-left: 15px;
}
#user1 .moduletable {
margin-bottom: 5px;
padding-bottom: 5px;
}
#user1 p {
margin: 0;
padding: 0;
margin-left: 2px;
}
#user1 a {
color: #FF9900;
}
#user2 {
width: 285px;
float: left;
margin-left: 50px;
}
#user2 li {
margin: 0;
padding: 0;
list-style: none;
list-style-image: none;
text-transform: none;
line-height: 18px;
}
#user2 a {
color: #666;
margin-left: 2px;
font-size: 11px;
}
#user3 {
width: 285px;
float: right;
margin-right: 10px;
}
#footer {
clear: left;
float: left;
width: 950px;
text-align: left;
font-size: 9px;
padding: 10px 0 30px 10px;
color: #666;
}
#footer a {
color: #666;
}
#footer .moduletable {
width: 880px;
margin: 0 auto;
margin-top: 3px;
}
h2.contentheading, h2.componentheading {
margin-bottom: 20px;
margin-top: 10px;
}
.clear {
clear: both;
}
/* COMMON TAGS */
.modifydate {
color: #C0C0C0;
}
.author {
color: #C0C0C0;
}
.createdate {
color: #C0C0C0;
}
.contenttoc {
margin: 5px;
}
ul {
margin: 2px;
padding: 6px;
padding-left: 15px;
}
li {
padding-left: 1px;
line-height: 150%;
}
ul.arrow1 li, ul.arrow2 li {
padding-left: 5px;
padding-bottom: 2px;
padding-top: 2px;
}
.buttons {
float:right;
width:85px;
}
.buttons .buttonheading {
float:left;
}
.buttons img {
border: 0;
}
fieldset {
border: none;
}
textarea, input {
border: solid 1px #ccc;
color: #666;
}
.button {
background: none;
border: solid 1px #ccc;
color: #990000;
}
/* Poll Module Styles */

.poll-radio {
padding:0;
float:left;
clear:left;
text-align:left;
}
.poll-option {
float:left;
padding-bottom:6px;
padding-top: 3px;
width:85%;
margin-left: 2px;
}
.poll h3 {
border:none;
}
.author, .createdate, .modifydate, .buttons {
display:none
}
#topmenu {
float: right;
width:650px;
height: 61px;
margin-top:30px;
margin-right: 10px;
}
#topmenu ul {
list-style: none;
margin: 0;
padding: 0;
margin-left: -11px;
float: right;
}
#topmenu li {
list-style: none;
float: left;
font-weight: normal;
font-size: 14px;
padding-right: 20px;
padding-left: 20px;
padding-top: 2px;
line-height: 26px;
text-transform: uppercase;
font-family: Candara, Arial, Helvetica, sans-serif;
}
#topmenu li a {
display: block;
padding: 0;
font-weight: normal;
text-decoration: none;
color: #fff;
}
#topmenu li:hover, #topmenu li.hover {
position: static;
}
#topmenu li a:hover, #topmenu li.active a {
color: #1F6BB2;
background-position: center;
}
html&gt;body #topmenu li a {
width: auto;
}
.spotlight {
padding:15px 15px 0 15px;
}

است
من می خواهم یک قسمت my left به آن اضافه کنم
و وقتی روی یک منو و زیر منو کلیک می کنم همه منو ها رنگشان روشنتر شود و زیر منو بولد شود
و وقتی یک ثفحه که بدون مازول راست و چپ است کلا نشان داده شود نه فقط در سمت چپ لطفا مرا راهنمایی بفرمائید ممنون از زحماتتان
البته کد

templateDetails.xml
به صورت زیر است
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE install PUBLIC &quot;-//Joomla! 1.5//DTD template 1.0//EN&quot; &quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
&lt;install version=&quot;1.5&quot; type=&quot;template&quot;&gt;
&lt;name&gt;mybusiness&lt;/name&gt;
&lt;version&gt;1.0.0&lt;/version&gt;
&lt;creationDate&gt;01/01/09&lt;/creationDate&gt;
&lt;author&gt;themesjoomla.com&lt;/author&gt;
&lt;authorEmail&gt;webmaster@themesjoomla.com&lt;/authorEmail&gt;
&lt;authorUrl&gt;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
&lt;copyright&gt;&lt;/copyright&gt;
&lt;license&gt;Creative Commons Attribution 2.5 License.&lt;/license&gt;
&lt;description&gt;
&lt;![CDATA[&lt;h3&gt;License&lt;/h3&gt;

All the free CSS templates on this site are distributed under the &lt;b&gt;&lt;a href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> Creative Commons Attribution 2.5 License.&lt;/a&gt;&lt;/b&gt; This means that you are free:

&lt;ul&gt;
&lt;li&gt;to copy, distribute, display, and perform the work&lt;/li&gt;
&lt;li&gt;to make derivative works&lt;/li&gt;
&lt;li&gt;to make commercial use of the work&lt;/li&gt;
&lt;/ul&gt;
Under the following conditions:
&lt;ul&gt;
&lt;li&gt;You must attribute the work in the manner specified by the author or licensor. (In this case, a link back to my site)&lt;/li&gt;
&lt;li&gt;For any reuse or distribution, you must make clear to others the license terms of this work&lt;/li&gt;
&lt;li&gt;Any of these conditions can be waived if you get permission from the copyright holder&lt;/li&gt;
&lt;li&gt;You can not delete sponsorlinks if template have it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Removing the link and template sponsor&lt;/h3&gt;

If you don&#039;t want to link back to themesjoomla.com, you can always pay a link removal donation. This will allow you to use the template link free on one domain name. Also, kindly send me the site&#039;s url so I can include it on my list of verified users &lt;br /&gt;

Please contact to me with &lt;a href=&quot;mailto:webmaster@themesjoomla.com&quot;&gt;webmaster @themesjoomla.com&lt;/a&gt;]]&gt;
&lt;/description&gt;

&lt;files&gt;
&lt;filename&gt;license.txt&lt;/filename&gt;

&lt;filename&gt;index.php&lt;/filename&gt;
&lt;filename&gt;index.html&lt;/filename&gt;
&lt;filename&gt;template_thumbnail.png&lt;/filename&gt;
&lt;filename&gt;params.ini&lt;/filename&gt;
&lt;filename&gt;images/index.html&lt;/filename&gt;
&lt;filename&gt;images/logo.png&lt;/filename&gt;
&lt;filename&gt;images/spotlight.jpg&lt;/filename&gt;

&lt;filename&gt;css/index.html&lt;/filename&gt;
&lt;filename&gt;css/template_css.css&lt;/filename&gt;

&lt;filename&gt;html/com_content/archive/default_items.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/archive/default.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/article/default.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/category/blog_item.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/category/blog_links.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/category/blog.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/category/default_items.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/category/default.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/frontpage/default_item.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/frontpage/default.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/section/default.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/section/blog_item.php&lt;/filename&gt;
&lt;filename&gt;html/com_content/section/blog.php&lt;/filename&gt;
&lt;filename&gt;html/com_search/search/default_error.php&lt;/filename&gt;
&lt;filename&gt;html/com_search/search/default_form.php&lt;/filename&gt;
&lt;filename&gt;html/com_search/search/default_results.php&lt;/filename&gt;
&lt;filename&gt;html/com_search/search/default.php&lt;/filename&gt;
&lt;filename&gt;html/com_user/login/default_login.php&lt;/filename&gt;
&lt;filename&gt;html/com_user/login/default_logout.php&lt;/filename&gt;
&lt;filename&gt;html/mod_newsflash/_item.php&lt;/filename&gt;
&lt;filename&gt;html/mod_newsflash/horiz.php&lt;/filename&gt;
&lt;filename&gt;html/mod_poll/default.php&lt;/filename&gt;
&lt;/files&gt;

&lt;positions&gt;
&lt;position&gt;mymainmenu&lt;/position&gt;
&lt;position&gt;myright&lt;/position&gt;
&lt;position&gt;myspotlight&lt;/position&gt;
&lt;position&gt;myuser1&lt;/position&gt;
&lt;position&gt;myuser2&lt;/position&gt;
&lt;position&gt;myuser3&lt;/position&gt;
&lt;position&gt;myfooter&lt;/position&gt;
&lt;position&gt;debug&lt;/position&gt;
&lt;/positions&gt;
&lt;params&gt;
&lt;param name=&quot;siteName&quot; type=&quot;text&quot; default=&quot;Themes Joomla&quot; size=&quot;50&quot; label=&quot;Site Name&quot; description=&quot;Set Site Name&quot; /&gt;
&lt;/params&gt;

&lt;/install&gt;



*کد ها ادیت شد.
&gt; به در خواست sahama &lt;

sahama
02-05-2011, 04:25 PM
چقدر خوب می شد کد ها رو توی تگ کد می ذاشتید