emlog影视插件

  • 内容
  • 相关

emlog主题影视插件

效果图

1f231583020918.jpg

无聊的白菜又来水文章了,这次水的是而emlog博客主题影视播放插件

插件是晓超云博客主题专用影视插件,其它主题如果直接上传插件启用影视没有效果的,这边整理了下,如果想用的话请继续往下看。

弊端

插件只在fee主题做了代码相对应的修改,如果其他主题用的话请自行修改代码

目前插件只能在链接方式以下三种初默认链接方式使用。

52dd1583021250.jpg

教程开始

首先找到你的主题下文件module.php加入以下代码

 <?php //内容页
 function dyyinfo($logid){
$db = Database::getInstance();
$row= $db->once_fetch_array("SELECT * FROM ".DB_PREFIX."blog WHERE gid =$logid");
if(img_zw($row['content'])){$imgurl = img_zw($row['content']);}elseif(img_fj($row['gid'])){$imgurl = img_fj($row['gid']);}else{$imgurl = TEMPLATE_URL.'img/random/'.substr($row['gid'],-1).'.jpg';}?>
<div class="logtop">
					    <dt>
						<img src="<?php echo $imgurl;?>">
					    </dt>
					    <dd>
						<h3><?php echo $row['title'];?></h3>
						<p>影视标签:<?php blog_tags($logid);?></p>
						<p>影视分类:<?php blog_sort($logid);?></p>
						<p>影视评论:<?php echo $row['comnum'];?>条</p>
						<p>发布日期:<?php echo gmdate('Y-n-j',$row['date']);?></p>
						<p>观看次数:<?php echo $row['views'];?>次</p>
					    </dd>
					    <dl>
						<h4>剧情介绍</h4>
						<p><?php echo ClearHtml($row['content']);?></p>
					    </dl>
					    <dl>
						<h4 class="dz">播放线路</h4>
						<p>
						<?php 
						$strarr = explode("\n",$row['spdz']);
						$i=1;
						foreach ($strarr as $u){
						$jishu=explode("*",$u);?>
						<a class="spbut" href="<?php echo '?ply='.$i++;?>"><i class="fa fa-youtube-play"></i> <?php echo $jishu[0];?></a>
                        <?php }?>
<h3 class="dz">特别声明</h3> <p><span style="font-size: 14px;color:#E53333;">本站视频均源于互联网采集,本站不储存,复制或传播任何视频,如有侵权请联系本站删除或自行联系视频源提供者,本站不负任何法律责任!</span></p > 
						</p>
					</dl>
					
				</div>
<?php } ?>    

然后找到你的主题下文件echo_log.php里面的文章挂载代码<?php echo ishascomment($log_content,$logid); ?>替换成以下代码

 <?php 
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
 <section class="context">	
<?php if($sortid== "53"){
	if($_GET['ply'] != null){
				$db = Database::getInstance();
				$row = $db->once_fetch_array("SELECT * FROM ".DB_PREFIX."blog WHERE gid =$logid");
				$strarr = explode("\n",$row['spdz']);
				$u = $_GET['ply']-1;
				$urls = explode("*",$strarr[$u]);?>
				
				<div class="mv4"><h4>正在播放:<?php echo $log_title;?></h4><div>
				<p style="max-width:100%;height:500px;">
				<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width="100%" height="100%" src="解析接口地址<?php echo $urls[1];?>">
				</iframe>
				</p>
                <div class="fanhui"><a href="<?php echo $logid;?>.html"><i class="fa fa-youtube-play" aria-hidden="true"></i>返回</a></div>
				<div class="logtop">
				<dl>
                <h4 class="dz">播放线路</h4>
			    <p>	   
                <?php 
				$strarr = explode("\n",$row['spdz']);
				$i=1;
				foreach ($strarr as $u){
				$jishu=explode("*",$u);?>
				<a class="spbut" href="<?php echo '?ply='.$i++;?>"> <?php echo $jishu[0];?></a>
		
										<?php }?>
										</p>
									</dl>
								</div>
							<?php }
							else{
							dyyinfo($logid);
							}
							}else{?>
      	       
 <?php echo ishascomment($log_content,$logid); ?>
 <?php }?>

最后一步就是css了,代码放在fee主题文件下的mian.css强制刷新即可

 /*yingshi*/
