drupal

为什么管理服务器需要控制面板?

醉酒当歌 提交于 2020-02-26 04:58:27
云服务器因为其稳定性高、使用空间大等特点越来越受到个人站长和中小企业的青睐,相比起一般的虚拟主机,云服务器对于管理员的技术要求较高,如果没有服务器控制面板,安装和使用起来将非常耗时耗力。搭配了服务器控制面板后,整个操作流程将相当顺畅便捷,即使是非技术人员也可以轻松管理维护整个云服务器。 那么,主机控制面板能帮我们做什么? 答案是:全部 从安装网站模板或者CMS应用,到建立数据库上传文件,再到编辑内容发布网站,以至于后台维护抵御网站,它全部都能做到。当然,控制面板的质量也很重要,一款优质的控制面板就相当于一位24小时不休息的网站管理员,不仅能发现主机和网站运行过程中出现的问题,更能马上解决问题。从整体而言,控制面板将为管理云服务器带来六大优势。 图形界面管理网站 美观易用 一般而言,图形化界面要优于单纯的文字界面,让新手管理员更容易上手,用起来也非常方便。用户界面是非常重要的,直接影响到整个建站体验。大部分服务器控制面板都提供试用版,初次挑选面板的站长可以花点时间试用一下,毕竟选中了哪款面板就会一直用下去。在用户界面和用户体验上,国内主流面板云帮手的表现非常出色,一改普通面板的直接陈列铺张,划分左右结构功能区,整个界面清晰整洁。 以云帮手为例,从用户界面中我们可以看到,控制面板的功能十分强大,涵盖了建站的方方面面,环境、站点、数据库、FTP等等,为站长或网站管理员提供了建站一条龙服务

Adding a JOIN statement in hook_views_query_alter()

烂漫一生 提交于 2020-02-24 08:54:21
问题 I need to modify a query Views generates so that I can use highly custom filters. I have implemented the add_where() function with some ORs thanks to this question: OR operator in Drupal View Filters However this only solves a part of my problem. There are some fields that I cannot filter on because I need to have extra JOINs in my query. Is there something along the lines of $view->query->add_where() that can insert JOIN statements? 回答1: Well, there is $view->query->add_table() and $view-

Drupal theme_hook

自古美人都是妖i 提交于 2020-02-22 07:14:47
模板语言和主题引擎 用Drupal的行话来说,主题就是一组负责你站点外观的文件。你可以从http://drupal.org/project/Themes下载第 3方主题,或者你可以自己动手创建一个主题,后者正是你在本章将要学习的。作为一个web设计者,主题由你所熟悉的大部分内容所组成:样式表,图 片,JavaScript文件,等等。你将发现,在Drupal主题和纯HTML站点之间的区别就是模板文件。这些文件一般都包含大段的静态HTML,和 一些小段的用来插入动态内容的代码。它们负责你站点的一个特定部分的外观。模板文件的语法依赖于它所使用的主题引擎。例如,列表8-1,8-2,8-3列 出了3个模板文件的代码片段,它们输出的内容是一样但是包含的模板文件内容却完全不同。 构建一个PHPTemplate主题 创建一个主题,可以有多种方式,这取决于你的起始材料。假定你的设计者已经为你的站点提供了HTML和CSS文件。那么将设计者的设计转化为一个 Drupal主题,到底难不难呢?它实际上不是很难,而且你能够轻易的完成工作的80%。不过还有20%—最后的难点了—它是 Drupal主题制作高手与新手的分水岭。首先让我们从简单的部分开始。这里有个概括: 为站点创建或修改HTML文件 为站点创建或修改CSS文件 创建一个.info文件,来向Drupal描述你的新主题。 按照Drupal的标准为文件命名

转:drupal修改用户登录模块

六月ゝ 毕业季﹏ 提交于 2020-02-22 07:01:15
Drupal7自定义用户登录 转载:Drupal7的User Login用户登录教程 http://blog.163.com/ziyun_2006/blog/static/681973652012102792140192/ 网站的登录和注册,大家肯定不会陌生了,而对于玩 drupal 的朋友来说,更不会陌生吧。接触 drupal 不久,也并不怎么会使用其核心的东西,就比如说我要在页面头部加一个“登录 | 退出”这样的链接,就会让我够受的了,如果要像下面图示的User Login框 头就更大了。所以这次花了大力气专门去了解和学习这一块的东西,终于还是让我实现了,为了像我这样的初学者不在头痛,贴出来分享,希望能给需要帮助的朋友带来一丝灵感。那我们开始吧: 第一种方法:在page.tpl.php添加User Login & y7 W! A4 y: G! ` 这种方法就是在你的主题下的page.tpl.php文件中加上一些User Login的代码,这些代码还是算比较简单的,只要稍有一点PHP基础的朋友都是没有问题,像咱这种没有PHP概念的,还是需要花点时间学习一下。好了我们先来看需要增加的代码吧 page.tpl.php: 5 `3 d! X6 q i$ W/ V <?php if($user->uid): ?> <aside class="login-bar c4"> <span

drupal Form

时间秒杀一切 提交于 2020-02-22 07:00:11
1, 首先在 hook_menu 中定义path, 例如下面定义的path为user/register。 $items['user/register'] = array( 'title' => 'Create new account', 'page callback' => 'drupal_get_form', //一般都是使用'drupal_get_form'函数 'page arguments' => array('register_user_form'), //'register_user_form'是指构造$form数组的函数,同时该字符串还会作为form id。 'access callback' => 'user_register_access', ); 2,定义'register_user_form'函数 function register_user_form() { $period = drupal_map_assoc(array(3600,10800,21600,32400,43200,86400),'format_interval'); $form['email'] = array('#type' => 'textfield','#size' => '45', '#default_value'=>'jerry jia cecy'); $form[

Measurement sheets in Drupal 6

人盡茶涼 提交于 2020-02-04 18:42:51
问题 I'm doing a project for a surveying company in Drupal 6. Ultimately, employees will need to enter measurements into a new content type. Currently they do it in a big Excel spreadsheet that has a bunch of macros to do calculations between cells (Meters to Feet, m^2, some pricing stuff). My question is: How would one go about replicating the functionality of this spreadsheet best in Drupal 6 , keeping in mind the amount of data the employees using this system gather varies between projects (I.e

Measurement sheets in Drupal 6

北城余情 提交于 2020-02-04 18:42:30
问题 I'm doing a project for a surveying company in Drupal 6. Ultimately, employees will need to enter measurements into a new content type. Currently they do it in a big Excel spreadsheet that has a bunch of macros to do calculations between cells (Meters to Feet, m^2, some pricing stuff). My question is: How would one go about replicating the functionality of this spreadsheet best in Drupal 6 , keeping in mind the amount of data the employees using this system gather varies between projects (I.e

ckeditor add <iframe> tag in editor

邮差的信 提交于 2020-02-01 08:19:31
问题 I am using ckeditor in a drupal 7 site. I want to put iframe tag inside the editor. Currently what happen when we put iframe in ckeditor. <iframe src="http://www.lipsum.com/"></iframe> It convert that iframe tag with a img tag with some special attribute and URL. <img class="cke_iframe" data-cke-realelement="%3Ciframe%20src%3D%22http%3A%2F%2Fwww.lipsum.com%2F%22%20class%3D%22placeholder-tool%20helpTool-placeholder%22%20scrolling%3D%22no%22%20frameborder%3D%220%22%3E%3C%2Fiframe%3E" data-cke

Measure maximum PHP memory usage

╄→尐↘猪︶ㄣ 提交于 2020-02-01 06:20:05
问题 Setting php_value memory_limit always involves a bit of guesswork and I myself tend to use higher than necessary values just to make sure that the odd memory hungry call does not result in a fatal error. Still, I am looking for a shell script that would behave kind of like htop or top but instead of showing the current values it would remember only the maximum memory consumed by a PHP script and retain it. Such value, over a few days, would be a very valuable indicator of what php_value

XAMPP/MySQL: could not open single-table tablespace file .\mysql\innodb_index_stats.ibd after restart of MySQL

南楼画角 提交于 2020-01-31 03:16:12
问题 I've installed Drupal on my local XAMPP Server. It worked all fine, no problems with including and working with the database/site till i restarted XAMPP. Since then I get the following at my logfile: 2013-09-02 16:18:46 2544 [Note] Plugin 'FEDERATED' is disabled. 2013-09-02 16:18:46 3e8 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory