ورود

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



mahsa.n
03-15-2011, 08:54 AM
سلام

من کامپوننت جومفیش رو نصب کردم

میخوام مطالب انگلیسی رو چپ به راست نمایش بدم ، یه فایل css درست کردم و در اون direction هارو ltr قرار دادم و این فایل (templateen.css ) رو در پوشه ی templates/ja_nickel/css قرار دادم

حالا مشکل من اینه که در فایل index.php این کد رو مینویسم ولی دیگه سایت لود نمیشه و یه صفحه سفید میاد
کد:


<?php if($this->direction == 'rtl') { ?>
<link href="templates/<?php echo $this->template ?>template.css" rel="stylesheet" type="text/css" />
<?php }else { ?>
<link href="templates/<?php echo $this->template ?>templateen.css" rel="stylesheet" type="text/css" />

<?php } ?>

mahsa.n
03-15-2011, 09:05 AM
کد صفحه index.phpا اینه:



<?php
/*------------------------------------------------------------------------
# JA Nickel for Joomla 1.5.x - Version 1.0 - Licence Owner JA108425
# ------------------------------------------------------------------------
# Copyright (C) 2004-2008 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
# @license - Copyrighted Commercial Software
# Author: J.O.O.M Solutions Co., Ltd
# Websites: <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> - <b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
# This file may not be redistributed in whole or significant part.
-------------------------------------------------------------------------*/

// no direct access
defined( &#039;_JEXEC&#039; ) or die( &#039;Restricted access&#039; );

include_once (dirname(__FILE__).DS.&#039;ja_vars_1.5.php&#039;);

?&gt;

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>

&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;?php JHTML::_(&#039;behavior.mootools&#039;); ?&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo $tmpTools-&gt;baseurl(); ?&gt;templates/system/css/system.css&quot; type=&quot;text/css&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo $tmpTools-&gt;baseurl(); ?&gt;templates/system/css/general.css&quot; type=&quot;text/css&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/css/editor.css&quot; type=&quot;text/css&quot; /&gt;

&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/css/typo.css&quot; type=&quot;text/css&quot; /&gt;

&lt;link href=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/mootabs/mootabs1.2.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/js/ja.script.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/js/cufon/cufon.js&quot;&gt;&lt;/script&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/js/cufon/NeoSans_400.font.js&quot;&gt;&lt;/script&gt;

&lt;?php if ($tmpTools-&gt;getParam(&#039;usertool_modfunc&#039;)) : ?&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
var siteurl = &#039;&lt;?php echo $tmpTools-&gt;baseurl();?&gt;&#039;;
var tmplurl = &#039;&lt;?php echo $tmpTools-&gt;templateurl();?&gt;&#039;;
&lt;/script&gt;

&lt;?php endif; ?&gt;

&lt;!-- Menu head --&gt;
&lt;?php $jamenu-&gt;genMenuHead(); ?&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/css/addons.css&quot; type=&quot;text/css&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/css/css3.css&quot; type=&quot;text/css&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/css/template.css&quot; type=&quot;text/css&quot; /&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/css/ja.bulletin.css&quot; type=&quot;text/css&quot; /&gt;
&lt;link href=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/css/colors/&lt;?php echo strtolower ($tmpTools-&gt;getParam(JA_TOOL_COLOR)); ?&gt;.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;?php if ($tmpTools-&gt;isIE()) { ?&gt;
&lt;link href=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/css/ie.php&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;link href=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/css/colors/&lt;?php echo strtolower ($tmpTools-&gt;getParam(JA_TOOL_COLOR)); ?&gt;-ie.php&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
window.addEvent (&#039;load&#039;, makeTransBG);
function makeTransBG() {
makeTransBg($$(&#039;img&#039;));
}
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var siteurl = &#039;&lt;?php echo $tmpTools-&gt;baseurl();?&gt;&#039;;
&lt;/script&gt;
&lt;?php }?&gt;

&lt;?php if ($tmpTools-&gt;isOP()) { ?&gt;
&lt;link href=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/css/op.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;?php } ?&gt;

&lt;/head&gt;

&lt;body id=&quot;bd&quot; class=&quot;&lt;?php echo $tmpTools-&gt;getParam(JA_TOOL_LAYOUT);?&gt; &lt;?php echo $tmpTools-&gt;getParam(JA_TOOL_SCREEN);?&gt; fs&lt;?php echo $tmpTools-&gt;getParam(JA_TOOL_FONT);?&gt;&quot;&gt;
&lt;a name=&quot;Top&quot; id=&quot;Top&quot;&gt;&lt;/a&gt;
&lt;!-- HEADER --&gt;
&lt;div id=&quot;ja-header&quot; class=&quot;wrap&quot;&gt;
&lt;div class=&quot;main clearfix&quot;&gt;

&lt;?php
$siteName = $tmpTools-&gt;sitename();
if ($tmpTools-&gt;getParam(&#039;logoType&#039;)==&#039;image&#039;) { ?&gt;
&lt;h1 class=&quot;logo&quot;&gt;
&lt;a href=&quot;index.php&quot; title=&quot;&lt;?php echo $siteName; ?&gt;&quot;&gt;&lt;span&gt;&lt;?php echo $siteName; ?&gt;&lt;/span&gt;&lt;/a&gt;
&lt;/h1&gt;
&lt;?php } else {
$logoText = (trim($tmpTools-&gt;getParam(&#039;logoText&#039;))==&#039;&#039;) ? $config-&gt;sitename : $tmpTools-&gt;getParam(&#039;logoText&#039;);
$sloganText = (trim($tmpTools-&gt;getParam(&#039;sloganText&#039;))==&#039;&#039;) ? JText::_(&#039;SITE SLOGAN&#039;) : $tmpTools-&gt;getParam(&#039;sloganText&#039;); ?&gt;
&lt;div class=&quot;logo-text&quot;&gt;
&lt;p class=&quot;site-slogan&quot;&gt;&lt;?php echo $sloganText;?&gt;&lt;/p&gt;
&lt;h1&gt;
&lt;a href=&quot;index.php&quot; title=&quot;&lt;?php echo $siteName; ?&gt;&quot;&gt;&lt;span&gt;&lt;?php echo $logoText; ?&gt;&lt;/span&gt;&lt;/a&gt;
&lt;/h1&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;?php if($this-&gt;countModules(&#039;ja-login&#039;)) : ?&gt;
&lt;div id=&quot;ja-headtools&quot; class=&quot;ja-headtool&quot;&gt;
&lt;ul&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;ja-login&quot; /&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;!-- //HEADER --&gt;

&lt;!-- MAIN NAVIGATION --&gt;
&lt;div id=&quot;ja-mainnav&quot; class=&quot;wrap&quot;&gt;
&lt;div class=&quot;main clearfix&quot;&gt;
&lt;ul class=&quot;no-display&quot;&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php echo $tmpTools-&gt;getCurrentURL();?&gt;#ja-content&quot; title=&quot;&lt;?php echo JText::_(&quot;Skip to content&quot;);?&gt;&quot;&gt;&lt;?php echo JText::_(&quot;Skip to content&quot;);?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;?php if ($jamenu) $jamenu-&gt;genMenu (0); ?&gt;
&lt;?php if ($this-&gt;countModules(&#039;user4&#039;)) { ?&gt;
&lt;div id=&quot;ja-search&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;user4&quot; style=&quot;raw&quot; /&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;?php if ($hasSubnav) : ?&gt;
&lt;div id=&quot;ja-subnav&quot; class=&quot;warp&quot;&gt;
&lt;div class=&quot;main clearfix&quot;&gt;
&lt;?php if ($jamenu) $jamenu-&gt;genMenu (1,1); ?&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;!-- //MAIN NAVIGATION --&gt;

&lt;div id=&quot;ja-container&lt;?php echo $divid; ?&gt;&quot; class=&quot;wrap&quot;&gt;
&lt;div class=&quot;main clearfix&quot;&gt;
&lt;?php if ( $ja_left) { ?&gt;
&lt;!-- Left COLUMN --&gt;
&lt;div id=&quot;ja-col1&quot;&gt;
&lt;div class=&quot;ja-innerpad&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;left&quot; style=&quot;jamodule&quot; /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;!-- //Left COLUMN --&gt;
&lt;?php } ?&gt;
&lt;!-- CONTENT --&gt;
&lt;div id=&quot;ja-content&quot;&gt;
&lt;div class=&quot;main clearfix&quot;&gt;
&lt;jdoc:include type=&quot;message&quot; /&gt;
&lt;?php if ($this-&gt;countModules(&#039;ja-slideshow&#039;) ) { ?&gt;
&lt;!-- TOP SPOTLIGHT --&gt;
&lt;div id=&quot;ja-topsl&quot; class=&quot;wrap&quot;&gt;
&lt;div class=&quot;main&quot;&gt;
&lt;div class=&quot;inner clearfix&quot;&gt;
&lt;div id=&quot;ja-slideshow&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;ja-slideshow&quot; style=&quot;raw&quot; /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;!-- //TOP SPOTLIGHT --&gt;
&lt;?php } ?&gt;
&lt;div id=&quot;ja-current-content&quot; class=&quot;clearfix&quot;&gt;
&lt;jdoc:include type=&quot;component&quot; /&gt;
&lt;/div&gt;
&lt;?php if ( $ja_right): ?&gt;
&lt;div id=&quot;ja-col2&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;right&quot; style=&quot;jamodule&quot; /&gt;
&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;
&lt;!-- //CONTENT --&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;!-- PATHWAY --&gt;
&lt;div id=&quot;ja-pathway&quot; class=&quot;wrap&quot;&gt;
&lt;div class=&quot;main&quot;&gt;
&lt;div class=&quot;ja-pathway-text&quot;&gt;
&lt;strong&gt;You are here:&lt;/strong&gt;&lt;jdoc:include type=&quot;module&quot; name=&quot;breadcrumbs&quot; /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;!-- //PATHWAY --&gt;
&lt;?php
$spotlight = array (&#039;user6&#039;,&#039;user8&#039;,&#039;user9&#039;);
$bots2 = $tmpTools-&gt;calSpotlight ($spotlight,$tmpTools-&gt;isOP()?100:99.9);
if( $bots2 ) {
?&gt;
&lt;!-- BOTTOM SPOTLIGHT 2--&gt;
&lt;div id=&quot;ja-botsl1&quot; class=&quot;wrap&quot;&gt;
&lt;div class=&quot;main clearfix&quot;&gt;

&lt;?php if( $this-&gt;countModules(&#039;user6&#039;) ) {?&gt;
&lt;div class=&quot;ja-box&lt;?php echo $bots2&#91;&#039;user6&#039;]&#91;&#039;class&#039;]; ?&gt;&quot; style=&quot;width: &lt;?php echo $bots2&#91;&#039;user6&#039;]&#91;&#039;width&#039;]; ?&gt;;&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;user6&quot; style=&quot;jamodule&quot; /&gt;
&lt;/div&gt;
&lt;?php } ?&gt;

&lt;?php if( $this-&gt;countModules(&#039;user8&#039;) ) {?&gt;
&lt;div class=&quot;ja-box&lt;?php echo $bots2&#91;&#039;user8&#039;]&#91;&#039;class&#039;]; ?&gt;&quot; style=&quot;width: &lt;?php echo $bots2&#91;&#039;user8&#039;]&#91;&#039;width&#039;]; ?&gt;;&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;user8&quot; style=&quot;jamodule&quot; /&gt;
&lt;/div&gt;
&lt;?php } ?&gt;

&lt;?php if( $this-&gt;countModules(&#039;user9&#039;) ) {?&gt;
&lt;div class=&quot;ja-box&lt;?php echo $bots2&#91;&#039;user9&#039;]&#91;&#039;class&#039;]; ?&gt;&quot; style=&quot;width: &lt;?php echo $bots2&#91;&#039;user9&#039;]&#91;&#039;width&#039;]; ?&gt;;&quot; href=&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
&lt;jdoc:include type=&quot;modules&quot; name=&quot;user9&quot; style=&quot;jamodule&quot; /&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;!-- //BOTTOM SPOTLIGHT 2 --&gt;
&lt;?php } ?&gt;
&lt;?php
$spotlight = array (&#039;user1&#039;,&#039;user2&#039;,&#039;user7&#039;);
$botsl = $tmpTools-&gt;calSpotlight ($spotlight,$tmpTools-&gt;isOP()?100:99.9);
if( $botsl ) {
?&gt;
&lt;!-- BOTTOM SPOTLIGHT 1--&gt;
&lt;div id=&quot;ja-botsl2&quot; class=&quot;wrap&quot;&gt;
&lt;div class=&quot;main clearfix&quot;&gt;

&lt;?php if( $this-&gt;countModules(&#039;user1&#039;) ) {?&gt;
&lt;div class=&quot;ja-box&lt;?php echo $botsl&#91;&#039;user1&#039;]&#91;&#039;class&#039;]; ?&gt;&quot; style=&quot;width: &lt;?php echo $botsl&#91;&#039;user1&#039;]&#91;&#039;width&#039;]; ?&gt;;&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;user1&quot; style=&quot;jamodule&quot; /&gt;
&lt;/div&gt;
&lt;?php } ?&gt;

&lt;?php if( $this-&gt;countModules(&#039;user2&#039;) ) {?&gt;
&lt;div class=&quot;ja-box&lt;?php echo $botsl&#91;&#039;user2&#039;]&#91;&#039;class&#039;]; ?&gt;&quot; style=&quot;width: &lt;?php echo $botsl&#91;&#039;user2&#039;]&#91;&#039;width&#039;]; ?&gt;;&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;user2&quot; style=&quot;jamodule&quot; /&gt;
&lt;/div&gt;
&lt;?php } ?&gt;

&lt;?php if( $this-&gt;countModules(&#039;user7&#039;) ) {?&gt;
&lt;div class=&quot;ja-box&lt;?php echo $botsl&#91;&#039;user7&#039;]&#91;&#039;class&#039;]; ?&gt;&quot; style=&quot;width: &lt;?php echo $botsl&#91;&#039;user7&#039;]&#91;&#039;width&#039;]; ?&gt;;&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;user7&quot; style=&quot;jamodule&quot; /&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;!-- //BOTTOM SPOTLIGHT 1 --&gt;
&lt;?php } ?&gt;
&lt;!-- FOOTER --&gt;
&lt;div id=&quot;ja-footer&quot; class=&quot;wrap&quot;&gt;
&lt;div class=&quot;main clearfix&quot;&gt;
&lt;div class=&quot;sublogo&quot;&gt;
&lt;img src=&quot;&lt;?php echo $tmpTools-&gt;templateurl(); ?&gt;/images/&lt;?php echo strtolower ($tmpTools-&gt;getParam(JA_TOOL_COLOR)); ?&gt;/sub-logo.png&quot; /&gt;
&lt;/div&gt;
&lt;div class=&quot;ja-info&quot;&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;user3&quot; /&gt;
&lt;jdoc:include type=&quot;modules&quot; name=&quot;footer&quot; /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;!-- //FOOTER --&gt;

&lt;jdoc:include type=&quot;modules&quot; name=&quot;debug&quot; /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
addSpanToTitle();
jaAddFirstItemToTopmenu();
//jaRemoveLastContentSeparator();
//jaRemoveLastTrBg();
//moveReadmore();
//addIEHover();
//slideshowOnWalk ();
//apply png ie6 main background
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var gaJsHost = ((&quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> == document.location.protocol) ? &quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b> : &quot;<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>);
document.write(unescape(&quot;%3Cscript src=&#039;&quot; + gaJsHost + &quot;google-analytics.com/ga.js&#039; type=&#039;text/javascript&#039;%3E%3C/script%3E&quot;));
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
try {
var pageTracker = _gat._getTracker(&quot;UA-12069300-1&quot;);
pageTracker._setDomainName(&quot;.tirage-machine.ir&quot;);
pageTracker._trackPageview();
} catch(err) {}&lt;/script&gt;
&lt;/body&gt;

&lt;/html&gt;



من باید کجا کدهام رو وارد کنم؟

مهدی.
03-15-2011, 09:20 AM
سلام

قالب شما یک قالب تجاری است و باید از شرکت جوملارت کمک بخواهید ! طبق قوانین و همچنین قوانین کپی رایت نمیتونیم به شما کمکی بکنیم !

هیچکس تنهاتر از خدا نیست

mahsa.n
03-15-2011, 09:38 AM
خودم جواب رو پیدا کردم &gt;:(