پارس جوم ::  انجمن های تخصصی جوملا
مشکل با قالب SJ Vinda - نسخه‌ی قابل چاپ

+- پارس جوم :: انجمن های تخصصی جوملا (https://forums.parsjoom.ir)
+-- انجمن: پشتیبانی (/forum-70.html)
+--- انجمن: مباحث و مشکلات عمومی (/forum-33.html)
+--- موضوع: مشکل با قالب SJ Vinda (/thread-14100.html)



مشکل با قالب SJ Vinda - yokhsan - ۳۰-۱۰-۱۳۹۲ ۰۸:۱۲ عصر

:j25:

با سلام

هنگامی که بر روی ادامه مطلب کلیک میکنم با این پیغام مواجه میشوم

structure or name of file: .xml is not exactly

لطفا راهنمایی فرمایید.




RE: مشکل با قالب SJ Vinda - farzadbjj - ۳۰-۱۰-۱۳۹۲ ۰۸:۳۸ عصر

با سلام دوست عزیز من این مشکل را یک بار برای یک مشتری حل کردم جواب داد.
به مسیر زیر بروید و فایل frame_inc.php را Edit کنید.
1:
نقل قول: includes/frame_inc.php

2:برو به خط 47: و کد زیر را پیدا کنید.
کد php:
elseif($bool == true){ // Windows Overwrite Layouts
   
$yt_render = new YtRenderXML($layoutItem.'.xml');
   
$main_layout $layoutItem;
}else{ 
// Windows Layout default
   
$yt_render = new YtRenderXML($windows_main_layout); 


3: کد زیر را جایگزین کد بالا کنید:
کد php:
elseif($bool == true){ // Windows Overwrite Layouts
   
if($layoutItem == "") {
      
$yt_render = new YtRenderXML($windows_main_layout);
   }
   else {
      
$yt_render = new YtRenderXML($layoutItem.'.xml');
      
$main_layout $layoutItem;
   }
}else{ 
// Windows Layout default
   
$yt_render = new YtRenderXML($windows_main_layout); 

من با این روش مشکل خودم رو برطرف کردم .
پیروز و سربلند باشیدRose


RE: مشکل با قالب SJ Vinda - yokhsan - ۳۰-۱۰-۱۳۹۲ ۰۹:۲۱ عصر

ممنون بابت راهنماییتون ولی چنین کدی رو در این فایل پیدا نکردم که جایگزین کنم ؟


RE: مشکل با قالب SJ Vinda - farzadbjj - ۳۰-۱۰-۱۳۹۲ ۰۹:۴۱ عصر

سلام فایل را پیوست کنیدOk


RE: مشکل با قالب SJ Vinda - yokhsan - ۳۰-۱۰-۱۳۹۲ ۰۹:۵۱ عصر

کد php:
<?php
/*
 * ------------------------------------------------------------------------
 * Copyright (C) 2009 - 2013 The YouTech JSC. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: The YouTech JSC
 * Websites: http://www.smartaddons.com - http://www.cmsportal.net
 * ------------------------------------------------------------------------
*/
// no direct access
defined'_JEXEC' ) or die( 'Restricted access' );
include_once (
J_TEMPLATEDIR.J_SEPARATOR.'includes'.J_SEPARATOR.'lib'.J_SEPARATOR.'template.php');
include_once (
J_TEMPLATEDIR.J_SEPARATOR.'includes'.J_SEPARATOR.'lib'.J_SEPARATOR.'renderxml.php');
// Object of class YtTemplate
global $yt;
$doc JFactory::getDocument();
$Itemid JRequest::getInt('Itemid');
// Array param for cookie
$params_cookie =    array(
                          
'direction',
                          
'fontSize',
                          
'fontName',
                          
'templateColor',
                          
'bgcolor',
                          
'linkcolor',
                          
'textcolor',
                          
'header-bgimage',
                          
'header-bgcolor',
                          
'spotlight6-bgcolor',
                          
'footer-bgcolor',
                          
'footer-bgimage',
                          
'templateLayout',
                          
'menustyle',
                          
'googleWebFont',
                          
'activeNotice'
                    
);
$yt = new YtTemplate($this$params_cookie);

// Get param template
$fontName                      $yt->getParam('fontName');
$fontSize                   $yt->getParam('fontSize');
$responsive                    $yt->getParam('responsive');
$layout                        $yt->getParam('templateLayout');
$templateColor                $yt->getParam('templateColor');
$keepmenu                    $yt->getParam('keepMenu');
$direction                    $this->direction;
if(isset(
$_COOKIE[$yt->template.'_direction'])){
    
$direction $_COOKIE[$yt->template.'_direction'];
}else{
    
$yt->getParam('direction');
}
$menustyle                    $yt->getParam('menustyle');
$overrideLayouts            trim($yt->getParam('overrideLayouts'));
$setGeneratorTag            $yt->getParam('setGeneratorTag');
$googleWebFont                 $yt->getParam('googleWebFont');
$googleWebFontTargets        $yt->getParam('googleWebFontTargets');
$showCpanel                    $yt->getParam('showCpanel');

$compileLess                $yt->getParam('compileLess');

// Include Class YtRenderXML
if($layout=='-1' || $layout=='') die(JTEXT::_("SELECT_LAYOUT_NOW"));
// Parse layout
$boolOverride false;
$overrideLayouts explode(' '$overrideLayouts);
if( 
count($overrideLayouts)>=) {
    for(
$i=0$i<count($overrideLayouts); $i++){
        
$layoutItemArray[] = explode('='$overrideLayouts[$i]);
    }
    if( !empty(
$layoutItemArray) ){
        foreach(
$layoutItemArray as $item){
            if(
$Itemid == $item[0]){
                
$boolOverride true$layoutItem trim($item[1]);
            }
        }
    }
}
if(
$boolOverride == true){
    
$yt_render = new YtRenderXML($layoutItem.'.xml');
}else{
    
$yt_render = new YtRenderXML($layout.'.xml');
}

// Set GeneratorTag
$this->setGenerator($setGeneratorTag);


/*** CSS ***
************/
$yt->ytStyleSheet('templates/system/css/general.css');
$yt->ytStyleSheet('templates/system/css/system.css');
$yt->ytStyleSheet('asset/bootstrap/css/bootstrap.css');
$yt->ytStyleSheet('asset/animate/animate.css');
if(!
defined('FONT_AWESOME')){
    
$yt->ytStyleSheet('asset/fonts/awesome/css/font-awesome.css');
    
define('FONT_AWESOME'1);
}
if(!
defined('FONT_SOCIALICO')){
    
$yt->ytStyleSheet('asset/fonts/socialico/font-socialico.css');
    
define('FONT_SOCIALICO'1);
}
$yt->ytStyleSheet('css/template.css');
$yt->ytStyleSheet('css/bonus-page.css');
$yt->ytStyleSheet('css/your_css.css');
$yt->ytStyleSheet('css/pattern.css');
if(
$showCpanel$yt->ytStyleSheet('asset/minicolors/jquery.miniColors.css');

if(
$responsive$yt->ytStyleSheet('asset/bootstrap/css/responsive.css');

// Include css in layout(.xml)
if(isset($yt_render->arr_TH['stylesheet'])){
    foreach(
$yt_render->arr_TH['stylesheet'] as $tagStyle){
        
$yt->ytStyleSheet('css/'.$tagStyle);
    }
}
// Include css with IE8, IE9
if($yt->ieversion()==8$yt->ytStyleSheet('css/template-ie8.css');
if(
$yt->ieversion()==9$yt->ytStyleSheet('css/template-ie9.css');

// Include css RTL
if($direction == 'rtl'){ 
    
$yt->ytStyleSheet('asset/bootstrap/css/bootstrap-rtl.css');
    
$yt->ytStyleSheet('css/template-rtl.css');
}
// Enable & disable responsive
if($responsive$yt->ytStyleSheet('css/responsive.css');

/*** JS ***
***********/
// Javascript of joomla core
if(J_VERSION <= 2){
    
JHTML::_('behavior.framework');
}
// Include jQuery & bootstrap's javascript
if(J_VERSION >= 3){
    
JHtml::_('bootstrap.framework');
}elseif(
J_VERSION <= 2){
    
$doc->addScript($yt->templateurl().'asset/bootstrap/js/bootstrap.min.js');
    if (!
defined('SMART_JQUERY')){
        
define('SMART_JQUERY'1);
        
$doc->addScript($yt->templateurl().'js/jquery.min.js');
        
$doc->addScript($yt->templateurl().'js/jquery-noconflict.js');
    }
    
}
if(
strtolower($compileLess)=='client'){
    
$doc->addScript($yt->templateurl().'js/less.min.js');
}
if(
$keepmenu){ $doc->addScript($yt->templateurl().'js/keepmenu.js');}

$doc->addScript($yt->templateurl().'js/yt-script.js');
$doc->addScript($yt->templateurl().'js/prettify.js');
if(
$showCpanel) {
    
$doc->addScript($yt->templateurl().'js/ytcpanel.js');
    
$doc->addScript($yt->templateurl().'asset/minicolors/jquery.miniColors.min.js');
}
// Include js in layout(.xml)
if(isset($yt_render->arr_TH['script'])){
    foreach(
$yt_render->arr_TH['script'] as $tagScript){
        
$doc->addScript($yt->templateurl().'js/'.$tagScript);
    }
}
if(
$responsive$doc->addScript($yt->templateurl().'js/yt-extend.js');

// Menu for mobile
$doc->addCustomTag('
<script type="text/javascript">
    var TMPL_NAME = "'
.$yt->template.'";
    var TMPL_COOKIE = '
.json_encode($params_cookie).';

    function MobileRedirectUrl(){
      window.location.href = document.getElementById("yt-mobilemenu").value;
    }
</script>

'
);

?>



RE: مشکل با قالب SJ Vinda - yokhsan - ۲-۱۱-۱۳۹۲ ۰۵:۰۶ صبح

قدیما با سابقه ها بهتر ساپورت میکردن ولی الان متاسفانه سرشون شلوغ شده


RE: مشکل با قالب SJ Vinda - yokhsan - ۳-۱۱-۱۳۹۲ ۰۸:۵۷ عصر

راه حل مشکل رو پیدا کردم.

برای دوستانی که چنین مشکلی رو با این قالب دارند :

در پوشه includes و در فایل frame_inc.php این کد رو ادیت کنید و = رو بردارید

از :
کد php:
if( count($overrideLayouts)>=) { 
به:
کد php:
if( count($overrideLayouts)>) { 



RE: مشکل با قالب SJ Vinda - shaban532 - ۴-۱۱-۱۳۹۲ ۰۲:۰۲ صبح

yokhsan نوشته شده توسط: قدیما با سابقه ها بهتر ساپورت میکردن ولی الان متاسفانه سرشون شلوغ شده
شما حق دارید.
از این پس سعی می کنیم بیشتر به انجمن توجه کنیم.
البته نا گفته نمونه که این ساپورت نکردنا همچین بی دلیل هم نیست.
مثلا آقا گنجی این هفته مشغول انجام کارهای سرورها بود و خوب باعث شد که کمتر به انجمن سر بزنه.بقیه ی دوستان هم به دلایل مختلف سرشون شلوغه و این باعث میشه که بعضی از کاربرا جواب نگیرند.
اما به هر حال ما تمام سعیمان این است که مشکلات کلیه کاربران رفع شود و همه راضی باشند.

با تشکر از شما
موفق باشید.


RE: مشکل با قالب SJ Vinda - milad0098 - ۴-۱۱-۱۳۹۲ ۰۳:۲۷ صبح

با تشکر از اقا مهران
ایشون راست میگه واقعا این هفته سر برو بچه های انجمن شلوغه