个人支付宝收款,支持订单任意金额生成二维码

个人支付宝收款,支持订单任意金额生成二维码

方法:

  1. 先获取自己的支付宝商户UID

查看地址是:https://openhome.alipay.com/platform/accountSetting.htm

2. 拼接二维码

alipays://platformapi/startapp?appId=20000123&actionType=scan&biz_data={"s": "money", "u": "2088202216609811", "a": "11.88", "m": "7637"}

其中appId=20000123是收款二维码,2088202216609811为我的uid,11.88为收款金额,m为订单号.

把上面的字符串生成收款二维码

即可使用二维码进行支付了.

3.上面是原理.

下面我们只需要两个技术即可实现网站的收款功能.

拼接以上二维码字符串,把对应的参数填充即可.

然后再用代码生成二维码就行啦.

 

 

 

wordpress主题中wp-head()和wp_footer()的使用

在wordpress主题中,通常会有<?php wp_head(); ?>和<?php wp_footer(); ?>这两个是wordpress插件向主题头部和尾部加载内容使用的函数.

使用方法:

在<head>…</head>之间加入<?php wp_head(); ?>

在</body>上一行加入<?php wp_footer(); ?>

主题或插件添加函数方法:

function wp_head_plus() {
    echo "<link rel='stylesheet' href='../qcblog/css/global.css' type='text/css' />";
}
add_action('wp_head', 'wp_head_plus()');


function wp-footer_plus() {
    echo '<p>This is inserted at the footer</p>';
}
add_action( 'wp_footer', 'wp-footer_plus', 100 );

 

通过以上wp_head和wp_footer的运用,我们可以向主题中动态添加一些代码,来实现插件的动态配置.

 

 

CSS初始化重置样式

CSS初始化样式是网页兼容各浏览器必备的一些样式.

出名的CSS初始化样式有YUI css reset和Erik Meyer’s CSS Reset。

YUI css reset网址: https://yuilibrary.com/yui/docs/cssreset/

Erik Meyer’s CSS Reset网址: https://meyerweb.com/eric/tools/css/reset/

 

YUI 3.18.1 (build f7e7bcb)

/*
YUI 3.18.1 (build f7e7bcb)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/

/*
	TODO will need to remove settings on HTML since we can't namespace it.
	TODO with the prefix, should I group by selector or property for weight savings?
*/
html{
	color:#000;
	background:#FFF;
}
/*
	TODO remove settings on BODY since we can't namespace it.
*/
/*
	TODO test putting a class on HEAD.
		- Fails on FF.
*/
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
	margin:0;
	padding:0;
}
table {
	border-collapse:collapse;
	border-spacing:0;
}
fieldset,
img {
	border:0;
}
/*
	TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
*/
address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
	font-style:normal;
	font-weight:normal;
}

ol,
ul {
	list-style:none;
}

caption,
th {
	text-align:left;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-size:100%;
	font-weight:normal;
}
q:before,
q:after {
	content:'';
}
abbr,
acronym {
	border:0;
	font-variant:normal;
}
/* to preserve line-height and selector appearance */
sup {
	vertical-align:text-top;
}
sub {
	vertical-align:text-bottom;
}
input,
textarea,
select {
	font-family:inherit;
	font-size:inherit;
	font-weight:inherit;
	*font-size:100%; /*to enable resizing for IE*/
}
/*because legend doesn't inherit in IE */
legend {
	color:#000;
}

Eric Meyer's Reset CSS v2.0

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

 

 

 

 

(PHP)JTBC3.0_C远程图片本地化教程

(PHP)JTBC网站内容管理系统目前已经更新到v3.0.1.7版,作为网站开发框架,核心技术已经稳定可用。

JTBC官网: https://www.jtbc.cn/

影子作为JTBC的钻石会员,第一时间针对性的制作了远程图片本地化教程。

因近期在筹建JTBC教程网,后期还要长期投入大量资金,在域名和服务器上希望可以实现众筹的形式来解决。

