• اگر سمپادی هستی همین الان عضو شو :
    ثبت نام عضویت

مشکل در ساخت صفحه وب (با استفاده از wordpress)

  • شروع کننده موضوع
  • #1

trustme

لنگر انداخته
ارسال‌ها
2,810
امتیاز
899
نام مرکز سمپاد
شهید بهشتی
شهر
کاشان
سال فارغ التحصیلی
1387
دانشگاه
دانشگاه خواجه نصیر طوسی
رشته دانشگاه
مهندسی مکانیک
سلام :D نمی دونم عنوان تاپیک خوب هست یا نه؛ ولی مشکل دیگه مشکله :D
من یه وردپرس نصب کردم (انگلیسی) یه قالب جالب هم پیدا کردم و بسته ی lightbox v2.0 رو هم نصب کردم... قبل از نصب پلاگین lightbox قالب هیچ اشکالی نداشت؛ وقتی ایشون نصب شدن، یه قسمتی از کدهای html تقریبا غیر فعال شدن... من کماکان توی کف این اتفاق افتادم؛ نمی دونم چرا

کد اون تیکه که غیر فعال شده:
کد:
    <ul class="idTabs irresistibletabs clearfix">
        <li class="nav1"><a href="#comm"><img src="http://localhost/wordpress/wp-content/themes/irresistible/images/ico-1.gif" alt="Comments" /></a></li>
        <li class="nav2"><a href="#pop"><img src="http://localhost/wordpress/wp-content/themes/irresistible/images/ico-2.gif" alt="Popular" /></a></li>
        <li class="nav3"><a href="#tagcloud"><img src="http://localhost/wordpress/wp-content/themes/irresistible/images/ico-5.gif" alt="TAgs" /></a></li>												
    </ul>

همونطوری که می بینین این تیکه هیچ مشکلی نداره ... ولی بعد از نصب lightbox دیگه نشون داده نمی شن ... بعد از حذف پلاگین نشون داده می شن :O

من چطوری بفهمم مشکلش چیه !؟
 
ارسال‌ها
351
امتیاز
44
نام مرکز سمپاد
علامه حلی 1
شهر
تهران
سال فارغ التحصیلی
1388
پاسخ : مشکل در ساخت صفحه وب (با استفاده از wordpress)

چرا آدرس عکس ها از localhost داده شده ؟
 
  • شروع کننده موضوع
  • #3

trustme

لنگر انداخته
ارسال‌ها
2,810
امتیاز
899
نام مرکز سمپاد
شهید بهشتی
شهر
کاشان
سال فارغ التحصیلی
1387
دانشگاه
دانشگاه خواجه نصیر طوسی
رشته دانشگاه
مهندسی مکانیک
پاسخ : مشکل در ساخت صفحه وب (با استفاده از wordpress)

خوب می خوای از کجا داده بشه !! سوال معنا گرا می پرسی ها :D مسلما کار به آدرس عکس نداره مشکلش که :D
(جواب به صورت کامل: چون سایت روی لوکال در حال زندگی است!)
 
  • شروع کننده موضوع
  • #4

trustme

لنگر انداخته
ارسال‌ها
2,810
امتیاز
899
نام مرکز سمپاد
شهید بهشتی
شهر
کاشان
سال فارغ التحصیلی
1387
دانشگاه
دانشگاه خواجه نصیر طوسی
رشته دانشگاه
مهندسی مکانیک
پاسخ : مشکل در ساخت صفحه وب (با استفاده از wordpress)

من فکر می کنم دو نوع مشکل احتمالش باشه...

1- کد CSS تکراری باشه و مشخصات اون تب ها رو به هم بریزه (نمایش داده نمی شن... یعنی لایت باکس احتمالا داشته این آیدی رو!)
2- کدهای جاوای لایت باکس کاری روی این تب ها انجام داده باشن ...

این دو کار رو چطوری می شه بررسی کرد ؟! :D
 
ارسال‌ها
351
امتیاز
44
نام مرکز سمپاد
علامه حلی 1
شهر
تهران
سال فارغ التحصیلی
1388
پاسخ : مشکل در ساخت صفحه وب (با استفاده از wordpress)

چیزی که واضحه اینه که از این 4 خط مزخرفی که ردیف کردی چیزی در نمیاد !
ولی من احتمال به مشکل از طرف css میدم.

پیشنهاد : با قالب ور نرو ! تا کارت راه افتاد ولش کن. همیشه لازم نیست همه چیز تمیز باشه.
 
  • شروع کننده موضوع
  • #6

