emlog主题影视插件设置教程

Jaysun

温馨提示:这篇文章已超过445天没有更新,请注意相关的内容是否还可用!

插件是晓超云博客主题专用影视插件,本贴是设置教程,其它主题如果直接上传插件启用影视没有效果的,这边整理了下,如果有喜欢的自己折腾设置吧。


效果图:

1.jpg

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

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

2.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); ?>替换成以下代码

隐藏内容
评论可见
前往评论

最后一步就是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.配置好你的解析接口


您需要 登录账户 后才能发表评论

发表评论

快捷回复: 表情:
AddoilApplauseBadlaughBombCoffeeFabulousFacepalmFecesFrownHeyhaInsidiousKeepFightingNoProbPigHeadShockedSinistersmileSlapSocialSweatTolaughWatermelonWittyWowYeahYellowdog
评论列表 (有 1 条评论,832人围观)
网友昵称:ftjxir34625
ftjxir34625 V 普通用户 Google Chrome 111.0.0.0 Mac OS X 10.15.7 沙发
2023-04-11 来自广东 回复
文章不错,写的很好!

目录[+]

取消
微信二维码
微信二维码
支付宝二维码