
KMSpico挺好用的~ 赞一个!~
KMSpico挺好用的~ 赞一个!~
RAR registration data
State Grid Corporation Of China
50000 PC usage license
UID=5827a0bd1c43525d0a5d
64122122500a5d3d56f784f3a440ac3fb632d34e08bbaa37fc7712
6acaeb8eb044810272e86042cb7c79b1da0eaf88c79f8a7c6dd77b
dba335e27a109997ac90fb0e10e4129e79f46c42b4ee1832fa5113
7443fcc1124840d4dd36f3af84a5c915a760b18c6394f938168227
fbf29edbc4b34ef85ee53fbfca71814a82afadf073876b4b033451
b6292a7cc7975b3ff3cc73404abbf7c126787344169eeae4609f62
c9ffbc159bf2640ad5d9b88f8fa9d9cbf2b7e5b022a21938465244
来源:http://www.cnblogs.com/huangcong/archive/2011/07/04/2097764.html
style.css 样式表文件
index.php 主页文件
single.php 日志单页文件
page.php 页面文件
archvie.php 分类和日期存档页文件
searchform.php 搜索表单文件
search.php 搜索页面文件
comments.php 留言区域文件(包括留言列表和留言框)
404.php 404错误页面
header.php 网页头部文件
sidebar.php 网页侧边栏文件
footer.php 网页底部文件
WordPress Header头部 PHP代码
注: 也就是位于<head>和</head>之间的PHP代码
<?php bloginfo(’name’); ?> 网站标题
<?php wp_title(); ?> 日志或页面标题
<?php bloginfo(’stylesheet_url’); ?> WordPress主题样式表文件style.css的相对地址
<?php bloginfo(’pingback_url’); ?> WordPress博客的Pingback地址
<?php bloginfo(’template_url’); ?> WordPress主题文件的相对地址
<?php bloginfo(’version’); ?> 博客的WordPress版本
<?php bloginfo(’atom_url’); ?> WordPress博客的Atom地址
<?php bloginfo(’rss2_url’); ?> WordPress博客的RSS2地址
<?php bloginfo(’url’); ?> WordPress博客的绝对地址
<?php bloginfo(’name’); ?> WordPress博客的名称
<?php bloginfo(’html_type’); ?> 网站的HTML版本
<?php bloginfo(’charset’); ?> 网站的字符编码格式
WordPress 主体模板 PHP代码
<?php the_content(); ?> 日志内容
<?php if(have_posts()) : ?> 确认是否有日志
<?php while(have_posts()) : the_post(); ?> 如果有,则显示全部日志
<?php endwhile; ?> 结束PHP函数”while”
<?php endif; ?> 结束PHP函数”if”
<?php get_header(); ?> header.php文件的内容
<?php get_sidebar(); ?> sidebar.php文件的内容
<?php get_footer(); ?> footer.php文件的内容
<?php the_time(’m-d-y’) ?> 显示格式为”02-19-08″的日期
<?php comments_popup_link(); ?> 显示一篇日志的留言链接
<?php the_title(); ?> 显示一篇日志或页面的标题
<?php the_permalink() ?> 显示一篇日志或页面的永久链接/URL地址
<?php the_category(’, ‘) ?> 显示一篇日志或页面的所属分类
<?php the_author(); ?> 显示一篇日志或页面的作者
<?php the_ID(); ?> 显示一篇日志或页面的ID
<?php edit_post_link(); ?> 显示一篇日志或页面的编辑链接
<?php get_links_list(); ?> 显示Blogroll中的链接
<?php comments_template(); ?> comments.php文件的内容
<?php wp_list_pages(); ?> 显示一份博客的页面列表
<?php wp_list_cats(); ?> 显示一份博客的分类列表
<?php next_post_link(’ %link ‘) ?> 下一篇日志的URL地址
<?php previous_post_link(’%link’) ?> 上一篇日志的URL地址
<?php get_calendar(); ?> 调用日历
<?php wp_get_archives() ?> 显示一份博客的日期存档列表
<?php posts_nav_link(); ?> 显示较新日志链接(上一页)和较旧日志链接(下一页)
<?php bloginfo(’description’); ?> 显示博客的描述信息
其它的一些WordPress模板代码
/%postname%/ 显示博客的自定义永久链接
<?php the_search_query(); ?> 搜索表单的值
<?php _e(’Message’); ?> 打印输出信息
<?php wp_register(); ?> 显示注册链接
<?php wp_loginout(); ?> 显示登入/登出链接
<!–next page–> 在日志或页面中插入分页
<!–more–> 截断日志
<?php wp_meta(); ?> 显示管理员的相关控制信息
<?php timer_stop(1); ?> 显示载入页面的时间
<?php echo get_num_queries(); ?> 显示载入页面查询
1. wordpress调用最新文章
WordPress最新文章的调用可以使用一行很简单的模板标签wp_get_archvies来实现. 代码如下:
<?php get_archives(‘postbypost’, 10); ?> (显示10篇最新更新文章)
或者
<?php wp_get_archives(‘type=postbypost&limit=20&format=custom’); ?>
后面这个代码显示你博客中最新的20篇文章,其中format=custom这里主要用来自定义这份文章列表的显示样式。具体的参数和使用方法你可 以参考官方的使用说明- wp_get_archvies。(fromat=custom也可以不要,默认以UL列表显示文章标题。)
补充: 通过WP的query_posts()函数也能调用最新文章列表, 虽然代码会比较多一点,但可以更好的控制Loop的显示,比如你可以设置是否显示摘要。具体的使用方法也可以查看官方的说明。
2. wordpress调用随机文章
<?php
$rand_posts = get_posts(‘numberposts=10&orderby=rand’);
foreach( $rand_posts as $post ) :
?>
<!–下面是你想自定义的Loop–>
<li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li>
<?php endforeach; ?>
3. wordpress调用最新留言
下面是我之前在一个WordPress主题中代到的最新留言代码,具体也记不得是哪个主题了。该代码直接调用数据库显示一份最新留言。其中 LIMIT 10限制留言显示数量。绿色部份则是每条留言的输出样式。
<?php
global $wpdb;
$sql = “SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_date_gmt, comment_approved,
comment_type,comment_author_url,
SUBSTRING(comment_content,1,30) AS com_excerpt
FROM $wpdb->comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
$wpdb->posts.ID)
WHERE comment_approved = ’1′ AND comment_type = ” AND
post_password = ”
ORDER BY comment_date_gmt DESC
LIMIT 10″;
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;?? foreach ($comments as $comment) {
$output .= “n<li>”.strip_tags($comment->comment_author)
.”:” . ” <a href=”” . get_permalink($comment->ID) .
“#comment-” . $comment->comment_ID . “” title=”on ” .
$comment->post_title . “”>” . strip_tags($comment->com_excerpt)
.”</a></li>”;
}?? $output .= $post_HTML;
echo $output;?>
4.wordpress调用相关文章
在文章页显示相关文章
<?php
$tags = wp_get_post_tags($post->ID);
if ($tags) {
$first_tag = $tags[0]->term_id;
$args=array(
‘tag__in’ => array($first_tag),
‘post__not_in’ => array($post->ID),
‘showposts’=>10,
‘caller_get_posts’=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title();?> <?php comments_number(‘ ‘,’(1)’,'(%)’); ?></a></li>
<?php
endwhile;
}
}
wp_reset_query();
?>
5.wordpress调用指定分类的文章
<?php $posts = get_posts( “category=4&numberposts=10″ ); ?>
<?php if( $posts ) : ?>
<ul><?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
<li>
<a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
6.wordpress去评论者链接的评论输出
<?php
global $wpdb;
$sql = “SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_date_gmt, comment_approved,
comment_type,comment_author_url,
SUBSTRING(comment_content,1,14) AS com_excerpt
FROM $wpdb->comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
$wpdb->posts.ID)
WHERE comment_approved = ’1′ AND comment_type = ” AND
post_password = ”
ORDER BY comment_date_gmt DESC
LIMIT 10″;
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
foreach ($comments as $comment) {
$output .= “\n<li>”.strip_tags($comment->comment_author)
.”:” . ” <a href=\”” . get_permalink($comment->ID) .
“#comment-” . $comment->comment_ID . “\” title=\”on ” .
$comment->post_title . “\”>” . strip_tags($comment->com_excerpt)
.”</a></li>”;
}
$output .= $post_HTML;
echo $output;?>
7.wordpress调用含gravatar头像的评论输出
<?php
global $wpdb;
$sql = “SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved,comment_author_email, comment_type,comment_author_url, SUBSTRING(comment_content,1,10) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = ’1′ AND comment_type = ” AND comment_author != ‘郑 永’ AND post_password = ” ORDER BY comment_date_gmt DESC LIMIT 10″;
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
foreach ($comments as $comment) {
$output .= “\n<li>”.get_avatar(get_comment_author_email(‘comment_author_email’), 18). ” <a href=\”” . get_permalink($comment->ID) . “#comment-” . $comment->comment_ID . “\” title=\”” . $comment->post_title . ” 上的评论\”>”. strip_tags($comment->comment_author) .”: “. strip_tags($comment->com_excerpt) .”</a></li>”;
}
$output .= $post_HTML;
$output = convert_smilies($output);
echo $output;
?>
上面代码把comment_author的值改成你的ID,18是头像大小,10是评论数量。
8.wordpress调用网站统计大全
1、日志总数:
<?php $count_posts = wp_count_posts(); echo $published_posts = $count_posts->publish;?>
2、草稿数目:
<?php $count_posts = wp_count_posts(); echo $draft_posts = $count_posts->draft; ?>
3、评论总数:
<?php echo $wpdb->get_var(“SELECT COUNT(*) FROM $wpdb->comments”);?>
4、成立时间:
<?php echo floor((time()-strtotime(“2008-8-18″))/86400); ?>
5、标签总数:
<?php echo $count_tags = wp_count_terms(‘post_tag’); ?>
6、页面总数:
<?php $count_pages = wp_count_posts(‘page’); echo $page_posts = $count_pages->publish; ?>
7、分类总数:
<?php echo $count_categories = wp_count_terms(‘category’); ?>
8、链接总数:
<?php $link = $wpdb->get_var(“SELECT COUNT(*) FROM $wpdb->links WHERE link_visible = ‘Y’”); echo $link; ?>
9、用户总数:
<?php $users = $wpdb->get_var(“SELECT COUNT(ID) FROM $wpdb->users”); echo $users; ?>
10、最后更新:
<?php $last = $wpdb->get_results(“SELECT MAX(post_modified) AS MAX_m FROM $wpdb->posts WHERE (post_type = ‘post’ OR post_type = ‘page’) AND (post_status = ‘publish’ OR post_status = ‘private’)”);$last = date(‘Y-n-j’, strtotime($last[0]->MAX_m));echo $last; ?>
9.wordpress判断语句
is_single()
判断是否是具体文章的页面
is_single(’2′)
判断是否是具体文章(id=2)的页面
is_single(’Beef Stew’)
判断是否是具体文章(标题判断)的页面
is_single(’beef-stew’)
判断是否是具体文章(slug判断)的页面
comments_open()
是否留言开启
pings_open()
是否开启ping
is_page()
是否是页面
is_page(’42′)
id判断,即是否是id为42的页面
is_page(’About Me’)
判断标题
is_page(’about-me’)
slug判断
is_category()
是否是分类
is_category(’6′)
id判断,即是否是id为6的分类
is_category(’Cheeses’)
分类title判断
is_category(’cheeses’)
分类 slug判断
in_category(’5′)
判断当前的文章是否属于分类5
is_author()
将所有的作者的页面显示出来
is_author(’1337′)
显示author number为1337的页面
is_author(’Elite Hacker’)
通过昵称来显示当前作者的页面
is_author(’elite-hacker’)
下面是通过不同的判断实现以年、月、日、时间等方式来显示归档
is_date()
is_year()
is_month()
is_day()
is_time()
判断当前是否是归档页面
is_archive()
判断是否是搜索
is_search()
判断页面是否404
is_404()
判断是否翻页,比如你当前的blog是http://domain.com 显示http://domain.com?paged=2的时候,这个判断将返 回真,通过这个函数可以配合is_home来控制某些只能在首页显示的界面,
例如:
<?php if(is_single()):?>
//这里写你想显示的内容,包括函数
<?php endif;?>
或者:
<?php if(is_home() && !is_paged() ):?>
//这里写你想显示的内容,包括函数
<?php endif;?>
10.wordpress 非插件调用评论表情
<!–smilies–>
<?php
function wp_smilies() {
global $wpsmiliestrans;
if ( !get_option(‘use_smilies’) or (empty($wpsmiliestrans))) return;
$smilies = array_unique($wpsmiliestrans);
$link=”;
foreach ($smilies as $key => $smile) {
$file = get_bloginfo(‘wpurl’).’/wp-includes/images/smilies/’.$smile;
$value = ” “.$key.” “;
$img = “<img src=\”{$file}\” alt=\”{$smile}\” />”;
$imglink = htmlspecialchars($img);
$link .= “<a href=\”#commentform\” title=\”{$smile}\” onclick=\”document.getElementById(‘comment’).value += ‘{$value}’\”>{$img}</a> ”;
}
echo ‘<div>’.$link.’</div>’;
}
?>
<?php wp_smilies();?>
<!–smilies—>
将以上代码复制到 comments.php 中合适的位置:
补丁作用:
此更新解决了 Microsoft 安全公告 (KB2942844) 中所讨论的漏洞。
细心的网友发现,安装了该补丁后,iebook生成的杂志在Windows 8.1 系统下显示正常了哦!~
来源:http://labs.adobe.com/downloads/acrobatcleaner.html
Adobe Reader and Acrobat 清理工具用于删除Reader 或 Acrobat的独立安装,被删除的内容包括任何预设参数。该工具同时拥有用户接口和命令行接口。
用户在完成安装、卸载、更新和修复操作时,可能由于机器上的某些注册信息或文件存在冲突而无法完成上述操作。尤其当用户对注册表项或文件的权限不够阻止了成功安装和/或更新。Adobe Reader and Acrobat 清理工具就是通过清理上述错误安装,包括删除或修复错误文件、删除或更改注册表项权限等。该工具为有疑问的Acrobat条目(不影响Reader)提供删除选项。
提示:该工具不能用于任何包含Acrobat的Creative Suite版本。仅用于Acrobat或Adobe Reader的独立安装版本。
用户手册
使用Adobe Reader and Acrobat 清理工具时请遵循以下用户接口操作流程或命令行使用手册。一旦您完成操作,请发送反馈给我们,让我们知道你的感受。
用户接口操作流程
命令行使用手册
AdbeArCleaner.exe /silent /product=<ProductId>
/installpath=<InstallPath> /cleanlevel=<CleanLevel>
/scanforothers=<ScanForOthers>
ProductId | 产品ID: 0?= Acrobat (默认) 1?= Reader |
|
InstallPath | 指定程序安装路径。默认值为产品默认安装路径;如: C:\Program Files (x86)\Adobe\Reader 10.0。当使用ScanForOthers = 0 时必须指定本参数。 | |
CleanLevel | 指定清理级别,如:是否清除共享组件: 0?(默认) =仅清除所选产品组件。 1?=同时清除与所选产品关联的共享组件。 |
|
ScanForOthers | 指定搜索并删除仅InstallPath指定的安装路径,或机器上的所有路径: 0?= 搜索并删除InstallPath参数指定路径的文件夹。 1?(默认) = Search for and delete installation directories system wide. This search includes non-default paths as well as default paths such as C:\Program Files\Adobe\Acrobat 10.0. |
|
/? | 调出工具帮助,如: AdbeArCleaner.exe /? |
常见问题
清理工具支持哪些产品及版本?
本清理工具同时支持Acrobat 和 Reader,版本为9 和 10。
运行本程序时,是否写入日志?
执行期间,将在以下路径创建日志文件:
若清理工具调用MSI卸载工具作为清理进程的一部分,那么在上述路径会创建名为Msi[RANDOM_NUMBER].tmp.log的日志文件。
系统需求是什么?
本工具能用在支持产品版本9.x和10.x的任何系统上。
应该如何使用本工具?
仅当正常卸载时出现失败或已有旧版,在安装新版本出现失败时,请使用本工具。
如何卸载本工具?
要卸载本工具,直接删除即可。
如何提供反馈?
你可以在线上论坛提交反馈.
已知问题
开启了wordpress友情链接后,在给友情链接添加图片链接时,发现图像和文本链接都出来了,感觉比较影响阅读,于是搜索了一番,发现只要将下面文件中_walk_bookmarks函数中的某几行代码注释掉就行。 继续阅读wordpress 修改友情链接模版
在网上找了几次,每次都是“需要安装额外的插件,wordpress自3.5.1之后就取消友情链接功能啥的”,虽然是有些插件是官方的,但总感觉会影响速度。
现在终于找到解决办法了。
链接:http://fengxiangba.com/restart-wordpress-links.html
当前使用的主题文件,functions.php中添加以下代码:
add_filter( ‘pre_option_link_manager_enabled’, ‘__return_true’ );
VSB是一款针对Windows Vista、Windows 7、Windows 8进行美化的主题工具。最新版本为1.5.6.3beta
分享几个序列号:
webmaster@ilezhi.cn VSBXDPCMBBEEAWAIALECILJTJEJNGSFMHKGMEDESDWBOAVAFBMBTIAGPJSIWFWHF user@wordpress.com VSBXCFEXESEBBODBBYAWIJGNHZJAFXHCJVGGDYCVAZDRBAAJAIEHICJMJPFHGTFI
Build 1.5.6.3 Beta
[ADD] Blackscreen check. If DWM fails (causing a blackscreen) WSB will revert to Aero
[UPD] Due to the blackscreen check, WSB will now always ask to be ran as administrator
[REG] Removed using sysmetric font in the property grid temporarily due to it causing a GDI leak. This can cause the UI to become unresponsive and stop drawing properly. Will add back later
[FIX] Some memory leaks
Build 1.5.6.2 Beta
[ADD] Drop down undo history
[ADD] Drop down undo history in the QAT
[ADD] Ability to run StyleScripts from Import Script
[ADD] Ability to import class to another class during import
[CHG] Allow for single click editing for properties
[FIX] Drop down button in the grid not being themed
[FIX] Property edit controls overlapping border
[FIX] Property edit control using MS Shell Dlg as the font
[FIX] Loading a new theme or opening a new theme could cause the tree to retain old part names if the new theme is for a different version of Windows
[FIX] JumpList being imported incorrectly when porting Windows 7 themes to Windows 8 themes
Build 1.5.6.1 Beta
[ADD] StyleScript Dialog (Hold Shift when clicking the StyleHack button in non-Ribbon mode)
[FIX] Copying not working from a part where inherited properties are shown
[FIX] String resources with same IDs as other string resources
Build 1.5.6.0 Beta
[ADD] StyleScripts Alpha
[ADD] Upgrade 8.1 Theme to 8.1 Update 1 StyleScript
[UPD] When adding a class you no longer have to save/reopen to see the changes
Build 1.5.5.9 Beta
[FIX] Issue causing WSB to get slow and eventually stop responding
Build 1.5.5.8 Beta
[FIX] More potential memory errors
[FIX] Update ONE Resources not updating when saving the theme in the directory where it was opened
[UPD] MonthCal, ChartView, TaskManager ClassMap.xml to name new Parts/States in Windows 8 and Windows 8.1
Build 1.5.5.7 Beta
[ADD] Ability to merge DUIXML files into the shellstyle on Save/Test for Tihiy’s OldNewExplorer
To automate the merging of DUIXML files, they must be placed in a folder called Resources in the same
directory as the .msstyles you opened. In the Resources directory there must be a folder for the DLL
name of the file you want to override and a folder called UIFILE within, for example
\Resources\ExplorerFrame.dll\UIFILE. Each file within this folder will be added as a resources, and
the file extension can be anything.
[FIX] Memory errors
[FIX] Undo/Redo buttons not showing part of the time with the ribbon off
Build 1.5.5.6 Beta
[ADD] Added the ability to show a balloon by clicking the command link in the controls preview
[ADD] Ability to preview how an image will stretch by margins in the Image tab of the ribbon
[ADD] Option to copy a record’s binary to the clipboard
[FIX] Issue causing inherited properties to overwrite preview data
[FIX] Searching text when in search color mode yielding results
[FIX] Searching images for color would always return a result even if there was no match
[FIX] Issue causing new searches to perform slowly if you selected an item in the tree on a previous search
[FIX] Clearing a search would take a long time if you had selected an item in the tree
[FIX] Issue causing command lines not to work properly
[FIX] Undo/Redo in the QAT not being disabled when undo/redo isn’t possible
[FIX] Switching tabs in the controls preview now resets the defpushbutton as it did in 1.5.0.3
[FIX] Ability to add property when no class/part/state was selected via hotkey
[FIX] Ability to reload theme when not testing via hotkey
[FIX] Ability to undo/redo when there was nothing to undo/redo via hotkey
[FIX] Not being able to paste in the search box
[FIX] Not being able to paste into a grid field
[FIX] Potential memory leak causing a crash when attempting to delete a font when opening a new theme
[FIX] Copying multiple properties would cause a crash if the grid showed inherited properties
[FIX] Crash when displaying a prop type 240 in the grid where a part had 0 states
[FIX] Issue causing properties to be replaced when editing inherited properties
[FIX] Possible memory issues
[FIX] Ctrl+C not copying a property
[FIX] Paste not being enabled when it should in the Ribbon
[FIX] Changing a property with a search filter enabled would give a Record out of bounds error
[FIX] Searching colors not returning results if there was a space in the search string
[FIX] OS Mode switcher not working
[UPD] Paste is now only enabled if there’s MSStyles properties in the clipboard
[UPD] Control + F now focuses the search box
[UPD] Control + G now opens the Go To Path box
[UPD] Updated background to show light images better
[UPD] Searching now only shows properties that match the search query
[UPD] Toolbars now are drawn with BTNFACE instead of the rebar background
[UPD] MRU now enabled in the Ribbon
[UPD] Ribbon now scales to the window width so control don’t slide out of view
[INC] Updated DiffTool to properly compare themes with new or missing classes
Build 1.5.5.5 Beta
[FIX] First undo not being able to be undone
[FIX] Redo being enabled in the Ribbon on open
[FIX] Grid’s width now saves when maximized
[FIX] When opening WSB maximized there was a flash as the window reset its position/size twice
[UPD] Grid and Tree panes now save based on width rather than position
Build 1.5.5.4 Beta
[FIX] Issue causing Windows 8 XML’s to load instead of 8.1’s
[FIX] 5146:243 (AeroLite IMAGEFILE3:FILENAME) not to load properly
[FIX] Grid’s colors not updating on theme change
[FIX] Searchbox glyph not updating on theme change
[FIX] Ribbon testing buttons being set before a test was successfully applied
[FIX] Possibility for WSB to report wrong theme version
[FIX] Window not restoring properly if opened in maximized mode
[ADD] Enum names to the EnumMap for prop type 241
[ADD] Enum values to the EnumMap for prop 5102:ENUM
[ADD] Ability to view inherited properties
[UPD] Grid is now grouped
[UPD] Grid is now themed
[UPD] Splitter windows now remember their last position on close
[UPD] Shift+Reload tab in non Ribbon mode now switches DWM on/off
[UPD] Reload Test now stores the test file in %programdata%\Windows Style Builder\Testing
[REM] Removed the code that darkens the window which is the cause of the Ribbon flashing blue
[CHG] Restored Help. Clicking Help now brings up the old dialog
[CHG] Removed WS_EX_CLIENTEDGE from the tree so there wouldn’t be a border
Build 1.5.5.3 Beta
[UPD] Recoded the save/test functions
[UPD] Added Workspaces folder (%programdata%\Windows Style Builder\Workspaces) to Open/Save file dialog. Meant to be used for themes you’re currently working on and haven’t finished
[UPD] Removed AveStyler’s CustomThemes folder from Open/Save file dialog
[ADD] Theme version detection
[ADD] Copies of 8’s XMLs into data\Win8.1
[FIX] Two possible crashes when saving
[FIX] When theme was in use when saving, appling Aero would make DWM’s colorization color go grey in Windows 8 and 8.1
[FIX] When opening a new theme the tree wouldn’t refresh
[UPD] When loading or opening a new theme WSB loads the XMLs for that theme’s version
Build 1.5.5.2 Beta
[ADD] Windows 8.1 Support
[FIX] Sets DWM Colorization Color on save/apply
Build 1.5.5.1 Beta
[CHG] Reload Test on Windows 8 now keeps DWM’s colorization color
Build 1.5.5.0 Beta
[CHG] Can no longer add properties to DWMWindow, DWMTouch, or DWMPen as they have no effect and removal of properties in that class is disabled to prevent errors
[CHG] WSB will mark testing themes for deletion upon reboot in Windows 8 and 8.1
[CHG] Clicking Open now shows an open file dialog instead of task dialog
[CHG] Replaced nonfunctional Stylehacks gallery with a Import Stylehacks button
[UPD] WSB will attempt to clean up the Testing folder when opened
[UPD] Open menu now expands to show Import Theme options
[UPD] Enabled Ribbon
[FIX] Clicking New would hide the ribbon
[FIX] Removing custom class would export properties in the tree
Build 1.5.5.0 Beta Preview
[ADD] Ribbon
[ADD] Color Replacer
[ADD] -vistabeta command line to preview Longhorn/Vista Beta themes
[ADD] Support for viewing BITMAPREF:BITMAPREF
[FIX] Command lines not working
[FIX] When modifying a color value the undo list didn’t show the new color
[FIX] Undo label not showing part or state ID if a name isn’t defined
[FIX] Updates DWM’s color on test / stop test to prevent it going default in 8
[CHG] Search box now uses the image in the msstyles
[CHG] Search button now uses the search icon in the msstyles if in Windows 8
[CHG] Moved search box into a toolbar above the tree
[CHG] Titlebar now reads Filename – Windows Style Builder for consistency
Build 1.5.4.9 Beta
[FIX] Bug that caused importing to not work in builds 1.5.4.7 and 1.5.4.8
[REM] Removed watermarking
Build 1.5.4.8 Beta
[CHG] Can save to C:\Windows\Resources\Themes without always running elevated. Will prompt on save.
[CHG] WSB now supports high contrast themes in Windows 8
[CHG] In Windows 8 enable/disable DWM option no longer listed on the test button
Build 1.5.4.7 Beta
[ADD] Functions to read/write new properties in AeroLite
[INC] Includes new DiffTool for comparing new AeroLite properties
Build 1.5.4.6 Beta
[ADD] When you save a new theme WSB now copies the Shell folder to the new directory
Build 1.5.4.5 Beta
[CHG] WriteTheme now writes [Control Panel\Colors] section
[CHG] Removed the ability to remove properties from DWMWindow, DWMTouch, and DWMPen to prevent black screen bug.
[FIX] After you save a theme, theme theme is added to the MRU
[UPD] Removed Windows 8 classes from Windows 7’s classmap
[UPD] Updated Windows 8 import map
Build 1.5.4.4 Beta
[ADD] Option to add a new class to the class map. Need to save/test theme for changes to apply and reload the tree. (Debug Mode)
[ADD] Option to remove custom added classes. Requires save/test to apply changes. (Debug Mode)
[CHG] Restored old help dialog as new one is gone.
[FIX] Typo in Properties.xml
[FIX] Exporting Stream images would cause the image to be distorted
[FIX] Editing Stream images would cause the image to be distorted
Build 1.5.4.3 Beta
[UPD] When copying an imagefile:filename it gets the record’s current image so you don’t have to test/reload. Still doesn’t work across themes though
Build 1.5.4.2 Beta
[FIX] Copying a imagefile:filename to another location not working properly
Build 1.5.4.1 Beta
[FIX] Image alpha conversion not working properly
[FIX] When adding a new image via the add property dialog, the image’s alpha not being converted
[CHG] When editing an image, the temp image is converted back to straight alpha
[CHG] When exporting an image, the image is converted back to straight alpha
[ADD] Option to export image with premultiplied alpha
[UPD] Win8 ClassMap.xml
Build 1.5.4.0 Beta
[ADD] Ability to port Windows 7 themes
[ADD] 7 to 8 import map
[ADD] Option to optimize the theme on save, will remove redundant images and images will be shared among different properties.
[UPD] Updated XML files for Windows 8
[CHG] Selecting the option to write a theme file now writes to %localappdata%\Microsoft\Windows\Themes\ so it’ll show in the control panel automatically.
[FIX] When writing a theme file the transparency attribute would be inversed
Build 1.5.3.5 Beta
[FIX] Tabs not displaying properly when the width was too small
Build 1.5.3.4 Beta
[ADD] Backup folder now shown in the open file dialog
[CHG] WSB now deletes all locale folders on save and test and not just en-US
[CHG] View button on the image toolbar removed as it didn’t work
[UPD] If save file dialog fails to open, it now saves regardless of the error
[UPD] .theme file now writes the theme’s name rather than Aero
[UPD] .theme file now writes DWM’s current colorization color instead of default
[UPD] .theme file now writes current wallpaper instead of img0.jpg
[UPD] .theme file now writes whether transparency is enabled or not rather than always true
[UPD] .theme file written for both Windows 7 and Windows 8 rather than just Windows 8
[UPD] Image toolbar aligns properly to the property toolbar
[FIX] Clicking cancel or close on the Save File Dialog causes WSB to create a backup
Build 1.5.3.3 Alpha
[ADD] When loaded delete the testing folder. This is to clear out files that were locked before a reboot.
[UPD] If the dialog box fails to open on save, save the current theme’s progress to %programdata%\Windows Style Builder\Backup\{themename}\{date}\{time}
Build 1.5.3.2 Alpha
[FIX] Reload Test causing black screen
Build 1.5.3.1 Alpha
[FIX] Testing not working. The new testing directory is in %programdata%\Windows Style Builder\Testing
[FIX] Deletes en-US folder on save/test to prevent black screen bug.
[ADD] Writes generic .theme file (unfinished feature)
Build 1.5.3.0 Alpha
[FIX] Fixed bug where if you cancel out of the open existing theme dialog it would load aero anyway
[FIX] When opening a new theme, the window no longer goes to the background
[FIX] When opening a new theme, the window is no longer partially greyed out, instead while the theme is loading the whole window remains grey as previously intended
[ADD] Introduced Windows Style Builder Basic
[ADD] Initial Windows 8 Support
+ Added multiple stream support (Thanks Ave!)
+ Added Windows 8 XMLs
+ Added option to switch to Windows 8 Mode (Debug)
+ Added initial WIP of the Windows 7 to Windows 8 importer
+ Added WritePVL(), WriteDesktop(), and WriteImmersive() functions for Windows 8
[CHG] Control Preview window no longer shows automatically when testing (based on user feedback)
Build 1.5.2.2
[FIX] Temporary workaround to prevent compile failing on first try. If the same circumstances are met that caused it to fail previously it will try one more time, which means two compiles, so it could be slower. Hopefully a better solution can be created later.
[FIX] Bug causing WSB to crash when preview glyphs and glyph related parts.
Build 1.5.2.1
[ADD] Show margins in the preview area
[CHG] Made the tree view transparent for a cleaner UI
[FIX] Fixed bug that caused WSB to not show Themes folder for users without AveStyle
[FIX] Fixed bug that caused the scrollbar on the properties list to not show
Build 1.5.2.0 – Changes since 1.5.1.0
[ADD] The Import image / Export image dialogs are separate from the Open and Save file dialogs.
[ADD] When opening or saving a theme a Windows Style Builder tree is shown in the navigation pane. The CustomThemes folder is for those who own AveStyler other wise it’s not there.
[ADD] Import image dialog now has options to skip alpha checking and/or remove magic pink.
[ADD] Exporting images now asks to overwrite.
[ADD] The status bar now shows information as to what the selected class, part, or state is for. This information was for the previous help dialog before WSB 1.5
[CHG] The status bar is now shown at all times.
[CHG] New Stop Testing icon.
[FIX] The x glyph in the search box is now shown again.
[FIX] Importing an image no longer blanks out the preview area.
[FIX] Resizing no longer blanks out the preview area.
[FIX] Testing now copies your theme’s shellstyle.dll instead of the default Aero shellstyle.dll
[UPD] New UI layout (WIP)
[UPD] Includes 1.7.0 XMLs
一、如何加载外部文件。
1、当网页中嵌入swf文件后,swf内的路径是相对于网页的。需要修改object 和 embed 标签的 base 属性,来指定swf加载的路径的父路径。加载外部文件时,子目录写法“sound/music.mp3”。注意斜杠方向
2、(以下ABC都指swf文件) 如果A加载了B,B又加载了C。直接在 Flash IDE 中测试时,会出现 Error #2035 错误。当时在网页中却没问题(前提是设置了 base 属性)
3、外部文件名为中文时,请加 encodeURI(),在服务器上测试通过,直接打开网页测试通不过。
二、如何让 flash 在浏览器窗口中全屏
1、文件》发布设置》其他格式(HTML包装器)
2、基本设置如下:
大小:百分比
缩放:精确匹配
三、(参考《殿堂之路 4.4.4函数动态添加实例属性》)访问上级的其他同级对象(如影片剪辑对象.name=”otherObjName”,或者在“实例名称”一栏中写上otherObjName)写法:this.parent[“otherObjName”]
(1)不要写成 this.parent.otherObjName或者 this.parent.getChildByName(“otherObjName”)
(2)以下脚本会出错:
this.parent.otherObjName.addChild(DisplayObject)???
//元件’****’, 图层’***, 帧 **,*** 行?1119: 访问可能未定义的属性?(通过 static 类型 flash.display:DisplayObjectContainer 引用)。
this.parent.getChildByName(“otherObjName”).addChild(DisplayObject)???
//元件’***’, 图层’***’, 帧 **,** 行?1061: 调用可能未定义的方法 addChild (通过 static 类型 flash.display:DisplayObject 引用)。
以下脚本正确:this.parent[otherObjName].addChild(DisplayObject)
类推:this.parent.gotoAndPlay(2) 会出错(出错代码1061),改成 this[“parent”].gotoAndPlay(2) 就没问题了
3、在进行和asp,数据库等有关的连接时,单击【控制】>【清除发布缓存并测试影片】,并不能有效的清除缓存。需要使用IE浏览器的清除功能清理下,再单击【控制】。。。才行。
个人经验之谈,或许和当时一直开始浏览器有关吧~~
4、http://help.adobe.com/zh_CN/flash/cs/using/WSb03e830bd6f770ee-70a39d612436d472f4-7ff8.html
使用相对于 SWF 文件的路径来指示 FLV 或 F4V 文件的位置
使用相对于网页的路径来指示皮肤文件的位置
这可让您在本地使用与服务器上相同的目录结构。如果视频此前已部署到承载视频的 FMS 或 FVSS 上,则可以跳过这一步。