رفتن به مطلب

m0hammad

عضو سایت
  • تعداد ارسال‌ها

    20
  • تاریخ عضویت

  • آخرین بازدید

نوشته‌ها ارسال شده توسط m0hammad

  1. سلام

    نه شرمنده من این قسمت رو خودم حذف کردم تو فایل فانکشن اگر دانلود کرده باشین می بینین که درسته در واقع چون قالب فروشیه بعضی از جاهاه رو خودم حذف کردم ولی فایل فانکشنی که اپلود کردم کامله می تونید این قسمت رو تو اونجا ببینید

    ممنون بابت پاسختون

  2. شرمنده تابع شرطی اینه

    if ($_GET['page'] == basename(__FILE__)) {
    		if ( 'save' == $_REQUEST['action'] ) {
    			if(isset($_REQUEST['email'])) {
    				update_option('email', $_REQUEST['email']);
    			} else	update_option('email', 'gmail.com');	
    				if(isset($_REQUEST['tell'])) {
    				update_option('tell', $_REQUEST['tell']);
    			} else	update_option('tell', '093590xxxx');
    				if(isset($_REQUEST['etlaeh'])) {
    				update_option('etlaeh', $_REQUEST['etlaeh']);
    			} else	update_option('etlaeh',10%);		
    							if(isset($_REQUEST['id_shop'])) {
    				update_option('id_shop', $_REQUEST['id_shop']);
    			} else	update_option('id_shop', '');
    				if(isset($_REQUEST['id_akhbar'])) {
    				update_option('id_akhbar', $_REQUEST['id_akhbar']);
    			} else	update_option('id_akhbar', '');
    				if(isset($_REQUEST['id_box_1_sidbar'])) {
    				update_option('id_box_1_sidbar', $_REQUEST['id_box_1_sidbar']);
    			} else	update_option('id_box_1_sidbar', '');
    				if(isset($_REQUEST['id_box_2_sidbar'])) {
    				update_option('id_box_2_sidbar', $_REQUEST['id_box_2_sidbar']);
    			} else	update_option('id_box_2_sidbar', '');
    				if(isset($_REQUEST['id_box_3_sidbar'])) {
    				update_option('id_box_3_sidbar', $_REQUEST['id_box_3_sidbar']);
    			} else	update_option('id_box_3_sidbar', '');
    			header("Location: themes.php?page=functions.php&saved=true");
    			die;			
    		}
    		add_action('admin_head', 'mimic_theme_page_head');
    	}

     

  3. در 12 ساعت قبل، parsaee گفته است :

    عزیز این 32 خطه بعد به خط 64 چطور گیر داده

    لطف کن فایل فانکشن را پیوست کن

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

    اینم فانکشن قالب

    http://s6.picofile.com/file/8254223050/functions.php.html

    بعد اون فایلی که گفتین err_log رو من قبلا حذفش کردم چون حجمش حدود 2.5 مگا بایت بود و من وقتی میدیم ارورا رو گیج می شدم حذفش کردم تا ریست شه ولی از وقتی حذف کردم ایجاد نشده! کار خاصی می خواد تا این فایل دوباره ایجاد بشه؟

  4. بچه ارورهایی که برای ابزارک ها می داد واسه این بود که ای دی براشون تعریف نشده بود 

    با تعریف ای دی براشون این ارور ها رفع شد

    بچه ها واسه <?php  <? که داخلش از کد html یا css استفاده نشده باشه ارور میده!!!

    یعنی شما نمی تونید چند تا دستور php که شروع کردید این دستورات رو ببندید و دوباره با دستور <?php

    باز کنید و دستورات php رو ادامه بدید باید در کل یه بار باز کنید و دستورات php رو بنویسید ولی اگر بینشون بخواین از html یا css استفاده کنید می تونید دستورات php رو ببندید و بعد دوباره باز کنید

     

    به فضای خالی هم ارور میده!!!

     

    ولی الان یه ارور مونده کمک کنید اینم رفع کنم

    Notice: Undefined index: page in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 64

     

    که مربوط میشه با این تابع شرطی

     

     

  5. در 13 ساعت قبل، mojtabashahi گفته است :

    این کدها ، سایدبار (ها) ، (نوار کناری) را تعریف و به پوسته اضافه می کنند. شاید دلیل خطا هنگام فعال بودن ، خالی بودن سایدبار ها باشد که به دلیل عدم کدنویسی صحیح و فراخوانی درست سایدبارها رخ می دهد. بهتر است کدها را فعال نمایید به "نمایش>ابزارک ها" رفته و در هر سایدبار یک ابزارک بکشید و ذخیره نمایید.

    به جای افزونه "جلالی" هم از "افزونه بسته وردپرس پارسی" نوشته شده توسط کاربران و مدیران همین انجمن استفاده نمایید. این افزونه کارآیی بهتر و تداخل کمتری دارد.

    ممنون همین کارو کردم بازم درست نشد طبق معمول

  6. سلام

    بچه ها این کد های شرطی که من غیر فعالشون کردم چیکار می کنند؟

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

     

    /**if ( function_exists('register_sidebar') )
        register_sidebar(array(
    		'name' => 'خبرنامه',
    		'before_widget' => '',
    		'after_widget' => '',
            'before_title' => '<h2>',
            'after_title' => '</h2>',
        ));	
    	?>
    	<?php
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
    		'name' => 'باکس چپ',
    		'before_widget' => '',
    		'after_widget' => '',
            'before_title' => '<li id="img-tit-n"><i class="fa fa-buysellads fa-2x" style="position: relative;
    top: 6px;
    right: 7px;
    color: rgb(128, 126, 126);"></i><a style="color:#797979;">',
            'after_title' => '</a></li>
    <div class="reee" style="background-image:url(img/nn.png)"></div>',
        ));	
    	?>
        <?php
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
            'after_widget' => '</li>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));*/
      
      
      
      
      
      /**if ($_GET['page'] == basename(__FILE__)) {
    		if ( 'save' == $_REQUEST['action'] ) {
    			if(isset($_REQUEST['email'])) {
    				update_option('email', $_REQUEST['email']);
    			} else	update_option('email', 'gogo19a@gmail.com');	
    				if(isset($_REQUEST['tell'])) {
    				update_option('tell', $_REQUEST['tell']);
    			} else	update_option('tell', '09359047387');
    				if(isset($_REQUEST['etlaeh'])) {
    				update_option('etlaeh', $_REQUEST['etlaeh']);
    			} else	update_option('etlaeh', '10% تخفیف ویژ] به دت محدود برای کاربران سایت سیبل 10% تخفیف ویژ] به دت محدود برای کاربران سایت سیبل ');		
    							if(isset($_REQUEST['id_shop'])) {
    				update_option('id_shop', $_REQUEST['id_shop']);
    			} else	update_option('id_shop', '');
    				if(isset($_REQUEST['id_akhbar'])) {
    				update_option('id_akhbar', $_REQUEST['id_akhbar']);
    			} else	update_option('id_akhbar', '');
    				if(isset($_REQUEST['id_box_1_sidbar'])) {
    				update_option('id_box_1_sidbar', $_REQUEST['id_box_1_sidbar']);
    			} else	update_option('id_box_1_sidbar', '');
    				if(isset($_REQUEST['id_box_2_sidbar'])) {
    				update_option('id_box_2_sidbar', $_REQUEST['id_box_2_sidbar']);
    			} else	update_option('id_box_2_sidbar', '');
    				if(isset($_REQUEST['id_box_3_sidbar'])) {
    				update_option('id_box_3_sidbar', $_REQUEST['id_box_3_sidbar']);
    			} else	update_option('id_box_3_sidbar', '');
    			header("Location: themes.php?page=functions.php&saved=true");
    			die;			
    		}
    		add_action('admin_head', 'mimic_theme_page_head');
    	}*/

     

  7. و تو صفحه اصلی سایت این ارورا پست قبلی مربوط می شد به پیشخوان

    
    Notice: تابع register_sidebar به‌صورت نادرست فراخوانی شد. No id was set in the arguments array for the "خبرنامه" sidebar. Defaulting to "sidebar-1". Manually set the id to "sidebar-1" to silence this notice and keep existing sidebar content. لطفاً برای اطلاعات بیشتر، اشکال زدایی در وردپرس را مشاهده کنید. (این پیام در نگارش 4.2.0 اضافه شده است) in /home/andishma/public_html/forums/wp-includes/functions.php on line 3897
    
    Notice: تابع register_sidebar به‌صورت نادرست فراخوانی شد. No id was set in the arguments array for the "باکس چپ" sidebar. Defaulting to "sidebar-2". Manually set the id to "sidebar-2" to silence this notice and keep existing sidebar content. لطفاً برای اطلاعات بیشتر، اشکال زدایی در وردپرس را مشاهده کنید. (این پیام در نگارش 4.2.0 اضافه شده است) in /home/andishma/public_html/forums/wp-includes/functions.php on line 3897
    
    Notice: تابع register_sidebar به‌صورت نادرست فراخوانی شد. No id was set in the arguments array for the "ستون کناری 3" sidebar. Defaulting to "sidebar-3". Manually set the id to "sidebar-3" to silence this notice and keep existing sidebar content. لطفاً برای اطلاعات بیشتر، اشکال زدایی در وردپرس را مشاهده کنید. (این پیام در نگارش 4.2.0 اضافه شده است) in /home/andishma/public_html/forums/wp-includes/functions.php on line 3897
    
    Notice: Undefined index: cperpage in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 366
    
    Notice: Undefined variable: output in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 436
    
    Notice: Undefined variable: bfix_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 437
    
    Notice: Undefined variable: is_showdots in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 438
    
    Notice: Undefined variable: m_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 441
    
    Notice: Undefined variable: m_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 444
    
    Notice: Undefined variable: m_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 447
    
    Notice: Undefined variable: post in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456
    
    Notice: Trying to get property of non-object in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456
    
    Notice: Undefined variable: post in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456
    
    Notice: Trying to get property of non-object in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456
    
    Notice: Undefined variable: more_links_title in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456

     

  8. در 12 ساعت قبل، mojtabashahi گفته است :

    درود ، 

    این فایل را دانلود و جایگزین کنید ، توجه: کدهای داخل فایل را کپی نکنید بلکه فایل را جایگزین نمایید. نکته : ابتدا یک کپی از فایل فانکشن خود تهیه نمایید.

    سلام

    بابت لطفتون ممنون

    الان این ارورا ظاهر شدن و مشکل سفیدی همچنان پا برجاست

    Notice: تابع register_sidebar به‌صورت نادرست فراخوانی شد. No id was set in the arguments array for the "خبرنامه" sidebar. Defaulting to "sidebar-1". Manually set the id to "sidebar-1" to silence this notice and keep existing sidebar content. لطفاً برای اطلاعات بیشتر، اشکال زدایی در وردپرس را مشاهده کنید. (این پیام در نگارش 4.2.0 اضافه شده است) in /home/andishma/public_html/forums/wp-includes/functions.php on line 3897
    
    Notice: تابع register_sidebar به‌صورت نادرست فراخوانی شد. No id was set in the arguments array for the "باکس چپ" sidebar. Defaulting to "sidebar-2". Manually set the id to "sidebar-2" to silence this notice and keep existing sidebar content. لطفاً برای اطلاعات بیشتر، اشکال زدایی در وردپرس را مشاهده کنید. (این پیام در نگارش 4.2.0 اضافه شده است) in /home/andishma/public_html/forums/wp-includes/functions.php on line 3897
    
    Notice: تابع register_sidebar به‌صورت نادرست فراخوانی شد. No id was set in the arguments array for the "ستون کناری 3" sidebar. Defaulting to "sidebar-3". Manually set the id to "sidebar-3" to silence this notice and keep existing sidebar content. لطفاً برای اطلاعات بیشتر، اشکال زدایی در وردپرس را مشاهده کنید. (این پیام در نگارش 4.2.0 اضافه شده است) in /home/andishma/public_html/forums/wp-includes/functions.php on line 3897
    
    Notice: Undefined index: cperpage in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 366
    
    Notice: Undefined variable: output in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 436
    
    Notice: Undefined variable: bfix_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 437
    
    Notice: Undefined variable: is_showdots in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 438
    
    Notice: Undefined variable: m_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 441
    
    Notice: Undefined variable: m_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 444
    
    Notice: Undefined variable: m_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 447
    
    Notice: Undefined variable: post in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456
    
    Notice: Trying to get property of non-object in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456
    
    Notice: Undefined variable: post in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456
    
    Notice: Trying to get property of non-object in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456
    
    Notice: Undefined variable: more_links_title in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456
    
    Notice: has_cap از نگارش 2.0 از رده خارج شده! استفاده از سطوح دسترسی کاربران توسط افزونه‌ها و پوسته‌ها از رده خارج شده است. از نقش‌های کاربری و توانایی‌ها به‌جای آن‌ها استفاده کنید. in /home/andishma/public_html/forums/wp-includes/functions.php on line 3842
    
    Notice: Undefined index: page in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 83
    
    Notice: has_cap از نگارش 2.0 از رده خارج شده! استفاده از سطوح دسترسی کاربران توسط افزونه‌ها و پوسته‌ها از رده خارج شده است. از نقش‌های کاربری و توانایی‌ها به‌جای آن‌ها استفاده کنید. in /home/andishma/public_html/forums/wp-includes/functions.php on line 3842

     

  9. در در ۱۳۹۵/۳/۱۱ ه‍.ش. at 14:18، amazingha گفته است :

    توی فانکشن و pluggable یه خطایی وجود داره باید درستش کنی یا می خوای فایل فانکشنت رو بزار درست کنن

    ممنون

    من فانکشن قالب رو قرار دادم شما و دوستان اگر می تونید کمک کنید بعد از رفع مشکل مجبورم به دلیل رعایت حقوق کپی رایت فروشنده کد ها رو حذف کنم

     

  10. لطفا یه جوابی بدهید

    من دباگ رو فعال کردم و هشدار های زیر رو دریافت کردم

    می تونن اینا ارور باشن؟


    Notice: تابع register_sidebar به‌صورت نادرست Ùراخوانی شد. No id was set in the arguments array for the "خبرنامه" sidebar. Defaulting to "sidebar-1". Manually set the id to "sidebar-1" to silence this notice and keep existing sidebar content. لطÙاً برای اطلاعات بیشتر، اشکال زدایی در وردپرس را مشاهده کنید. (این پیام در نگارش 4.2.0 اضاÙÙ‡ شده است) in /home/andishma/public_html/forums/wp-includes/functions.php on line 3897

    Notice: تابع register_sidebar به‌صورت نادرست Ùراخوانی شد. No id was set in the arguments array for the "باکس Ú†Ù¾" sidebar. Defaulting to "sidebar-2". Manually set the id to "sidebar-2" to silence this notice and keep existing sidebar content. لطÙاً برای اطلاعات بیشتر، اشکال زدایی در وردپرس را مشاهده کنید. (این پیام در نگارش 4.2.0 اضاÙÙ‡ شده است) in /home/andishma/public_html/forums/wp-includes/functions.php on line 3897

    Notice: تابع register_sidebar به‌صورت نادرست Ùراخوانی شد. No id was set in the arguments array for the "ستون کناری 3" sidebar. Defaulting to "sidebar-3". Manually set the id to "sidebar-3" to silence this notice and keep existing sidebar content. لطÙاً برای اطلاعات بیشتر، اشکال زدایی در وردپرس را مشاهده کنید. (این پیام در نگارش 4.2.0 اضاÙÙ‡ شده است) in /home/andishma/public_html/forums/wp-includes/functions.php on line 3897

    Notice: Undefined index: cperpage in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 366

    Notice: Undefined variable: output in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 436

    Notice: Undefined variable: bfix_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 437

    Notice: Undefined variable: is_showdots in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 438

    Notice: Undefined variable: m_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 441

    Notice: Undefined variable: m_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 444

    Notice: Undefined variable: m_tags in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 447

    Notice: Undefined variable: post in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456

    Notice: Trying to get property of non-object in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456

    Notice: Undefined variable: post in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456

    Notice: Trying to get property of non-object in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456

    Notice: Undefined variable: more_links_title in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 456

    Notice: has_cap از نگارش 2.0 از رده خارج شده! استÙاده از سطوح دسترسی کاربران توسط اÙزونه‌ها Ùˆ پوسته‌ها از رده خارج شده است. از نقش‌های کاربری Ùˆ توانایی‌ها به‌جای آن‌ها استÙاده کنید. in /home/andishma/public_html/forums/wp-includes/functions.php on line 3842

    Notice: Undefined index: page in /home/andishma/public_html/forums/wp-content/themes/new-vip/functions.php on line 83

    Notice: has_cap از نگارش 2.0 از رده خارج شده! استÙاده از سطوح دسترسی کاربران توسط اÙزونه‌ها Ùˆ پوسته‌ها از رده خارج شده است. از نقش‌های کاربری Ùˆ توانایی‌ها به‌جای آن‌ها استÙاده کنید. in /home/andishma/public_html/forums/wp-includes/functions.php on line 3842

    Warning: Cannot modify header information - headers already sent by (output started at /home/andishma/public_html/forums/wp-includes/functions.php:3897) in /home/andishma/public_html/forums/wp-includes/pluggable.php on line 1171

    Warning: Cannot modify header information - headers already sent by (output started at /home/andishma/public_html/forums/wp-includes/functions.php:3897) in /home/andishma/public_html/forums/wp-includes/pluggable.php on line 1171

     

  11. من این اطلاعات رو از debug bar دریافت کردم

    Cache Hits: 972
    Cache Misses: 71

    • Group: options - ( 43.64k )
    • Group: default - ( 0.03k )
    • Group: users - ( 0.40k )
    • Group: userlogins - ( 0.03k )
    • Group: useremail - ( 0.04k )
    • Group: userslugs - ( 0.03k )
    • Group: user_meta - ( 1.18k )
    • Group: plugins - ( 2.99k )
    • Group: posts - ( 5.03k )
    • Group: terms - ( 0.47k )
    • Group: category_relationships - ( 0.38k )
    • Group: post_tag_relationships - ( 0.02k )
    • Group: post_format_relationships - ( 0.02k )
    • Group: post_meta - ( 0.04k )
    • Group: counts - ( 0.18k )

    مشکلی که نیست؟

  12. در 12 ساعت قبل، lord_viper گفته است :

    تو روت وردپرست فایل wp_config باز کن مقدار wp_debuge رو true کن

    همین کارو کردم ولی اروری نشون نمیده حتی افزونه debug bar رو هم نصب کردم البته این افزونه کار نکرد

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

    مثلا وقتی افزونه رو می خوام فعال کنم این مشکل وجود داره

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

    الان سوال من اینه تو ادرس اصلی سایت چیزی نشون داده نمیشه

    سه ماهه من این قالب رو نمی زارم که مشکلشو رفع کنم ولی مثل اینکه باید بندازمش دور

  13. سلام

    بچه ها من یه قالب برای وبم خریدم یه قالب vip که یه مشکلی که داره اینه که وقتی قالب فعال میشه پیشخوان وردپرس سفید میشه وقتی رفرش می کنم صفحه مرورگر رو پیشخوان لود میشه ولی وقتی که این قالب فعاله مثلا برم یه افزونه رو فعال یا غیر فعال کنم باز پیشخوان سفید میشه در کل سایت لود میشه ولی ایا این می تونه یک باگ حساب بشه؟

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

    شما می تونید راهنمایی کنید این مشکل قالب رو بر طرف کنم

    مشکل از فانکشن قالب هست چون وقتی تابع های فانکن رو حذف می کنم دیگه پیشخوان سفید نمیشه ولی سایت ناقص میشه

×
×
  • اضافه کردن...