trustme

لنگر انداخته
ارسال‌ها
2,810
امتیاز
899
نام مرکز سمپاد
شهید بهشتی
شهر
کاشان
سال فارغ التحصیلی
1387
دانشگاه
دانشگاه خواجه نصیر طوسی
رشته دانشگاه
مهندسی مکانیک
پاسخ : مشکل در ساخت صفحه وب (با استفاده از wordpress)

من یادم رفت ذکر کنم که یه پلاگین دیگه هم به نام فوتواسمش (؟) برای گالری نصب کردم ...
قالب که قالب خفنی است و فقط یه مقدار ترجمه و فارسی سازی می خواست... مشکل از ور رفتن من نیست :D
وقتی فوتو رو نصب کردم هم همچین مشکلی پیش اومد ... چون توی css هاشون tabs تکراری بود... مجبور شدم
<ul class="idTabs tabs clearfix">
رو به این تبدیل کنم
<ul class="idTabs irresistibletabs clearfix">
تا اشکالی نداشته باشه ...

از این تیکه کد فقط این نتیجه می شه که مشکل توی CSS هاست و حتی کد جاوا هم مشکلی درست نکرده ! خوب ؟
حالا من می رم توی IE8 و توی Developer tools توی کد های قالب می گردم؛ نشون نمی ده از CSS دیگه ای جز Sytle.css که مال خود قالبه خصوصیت دیگه ای لود کنه (چون هم اسم فایل رو می ذاره کنارش هم اونایی که تکراری می شن رو یه خط روش می کشه!)
کد جاوا هم نمی تونه باشه ، چون این تیکه کدhtml ربطی به جاوا نداره !!

همینه دیگه :D من گیر کردم چی به چی هست :D
 

Mr.Bean

کاربر فوق‌فعال
ارسال‌ها
111
امتیاز
1
نام مرکز سمپاد
شهید بهشتی اهواز
شهر
اهواز
سال فارغ التحصیلی
90
دانشگاه
تهران
پاسخ : مشکل در ساخت صفحه وب (با استفاده از wordpress)

میشه دقیق تر توضیح:D
 
  • شروع کننده موضوع
  • #8

trustme

لنگر انداخته
ارسال‌ها
2,810
امتیاز
899
نام مرکز سمپاد
شهید بهشتی
شهر
کاشان
سال فارغ التحصیلی
1387
دانشگاه
دانشگاه خواجه نصیر طوسی
رشته دانشگاه
مهندسی مکانیک
پاسخ : مشکل در ساخت صفحه وب (با استفاده از wordpress)

کشف کردم ! مشکل در کدهای جاواست ... باید تک تک خط های این lightbox رو بخونم چون اون توی کد ها دست می بره ... اول که سایت لود می شه تب ها پشت سر هم تشریف دارن ... بعد از اینکه لود کامل می شه این تب ها پنهان می شن ولی کد هاشون وجود داره ... نمی دونم چرا !!
اینم کد ایندکس ... (اگه به درد نمی خوره بگین من بردارم این کد رو چون اینجا رو یه مقداری سنگین می کنه :D )
کد:
<!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">
<head profile="http://gmpg.org/xfn/11">

<title>TITLE</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="http://localhost/wordpress/wp-content/themes/irresistible/style.css" media="screen" />
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="http://localhost/wordpress/wp-content/themes/irresistible/ie.css" /><![endif]-->
<!--[if IE 6]>
<script src="http://localhost/wordpress/wp-content/themes/irresistible/includes/js/pngfix.js"></script>
<script src="http://localhost/wordpress/wp-content/themes/irresistible/includes/js/menu.js"></script>
<![endif]-->

<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://localhost/wordpress/?feed=rss2" />
<link rel="pingback" href="http://localhost/wordpress/xmlrpc.php" />

<script type='text/javascript' src='http://localhost/wordpress/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>

