SocialEngine 4: Hide Default Albums

Sometimes, you need to hide default photo Albums from Album Browse Page and Member Profile Page…there is a solution for do that!

Here…this modification will hide default Albums from members on Browse Albums Page

1. Open the file ../application/modules/Album/controllers/IndexController.php
2. Search for the following code about line number 66

$select = $table->select()
          ->where("search = 1")
          ->order($order . ' DESC');

3. Add below:

$select->where('type IS NULL');

4. Finished

Further…this modification will hide default Albums from members on Member Profile Page

1. Open the file: ../application/modules/Album/Model/DbTable/Albums.php

2. Search for the following code about line number 78:

if(!empty($options['search'])&& is_numeric($options['search'])){
        $select->where('search = ?', $options['search']);
      }

3. Add below:

$select->where('type IS NULL');

4. Finished

Looking for quality web hosting? Look no further than Arvixe Web Hosting!
Tags: , , , , , , , , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 9 = 15

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>