• Welcome to PHPVIBE Forums. Please log in.

How to Stop Sharing on other website

Started by HPR,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HPRTopic starter

Hello
i want to disable sharing and embedding option for all videos
May i know how to do this?

Thank you
  •  

Marius P.

Hi, you could go to tpl/main/video.php
( https://github.com/PHPVibe/phpvibe-lite/blob/master/The%20CMS/tpl/main/video.php lines 134-142 and box at 207 up to 285 I think  )
and remove the sharing manually:

<div class="aaa">
                                <a id="social-share" href="javascript:void(0)"  title=" <?php echo _lang('Share or Embed');?>">
                                  <i class="material-icons ico-flipped">&#xE15E;</i>
                                    <span class="hidden-xs">
                                        <?php echo _lang('Share');?>
                                    </span>

                                </a>
                            </div>

and you may want to remove the sharing box too

   
           <div class="sharing-icos mtop10 odet hide">
				<?php do_action('before-social-box'); ?>
			<div class="has-shadow">
            <div class="text-center text-uppercase full bottom10 top20">
			<h4><?php  echo _lang('Let your friends enjoy it also!');?></h4>
			</div>			
             <div id ="jsshare" data-url="<?php echo $canonical; ?>" data-title="<?php echo _cut($video->title, 40); ?>"></div>                            
            </div>
			<div class="video-share mtop10 has-shadow right20 left20 clearfix">
			<div class="text-center text-uppercase full bottom20 top20">
			<h4><?php  echo _lang('Add it to your website');?></h4>
			</div>
                <div class="form-group form-material floating">
                    <div class="input-group">
                        <span class="input-group-addon">
                           <i class="material-icons">&#xE157;</i>
                        </span>
                        <div class="form-control-wrap">
                            <input type="text" name="link-to-this" id="share-this-link" class="form-control" title="<?php echo _lang('Link back');?>" value="<?php echo canonical();?>" />
                                <label class="floating-label">
                                    <?php  echo _lang('Link to this');?>
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group form-material floating">
                        <div class="input-group">
                            <span class="input-group-addon">
                               <i class="material-icons">&#xE911;</i>
                            </span>
                            <div class="form-control-wrap">
							<div class="row">
							
							<div class="col-md-7">
<textarea style="min-height:80px" id="share-embed-code-small" name="embed-this" class="form-control" title=" <?php echo _lang('Embed this media on your page');?>"><iframe width="853" height="480" src="<?php echo site_url().embedcode.'/'._mHash($video->id).'/';?>" frameborder="0" allowfullscreen></iframe></textarea>
 <label class="floating-label"> <?php  echo _lang('Embed code');?></label>
     <div class="radio-custom radio-primary"><input type="radio" name="changeEmbed" class="styled" value="1"><label>1920x1080</label></div>
	<div class="radio-custom radio-primary"><input type="radio" name="changeEmbed" class="styled" value="2"><label>1280x720</label></div>	
	<div class="radio-custom radio-primary"><input type="radio" name="changeEmbed" class="styled" value="3"><label>854x480</label></div>	
	<div class="radio-custom radio-primary"><input type="radio" name="changeEmbed" class="styled" value="4"><label>640x360</label></div>	
	<div class="radio-custom radio-primary"><input type="radio" name="changeEmbed" class="styled" value="5"><label>426x240</label></div>
					  </div>
							<div class="col-md-4 col-md-offset-1">
  	<div class="well">
				<div class="form-group">
                  <div class="input-group">
                    <span class="input-group-addon"><i class="material-icons">&#xE86F;</i></span>
                    <input type="number" class="form-control" name="CustomWidth" id="CustomWidth" placeholder="<?php echo _lang("Custom width");?>">
                  </div>
                </div>
				<div class="form-group">
                  <div class="input-group">
                    <span class="input-group-addon"><i class="material-icons">&#xE883;</i></span>
                    <input type="number" name="CustomHeight" id="CustomHeight" class="form-control" placeholder="<?php echo _lang("Custom height");?>"> </div>
                </div>
				</div>
					</div>
							</div>
							</div>
                        </div>
                    </div>
					<div class="form-group form-material floating">
                    <div class="input-group">
                        <span class="input-group-addon">
                           <i class="material-icons">&#xE1B1;</i>
                        </span>
                        <div class="form-control-wrap">
                            <input type="text" name="link-to-this" id="share-this-responsive" class="form-control" title=" <?php echo _lang('Make the iframe responsive on your website');?>" value='<script src="<?php  echo site_url();?>lib/vid.js"></script>' />
                                <label class="floating-label">
                                    <?php  echo _lang('Responsive embed');?>
                                </label>
                            </div>
							<span class="help-block">
							<?php  echo _lang('Include this script into your page along with the iframe for a'); ?> <code><?php  echo _lang('responsive media embed');?></code>
                        <span>
						</div>
                    </div>
                </div>
                </div>
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  
    The following users thanked this post: HPR

HPRTopic starter

  •  

Similar topics (3)