sir1 512 ارسال شده در آذر 94 گزارش بازنشر ارسال شده در آذر 94 با سلامبر طبق اموزش زیر خاستم که کد فیدبرنر در سایت قرار بدم ولی یه جا مشکل دارم.http://www.timan98.ir/%D8%A7%D8%B3%D...1%D9%86%D8%B1/تمام کدها رو در جایی که گفته قرار دادم ولی در جای گذاری کد زیر در فایل loop-index.php مشکل دارم.<!--timan98.ir--><div id="F3D"><div id="F3D2"><form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=acgih', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><input placeholder="ایمیل خود را وارد کنید" class="email2" type="text" style="width:200px" name="email"/>input type="hidden" value="acgih" name="uri"/><input type="hidden" name="loc" value="en_US"/><input type="submit" class="ease" value="عضویت" /><img src="http://www.samenblog.com/uploads/l/line/195247.png" alt="emailsubscript" style="float:right; padding:10px"></form></div></div><!--timan98.ir-->کد فایل loop-index.php به صورت زیر است:<?phpglobal $avia_config, $post_loop_count;[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]if(empty($post_loop_count)) $post_loop_count = 1;$blog_style = !empty($avia_config['blog_style']) ? $avia_config['blog_style'] : avia_get_option('blog_style','multi-big');if(is_single()) $blog_style = avia_get_option('single_post_style','single-big');[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]$initial_id = avia_get_the_ID();[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]// check if we got posts to display:if (have_posts()) :[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]while (have_posts()) : the_post();[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]/* * get the current post id, the current post class and current post format */$url = "";$current_post = array();$current_post['post_loop_count']= $post_loop_count;$current_post['the_id'] = get_the_ID();$current_post['parity'] = $post_loop_count % 2 ? 'odd' : 'even';$current_post['last'] = count($wp_query->posts) == $post_loop_count ? " post-entry-last " : "";$current_post['post_type'] = get_post_type($current_post['the_id']);$current_post['post_class'] = "post-entry-".$current_post['the_id']." post-loop-".$post_loop_count." post-parity-".$current_post['parity'].$current_post['last']." ".$blog_style;$current_post['post_class'] .= ($current_post['post_type'] == "post") ? '' : ' post';$current_post['post_format'] = get_post_format() ? get_post_format() : 'standard';$current_post['post_layout'] = avia_layout_class('main', false);$blog_content = !empty($avia_config['blog_content']) ? $avia_config['blog_content'] : "content";/*If post uses builder change content to exerpt on overview pages*/ if(AviaHelper::builder_status($current_post['the_id']) && !is_singular($current_post['the_id']) && $current_post['post_type'] == 'post') { $current_post['post_format'] = 'standard'; $blog_content = "excerpt_read_more"; }/* * retrieve slider, title and content for this post,... */ $size = strpos($blog_style, 'big') ? (strpos($current_post['post_layout'], 'sidebar') !== false) ? 'entry_with_sidebar' : 'entry_without_sidebar' : 'square'; if(!empty($avia_config['preview_mode']) && !empty($avia_config['image_size']) && $avia_config['preview_mode'] == 'custom') $size = $avia_config['image_size'];$current_post['slider'] = get_the_post_thumbnail($current_post['the_id'], $size);if(is_single($initial_id) && get_post_meta( $current_post['the_id'], '_avia_hide_featured_image', true ) ) $current_post['slider'] = "";$current_post['title'] = get_the_title();$current_post['content'] = $blog_content == "content" ? get_the_content(__('Read more','avia_framework').'<span class="more-link-arrow"> →</span>') : get_the_excerpt();$current_post['content'] = $blog_content == "excerpt_read_more" ? $current_post['content'].'<div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"> →</span></a></div>' : $current_post['content'];$current_post['before_content'] = "";[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]/* * ...now apply a filter, based on the post type... (filter function is located in includes/helper-post-format.php) */[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]$current_post = apply_filters( 'post-format-'.$current_post['post_format'], $current_post );$with_slider = empty($current_post['slider']) ? "" : "with-slider";/* * ... last apply the default wordpress filters to the content */$current_post['content'] = str_replace(']]>', ']]>', apply_filters('the_content', $current_post['content'] ));[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]/* * Now extract the variables so that $current_post['slider'] becomes $slider, $current_post['title'] becomes $title, etc */extract($current_post);[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]/* * render the html: */[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]echo "<article class='".implode(" ", get_post_class('post-entry post-entry-type-'.$post_format . " " . $post_class . " ".$with_slider))."' ".avia_markup_helper(array('context' => 'entry','echo'=>false)).">";[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] //default link for preview images $link = !empty($url) ? $url : get_permalink(); //preview image description $desc = get_post( get_post_thumbnail_id() ); if(is_object($desc)) $desc = $desc -> post_excerpt; $featured_img_desc = ( $desc != "" ) ? $desc : the_title_attribute( 'echo=0' );[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] //on single page replace the link with a fullscreen image if(is_singular()) { $link = avia_image_by_id(get_post_thumbnail_id(), 'large', 'url'); }[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] //echo preview image if(strpos($blog_style, 'big') !== false) { if($slider) $slider = '<a href="'.$link.'" title="'.$featured_img_desc.'">'.$slider.'</a>'; if($slider) echo '<div class="big-preview '.$blog_style.'">'.$slider.'</div>'; }[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] if(!empty($before_content)) echo '<div class="big-preview '.$blog_style.'">'.$before_content.'</div>';[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] echo "<div class='blog-meta'>";[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] $blog_meta_output = ""; $icon = '<span class="iconfont" '.av_icon_string($post_format).'></span>';[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] if(strpos($blog_style, 'multi') !== false) { $gravatar = ""; $link = get_post_format_link($post_format); if($post_format == 'standard') { $author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $post->post_author), $post->post_author); $author_email = apply_filters('avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author); $gravatar_alt = esc_html($author_name); $gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt); $link = get_author_posts_url($post->post_author); }[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>"; } else if(strpos($blog_style, 'small') !== false) { $blog_meta_output = "<a href='{$link}' class='small-preview' title='{$featured_img_desc}'>".$slider.$icon."</a>"; }[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] echo apply_filters('avf_loop_index_blog_meta', $blog_meta_output);[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] echo "</div>";[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] echo "<div class='entry-content-wrapper clearfix {$post_format}-content'>"; echo '<header class="entry-content-header">'; echo $title;[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] echo "<span class='post-meta-infos'>"; $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false)); echo "<time class='date-container minor-meta updated' $markup>".get_the_time(get_option('date_format'))."</time>"; echo "<span class='text-sep text-sep-date'>/</span>";[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] if ( get_comments_number() != "0" || comments_open() ){[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] echo "<span class='comment-container minor-meta'>"; comments_popup_link( "0 ".__('Comments','avia_framework'), "1 ".__('Comment' ,'avia_framework'), "% ".__('Comments','avia_framework'),'comments-link', "".__('Comments Disabled','avia_framework')); echo "</span>"; echo "<span class='text-sep text-sep-comment'>/</span>"; }[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] $taxonomies = get_object_taxonomies(get_post_type($the_id)); $cats = ''; $excluded_taxonomies = apply_filters('avf_exclude_taxonomies', array('post_tag','post_format'), get_post_type($the_id), $the_id);[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] if(!empty($taxonomies)) { foreach($taxonomies as $taxonomy) { if(!in_array($taxonomy, $excluded_taxonomies)) { $cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' '; } } }[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] if(!empty($cats)) { echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." "; echo $cats; echo '</span><span class="text-sep text-sep-cat">/</span>'; }[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." "; echo '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>'; echo '<span class="vcard author"><span class="fn">'; the_author_posts_link(); echo '</span></span>'; echo '</span>'; echo '</span>'; echo '</span>';if(function_exists('the_ratings')) { the_ratings(); } echo '</header>';[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] // echo the post content echo '<div class="entry-content" '.avia_markup_helper(array('context' => 'entry_content','echo'=>false)).'>'; echo $content; echo '</div>';[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] echo '<footer class="entry-footer">';[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] $avia_wp_link_pages_args = apply_filters('avf_wp_link_pages_args', array( 'before' =>'<nav class="pagination_split_post">'.__('Pages:','avia_framework'), 'after' =>'</nav>', 'pagelink' => '<span>%</span>', 'separator' => ' ', ));[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] wp_link_pages($avia_wp_link_pages_args);[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] if(is_single() && !post_password_required()) { //tags on single post if(has_tag()) { echo '<span class="blog-tags minor-meta">'; the_tags('<strong>'.__('Tags:','avia_framework').'</strong><span> '); echo '</span></span>'; }[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]echo '<div style="margin: 20px 0px 20px">'; echo '<div style="text-align: center;">'; echo ' <a target="_blank" href="http://www.acgih.ir/ads/"><img title="تبلیغات شما در اینجا" src="http://www.acgih.ir/wp-content/uploads/2015/03/ad.png" alt="تبلیغات شما در اینجا" height="60" width="468"></a>' ; echo '</div>'; echo '</div>'; //share links on single post avia_social_share_links(); } do_action('ava_after_content', $the_id, 'post');[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] echo '</footer>';[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] echo "<div class='post_delimiter'></div>"; echo "</div>"; echo "<div class='post_author_timeline'></div>";echo "</article>";[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]$post_loop_count++;endwhile;else:[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]?>[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] <article class="entry"> <header class="entry-content-header"> <h1 class='post-title entry-title'><?php _e('Nothing Found', 'avia_framework'); ?></h1> </header>[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] <p class="entry-content" <?php avia_markup_helper(array('context' => 'entry_content')); ?>><?php _e('Sorry, no posts matched your criteria', 'avia_framework'); ?></p>[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)] <footer class="entry-footer"></footer> </article>[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]<?php[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]endif;[/background][/right][/font][/color][color=#333333][font=Tahoma][right][background=rgb(247, 247, 247)]if(empty($avia_config['remove_pagination'] )){ echo "<div class='{$blog_style}'>".avia_pagination('', 'nav')."</div>";}?>اگه زحمتی نیست لطفا کد را برام طوری جایگذاری کنید که در اخر مطالب کادر عضویت در خبرنابه باشد. ممنون لینک به ارسال
بویکا 124 ارسال شده در آذر 94 گزارش بازنشر ارسال شده در آذر 94 دوست عزیز می خواین دقیفا چیکار کنین ؟ 1 لینک به ارسال
sir1 512 ارسال شده در آذر 94 مالک گزارش بازنشر ارسال شده در آذر 94 اگه شما به اون اموزشی که لینکشو گذاشتم برید متوجه می شد. من میخاهم که در ادامه مطلب کادری برای عضویت کاربران در خبرنامه بوسیله فید برنر قرار بدم.حالا در اون اموزش تمام کدهایی را که گفته من در جای خود قرار دادم. ولی اون کدی که برای نمایش کادر عضویت خبرنامه در ادامه مطلب هست در هر جای فایل loop-index.php قرار میدم سایت بالا نمیاد.گفتم از اساتید کمک بگیرم که این تیکه کد اخر را برام در فایل loop-index.php قرار بدن تا کادر عضویت در اخر مطالب برای کاربران نمایش داده شود. ادرس سایت www.acgih.ir لینک به ارسال
GMan 27 ارسال شده در آذر 94 گزارش بازنشر ارسال شده در آذر 94 اگه شما به اون اموزشی که لینکشو گذاشتم برید متوجه می شد. من میخاهم که در ادامه مطلب کادری برای عضویت کاربران در خبرنامه بوسیله فید برنر قرار بدم.حالا در اون اموزش تمام کدهایی را که گفته من در جای خود قرار دادم. ولی اون کدی که برای نمایش کادر عضویت خبرنامه در ادامه مطلب هست در هر جای فایل loop-index.php قرار میدم سایت بالا نمیاد.گفتم از اساتید کمک بگیرم که این تیکه کد اخر را برام در فایل loop-index.php قرار بدن تا کادر عضویت در اخر مطالب برای کاربران نمایش داده شود. ادرس سایت www.acgih.irمن این آموزش رو ندیدمولی شما برای قرار دادن کادر عضویت، می تونین برین به همون سایت فیدبرنر و از داخل اکانت خودتون کد مربوطه رو کپی و هرجای قالب که خواستین پیست کنین لینک به ارسال
sir1 512 ارسال شده در آذر 94 مالک گزارش بازنشر ارسال شده در آذر 94 من این آموزش رو ندیدمولی شما برای قرار دادن کادر عضویت، می تونین برین به همون سایت فیدبرنر و از داخل اکانت خودتون کد مربوطه رو کپی و هرجای قالب که خواستین پیست کنیناین اون اموزشه:http://www.timan98.ir/%D8%A7%D8%B3%D8%AA%D8%A7%DB%8C%D9%84-%D8%B2%DB%8C%D8%A8%D8%A7%DB%8C-CSS3-%D8%A8%D8%B1%D8%A7%DB%8C-%D9%81%DB%8C%D8%AF%D8%A8%D8%B1%D9%86%D8%B1/بلدم تنها او کد فیر بنر را بزارم ولی خب شکل شمایلی خوبی نداره. در اون اموزش خوبه یه استیل خوشکل براش گذاشته لینک به ارسال
sir1 512 ارسال شده در آذر 94 مالک گزارش بازنشر ارسال شده در آذر 94 لطفا تایپیکو ببندید انگار کسی در انجمن هم نیس تایپیک هم ببنده لینک به ارسال
SM-Mahdavi 5427 ارسال شده در آذر 94 گزارش بازنشر ارسال شده در آذر 94 لطفا تایپیکو ببندید انگار کسی در انجمن هم نیس تایپیک هم ببندهبسته شد لینک به ارسال
پست های پیشنهاد شده