Please.. help me about OVOO 3.2.4 CMS

videva

Member
Aug 25, 2020
75
53
18
Hi all. (Sorrry, my English not well)


Please.. help me...
I use OVOO 3.2.4 CMS

I want to change display homepage on OVOO. For example: "Latest_tv_series" currently showing are 16 movies on homepage, i want to change only display 12 movies or 18 movies. How can i do it? .../view/theme/defaut/home.php

Who can help me?

Many thank

Image: https://www.upsieutoc.com/image/z4DbMp or https://www.upsieutoc.com/image/z4D7R8

w1.jpg
w2.jpg
PHP:
//find this code
<div class="movie-container">
                            <?php
                                $latest_published_videos = $this->common_model->latest_published_tv_series();
                                foreach ($latest_published_videos as $videos) :
                            ?>
                            <div class="col-md-2 col-sm-3 col-xs-6">
                                <?php include('thumbnail.php'); ?>
                            </div>
                            <?php endforeach; ?>
                        </div>
//change to this,
//info: $limit == 11 this only showing 12 item because array start from 0 to 11 = 12
//if you want to show 18 item, just change $limit == 11 to $limit == 17
<div class="movie-container">
                            <?php
                                $latest_published_videos = $this->common_model->latest_published_tv_series();
                                $limit = 0;
                                foreach ($latest_published_videos as $videos) :
                            ?>
                            <div class="col-md-2 col-sm-3 col-xs-6">
                                <?php include('thumbnail.php'); ?>
                            </div>
                            <?php if($limit == 11){break;} $limit++;endforeach; ?>
                        </div>
 

phpCore

ReLOADED
Trusted Uploader
Banned User
Jun 6, 2020
1,511
1,657
120
127.0.0.1/::1
When you take a look to the model "Common", you can see this function:
public function latest_published_tv_series($limit=16,$page='')
{
$this->db->where('publication', '1');
$this->db->where('is_tvseries', '1');
$this->db->order_by("last_ep_added","DESC");
$this->db->limit($limit);
return $this->db->get('videos')->result_array();
}

As is shown, you can replace in the home view this line:

$latest_published_videos = $this->common_model->latest_published_tv_series();

By:

$latest_published_videos = $this->common_model->latest_published_tv_series(12);

Or:

$latest_published_videos = $this->common_model->latest_published_tv_series(18);
 
  • Like
Reactions: minhvu2009

minhvu2009

New member
Oct 4, 2020
9
0
1
please help me one more time.. :love:
I want to change display homepage on OVOO, for example: showing one more section type "Clip - Song" on homepage . And i don't want "Latest_movies" showing that Clip- Songs.
How can i do it? ...
Thank you so much

clip-song.jpg


clip2.jpg
 

phpCore

ReLOADED
Trusted Uploader
Banned User
Jun 6, 2020
1,511
1,657
120
127.0.0.1/::1
Copy/paste here the Database schema (go to server and use phpmyadmin, after that export all database but only the STRUCTURE, not the DATA)
 

videva

Member
Aug 25, 2020
75
53
18
please help me one more time.. :love:
I want to change display homepage on OVOO, for example: showing one more section type "Clip - Song" on homepage . And i don't want "Latest_movies" showing that Clip- Songs.
How can i do it? ...
Thank you so much

clip-song.jpg


clip2.jpg

you want create like this ?
2.png
 
  • Like
Reactions: minhvu2009

michel20000

New member
Aug 6, 2020
17
0
1
Greetings, could you help me, please install ovoo 3.2.6 and the home page does not show the photos of the poster of the videos, but when I enter the video if the images appear, how can I solve it, I would appreciate your great help.

error 1.jpg
 

Forum statistics

Threads
69,228
Messages
908,456
Members
237,092
Latest member
Azakami

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu