Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-05-14 23:04:30

asko
Member
Registered: 2011-05-11
Posts: 138

Where is file to modify number 'related videos' showing ?

Where is file to modify number 'related videos' showing.
The default 'related videos' on video_view.tpl.php is showing 2 rows of 5 thumbs --> total of 10 thumbs.
Looking to modify to 2 rows of 3 thumbs-->total 6 thumbs .

Offline

#2 2011-05-15 09:12:11

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where is file to modify number 'related videos' showing ?

templates/your-template/video_view.tpl.php


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2011-05-16 02:36:46

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where is file to modify number 'related videos' showing ?

The slider is on video_view.tpl.php, i knew that, but the code that determines how many videos show in the 'related videos' slider i can't find.
Isn't it somewhere else?( like a value sent to this page from another file?php?)
The script has determined somewhere that 10 thumbs appear per time in slider.

Last edited by asko (2011-05-16 06:11:08)

Offline

#4 2011-05-16 08:20:15

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where is file to modify number 'related videos' showing ?

modules/video/components/view.php and templates/your-template/extend/ajax/related.plugin.php


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2011-05-16 17:16:09

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where is file to modify number 'related videos' showing ?

You can modify that from the admin panel. Admin -> Video -> Configure -> View


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#6 2011-05-16 17:31:54

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where is file to modify number 'related videos' showing ?

ok i will try that.

I searched the video_view.tlp and found--> <?php if ($this->related_total > 10): ?> but it does not change anything when i modify it.

There where also no results when i searched for '10'
on modules/video/components/view.php and templates/your-template/extend/ajax/related.plugin.php
Found   $limit= $vcfg['related_per_page']; on related.plugin.php ???

Offline

#7 2011-05-16 17:38:13

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where is file to modify number 'related videos' showing ?

ok good, works fine with admin panel
but by curiosity can you tell me where that value is in script?

Last edited by asko (2011-05-16 17:39:59)

Offline

#8 2011-05-16 18:51:33

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where is file to modify number 'related videos' showing ?

I do not understand exactly. That value is in the database and then its cached for fast loads. It is first created in admin/modules/video/components/config.php. The files that get the related videos are modules/video/components/view.php and the template for this is templates/your-template/video_view.tpl.php.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB