Archive for 2012.01

小故事大智慧:商业链的建立

今天在微博上看到一个小故事,确实很受用。 犹太人发现一条高速路上没有加油站,立刻在那里开了个加油站,后来又来了个犹太人,立马在他旁边开了个小卖店,生意都很好,大家相处也很和睦。尔后,又来了个犹太人,又在他旁边开了个修车铺,由于都是独家,生意都不错,利润也很好。 同时有个中国人在一条高速路上也发现了这样的情况,也开了一家加油站,这时候,来了第二个中国人,发现这家生意不错,立马也建立了一个加油站,大家就可以打价格战,但是来往车辆蛮多,生意也还凑合,这时候又来了第三个,看到两家生意不错,又在旁边开了第三家,由于高度...

ECMS中自动获取频道下子栏目

有时候频道很多,每个频道页面单独制作模版很麻烦,但是又想自动获取本频道下子栏目及连接,那么你就需要这个了。 代码如下: <? $bclassid = $class_r[$GLOBALS[navclassid]][bclassid]; //获取当前父栏目ID ?> [e:loop={"select classid,classname,classpath from [!db.pre!]enewsclass where bclassid = ‘$bclassid’ order by classid”,0,24,0}] <? $bqno%2==0?$style=”style=background:#E8E8E8;”:$style=”"; ?> <tr> <td width=”346″ height=”25″ valign=”top”><table w...

ECMS中在列表页如何单独调用年、月、日

列表内容模板(list.var) (*) 选中:使用程序代码 内容修改为: $listtemp=’<li><a href=”[!--titleurl--]” title=”[!--oldtitle--]“>[!--title--]</a> <span>’.date(“Y”,$r[newstime]).’年’.date(“m”,$r[newstime]).’月’.date(“d”,$r[newstime]).’日</span> </li>’; 其中这部分就是我开始想要的: ‘.date(“Y”,$r[newstime]).’年 ‘.date(“m”,$r[newstime]).’月 ‘.date(“d”,$r[newstime]).’日 ...

不同分类的详细页定义不同模板

时代前端上篇写过wordpress每个分类如何使用不同模板那是在不同分类的时候用不同的模板,那么现在在进一步人性化一点,让不同分类的详细页面也用不同模板,呵呵,对一些要求高的哥们就可以用上了。 具体方法 我将要对single.php(详细页面模板)文件添加一个条件标签让她达到“如果这个单页是属于xxx 分类的, 就显示xxx的风格”,这要用到If in_category 条件标签。 首先,复制两个single.php文件分别取名为 single1.php和single.2.php. 然后,把原先的single.php文件里面的内容全部删除,并用下面的代码进行替换: —————————————————...

Supesite:分享SQL调用第三方数据的心得

200985143142758
Supesite一直我喜欢的一款简单CMS,代码简单,维护也相当方便,但是目前不再开发了。我的中国财税网的考试部分就是基于Suepsite制作的。 这是我很早发布在Discuz官方的调用心得,现在把他转载回来。 首先感谢lidq.jingwu版主,他在论坛给了我很多帮助,在他的提示下,我才能成功获取到数据. 我个人认为在调用数据中最重要的就是要知道打印数据 <!–{eval print_r($_SBLOCK['vrcfonews']);}–> 只有打印出数据我们才能分析数据,采取合理的方式得到数据. 下面我以我调用ECMS最新文章,跟大家分享下: 1、我们模块管理中选择...

重新开博 希望能坚持下去

从2004年开始接触网络,眨眼就8年了。 8年,人生有几个。 这个域名购买也有3年多了吧,曾经也断断续续写了一段时间,但是有一次服务器坏了,数据丢失。人也懒了,就再也没有写了。希望我这次能坚持下去,记录自己的点点滴滴,也许是对自己的另一种负责。 从99年开始上网,现在还是个上网者,没有从网上网到一条鱼,作为资深网民,太失败了啊。 有时候想一想,如果我坚持我最初的财务网站,也许网站早成功了。当时Alexa还是蛮高的,访问量也挺好,但是舍不得投入,自己有喜欢瞎折腾,结果把网站折腾死了,也恰逢TC的备案,当时在新公司上班,就把网站...

没有财务自由 就不要奢谈人身自由

人存活在这个世界上,只是这个世界的一个部分,而且并不是一个完全独立的部分。每个人与这个世界有着千丝万缕的关系,完全的自耕自足,在现在这个社会已经进本不存在,何况在和谐的我国,更加不可能了。 我们总是在谈自由,是的,自由很重要,古人云“自由诚可贵,爱情价更高”,说明除了爱情,自由还是很值钱的东东了。但是我们真的很容易做到独立么?非也,没有财务自由就不要奢谈人身的自由了。 很简单的例子,我想去旅游,去西藏。但是我现在兜里的银子只能维持这个月的生计。我可以去吗?如果我是孤身一个人,也许可以。我有脑子,我有手脚,在旅...
dd_thickbox(); $title = __('Dashboard'); $parent_file = 'index.php'; if ( is_user_admin() ) add_screen_option('layout_columns', array('max' => 4, 'default' => 1) ); else add_screen_option('layout_columns', array('max' => 4, 'default' => 2) ); $help = '

' . __( 'Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab in the upper corner.' ) . '

'; get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => $help, ) ); // Help tabs $help = '

' . __('The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.') . '

'; $help .= '

' . __('Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.') . '

'; get_current_screen()->add_help_tab( array( 'id' => 'help-navigation', 'title' => __('Navigation'), 'content' => $help, ) ); $help = '

' . __('You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.') . '

'; $help .= '

' . __('Screen Options - Use the Screen Options tab to choose which Dashboard boxes to show, and how many columns to display.') . '

'; $help .= '

' . __('Drag and Drop - To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.') . '

'; $help .= '

' . __('Box Controls - Click the title bar of the box to expand or collapse it. In addition, some box have configurable content, and will show a “Configure” link in the title bar if you hover over it.') . '

'; get_current_screen()->add_help_tab( array( 'id' => 'help-layout', 'title' => __('Layout'), 'content' => $help, ) ); $help = '

' . __('The boxes on your Dashboard screen are:') . '

'; $help .= '

' . __('Right Now - Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.') . '

'; $help .= '

' . __('Recent Comments - Shows the most recent comments on your posts (configurable, up to 30) and allows you to moderate them.') . '

'; $help .= '

' . __('Incoming Links - Shows links to your site found by Google Blog Search.') . '

'; $help .= '

' . __('QuickPress - Allows you to create a new post and either publish it or save it as a draft.') . '

'; $help .= '

' . __('Recent Drafts - Displays links to the 5 most recent draft posts you’ve started.') . '

'; $help .= '

' . __('WordPress Blog - Latest news from the official WordPress project.') . '

'; $help .= '

' . __('Other WordPress News - Shows the WordPress Planet feed. You can configure it to show a different feed of your choosing.') . '

'; $help .= '

' . __('Plugins - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '

'; get_current_screen()->add_help_tab( array( 'id' => 'help-content', 'title' => __('Content'), 'content' => $help, ) ); unset( $help ); get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . '

' . __( 'Documentation on Dashboard' ) . '

' . '

' . __( 'Support Forums' ) . '

' ); include (ABSPATH . 'wp-admin/admin-header.php'); $today = current_time('mysql', 1); ?>

Fatal error: Call to undefined function screen_icon() in /home/vrcfocom/public_html/donvee/index.php on line 89