July 21, 2023

Dynamic Blogger Recent Posts With Carousel Sliding Widget

 Cover Image showing photo of Dynamic Blogger Recent Posts With Carousel Sliding Widget

Introduction

Hello, Friends, Many of my posts related to Recent Posts Widgets were outdated so instead of updating those posts with the same code and design I have created a couple of great looking widgets which will be published in upcoming days.

Today I Have Created Recent Posts Widget with Carousel Sliding Feature which is responsive and looks great in any screen size.

This widget is not new but we have used TinySlider which is a Vanilla Javascript Based Slider Plugin which is lightweight and has zero dependencies.

This is the reason we have used the tiny slider to achieve the Sliding Effect and used Blogger JSON API to fetch the posts.

This Carousel Recent Posts Widget Looks very stylish and it is modular you don't need to tweak your template just you need to add this plugin in your layout using add a gadget section.

For the DEMO Purpose, I'm using this widget in my blog you can scroll down to see it live and working.

You may still have doubts regarding the responsiveness of this widget if you have any doubt just open my blog in your mobile phones or tablets to check the real responsiveness thanks to Tiny Slider 2 Plugin we got a lot of options to make it responsive.

I think now its time to add the widget I will show you how you can add it. If you are a new blogger you can be surprised or find this code too long but this is the code that I wrote I'm not minimising so that if a user wants to customize or create their own widget they can easily do.

Installing the widget

STEP 1: Log in to your Blogger account and Go to your Blogger Dashboard

Blogger Layout

STEP 2: In The Left Side Bar You will find Layout Section as highlighted in the image above Click on Layout.


Add a Gadget


STEP 3: Click On "Add a Gadget" As highlighted in the image above.




STEP 4:After Clicking on "Add a Gadget" Choose "HTML/JavaScript" from the list & as highlighted in the image above.

STEP 5: Now Copy This Below Code And Paste it in The Empty Box of the "HTML/JavaScript" Section.

<!-- 

///////////////////////////////////////////
A Widget Developed By MM Nauman 
Author: MM Nauman
Publisher: https://capoenk-01.blogspot.com/
////////////////////////////////////////////

Support
Sliding Feature Used
Slider: Tiny Slider 2
License: MIT
Author: https://github.com/ganlanyuan/tiny-slider


Please Don't Remove this Comments, This will Help the Authors.
-->


<link href='https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.3/tiny-slider.css' rel='stylesheet'/>
<style>
     :root{
         --success: rgb(40 167 69); /* Light Green Color*/
         --light: rgb(248 249 250); /* Whitish Color */
         --dark: rgb(52 58 64);  /* Dark Gray Color*/
         --gray: rgb(108 117 125); /* Normal Gray Color*/
         --pink: rgb(232 62 140); /* Pink Color*/
     }

.ABT_Recent_Posts{
margin-top: 30px;
}

.ABT_Recent_Posts div h2{
  font-size: 16px;
  margin-top: 10px;
  text-transform: capitalize;
  padding: 5px;
min-height: 80px;
}

.ABT_Recent_Posts div h2 a:hover{
  text-decoration: none;
  color: var(--success);
}

.ABT_Recent_Posts div{
  text-align: center;
background-color: var(--light);

}

.ABT_Recent_Posts div a {
  color: var(--gray);
}

.ABT_Recent_Posts img{
  width: 100%;
  max-height: 200px;
min-height: 200px;
height: 100%;
  object-fit: cover;
  
}

.ABT_Recent_Posts  div p{
  margin: 0
}

.ABT_Recent_Posts  div p a{
  display: block;
  background: var(--pink);
  color: var(--light);
  padding: 10px;
  transition: all .5s;
}
.ABT_Recent_Posts  div p a:hover{
  background: var(--dark);
  color: var(--light);
  text-decoration: none;

}

.ABT_Recent_Posts div p{
    border-radius: 4px;
}

.tns-controls {
    width: fit-content;
    margin: 20px auto;

}

.tns-controls button{
    margin: 0px 15px;
    outline: none;  
    border: none;
    font-size: 20px;
    background: unset;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(0,0,0,.1);
}