.context h1,.context h2,.context h3{font-weight:700;margin:10px 0;padding:10px;background-color:#f6f6f6;border-width:1px 1px 1px 3px;border-style:solid;line-height:22px}
.context h1:nth-child(6n),.context h2:nth-child(6n),.context h3:nth-child(6n){border-color:#EEE #EEE #EEE #FF8C00}
.context h1:nth-child(6n+1),.context h2:nth-child(6n+1),.context h3:nth-child(6n+1){border-color:#EEE #EEE #EEE #ae74ec}
.context h1:nth-child(6n+1),.context h2:nth-child(6n+1),.context h3:nth-child(6n+2){border-color:#EEE #EEE #EEE #34C76F}
.context h1:nth-child(6n+1),.context h2:nth-child(6n+1),.context h3:nth-child(6n+3){border-color:#EEE #EEE #EEE #1FD8D8}
.context h1:nth-child(6n+1),.context h2:nth-child(6n+1),.context h3:nth-child(6n+4){border-color:#EEE #EEE #EEE #24D632}
.context h1:nth-child(6n+1),.context h2:nth-child(6n+1),.context h3:nth-child(6n+5){border-color:#EEE #EEE #EEE #815CDC}
.context h4,.context h5,.context h6{margin-bottom:5px;border-color:#EEE #EEE #EEE #0DADEE;border-width:1px 0 1px 3px;border-style:solid;margin:0 -15px 10px;padding-left:10px}
.context h1{font-size:20px;line-height:32px;font-weight:700}
.context h2{font-size:18px;line-height:40px;margin:0 -15px 10px;padding:0 15px;background:#fafafa}
.context h3{font-size:16px;line-height:38px;margin:0 -15px 10px;padding:0 15px;background:#fafafa}
.context h4{font-size:14px;line-height:26px}
.context h5{font-size:12px;line-height:24px}
.context h6{font-size:10px;line-height:22px}
.context img{max-width:100%;height:auto;border:1px solid #e6e6eb;margin-bottom:10px;padding:2px;transition:.5s;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;transition-property:border-color,box-shadow;-webkit-transition-property:border-color,box-shadow;-moz-transition-property:border-color,box-shadow;-o-transition-property:border-color,box-shadow}
.context img:hover{border-color:#ffd429;box-shadow:0 0 2px #ffd429;-moz-box-shadow:0 0 2px #ffd429}
.context s{color:#999}
.context a{border-bottom:1px solid #5DB8F8}
.context>.box>.pic>a>img{border:0;padding:0}}
.couer_tu ul{float:left;background:0 0}
.couer_tu ul li{float:left;background-color:#F9F9F9;padding:5px;margin:0 0 30px 30px;border:1px solid #EAEAEA;position:relative;overflow:hidden}
.couer_tu ul li:nth-child(5n){margin-right:0}
.couer_tu li .img{float:left;width:155px;height:115px;position:relative;overflow:hidden;margin:0}
.couer_tu li .img img{min-height:100%;width:100%;transition:all .3s ease-in-out 0s}
.couer_tu li .img img:hover{transition:all .3s ease-in-out 0s;transform:scale(1.1)}
.couer_tu li .img .bg{width:208px;height:25px;position:absolute;bottom:0;left:0;background:none repeat scroll 0 0 #8aa653;opacity:.7;z-couer:1}
.couer_tu li .img .views{height:25px;line-height:25px;padding:0 5px;bottom:0;left:0;position:absolute;z-couer:2;color:#fff;font-family:"宋体"}
.couer_tu li .views a{color:#fff}
.couer_tu li .tit{text-align:center;clear:both;font-size:14px;line-height:30px;height:30px;width:148px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.context .fanhui a {border: 1px solid #242424;border-radius: 2px;line-height: 28px;color: #242424;width: 60px;height: 30px;line-height: 30px;box-shadow: none;background: #fff;display: inline-block;text-align: center;margin: 2px auto;font-size: 12px;text-decoration: none;-webkit-transition: all .3s ease;-o-transition: all .3s ease;transition: all .3s ease;border-radius: 2px;-moz-border-radius: 2px;-webkit-border-radius: 2px;}
.context .fanhui a:hover {border: 1px solid #242424;color: #fff;background-color: #242424;}
.logtop h3{font-weight:700;margin:10px 0;background-color:#f6f6f6;border-left:5px solid #FF5E52}
.logtop h4{font-weight:700;margin:10px 0;padding:5px 15px;background-color:#f6f6f6;border-left:5px solid #9461E6;width:100px}
.logtop h4.dz{border-left:5px solid #5DDB4F}
.mv4 h4{font-weight:700;margin:10px 0;padding:10px;background-color:#f6f6f6;border-left:10px solid #ae74ec}
.logtop a{text-decoration:none}
.logtop p{font-size:14px!important;line-height:1em!important;color:rgba(0,0,0,.8);margin-bottom:18px!important;letter-spacing:1px}
.logtop{position:relative}
.logtop dt{float:left}
.logtop dt img{width:180px;height:240px;margin-right:20px}
.logtop dd{display:inline-block;height:255px;min-width:200px}
.logtop dd p{font-size:14px!important;color:rgba(0,0,0,.4)!important;line-height:1.5em!important;font-weight: bold;}
.logtop dl p{font-size:14px!important;color:rgba(0,0,0,.4)!important;line-height:1.4em!important;font-weight: bold;}
.logtop dd p a:hover,.logtop dl p a:hover{text-decoration:none}
.logtop dd p .fcolor{border-bottom:0;color:#fff;padding:1px 5px 2px 1px;margin-right:3px}
.logtop dd p .fcolor:nth-child(6n+1){background-color:#E88B88}
.logtop dd p .fcolor:nth-child(6n+2){background-color:#71DE71}
.logtop dd p .fcolor:nth-child(6n+3){background-color:#71D2EF}
.logtop dd p .fcolor:nth-child(6n+4){background-color:#F3C585}
.logtop dd p .fcolor:nth-child(6n+5){background-color:#9BCBF5}
.logtop dl p .spbut:hover{border:1px solid #5db8f8;border-radius:2px;padding:2px 5px;color:#fff;background-color:#5db8f8}
.logtop dl p .spbut {border: 1px solid #5db8f8;border-radius: 2px;line-height: 28px;color: #5db8f8;width: 90px;height: 35px;line-height: 35px;box-shadow: none;background: #fff;display: inline-block;text-align: center;margin: 2px auto;font-size: 12px;text-decoration: none;-webkit-transition: all .3s ease;-o-transition: all .3s ease;transition: all .3s ease;border-radius: 2px;-moz-border-radius: 2px;-webkit-border-radius: 2px;}
.speedbar{clear:both;color:#666;background-color:#fbfbfb;padding: 0 35px 0px 35px;/* line-height: 31px; */overflow:hidden;height: 26px;margin-bottom:10px;}
.speedbar i{opacity:.5;filter:alpha(opacity=50)}
.speedbar .btn-group{float:right;margin-left:6px}
.speedbar{background-image:url(../img/volume.png);background-repeat:no-repeat;background-position: .8% 50%;background-color: #ffffff;}
.speedbar .tpclose{position:absolute;right:0;top:0;width:35px;height:35px;text-align:center;line-height:26px;font-size:14px}
span.muted{padding-left:15px;padding-right:15px}
.page_tags a {display:inline-block;margin:0 10px 10px 0;color: #FFF;background-color:#eee;padding:5px 10px;font-size:12px;border-radius:2px;}
.page_tags a em {font-style:normal;font-size:11px;margin-left:5px;}
.page_tags a:hover {color:#fff;}
.page_tags a:nth-child(8n){background-color:#00a2ca;}
.page_tags a:nth-child(8n+1){background-color:#5CB85C;}
.page_tags a:nth-child(8n+2){background-color:#D9534F;}
.page_tags a:nth-child(8n+3){background-color:#FF6600;}
.page_tags a:nth-child(8n+4){background-color:#B433FF;}
.page_tags a:nth-child(8n+5){background-color:#00ABA9;}
.page_tags a:nth-child(8n+6){background-color:#B37333;}
.page_tags a:nth-child(8n+7){background-color:#5CB85C;}

.group-detail>ul {
	padding: 0;
}

以上使用注意,

1.绑定好你的影视分类id

2.配置好你的解析接口

好了,文章水完了,也水累了,原创文章,转载麻烦各位大佬留个出处,比心比心…

附件下载列表
文件名称:影视插件
蓝凑云盘
CTRL+D快速收藏,欢迎常来喔

本文标签:

本文链接: https://nsbbn.com/plugs/17.html

版权声明:若无特殊注明,本文皆为《EMG》原创,转载请保留文章出处。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

未显示?请点击刷新

允许邮件通知
既然没有吐槽,那就赶紧抢沙发吧!