<script type='text/javascript' src='http://localhost/wordpress/wp-content/plugins/photosmash-galleries/js/bwbps.js?ver=1.0'></script>
<script type='text/javascript' src='http://localhost/wordpress/wp-content/themes/irresistible/includes/js/tabs.js?ver=2.8.1'></script>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://localhost/wordpress/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://localhost/wordpress/wp-includes/wlwmanifest.xml" /> 
<link rel='index' title='PrincesfoT - mHd' href='http://localhost/wordpress' />
<meta name="generator" content="WordPress 2.8.1" />
<style type="text/css">
	.addtoany_share_save_container{margin:16px 0;}
	ul.addtoany_list{
		display:inline;
		list-style-type:none;
		margin:0 !important;
		padding:0 !important;
	}
	ul.addtoany_list li{
		background:none !important;
		border:0;
		display:inline !important;
		line-height:32px;		list-style-type:none;
		margin:0 !important;
		padding:0 !important;
	}
	ul.addtoany_list li:before{content:"";}
	ul.addtoany_list li a{padding:0 9px;}
	ul.addtoany_list img{
		float:none;
		width:16px;
		height:16px;
		border:0;
		margin:0;
		padding:0;
		vertical-align:middle;
	}
	ul.addtoany_list a img{
		opacity:.6;
		-moz-opacity:.6;
		filter:alpha(opacity=60);
	}
	ul.addtoany_list a:hover img, ul.addtoany_list a.addtoany_share_save img{
		opacity:1;
		-moz-opacity:1;
		filter:alpha(opacity=100);
	}
	a.addtoany_share_save img{border:0;width:auto;height:auto;}    </style>
<script type="text/javascript"> lb_path = "http://localhost/wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/"; lb_opacity= "0.8"; lb_resize= "7";</script>
<link rel="stylesheet" type="text/css" media="screen" href="http://localhost/wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/css/lightbox.css" />
<script type="text/javascript" src="http://localhost/wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/js/prototype.js" ></script>
<script type="text/javascript" src="http://localhost/wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/js/scriptaculous.js?load=effects,builder"></script>

<script type="text/javascript" src="http://localhost/wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/js/lightbox.js"></script>
<style type="text/css">#overlay {background-color:#000000;}</style>
	<link rel="stylesheet" href="http://localhost/wordpress/wp-includes/js/thickbox/thickbox.css" type="text/css" media="screen" />
	
		<link rel="stylesheet" href="http://localhost/wordpress/wp-content/plugins/photosmash-galleries/css/bwbps.css" type="text/css" media="screen" />
		
	<link rel="stylesheet" type="text/css" href="http://localhost/wordpress/wp-content/plugins/photosmash-galleries/css/ui.core.css" />
	<link rel="stylesheet" type="text/css" href="http://localhost/wordpress/wp-content/plugins/photosmash-galleries/css/ui.datepicker.css" />
	
    <script type="text/javascript">
    var tb_pathToImage = "http://localhost/wordpress/wp-includes/js/thickbox/loadingAnimation.gif";
    var tb_closeImage = "http://localhost/wordpress/wp-includes/js/thickbox/tb-close.png";
	var displayedGalleries = "";
	var bwbpsAjaxURL = "http://localhost/wordpress/wp-content/plugins/photosmash-galleries/ajax.php";
	var bwbpsAjaxUserURL = "http://localhost/wordpress/wp-content/plugins/photosmash-galleries/ajax_useractions.php";
	var bwbpsAjaxUpload = "http://localhost/wordpress/wp-content/plugins/photosmash-galleries/ajax_upload.php";
	var bwbpsImagesURL = "http://localhost/wordpress/wp-content/uploads/bwbps/";
	var bwbpsThumbsURL = "http://localhost/wordpress/wp-content/uploads/bwbps/thumbs/";
	var bwbpsBlogURL = "http://localhost/wordpress/";
	
	function bwbpsAlternateUploadFunction(data, statusText, form_pfx){
		
		var ret = false;
		
				// Returning true will cause the normal Ajax Upload Success callback to abort...false continues 
		return false;
	}
	</script>
	<style type="text/css">#main { float:right; } #sidebar { float:left; }</style><link href="http://localhost/wordpress/wp-content/themes/irresistible/styles/default.css" rel="stylesheet" type="text/css" />

<script type="text/javascript"> 
  jQuery("#idTabs").idTabs(); 
</script>            

</head>

<body id="woothemes" dir="rtl">

	<div id="wrap">

		<div id="header">
			
            <ul id="nav" class="nav">

				<li class="current_page_item"><a href="http://localhost/wordpress/">خانه</a></li>

				<li class="page_item page-item-2"><a href="http://localhost/wordpress/?page_id=2" title="About">About</a></li>

			</ul>
		
			<form id="topSearch" class="search" method="get" action="http://localhost/wordpress">
					
				<p class="fields">
					<input type="text" value="search" name="s" id="s" onfocus="if (this.value == 'search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'search';}" />
					<button class="replace" type="submit" name="submit">Search</button>
				</p>

			</form>
			
            <div id="logo">
                <a href="http://localhost/wordpress" title="Just another WordPress weblog"><img class="title" src="http://localhost/wordpress/wp-content/themes/irresistible/images/logo.png" alt="PrincesfoT &#8211; mHd" /></a>
                <h1 class="replace"><a href="http://localhost/wordpress">PrincesfoT &#8211; mHd</a></h1>	
                		
            </div>
            
			<div id="hi">
			
				<p class="nomargin">اینجا وبلاگ من، برای فارسی سازی است!</p>

				
				<p><a href="#">read more</a></p>
			
			</div>
			
		</div>
		
	
		<div id="content" class="home">
		
			<div id="main">
			
                <h3 id="myWritings" class="replace">My Writings. My Thoughts.</h3>
				
				<div class="box1 clearfix">
				
					
                    															
																				
					
                        <div class="post clearfix">

                            <h3 id="post-7"><a href="http://localhost/wordpress/?p=7" rel="bookmark" title="Permanent Link to تست عکس">تست عکس</a></h3                            ><span class="txt0"><a class="post-edit-link" href="http://localhost/wordpress/wp-admin/post.php?action=edit&amp;post=7" title="Edit post">Edit</a> // July 13th, 2009 // <a href="http://localhost/wordpress/?p=7#respond" title="Comment on تست عکس">No Comments &#187;</a> // <a href="http://localhost/wordpress/?cat=1" title="View all posts in Uncategorized" rel="category">Uncategorized</a></span>
                        
	                            
                        </div>
					
					
                        <div class="post clearfix">
                            <h3 id="post-3"><a href="http://localhost/wordpress/?p=3" rel="bookmark" title="Permanent Link to تست فارسی!">تست فارسی!</a></h3                            ><span class="txt0"><a class="post-edit-link" href="http://localhost/wordpress/wp-admin/post.php?action=edit&amp;post=3" title="Edit post">Edit</a> // July 13th, 2009 // <a href="http://localhost/wordpress/?p=3#comments" title="Comment on تست فارسی!">1 Comment &#187;</a> // <a href="http://localhost/wordpress/?cat=1" title="View all posts in Uncategorized" rel="category">Uncategorized</a></span>

                        
	                        <p>سلام . من این قالب رو می خوام فارسی کنم؛ اینم برای تست هست!</p>
    
                        </div>
					
					
                        <div class="post clearfix">
                            <h3 id="post-1"><a href="http://localhost/wordpress/?p=1" rel="bookmark" title="Permanent Link to Hello world!">Hello world!</a></h3                            ><span class="txt0"><a class="post-edit-link" href="http://localhost/wordpress/wp-admin/post.php?action=edit&amp;post=1" title="Edit post">Edit</a> // July 13th, 2009 // <a href="http://localhost/wordpress/?p=1#comments" title="Comment on Hello world!">1 Comment &#187;</a> // <a href="http://localhost/wordpress/?cat=1" title="View all posts in Uncategorized" rel="category">Uncategorized</a></span>

                        
	                        <p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
    
                        </div>
					
										
										
					<p class="fr"><a href="http://localhost/wordpress/myarchive">View Archives</a></p>
				
				</div>
				
				<div id="videos">

    <h3 id="myVideos" class="replace">My videos. Featured videos.</h3>

    <div class="box1" id="video">
        
                
            
    </div><!--box1-->

</div><!--videos-->
			
			</div><!-- / #main -->
			
			<div id="sidebar">
						
                <!-- 
                <div id="portfolio">
                    
                    <h3 id="myPortfolio" class="replace">My Portfolio. Recent Works.</h3>
                
                    <ul class="img-list clearfix">
                    
                        <li><a href="#"><img src="http://localhost/wordpress/wp-content/themes/irresistible/images/img-portfolio-1.jpg" alt="" /></a></li>
                        <li><a href="#"><img src="http://localhost/wordpress/wp-content/themes/irresistible/images/img-portfolio-2.jpg" alt="" /></a></li>
                        <li><a href="#"><img src="http://localhost/wordpress/wp-content/themes/irresistible/images/img-portfolio-3.jpg" alt="" /></a></li>
                        <li><a href="#"><img src="http://localhost/wordpress/wp-content/themes/irresistible/images/img-portfolio-4.jpg" alt="" /></a></li>
                    
                    </ul>
                    <div class="clear"></div>					
                
                </div>
				-->
                
                <div id="flickr">
                    
                    <h3 id="myPhotos" class="replace">My photos. Now you know me.</h3>

                
                    <script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count=3&amp;display=latest&amp;size=s&amp;layout=x&amp;source=user&amp;user="></script>        
                    
                    <div class="clear"></div>
					<a href="" class="replace"><p id="browseFlickr"><span class="replace">Browse Flickr</span></p></a>
                
                </div>
				
				<h3 id="myLifestream" class="replace">My lifestream. Stay updated with me.</h3>
				
				<div class="box1 clearfix">	
					
										
				</div>               			

			    <div id="irresistibletabs">

    <ul class="idTabs irresistibletabs clearfix">
        <li class="nav1"><a href="#comm"><img src="http://localhost/wordpress/wp-content/themes/irresistible/images/ico-1.gif" alt="Comments" /></a></li>
        <li class="nav2"><a href="#pop"><img src="http://localhost/wordpress/wp-content/themes/irresistible/images/ico-2.gif" alt="Popular" /></a></li>
        <li class="nav3"><a href="#tagcloud"><img src="http://localhost/wordpress/wp-content/themes/irresistible/images/ico-5.gif" alt="TAgs" /></a></li>												
    </ul>
    <div class="inside">

        <ul id="comm">
            <li>
	admin said: 

	<a href="http://localhost/wordpress/?p=3#comment-2" title="on تست فارسی!">
		my vote goes here !...
   </a>
   <div style="clear:both"></div>
</li>
<li>
	Mr WordPress said: 
	<a href="http://localhost/wordpress/?p=1#comment-1" title="on Hello world!">
		Hi, this is a comment.To delete a comment, j...
   </a>

   <div style="clear:both"></div>
</li>
                    
        </ul>

        <ul id="pop">
            		<li>
           
            <a href="http://localhost/wordpress/?p=1" title="Hello world!">Hello world!</a>
    		<div style="clear:both"></div>

        </li>

		<li>
           
            <a href="http://localhost/wordpress/?p=3" title="تست فارسی!">تست فارسی!</a>
    		<div style="clear:both"></div>

        </li>
                    
        </ul>

        <div id="tagcloud">
                    </div>

    </div><!--inside-->

</div><!--tabs-->


				<div id="myfavblog" class="fr">			
					
					<h3 id="myFavblog" class="replace">My favblog. Feeds from them.</h3>
					
					<div class="box1">
                        <ul class="list2">
                        
							<!-- You can put whatever you want in this box... this is just an example -->
							<li><a href="http://wordpress.org/development/">Development Blog</a></li>

<li><a href="http://codex.wordpress.org/">Documentation</a></li>
<li><a href="http://wordpress.org/extend/plugins/">Plugins</a></li>
<li><a href="http://wordpress.org/extend/ideas/">Suggest Ideas</a></li>
<li><a href="http://wordpress.org/support/">Support Forum</a></li>
<li><a href="http://wordpress.org/extend/themes/">Themes</a></li>
<li><a href="http://planet.wordpress.org/">WordPress Planet</a></li>
                            
                        </ul>
                    </div>
				
				</div>							
							
			</div><!-- / #sidebar -->

        </div><!-- / #content -->
            
		

	</div><!-- / #wrap -->

	<div id="footer">
		
		<div id="footerWrap">
		
			<p id="copy">Copyright &copy; 2009 <a href="#">PrincesfoT &#8211; mHd</a>. All rights reserved.</p>

			
			<ul id="footerNav">
			
				<li class="page_item page-item-2"><a href="http://localhost/wordpress/?page_id=2" title="About">About</a></li>
				<li><a href="http://www.woothemes.com" title="Irresistible Theme by WooThemes"><img src="http://localhost/wordpress/wp-content/themes/irresistible/images/img_woothemes.jpg" width="87" height="21" alt="WooThemes" /></a></li>			
			</ul>
		
		</div><!-- / #footerWrap -->
	
	</div><!-- / #footer -->

<script type='text/javascript' src='http://localhost/wordpress/wp-includes/js/jquery/jquery.form.js?ver=2.02m'></script>
<script type='text/javascript' src='http://localhost/wordpress/wp-includes/js/thickbox/thickbox.js?ver=3.1-20090123'></script>