.tns-controls button:hover{
    background-color: rgba(0,0,0,.2);
}
    </style>


 <div class='ABT_Recent_Posts'>
        <!-- Dynamic Data will be added here-->
    </div>

    <script>
let TotalPosts = 10; // Number of posts you want to display 
        function ABT_Fetch_Recent_Posts(JSON) {
            const POSTS = JSON.feed.entry;
            let PostTitle, PostURL = "";
            let JumpLinkText = "Read More";
            let RecentPostsContainer = document.querySelector(".ABT_Recent_Posts");

            for (let i = 0; i < TotalPosts; i++) {
                //Get Title and URL of the Post
                POSTS[i].link.forEach((el, i) => {
                    if (el.rel === "alternate") {
                        PostTitle = el.title;
                        PostURL = el.href;
                    }
                })

                //Get Post Thumbnail
                let thumbnail = POSTS[i].media$thumbnail && POSTS[i].media$thumbnail.url;
                if (thumbnail) {
                    thumbnail = thumbnail.replace("s72-c", "");
                } else if (POSTS[i].content.$t.match(/(http)?s?:?(\/\/[^"']*\.(?:png|jpg|jpeg|gif|png|svg))/)) {
                    thumbnail = POSTS[i].content.$t.match(/(http)?s?:?(\/\/[^"']*\.(?:png|jpg|jpeg|gif|png|svg))/)[0];
                } else {
                    thumbnail = "https://placeholder.pics/svg/300/DEDEDE/555555/Image%20Not%20Loaded";
                }


                RecentPostsContainer.innerHTML += `<div> 
        <img src="${thumbnail}" alt="${PostTitle}"/>
        <h2>
        <a href="${PostURL}">${PostTitle}</a>
        </h2>
        <p><a href="${PostURL}">${JumpLinkText}</a></p>
         </div>`;

            }
        }

        var blogLink = document.location.origin;
        var callScript = document.createElement("script");
        callScript.src = `${blogLink}/feeds/posts/default?alt=json-in-script&start-index=1&max-results=${TotalPosts}&callback=ABT_Fetch_Recent_Posts`;
        let Recent_Posts_Container = document.querySelector('.ABT_Recent_Posts');

        document.body.appendChild(callScript);

 let SliderOptions = [
"<i class='fas fa-arrow-left'/>", 
"<i class='fas fa-arrow-right'/>",
];

        window.onload = () => {
            tns({
                container: ".ABT_Recent_Posts",
                items: 1,
                mouseDrag: true,
                autoplay: true,
                controls: true,
                arrowKeys: false,
                gutter: 10,
                nav: false,
                slideBy: 1,
                autoplayHoverPause: true,
                autoplayButtonOutput: false,
                controlsText: [
"<i class='fas fa-arrow-left'></i>", 
"<i class='fas fa-arrow-right'></i>",
],
                controlsPosition: "bottom",
                loop: false,
                preventScrollOnTouch: "force",
                autoplayTimeout: 6000,
rewind: true,
                responsive: {
                    0: {
                        items: 1,
                    },
                    320: {
                        items: 1,
                    },
                    460: {
                        items: 2,
                    },
                    600: {
                        items: 3,
                    },
                    800: {
                        items: 4,
                    },
                }

            });
        }
    </script>

<script src='https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/min/tiny-slider.js'></script>

This is it, now get ready for the customization part.

Customization


If you want to change the Number of posts to display by default it is 10 but if you want to increase or decrease then just change the red highlighted number in the above code.

If you want to change the text for jump link by default it is Read More. 

If you have a blog for example relating to the food reviews or movie reviews then you might want to show read review or something else then change the orange highlighted text. (make sure you don't remove quotes surrounding the text)

If you want to customize the styling according to your theme then you can do it easily I'm not adding how to do it here because you might break the widget if you miss a semicolon also. Ask me in comments with your blog URL I will change the styling for you.

July 20, 2023

Windows 11 Lite Premium V22H2 Build 22621.1992 By PHRANKIE


Windows 11 Premium v22H2 build 22621.1992 By Phrankie

Windows 11 Lite Premium v22H2 build 22621.1992 By Phrankie

Download Windows 11 Premium v22H2 build 22621.1992 By Phrankie is a version of Windows 11 build 22621.1992 that is customized interface and optimized for low-end machines or gaming.

 


General Information

Edition: 22621.1992
Version : 22H2
Arch : x64amd
Lang : en-US
Author: Phrankie11
Compression: ESD
ISO Size: 2.57gb

System Requirements

Operating System: Windows XP/Vista/7/8/8.1/10
RAM: 2GB or Higher
Hard Disk: Atleast 6gb or Higher
Processor:  2-4 gigahertz (GHz) 
or faster with 2 cores or more cores on a compatible 64-bit processor

Installation

Ventoy
Rufus

Build Notes

Removed

All bloatware apps except Defender
Edge
OneDrive
WinRe

Disabled

Pagefile
Hibernation
Reserve Storage
Adds
App lookup in store
Automatic Maintenance
Downloads Blocking
Hibernate
Malicious Software Installing
Smartscreen
Windows 11 Stock Start Menu (For Good)
Windows 11 Taskbar Search (For Good)

What's Special?

Multiple Themes
HD Windows 11 Wallpapers
Custom Power Plan Applied
Compact Compress Applied
Full Featured Updatable Build
Preactivated with Digital License
Disabled all risk in privacy section
Bypassed Force Microsoft Account Creation
Bypassed TPM, RAM, Secure Boot, Storage, CPU Check

Notes

– Enable pagefile if needed in extras folder
– Themes and extra wallpaper are located in extras folder
– Net Framework 3.5 is not installed as default but you can install it manually in setting, apps, optional features
– Credits to  @Mr. Spacely  for the beautiful cover

Screenshots





Download Windows 11 Premium v22H2 build 22621.1992 By Phrankie

ISO file size is 2.6GB

June 13, 2023

Widget Recent Post Blogger dengan Thumbnail cantik

 Recent Post adalah sebuah Widget Postingan Terbaru di sebuah Blog untuk mempermudahkan pengunjung menemukan artikel terbaru. Bukan hanya menggunakan teks saja tetapi supaya menarik perhatian bisa menambahkan gambar. Ada banyak tutorialnya tetapi terkadang kita kebinggungan saat harus edit HTML ke dalam.


Sebelumnya saya sudah berbagi artikel tentang Cara membuat Widget Postingan terbaru di Blogger menggunakan Gambar. Kalian bisa lihat di versi Desktop samping kanan Blog ini. Tampilan Thumbnail atau gambarnya kotak dan bisa melihat ke daftar postingan sebelumnya tanpa harus membuka yang baru.

Untuk versi yang baru ini tampilannya sedikit unik dan cantik. Gambar thumbailnya terlihat di sebelah kanan dan tampil bulat. Untuk kalian yang inggin memasangnya di Blogger cukup mudah dan tidak perlu masuk ke HTML Blogger. Silahkan ikuti carannya dibawah ini dan perhatikan intruksi yang saya berikan.

Widget Recent Post Blogger dengan Thumbnail cantik

Langkah 1 : Silahkan masuk ke Dasboard Blogger dan disini saya menggunakan Template VioMagz Versi 2.2, pilih Tata Letak lalu klik Tambahkan Gadget untuk menampilkan di samping kanan.

Langkah 2 : Pilih dan klik tanda (HTML/JavaScript)
 

Langkah 3 :  Tuliskan pada Julul "Postingan Terbaru". Pada konten silahkan isi Script yang sudah saya sipkan dibawah.
 
<script type="text/javascript" src="//cloud.github.com/downloads/jhwilson/Create-a-Blogger-archive-page/Make-Blogger-Archive-Page.js"></script>
<style type="text/css">
img.recent-post-thumbnail{float:right;height:50px;width:50px;margin:5px -5px 0px 0px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;padding:3px;background: #fff}
ul.recent-posts-wrap {background: #fff;list-style-type: none; margin: 5px 0px 5px 0px; padding: 0px;font:12px 'Ubuntu Condensed', sans-serif;}
ul.recent-posts-wrap li:nth-child(1n+0) {background: #FCD092; width: 94%}
ul.recent-posts-wrap li:nth-child(2n+0) {background: #FFE0B4; width: 94%}
ul.recent-posts-wrap li:nth-child(3n+0) {background: #FFF59E; width: 94%;}
ul.recent-posts-wrap li:nth-child(4n+0) {background: #E1EFA0; width: 94%;}
ul.recent-posts-wrap li:nth-child(5n+0) {background: #B1DAEF; width: 94%;}
ul.recent-posts-wrap li {padding:5px 10px;list-style-type: none; margin: 0 0 -5px; color: #777;}
.recent-posts-wrap a { text-decoration:none; }
.recent-posts-wrap a:hover { color: #222;}
.post-date {color:#e0c0c6; font-size: 11px; }
.recent-post-title a {font-size: 14px;font-weight: bold;color: #444;}
.recent-post-title {padding: 6px 0px;}
.recent-posts-details a{ color: #222;}
.recent-posts-details {padding: 5px 0px 5px; }
</style>
<script type="text/javascript">
function showrpwiththumbs(t){document.write('<ul class="recent-posts-wrap">');for(var e=0;e<posts_number;e++){var r,n=t.feed.entry[e],i=n.title.$t;if(e==t.feed.entry.length)break;for(var o=0;o<n.link.length;o++){if("replies"==n.link[o].rel&&"text/html"==n.link[o].type)var l=n.link[o].title,m=n.link[o].href;if("alternate"==n.link[o].rel){r=n.link[o].href;break}}var u;try{u=n.media$thumbnail.url}catch(h){s=n.content.$t,a=s.indexOf("<img"),b=s.indexOf('src="',a),c=s.indexOf('"',b+5),d=s.substr(b+5,c-b-5),u=-1!=a&&-1!=b&&-1!=c&&""!=d?d:"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiy_Yc5jq-6sPha-hGdXtc7v6Z7rx_Xs0mF-Lgk-5EQ7Ax57sdtmka_pBt5-cgOhMgDgOC7QPHjdSIMsyOyAHwMpbFHb5ljIdNExADEu-0i7Rf6r0aJHae8l7tL46Sr7OyBzi30OVvK79Zq/s1600/no-thumb.png"}var p=n.published.$t,f=p.substring(0,4),g=p.substring(5,7),v=p.substring(8,10),w=new Array;if(w[1]="Jan",w[2]="Feb",w[3]="Mar",w[4]="Apr",w[5]="May",w[6]="Jun",w[7]="Jul",w[8]="Aug",w[9]="Sep",w[10]="Oct",w[11]="Nov",w[12]="Dec",document.write('<li class="recent-posts-list">'),1==showpostswiththumbs&&document.write('<a href="'+r+'"><img class="recent-post-thumbnail" src="'+u+'"/></a>'),document.write('<div class="recent-post-title"><a href="'+r+'" target ="_top">'+i+"</a></div>"),"content"in n)var A=n.content.$t;else if("summary"in n)var A=n.summary.$t;else var A="";var k=/<\S[^>]*>/g;if(A=A.replace(k,""),1==post_summary)if(A.length<summary_chars)document.write(A);else{A=A.substring(0,summary_chars);var y=A.lastIndexOf(" ");A=A.substring(0,y),document.write(A+"...")}var _="",$=0;document.write('<br><div class="recent-posts-details">'),1==posts_date&&(_=_+w[parseInt(g,10)]+" "+v+" "+f,$=1),1==insidereadmorelink&&(1==$&&(_+=" | "),_=_+'<a href="'+r+'" class="url" target ="_top">Read more</a>',$=1),1==showcomments&&(1==$&&(_+=" <br> "),"1 Comments"==l&&(l="1 Comment"),"0 Comments"==l&&(l="No Comments"),l='<a href="'+m+'" target ="_top">'+l+"</a>",_+=l,$=1),document.write(_),document.write("</div>"),document.write("</li>")}document.write("</ul>")}
</script>
<script type="text/javascript">
var posts_number = 5;
var showpostswiththumbs = true;
var insidereadmorelink = true;
var showcomments = false;
var posts_date = false;
var post_summary = true;
var summary_chars = 50;
</script>
<script src="/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrpwiththumbs"></script>
<noscript>Your browser does not support JavaScript!</noscript>
<link href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed' rel='stylesheet' type='text/css' />


Keterangan : Untuk tulisan warna merah di atas silahkan anda ganti sesuai keingginan. Jumlah Post, Tampilkan Thumbail, Tanggal atau Waktu Postingan, Kata atau kalimat dalam postingan. Untuk angka silahkan ganti sesukanya dan untuk False itu tidak aktif dan untuk mengaktifkannya silahkan ganti True.

Langkah 4 : Jangan lupa Save atau Simpan Setelan.

Langkah 5 : Selesai dan berikut ini adalah contoh tampilannya.

Bagaimana cukup mudah bukan membuat Recent Post dengan menambahkan Thumbnail yang cantik dan unik. Silahkan anda praktekkan dan apabila mengalami kesulitan boleh anda tanyakan di kolom Komentar. terima kasih

June 03, 2020

Cara Menghapus Credit Link Yang Sangat Susah di Template Blogger


hai sobat internet. Susah untuk menghapus script Copyright / Credit link footer pada template blogger sudah dihapus tapi masih ada yah ? yah itu memang script bandel yang sembunyikan/disisipkan oleh developer templatenya, sebenernya hal seperti itu tidak mengganggu sih karena kita kan tinggal memakainya saja, namun pendapat orang mungkin kan berbeda-berbeda yah dan kalo credit link tidak dihapus mungkin kelihatannya tidak sreg (kurang keren) gitu yah. nah untuk menghapusnya mudah sekali seperti berikut ini :

1.Login ke akun blogger
2.Ke menu template (edit html)
3.Temukan script kurang lebihnya seperti gambar dibawah



4.Kemudian hapus saja / diganti pengembang.com dengan nama kamu dan cek hasilnya

Info :
Jika sampai sini sudah berhasil maka save templatenya dan selesai, akan tetapi jika belum berhasil kemungkinan developer template memasukan script credit link lebih dari satu, namun script yang ke dua biasnya lebih sulit untuk ditemukan dan biasanya diumpetin (kaya main petak umpet yah).

Nah... jika setelah menghapus script seperti diatas kemudian setelah di cek masih ada (bandel banget sih), maka langkah selanjutnya sebagai berikut ini :

5.Temukan script sebagai contoh kurang lebih seperti gambar dibawah ini



6.Setelah ketemu hapus saja script tersebut dan melihat hasilnya kembali

Info :
Tara... Setelah script tersebut dihapus sudah berhasil, akan tetapi mungkin saja sih ada yang tidak berfungsi ? misalnya saja seperti tampilan template menjadi tidak teratur/tidak rapi dan lain sebagainya, yah... beberapa developer template mungkin menaruh script fungsi lain yang digabungkan dengan script credit link, Oleh karena itu kita perlu design ulang agar yang tidak berfungsi menjadi fungsi lagi.

Dari sini sebenernya sih sudah selesai credit link sudah berhasil terhapus, namun jika ada yang tidak berfungsi maka akan memakan waktu banyak untuk mendesign ulang script yang juga ikut kehapus bersama script credit link. dan mungkin kalau pengguna blogger baru seperti saya ini, itu akan membuat kita berfikir ulang untuk mencari sumber script yang ikut kehapus agar bisa berfungsi lagi dan itu sangat melalahkan ya kan.

Nah.. untuk Antisipasi dan saran yang simple saja untuk menghapus credit link yang susah (bandel) sih seperti berikut ini :

7.Copy script nya paste ke Notepad terlebih dahulu

8.Kemudian Kunjungi link http://ddecode.com/hexdecoder/ lewat google chrome (lalu paste script tadi untuk mengecek adanya link tersembunyi yang disisipkan oleh developer template), lalu klik decode



9.Nah seperti pada gambar dibawah ini sebagai contoh saja terlihat nama developer templatenya (sebagai contoh saya kasih nama pengembang.com)



10.Kemudian langkah selanjutnya hapus saja seperti (pengembang.com) / gantikan dengan nama kamu (di script aslinya yang di notepad tadi)

Info :
Untuk menghapus/menggantinya di script yang aslinya dan bisa ditandai dengan tanda (",") dan hitung mulai dari bawah sampai ke nama pengembang.com tersebut

11.Jika sudah dihapus / diganti dengan namakamu.com maka masukan kembali scriptnya kedalam template blogger dan selesai

Sampai sini sudah berhasil menghapus credit link pada template blogger yang susah dan semoga bermanfaat.

October 31, 2015