How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View كيفية عرض العناصر (اعلانات) إلا على (أو ليس فقط في (الفرديه بهدف وحيد بعد البند
Blogger.com, a popular free blog publishing service from Google, has a extremely easy to use and convenient template system that allows users to design the blog user interface presentations by selecting a theme and then drag and drop various page elements such as poll, newsreel, video bar, feed, label, logo, AdSense, HTML/JavaScript and more to align them according to users’ preference on blog layout. Blogger.com ، شعبية حرة بلوق خدمة نشر صور ، لدية للغاية وسهلة الاستعمال ومريحه قالب نظام يتيح للمستخدمين لتصميم واجهة المستخدم بلوق عروض من اختيار موضوع وبعد ذلك سحب واسقاط مختلف عناصر الصفحه مثل الاستطلاع ، نشرة اخباريه ، شريط الفيديو ، والأعلاف ، والعلامه ، شعار ، AdSense ، لغة تأشير النص الفائق / جافا سكريبت واكثر لمواءمتها وفقا لافضليات المستعملين علي بلوق النسق. However, it also comes with serious limitations, such as when you want to make certain elements (ie Google AdSense ad unit) to appear and show when visitors visit single post item individually, or just want to shown the widget component block on homepage, archive and label or category pages. ومع ذلك ، كما يأتي مع قيود خطيرة ، كما هو الحال عندما كنت تريد ان تقوم بعض العناصر (أي وحدة اعلانيه AdSense صور) لتظهر وعندما تظهر الزوار البند ما بعد زيارة واحدة على حدة ، او اريد فقط ان تظهر القطعه من عناصر الكتلة على الصفحه الرئيسية ، ارشيف والعلامه أو صفحات الفئة.
Blogger.com allows users to manually the XML-based template HTML, thus allows a hack which enables users to manually edit the HTML code to achieve the aim to display and show certain widgets or part of webpages on individual post page view only. Blogger.com يدويا تتيح للمستخدمين لغة الترميز القابلة للامتداد فإن النموذج القائم على لغة تأشير النص الفائق ، مما يسمح المأجور الذي يتيح للمستخدمين يدويا قانون تحرير لغة تأشير النص الفائق من اجل تحقيق هدف لعرض واظهار بعض الحاجيات أو على جزء من صفحات الويب الفرديه بعد عرض صفحة فقط. However, you have need to have a basic HTML knowledge to modify the HTML code of Blogger’s template, which as editable by clicking on Template tab (or Layout of the blog you want to change if at Dashboard), and then click on Edit HTML . ومع ذلك ، لديك حاجة الى وجود لغة تأشير النص الفائق المعرفه الاساسية لتعديل قانون المدون لغة تأشير النص الفائق للنموذج ، على النحو الذي يمكن تعديلها عن طريق النقر على علامة التبويب قالب (النسق أو من بلوق التي تريد تغييرها إذا كان في لوحة القيادة) ، ثم انقر على تحرير لغة تأشير النص الفائق.
The trick is show a widget in single post item view only is to add the following two lines of code to the top and bottom of the code block respectively: الحيله هي تظهر عناصر واجهة المستخدم في وظيفة واحدة للعرض فقط هو البند اضيف ما يلي هذين الخطين من المدونه الى أعلى وأسفل كتلة من قانون التوالي :
<b:if cond='data:blog.pageType == "item"'> <b:ifcond='data:blog.pagetype == "item"'>
</b:if> </ ب : اذا>
The above lines will add in a condition which value is negative is the blog is not showing individual post content page. الخطوط المذكورة اعلاه سوف تضيف شرطا في القيمه السلبيه التي هي بلوق لا يظهر الفرديه بعد محتوى الصفحه. Thus anything that are wrapped inside it won’t be shown on homepage, label or category pages, or archive pages. وبالتالي ان كل ما يجري داخل ملفوفه انها لن يظهر على الصفحه الرئيسية ، او علامة صفحات الفئة ، أو أرشيف الصفحات. For example, while فعلى سبيل المثال ، في حين wrapping the AdSense ads manually beside the post content غلاف فإن اعلانات AdSense يدويا الى جانب وظيفة المحتوى , you can make the ads displayed only when individual posts are viewed by adding above 2 lines to the code, so that it will has the following structure: ، يمكنك اجراء الاعلانات المعروضة الا عندما ينظر الى كل وظيفة عن طريق اضافة خطوط 2 اعلاه الى المدونه ، بحيث انه سيكون له الهيكل التالي :
<b:if cond='data:blog.pageType == "item"'> <b:ifcond='data:blog.pagetype == "item"'>
Parsed Google AdSense Ad Code (guide to صور لغويا AdSense شفره الاعلان (دليل parse the HTML code of AdSense JavaScript with escape character تحليل لغة تأشير النص الفائق فان قانون AdSense طابع الهرب مع جافا سكريبت ) (
</b:if> </ ب : اذا>
To display the page elements or ad units on every pages except individual post content view pages, wrap the following lines of code instead: لعرض الصفحه عناصر او وحدات اعلانيه في كل صفحة على الفرد الا بعد نظرا لمحتوى الصفحات ، لف الخطوط التالية بدلا من القانون :
<b:if cond='data:blog.pageType != "item"'> <b:ifcond='data:blog.pagetype!= "item"'>
</b:if> </ ب : اذا>
The above statements make use of conditional statements similar to IF, ELSE, END IF in most programming languages. البيانات المذكورة اعلاه مشروطه الاستفادة من البيانات اذا كانت مماثلة ل، آخر ، في النهاية ، اذا كان معظم لغات البرمجه. The Blogger XML support these three conditional statements too. فان المدون لغة الترميز القابلة للامتداد ثلاثة المشروط دعم هذه البيانات ايضا. Two already been used above, with the third one ELSE is <b:else>. واستخدمت بالفعل اثنين اعلاه ، والثالث مع شخص آخر <b:else>. You can make use of <b:else> to instruct Blogger template to display this widget (eg AdBrite ads) on all pages except single post pages, and show another widget (eg AdSense ads) on individual post pages. يمكنك الاستفادة من <b:else>المدون تعليمات الى نموذج لعرض هذه القطعه (مثل اعلانات adbrite) على كل الصفحات باستثناء واحدة بعد صفحة ، وعرض آخر من عناصر واجهة المستخدم (مثل اعلانات AdSense) على صفحات الرسائل الفرديه.
Other than ads code or JavaScripts that are manually inserted into Blogger HTML, the above trick can be applied to widget based page elements that are added to the layout. اعلانات اخرى غير مدونة أو يدويا javascripts التي تضاف الى المدون لغة تأشير النص الفائق ، خدعة المذكورة اعلاه يمكن ان يطبق على اساس القطعه عناصر الصفحه التي تضاف الى التصميم. But you need to study carefully the HTML code to identify which blocks of code is the element in order to add in above codes to wrap on top and bottom around them. ولكنكم في حاجة الى ان تدرس بعناية لتحديد مدونة لغة تأشير النص الفائق الذي لبنات المدونه هي عنصر لفي اعلاه اضافة الى التفاف على الرموز العليا والسفلى من حولها.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. هام : هذا هو الاله الذي ترجم صفحة مقدمة "كما هى" دون ضمان. Machine translation may be difficult to understand. الترجمة الاليه قد يكون من الصعب ان نفهم. Please refer to يرجى الرجوع الى original English article المادة الاصليه English whenever possible. كلما كان ذلك ممكنا.
Share and contribute or get technical support and help at والمساهمة في حصة او الحصول على الدعم التقني والمساعدة فى My Digital Life Forums بلدي الرقميه الحياة المنتديات .
Related Articles مقالات ذات صلة
- Move Blogger Inline Ads Between Posts to Inside Within Post Position الأنتقال بين المدون انلاين اعلانات الوظائف الى داخل حدود ما بعد الموقف
- How to Wrap AdSense Ads Around and Inline Beside Blogger Post Content AdSense كيفية التفاف حول الاعلانات وانلاين المدون بجانب المحتوى وظيفة
- Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents مكان AdSense وحدة اعلانيه في مواقع مختلفة داخل حدود ما بعد المدون المحتويات
- Retrieve and Get WordPress Post ID Outside the Loop as PHP Variable WordPress واسترجاعها والحصول على رقم تعريف وظيفة خارج الحلقه كما بي. اتش. بى متغير
- Change to ads about Feature in Google Adsense Ads اعلانات عن لتغيير الملامح في صور إعلانات AdSense
- Video Ads Support in Google Adwords and Adsense اعلانات الفيديو لتقديم الدعم في صور وAdWords AdSense
- Adding Extra More Fields to WordPress Write/Edit Post/Page Right Column اضافة الى مجالات اضافية اكثر WordPress كتابه / تحرير ما بعد / صفحة العمود الأيسر
- Trick to Add AdSense, AdBrite and Other JavaScript Ad Code Directly to Blogger HTML Template خدعة لاضافة AdSense ، adbrite جافا سكريبت وغيرها من شفره الاعلان مباشرة الى المدون لغة تأشير النص الفائق قالب
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working ترقيم صفحات WordPress او تقسيم او ما بعد في صفحة nextpage WordPress لا تعمل
- Add and Insert to Put Google AdSense Ads Units Between Blog Posts in Blogger.com واضافة تدرج لوضع صور إعلانات AdSense بين وحدات بلوق وظائف في blogger.com

































October 3rd, 2007 01:17 تشرين الاول / اكتوبر 3rd ، 2007 01:17
[...] Note that you can also make the ads appear only on single post view. [...]لاحظ انه يمكنك ايضا ان يجعل الاعلانات تظهر فقط على رأي واحد بعد. [...]
November 5th, 2007 02:20 تشرين الثاني / نوفمبر 5th ، 2007 02:20
Thanks. شكرا. That helped. التي ساعدت.
January 2nd, 2008 16:45 كانون الثاني / يناير 2nd ، 2008 16:45
Do u have any idea how the same thing can be done using the classic template in blogger? هل يو اي فكرة كيفية الشيء نفسه يمكن ان يتم باستخدام القالب الكلاسيكي في المدون؟
The if condition to check for? اذا فان شرط للتحقق؟
January 13th, 2008 01:32 كانون الثاني / يناير 13th ، 2008 01:32
I used وكنت أنتظر
(if(in_category(CATID)) (اذا كانت الاجابه ب (in_category (catid))
{ (
} )
Works great بشكل رائع
April 11th, 2008 01:29 الحاديه عشرة نيسان / ابريل ، 2008 01:29
I’ve tried but code is automatically set to: حاولت ولكن القانون هو مجموعة تلقائيا الى :
test display عرض للتجارب
My aim is to display “test display” only on homepage. بلدي والهدف من ذلك هو عرض "عرض للتجارب" على الصفحه الرئيسية فقط.
May 6th, 2008 22:19 السادس من ايار / مايو ، 2008 22:19
Hi, اهلا ،
I like to play with html, and location of adsense on my blogs. احب اللعب على لغة تأشير النص الفائق ، وموقع بلادي على بلوق AdSense. I chanced upon your post and implemented the code to appear on a single post. الاول مصادف على مشاركتك وتنفيذ قانون للظهور على وظيفة واحدة. Then I got a new template and I had to start all over again.So now I have bookmarked your post, for future reference. ثم حصلت على قالب جديد وكان علي ان أبدأ الآن في جميع أنحاء again.so لقد اشارة مرجعيه رسالتك ، للرجوع اليها في المستقبل. Great post. وظيفة كبيرة.
May 30th, 2008 02:30 ايار / مايو 30th ، 2008 02:30
this is what i looking for. وهذا هو ما أنا أتطلع ل. thanks for help. شكرا للمساعدة.
August 16th, 2008 23:54 اب / اغسطس 16th ، 2008 23:54
Thanks a lot..this trick is very useful to me.. شكرا جزيلا.. هذه الخديعه مفيدة جدا بالنسبة لي..
September 7th, 2008 21:20 ايلول / سبتمبر 7th ، 2008 21:20
This is an extremely well article and whatever saying here in intact while going to real time basis. هذا هو جيد للغاية وأيا كانت المادة تقول هنا في حين لم تمس الذهاب الى اساس الوقت الحقيقي. My appreciations to giving such terrific information and the well written style. بلدي التقييمات رائع لاعطاء هذه المعلومات مكتوبة جيدا والاسلوب. Nice work. نيس العمل.
I have placed ad sense by following the instructions given here and it is working fantastic without a second involvement. لقد وضعت شعور الاعلانيه عن طريق اتباع التعليمات هنا ونظرا لأنه صالح للعمل رائع دون مشاركة الثانية.
Many thanks from my end. شكرا جزيلا من وجهة نظري هذه الغاية.
Sherin from Investinternals Sherin من investinternals