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 2013-03-05 01:41:53

slimjim
Member
Registered: 2013-02-06
Posts: 45
Website

Removing the type: public / private option

I would like to remove the option for the videos / images to be selected as private in the users edit option. How do I do this, and will it affect uploads?


The hottest BDSM tube site on the net http://www.bdsmunderground.com join the underground.

Offline

#2 2013-03-05 06:51:36

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

Re: Removing the type: public / private option

You can set this to always be either public or private by editing modules/video/components/edit.php and replace this line:

$type           = $filter->get('type');

with:

$type           = 'public';

In the templates remove the following block (templates/your-template/video-edit.tpl.php):

                        <div class="required">
                            <label for="type" class="upload"><?php echo __('type'); ?>:</label>
                            <input name="type" type="radio" id="type" class="radio" value="public"<?php if ($this->video['type'] == 'public'): echo ' checked="checked"'; endif; echo ' /> ',__('public'); ?>
                            <input name="type" type="radio" id="type_off" class="radio" value="private"<?php if ($this->video['type'] == 'private'): echo ' checked="checked"'; endif; echo ' /> ',__('private'); ?>
                        </div>

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

Offline

#3 2013-03-05 11:54:25

slimjim
Member
Registered: 2013-02-06
Posts: 45
Website

Re: Removing the type: public / private option

That did the trick. Thank you.


The hottest BDSM tube site on the net http://www.bdsmunderground.com join the underground.

Offline

Board footer

Powered by FluxBB