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-11-29 00:34:03

hodmedia
Member
Registered: 2011-10-15
Posts: 159
Website

Move Featured

Anyway to move the featured video section to the top of the front page

Offline

#2 2011-11-29 08:21:13

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

Re: Move Featured

Only if you edit templates/your-template/frontpage.tpl.php


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

Offline

#3 2011-11-30 00:28:12

hodmedia
Member
Registered: 2011-10-15
Posts: 159
Website

Re: Move Featured

thats just tellin me where to edit thats not tellin me what to edit sad

Offline

#4 2011-11-30 07:58:10

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

Re: Move Featured

I assumed you were going to hire a programmer to do this for you. You need to move the following code:

                        <div class="content-box">
                                <div class="content-box-title"><?php echo (isset($this->featured)) ? __('featured-title') : __('recent-title'); ?></div>
                                <div class="content">
                                        <?php if ($this->videos):
                                        echo p('adv_square', 'frontpage-recent');
                                        foreach ($this->videos as $video): ?>
                                        <div id="video-<?php echo $video['video_id']; ?>" class="video">
                                                <a href="<?php echo RELATIVE_URL,'/',$video['video_id'],'/',$video['slug']; ?>/" title="<?php echo e($video['title']); ?>">
                                                        <img src="<?php echo THUMB_URL,'/',path($video['video_id']),'/',$video['thumb']; ?>.jpg" alt="<?php echo e($video['title']); ?>" id="preview-video-<?php echo $video['video_id'].'-'.$video['thumb'].'-'.$video['thumbs']; ?>" /><br />
                                                        <h5><?php echo e(VText::truncate_chars($video['title'], 50)); ?></h5>
                                                        <?php if ($video['ext'] == 'mp4'): ?><img src="<?php echo TPL_REL; ?>/images/hd.png" class="watermark" alt="" /><?php endif; ?>
                                                        <?php if ($video['premium'] == '1'): ?><span class="watermark transparent">Premium</span><?php endif; ?>
                                                </a>
                                                <span class="duration"><?php echo VDate::duration($video['duration']); ?></span>
                                                <div class="rating_bar"><div style="width:<?php echo round($video['rating']*20); ?>%"></div></div>
                                                <span class="timeline clear"><?php echo VDate::nice($video['add_time']); ?></span>
                                                <span class="views"><?php echo $video['total_views'],' '; if ($video['total_views'] == '1'): echo __('view'); else: echo __('views'); endif; ?></span>
                                                <div class="clear"></div>
                                        </div>
                                        <?php endforeach; ?>
                                        <div class="clear-left"></div>
                                        <div class="pagination"><ul><?php echo p('pagination', $this->pagination, RELATIVE_URL.'/recent/#PAGE#/'); ?></ul></div>
                                        <?php else: ?>
                                        <div class="none"><?php echo __('no-videos'); ?></div>
                                        <?php endif; ?>
                                        <?php echo p('adv', 'frontpage-bottom'); ?>
                                </div>
                        </div>

below:

<div id="right" class="width-760">

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

Offline

#5 2011-11-30 23:18:34

hodmedia
Member
Registered: 2011-10-15
Posts: 159
Website

Re: Move Featured

yea sorry i deleted it and couldnt find the code thats why i need it as i didnt save a copy of the script when i downloaded it

Last edited by hodmedia (2011-11-30 23:19:59)

Offline

#6 2013-08-07 19:46:18

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

Re: Move Featured

Yes.


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

Offline

#7 2013-09-26 15:20:06

German-Porn-Tube
Member
From: Spain but german speaking ;-)
Registered: 2012-02-13
Posts: 34
Website

Re: Move Featured

on Frontpage i found:


  
<div class="content-box">
                                <div class="content-box-title"><?php echo (isset($this->featured)) ? __('featured-title') : __('recent-title'); ?></div>
                                <div class="content">
                                        <?php if ($this->videos):
                                        echo p('adv_square', 'frontpage-recent');
                                        foreach ($this->videos as $video): ?>
                                        <div id="video-<?php echo $video['video_id']; ?>" class="video">
                                                <a href="<?php echo RELATIVE_URL,'/',$video['video_id'],'/',$video['slug']; ?>/" title="<?php echo e($video['title']); ?>">
                                                        <img src="<?php echo THUMB_URL,'/',path($video['video_id']),'/',$video['thumb']; ?>.jpg" alt="<?php echo e($video['title']); ?>" id="preview-video-<?php echo $video['video_id'].'-'.$video['thumb'].'-'.$video['thumbs']; ?>" /><br />
                                                        <h5><?php echo e(VText::truncate_chars($video['title'], 50)); ?></h5>
                                                        <?php if ($video['ext'] == 'mp4'): ?><img src="<?php echo TPL_REL; ?>/images/hd.png" class="watermark" alt="" /><?php endif; ?>
                                                        <?php if ($video['premium'] == '1'): ?><span class="watermark transparent">Premium</span><?php endif; ?>
                                                </a>
                                                <span class="duration"><?php echo VDate::duration($video['duration']); ?></span>
                                                <div class="rating_bar"><div style="width:<?php echo round($video['rating']*20); ?>%"></div></div>
                                                <span class="timeline clear"><?php echo VDate::nice($video['add_time']); ?></span>
                                                <span class="views"><?php echo $video['total_views'],' '; if ($video['total_views'] == '1'): echo __('view'); else: echo __('views'); endif; ?></span>
                                                <div class="clear"></div>
                                        </div>
                                        <?php endforeach; ?>
                                        <div class="clear-left"></div>
                                        <div class="pagination"><ul><?php echo p('pagination', $this->pagination, RELATIVE_URL.'/recent/#PAGE#/'); ?></ul></div>
                                        <?php else: ?>
                                        <div class="none"><?php echo __('no-videos'); ?></div>
                                        <?php endif; ?>
                                        <?php echo p('adv', 'frontpage-bottom'); ?>
                                </div>
                        </div>

in:

  <div class="content-box">
                                <div class="content-box-title"><?php echo (isset($this->featured)) ? __('featured-title') : __('recent-title'); ?></div>
                               ....

is the choose between fetured and recent - thats what i can choose in "Module Manager"
whitch code i need to use the featured Videos by hardcoding

i want to use all 3 - featured - watched - last Videos

i need the hardcoding because i want show the featured Videos on other Pages too ;-)

greetings
German-Porn-Tube


German-Porn-Tube.net bbcode test
http://www.tubeuploadtool.german-porn-tube.net <- 1000´s Videos upload per Day + Rewrite Titel and Description in many Languages

Offline

#8 2013-09-27 06:14:39

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

Re: Move Featured

You need to edit both modules/frontpage/frontpage.php and templates/your-template/frontpage.tpl.php


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

Offline

Board footer

Powered by FluxBB