<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: littlephone</title>
    <description>The latest articles on DEV Community by littlephone (@littlephone).</description>
    <link>https://dev.to/littlephone</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F468315%2Fc7d50532-588c-4116-b3c7-62f959d45fd5.jpeg</url>
      <title>DEV Community: littlephone</title>
      <link>https://dev.to/littlephone</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/littlephone"/>
    <language>en</language>
    <item>
      <title>Labfroum is switching to Medoo from PDO Connection</title>
      <dc:creator>littlephone</dc:creator>
      <pubDate>Thu, 17 Sep 2020 02:34:13 +0000</pubDate>
      <link>https://dev.to/littlephone/labfroum-is-switching-to-medoo-from-pdo-connection-4ghf</link>
      <guid>https://dev.to/littlephone/labfroum-is-switching-to-medoo-from-pdo-connection-4ghf</guid>
      <description>&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vJ70wriM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-ba8488d21cd8ee1fee097b8410db9deaa41d0ca30b004c0c63de0a479114156f.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/labstry-opensource"&gt;
        labstry-opensource
      &lt;/a&gt; / &lt;a href="https://github.com/labstry-opensource/labforum"&gt;
        labforum
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A lightweight, open source PHP based forum engin. This is a mirror. Checkout https://gitlab.com/labstry/labstry_forum
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  😽﻿ Let's become a CAT ﻿😽﻿
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Starting from Labforum 3.1, we are switching to Medoo.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Being based on PDO for about 3 years, we are now moving on to switch to Medoo, a cross DB solution for PHP. That means the code underlying Labforum, currently only works on MySQL or mariaDB, is about to receive cross db platform support.&lt;br&gt;
Starting from version 3.1, you can use Labforum on a SQL Server db, or an Oracle DB. All up to you.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Introducing additional paging system&lt;/strong&gt;&lt;br&gt;
Switching to Medoo library means cross platform limit is handled. We will add pagination the program. You can expect a better paging system used in frontend.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;What it means to you&lt;/strong&gt;&lt;br&gt;
Since Medoo is an additional library, you custom code will still works on MySQL database installation if it involves custom database queries.&lt;br&gt;
However, we suggest you to move on using Medoo to query db as it will not work for installation with other DBs.&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Transitional Period&lt;/strong&gt;&lt;br&gt;
Starting from 3.0.5 , we are transitioning to Medoo in our core code.&lt;br&gt;
You will see two versions of connection at the same time. $connection variable is reserved for Medoo, $pdoconnection is the variable we are currently used for PDO DB connection. If you use global $connection variable, you'll receive a Medoo object. Use Medoo-&amp;gt;pdo to get back PDO object.&lt;br&gt;
However, we don't recommend using PDO as it broke the compatibility for different DBs. &lt;/p&gt;

</description>
      <category>news</category>
      <category>changelog</category>
      <category>php</category>
      <category>pressrelease</category>
    </item>
    <item>
      <title>I am the developer behind labforum, a PHP forum engine. </title>
      <dc:creator>littlephone</dc:creator>
      <pubDate>Tue, 15 Sep 2020 13:41:22 +0000</pubDate>
      <link>https://dev.to/littlephone/i-am-the-developer-behind-labforum-a-php-forum-engine-2oin</link>
      <guid>https://dev.to/littlephone/i-am-the-developer-behind-labforum-a-php-forum-engine-2oin</guid>
      <description>&lt;p&gt;I know that it is a bit late and I can't classified myself into a newbee but still I would like to tell my story. Let me introduce you to the labforum, the latest, lightest forum engine ever written on PHP. This was my first ever open-sourced PHP project that started my career of programming. &lt;br&gt;
It's first used as a community forum in &lt;a href="https://labstry.com"&gt;https://labstry.com&lt;/a&gt;, now includes an installer, and opens to the public for installing on their servers. 😝&lt;/p&gt;
&lt;h2&gt;
  
  
  My repo
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vJ70wriM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-ba8488d21cd8ee1fee097b8410db9deaa41d0ca30b004c0c63de0a479114156f.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/labstry-opensource"&gt;
        labstry-opensource
      &lt;/a&gt; / &lt;a href="https://github.com/labstry-opensource/labforum"&gt;
        labforum
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A lightweight, open source PHP based forum engin. This is a mirror. Checkout https://gitlab.com/labstry/labstry_forum
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
Labforum 3.0 Documentation&lt;/h1&gt;
&lt;p&gt;Labforum is the core part that Labstry Forum is based on. It is a forum program that is written in php for personal interactive webpages.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Learn more about Labstry Forum &lt;a href="https://www.labstry.com/forum" rel="nofollow"&gt;here&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;
No excess framework used&lt;/h2&gt;
&lt;p&gt;We used a simplicity first approach when building the forum. No excess framework is used so that the page loading speed is guaranteed.&lt;/p&gt;
&lt;h2&gt;
Customisable with css, scss&lt;/h2&gt;
&lt;p&gt;Theme the forum or style easily with css or scss.&lt;/p&gt;
&lt;h1&gt;
Installing Labforum&lt;/h1&gt;
&lt;p&gt;Before installing, please prepare the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;MySQL database username and password.  (Please provide your administrator or root username and password for first time initialisation)&lt;/li&gt;
&lt;li&gt;Database domain&lt;/li&gt;
&lt;li&gt;Database name (Provide desired name for your forum instance)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Load page &lt;a href="http://127.0.0.1.xip.io/install-labforum.php" rel="nofollow"&gt;http://127.0.0.1.xip.io/install-labforum.php&lt;/a&gt; to start installing.&lt;/p&gt;
&lt;h1&gt;
Administrator Panel&lt;/h1&gt;
&lt;p&gt;Load &lt;a href="http://127.0.0.1.xip.io/admin/index.php" rel="nofollow"&gt;http://127.0.0.1.xip.io/admin/index.php&lt;/a&gt; to enter the administrator panel. You need special previleges to enter the admin panel. Use the account you registered yourself with from the installer&lt;/p&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/labstry-opensource/labforum"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h2&gt;
  
  
  Why I started/revamped my project?
&lt;/h2&gt;

&lt;p&gt;I have used many existing forum engine and I saw lots of forums is not quite user-friendly. You can't customise your layout because the data given are fixed and tied to the system core such as the layout and the pages, which means that you are unable to design your layout. &lt;/p&gt;

&lt;p&gt;Besides, many existing forums in the market didn't have a WYSIWYG interface for thread composing. &lt;/p&gt;

&lt;p&gt;I was in the uni and I saw a tutorial online showing people how to create a forum from scratch. Then I followed that tutorial for interest, as an extra-curriculum activity that helps me to learn things that the lecturer didn't teach. Then I came up with an idea, that is: instead of using an existing software to roll out my own community, I thought of using the existing code that I used in my tutorial lesson, change that a little bit, and make the code more useful.&lt;/p&gt;

&lt;p&gt;Then I did what I thought, in which I found myself into the programming world. As time passes, I am getting more and more active into the development of the labforum.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Frontend backend separation&lt;/strong&gt; &lt;br&gt;
The software uses json to send all the thread data. The advantages is that users have no restrictions on their design of the layout. Whether you want to deploy a simple page as the layout or a dynamic one, all up to you.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WYSIWYG Editor (Quill.js) included as default&lt;/strong&gt; ✎ &lt;br&gt;
You can use the pre-included WYSIWYG editor available. You can also roll your own post editor page with your own editor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Loads faster&lt;/strong&gt;&lt;br&gt;
Thanks to the technology of ajax, all pages are loaded asynchronously with data.&lt;/p&gt;

&lt;h2&gt;
  
  
  What will be coming in the next revamp
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;We will include pagination by introducing &lt;code&gt;LIMITED&lt;/code&gt; queries inside mysql.&lt;/li&gt;
&lt;li&gt;We will migrate to Medoo query framework so that it is compatible with other databases like mssql or oracle db.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What we currently need
&lt;/h2&gt;

&lt;p&gt;We need new members to participate in the project. Please help us to spread the words. ☺️&lt;/p&gt;

