<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Popular Tutorials RSS</title><link><![CDATA[https://www.cheetahwsb.com/m/tutorials/browse/homepopular]]></link><description>Popular Tutorials RSS</description><lastBuildDate>2020-08-15T20:35:00+0000</lastBuildDate><item><title><![CDATA[New Module]]></title><link><![CDATA[https://www.cheetahwsb.com/m/tutorials/view/New-Module]]></link><guid><![CDATA[https://www.cheetahwsb.com/m/tutorials/view/New-Module]]></guid><description><![CDATA[<p>So - one of the projects i used to work on required me to make custom modules. one of the things i like about dolphin was the ability to easily create new modules - or even simple pages - for various reasons. as such, the first thing i did when checking out his new here cheetah - was to create a module. and i was rather impressed that i had zero hiccups. even having created them over and over again, i always had some issue when using dolphin - i didnt have that issue here. granted, a few times were programmer or user error.<br> <br>with that being said - i am going to detail my walkthrough on how to create a module in cheetah - for those who didnt know already. a few key points to always remember. this is not a creation of a brand new module - but cloning the groups module for your needs. i have done a lot of different things using the groups module as a base. second - EVERYTHING IS CASE SENSITIVE. if you screw that up - just start over.<br> <br>1 - create a folder in the modules folder and name it whatever you want - for our example, lets call it 'example'. so create a folder named example.<br>2 - copy the groups module folder and all its contents into your example folder. so at this point, you should have a folder named example, with the groups folder and all its contents in it.<br>3 - rename the groups folder to whatever you want to call the module - so for our example, we will call it 'newbie'. so now, you should have a folder called example, with a folder called newbies inside of it (the "s" is important here so make sure it is there). also - you gotta choose a two character identifier. for this example, we will use "NM". we will use this later.<br>4 - open the newbie folder, then open the templates folder, then open the base folder<br>5 - rename the following files according to your module name<br>     latest_featured_group.html &gt;&gt;&gt;&gt;&gt; latest_featured_newbie.html<br>     my_groups_create_group.html &gt;&gt;&gt;&gt;&gt; my_newbies_create_newbie.html <br>     my_groups_main.html &... <a href="https://www.cheetahwsb.com/m/tutorials/view/New-Module">Read more</a></p>]]></description><pubDate>2020-08-15T20:35:00+0000</pubDate></item><item><title><![CDATA[Profile album block modification.]]></title><link><![CDATA[https://www.cheetahwsb.com/m/tutorials/view/Profile-album-block-modification]]></link><guid><![CDATA[https://www.cheetahwsb.com/m/tutorials/view/Profile-album-block-modification]]></guid><description><![CDATA[<p>This code modification will change the album blocks on the profile page into smaller thumb nail blocks like whats shown in the photo.Open templates\base\scripts\ChBaseSearchResultSharedMedia.phpReplace the current serviceGetProfileAlbumsBlock function with this one.function serviceGetProfileAlbumsBlock($iProfileId, $sSpecUrl = ''){            $iProfileId   = (int) $iProfileId;    $sNickName    = getUsername($iProfileId);    $sSimpleUrl   = CH_WSB_URL_ROOT . $this-&gt;oModule-&gt;_oConfig-&gt;getBaseUri() . 'albums/browse/owner/' . $sNickName;    $sPaginateUrl = mb_strlen($sSpecUrl) &gt; 0 ? strip_tags($sSpecUrl) : getProfileLink($iProfileId);            $sCode = '';    $this-&gt;oModule-&gt;_oTemplate-&gt;addCss('custom_profile_album_block.css');    $sAlbumType = $this-&gt;oModule-&gt;_oConfig-&gt;getMainPrefix();    $aAlbums    = $this-&gt;oModule-&gt;_oDb-&gt;getAll("SELECT * FROM `sys_albums` WHERE `Owner` = '$iProfileId' AND `Type`='$sAlbumType'");            if (count($aAlbums) &gt; 0) {        $iAlbumCnt = 0;        if ($sAlbumType == 'ch_photos') {            foreach ($aAlbums as $id =&gt; $value) {                $iAlbumId = $value['ID'];                if ($this-&gt;oModule-&gt;oAlbumPrivacy-&gt;check('album_view', $iAlbumId, $iProfileId)) {                    $iFirstObjectId = $this-&gt;oModule-&gt;_oDb-&gt;getOne("SELECT `id_object` FROM `sys_albums_objects` WHERE `id_album` = '$iAlbumId' ORDER BY `obj_order` LIMIT 1");                    if ($iFirstObjectId) {                        $aObjectInfo = $this-&gt;oModule-&gt;_oDb-&gt;getRow("SELECT * FROM `ch_photos_main` WHERE `ID` = '$iFirstObjectId' LIMIT 1");                        $sThumbUrl   = CH_WSB_URL_ROOT . $this-&gt;oModule-&gt;_oConfig-&gt;getBaseUri() . 'get_image/thumb/' . $aObjectInfo['Hash'] . '.jpg';                        $sAlbumUrl   = CH_WSB_URL_ROOT . $this-&gt;oModule-&gt;_oConfig-&gt;getBaseUri() . 'browse/album/' . $value['Uri'] . '/owner/' . $sNickName;                        $aVars  ... <a href="https://www.cheetahwsb.com/m/tutorials/view/Profile-album-block-modification">Read more</a></p>]]></description><pubDate>2021-02-16T14:01:00+0000</pubDate></item></channel></rss>