JTBC教程网: https://www.jtbc.com.cn/

因目前无法提供回馈的内容。

所以选择开发JTBC的一些功能,用来收取一定费用。来支撑JTBC教程网的建设。

本次推出的为远程图片本地化教程。收费50元。

淘宝购买:https://item.taobao.com/item.htm?id=592755783412

或者在本文下方扫描二维码用微信或支付宝支付费用,然后联系客服获取远程图片本地化教程

客服联系方式

QQ: 858512104 QQ: 925474725 微信: shadoweb

(PHP)JTBC1.0版网站地图Sitemap插件

上传到插件文件夹即可直接使用

后台可以配置管理生成的模块内容

可选是否生成分类数据

保存生成的sitemap.xml文件位置可以设置

生成的sitemap.xml文件为标准的百度地图sitemap格式.

生成的sitemap.xml文件演示数据查看: http://www.wdja.cn/sitemap.xml

下载地址:https://wdjacms.pipipan.com/fs/16922972-322388650

后台图片

说明:图片是最新的功能,下载的配置少了一些.但功能上还是一样的.

可以选择更多功能开发.

 

电影站使用DPlayer播放器不能全屏播放的解决办法

很多电影站会使用在线播放器,其中Dplayer播放器是比较常用的一个。

有时会遇到DPlayer播放器的全屏功能失效的情况。

今天影子就分享一下解决方法。

只需要在 iframe 代码中,添加两段代码

allowtransparency="true" allowfullscreen="true"

修改后的代码

 

document.write('<iframe width="100%" height="100%" class="embed-responsive-item" src="'+cms_player.url+'" frameborder="0" allowtransparency="true" allowfullscreen="true" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');

 

 

赶快试一下吧。

如果你是电影站的播放器无法全屏,请修改所有播放器的js文件,查找含<iframe 开头的代码,添加allowtransparency="true" allowfullscreen="true"属性即可.

然后在前台浏览时,请清除缓存,以保证js文件是修改后的,才能生效,切记.

如果此方法不能解决,欢迎留言。我会再测试其它解决方法。

另外,要注意哦,这个只能是站长可以修改哦,普通用户是不能修改的,如果你遇到电影站不能全屏观看,可以反馈给站长哦。

 

超宽大图片全屏居中显示的方法

现在很多网站的图片都设计成超宽图片,在小屏显示器上显示,会遇到显示不全,不居中显示的问题。

为了网站的美观和图片达到好的效果,我们要实现在超宽图片全屏居中显示,实现方法如下:

<html> 
<head> 
<title>超宽图片全屏居中,超出部分自动隐藏</title> 
<style> 
.content { 
width:100%; 
position:relative; 
overflow:hidden; 
/*height:1000px;高度可以不设置*/ 
} 
.info { 
width:1600px; 
/*position:absolute;设置高度时使用*/ 
position:relative; /*页面底部有内容时使用*/ 
left:50%; 
margin-left:-800px; 
} 
</style> 
</head> 
<body> 
<div class="content"> 
<div class="info"> 
<img src="adimg.jpg"> 
</div> 
</div> 
</body> 
</html> 

 
css部分宽度根据图片的尺寸进行设置即可。

DOYO无法全部生成静态的解决方法

问题现象

DOYO建站程序后台生成静态操作,存在部分页面无法生成.

解决方法

找到sourceadmina_html.php 第53行左右:

while($ii<= $all){
$tosql=$sql.' limit '.$i.',20';$a='';
$a=syDB($mv)->findSql($tosql);
$this->chtml_molds($mv,$a,$numall[0]['ct'],$i);
$i=$i+20;
$ii=$ii+1;
$ii++;
}
$this->chtml_echo('['.$this->t.']更新完成');

其中的两行代码

$ii=$ii+1;
$ii++;

删除或屏蔽其中一行即可.

后台重新生成操作即可.