<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Browse Tutorials begining with the letter P RSS</title><link><![CDATA[https://www.cheetahwsb.com/m/tutorials/browse/letter/P]]></link><description>Browse Tutorials begining with the letter P RSS</description><lastBuildDate>2021-02-16T14:01:00+0000</lastBuildDate><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>