<script type="text/javascript">
a2a_localize = {
	Share: "Share",
	Save: "Save",
	Subscribe: "Subscribe",
	Email: "E-mail",
    Bookmark: "Bookmark",
	ShowAll: "Show all",
	ShowLess: "Show less",
	FindServices: "Find service(s)",
	FindAnyServiceToAddTo: "Instantly find any service to add to",
	PoweredBy: "Powered by",
	ShareViaEmail: "Share via e-mail",
	SubscribeViaEmail: "Subscribe via e-mail",
	BookmarkInYourBrowser: "Bookmark in your browser",
	BookmarkInstructions: "Press Ctrl+D or &#8984;+D to bookmark this page",
	AddToYourFavorites: "Add to your favorites",
	SendFromWebOrProgram: "Send from any e-mail address or e-mail program",
    EmailProgram: "E-mail program"
};
a2a_linkname="تست عکس";
a2a_linkurl="http://localhost/wordpress/?p=7";

</script><script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

<script type="text/javascript">
a2a_linkname="تست فارسی!";
a2a_linkurl="http://localhost/wordpress/?p=3";
a2a_init("page");</script>

<script type="text/javascript">
a2a_linkname="Hello world!";
a2a_linkurl="http://localhost/wordpress/?p=1";
a2a_init("page");</script>


</body>
</html>
 
  • شروع کننده موضوع
  • #9

trustme

لنگر انداخته
ارسال‌ها
2,810
امتیاز
899
نام مرکز سمپاد
شهید بهشتی
شهر
کاشان
سال فارغ التحصیلی
1387
دانشگاه
دانشگاه خواجه نصیر طوسی
رشته دانشگاه
مهندسی مکانیک
پاسخ : مشکل در ساخت صفحه وب (با استفاده از wordpress)

کشفیدم ! error console فایرفاکس رو باز کردم ... تا صفحه لود شد و تب ها معلوم بودن پاک کردم خطا ها رو بعد از کامل شدن لود دو تا چیزی موند
1) Warning: Error in parsing value for property 'filter'. Declaration dropped.
Source File: http://localhost/wordpress/#pop
Line: 1
2) Error: this._each is not a function
Source File: http://localhost/wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/js/prototype.js
Line: 594

من اون سری تست کرده بودم چون به نت وصل نبودم این اتفاقات بسیار سریع می افتاد و نتیجه نمی گرفتم ... ولی حالا داریم به یه نتیجه هایی می رسیم !!
 
  • شروع کننده موضوع
  • #10

trustme

لنگر انداخته
ارسال‌ها
2,810
امتیاز
899
نام مرکز سمپاد
شهید بهشتی
شهر
کاشان
سال فارغ التحصیلی
1387
دانشگاه
دانشگاه خواجه نصیر طوسی
رشته دانشگاه
مهندسی مکانیک
پاسخ : مشکل در ساخت صفحه وب (با استفاده از wordpress)

آقا من نمی فهمم چرا این کد خطای می ده ...

Error: this._each is not a function
Source File: http://localhost/wordpress/wp-content/plugins/lightbox-2-wordpress-plugin/lightbox/js/prototype.js
Line: 594*

کد:
var Enumerable = {
  each: function(iterator, context) {
    var index = 0;
    iterator = iterator.bind(context);
    try {
*      this._each(function(value){
        iterator(value, index++);
      });
    } catch (e) {
      if (e != $break) throw e;
    }
    return this;
  }
.
.
.
.
.
.
.
Object.extend(Array.prototype, {
  _each: function(iterator) {
    for (var i = 0, length = this.length; i < length; i++)
      iterator(this[i]);
  },

  clear: function() {
    this.length = 0;
    return this;
  },

  first: function() {
    return this[0];
  },

  last: function() {
    return this[this.length - 1];
  },

  compact: function() {
    return this.select(function(value) {
      return value != null;
    });
  },

  flatten: function() {
    return this.inject([], function(array, value) {
      return array.concat(Object.isArray(value) ?
        value.flatten() : [value]);
    });
  },

  without: function() {
    var values = $A(arguments);
    return this.select(function(value) {
      return !values.include(value);
    });
  },
 
ارسال‌ها
211
امتیاز
396
نام مرکز سمپاد
حلی ۲ #شوش
شهر
تهران
سال فارغ التحصیلی
95
دانشگاه
یک ترم تهران جنوب :)
رشته دانشگاه
نرم افزار
پاسخ : مشکل در ساخت صفحه وب (با استفاده از wordpress)

من حدس میزنم چون که روی لوکال هستی لایت باکس نمیتونه یک سری از توابعش رو اجرا کنه
+ اینکه Smush IT! خیلی مشکل داره معمولا توصیه میشه ازش استفاده نکنی !
 
بالا