&lt;p&gt;Thanks for your time. Hope that you can support my project. 🤕&lt;br&gt;
Time to get back to my work now&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>php</category>
      <category>mysql</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Replace or reduce heavy javascript frameworks</title>
      <dc:creator>littlephone</dc:creator>
      <pubDate>Mon, 14 Sep 2020 04:07:52 +0000</pubDate>
      <link>https://dev.to/littlephone/replace-or-reduce-heavy-javascript-frameworks-1pin</link>
      <guid>https://dev.to/littlephone/replace-or-reduce-heavy-javascript-frameworks-1pin</guid>
      <description>&lt;p&gt;Being worked with Vue.js in recent years, I was really satisfied with the speed and performance that it brings to my programming jobs. However, recently I came up with an opinion  that it brings more cons than pros by introducing frameworks like this. To be simple, it causes the page to load more heavy libraries than before.  &lt;/p&gt;

&lt;p&gt;Using frameworks is an irreversible trend as it brings the advantage of easier programming. Using modern frameworks like Vue.js or react js just increased productivity by implementing functions that is more frequently used or introducing concepts like components, and it reduced the time that programmers have to use to search for a relevant function.&lt;/p&gt;

&lt;p&gt;However, it is a chain that makes you load many more unnecessary libraries that you don't need.  &lt;/p&gt;

&lt;p&gt;Taking Vue.js as example, when you want to use the components, you might start by loading Vue itself, then if you find yourself hating the node.js thing, you will start by finding libraries like VueHttpLoader to load components. But that just increased libraries your site has to load &lt;strong&gt;everytime&lt;/strong&gt; when visitors are visiting the page, causing performance degration.  &lt;/p&gt;

&lt;p&gt;You might say, at least you still need to load jQuery or other essential libraries. Sure we aren't having the debate here for 'librariless' or vanilla javascript where programmer use zero libraries, although at times this might be the best approach. However, I think programmers need to reduce their library stacks as possible in order to make webpages load faster. Don't rely only on modern browser technologies as there are times that user is in a relatively slow internet connection.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>frameworks</category>
      <category>libraries</category>
    </item>
    <item>
      <title>Introducing Labforum 3.0.5 (Unstable)</title>
      <dc:creator>littlephone</dc:creator>
      <pubDate>Sun, 13 Sep 2020 12:20:32 +0000</pubDate>
      <link>https://dev.to/littlephone/introducing-labforum-3-0-5-unstable-1lai</link>
      <guid>https://dev.to/littlephone/introducing-labforum-3-0-5-unstable-1lai</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/ulksXLWtZfs"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;After we have open-sourced our source code in Labforum 3.0 using LGPLv2, we are now taking a bigger step forward in Labforum 3.0.5 and Labforum 3.1. These updates includes fixes on regressions of threads and pages, as well as migrating API classes to use the classes in src/, which was introduced in the pre-alpha stages on 3.0 . &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;After we did a complete revamp of the forum, the software isn’t stable enough for normal day usage. If you need a stable-er version, please wait until we announces it.&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;We are asking for help because we are a small team and have to switch between different projects. Please join us in GitLab. &lt;/p&gt;

&lt;h3&gt;
  
  
  Our Repo
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.gitlab.com/labstry/labstry_forum"&gt;https://www.gitlab.com/labstry/labstry_forum&lt;/a&gt;  &lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Changelog&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;General Bug and Regression Fixes&lt;/strong&gt;&lt;br&gt;
In Labforum 3.0.5, we are now deprecating classes within api. This deprecation was due to the &lt;strong&gt;structural change for API calling&lt;/strong&gt;, where api will use standardised Classes together with the frontend. Warnings will be prompted to suggest users to migrate to the classes based on src/ folder.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A partially revamped Admin Panel&lt;/strong&gt;&lt;br&gt;
We revamped the admin panel to make it look a little nicer. We did that by changing the colours used on the header. We adopted a more vibrant color to makes it look comfortable, we increased the text size of the titles to make it more visible to users.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Adopting Bootstrap 5&lt;/strong&gt;&lt;br&gt;
As the date drawing closer to the release of BS 5, we are taking early steps to migrate to BS 5 to allow us to adapt the changes made in this version update. We are now using new classes name to replace the old, deprecated ones.&lt;/p&gt;

</description>
      <category>php</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
