Drupal Blogs, Pictures, and more on WordPress

Syndicate content
Feed of posts on WordPress.com tagged "drupal"
Updated: 51 min 10 sec ago

Bell 1,3-4 and Drupal site genre update

14 hours 49 min ago

The first few chapters of Mark Bell’s Build a Website for Free skim over the basic concepts of web design. He discusses font and color choices. He also really stresses the importance of planning out exactly what your website should look like, what its function is going to be, and who your audience is. While Bell doesn’t go into as much detail as Redish does in LGOTW, the basic concepts are the same.

 

 

As one of the major projects for my independent study, I chose to create a website using Drupal. Originally, I had planned on creating a crafty-type site for selling quilt patterns. My mom had been nagging me about doing something like that for a while, so I figured it would be a way to do two things at once. Well, since then, my parents have decided to move. My mom has been insanely busy, and has had no time to design quilt patterns. Hmm. What to do? Eventually I decided to create a site for the homeschool group that I belonged to for a number of years. The group has really grown lately, and while they do now have an email list, most of the information is communicated through the mailed-out newsletter.

 

Since there are about 50 families involved, it has gotten quite expensive to mail out a newsletter. Problems have come up in the past when something on the calendar has changed but not all of the families were notified. There is also a teen-run magazine/newsletter that goes out. People interested in homeschooling (or homeschoolers that have recently moved to the area) would also benefit from an easier way to contact the group coordinator, rather than relying on word of mouth.

 

Other homeschool groups in the area already have websites. Most of them are very poorly designed, and aren’t very helpful to potential members.

 

I am going to create a site that fits the needs of my former homeschool group. Once the site is done, I plan on approaching the group coordinator to see if they would be interested in using it.

Categories: Drupal talk

drupal multisite xampp single vhosts entry

November 7, 2009 - 22:20

Ah, finally.  It took a while to get my head around the drupal multi-site thing.  Here was the goal, to create a dev environment with as little setup as possible each time I create a new site.  I could have used the acquia install stack or look more into aegir, but I wanted to get it on my own.  The goal was to create a single vhosts entry in httpd-vhosts.conf.  I tried to see if the hosts file could handle wildcard entries, but unfortunately it does not.  Then I started looking into setting up BIND and running my own local dns to avoid having to deal with the hosts file, but that started getting complex and involved too much effort (i.e. got lazy and didn’t feel like blowing up my current stable setup).

So the steps are actually pretty simple:

Step 1.
Decide on a dev domain.  I usually pick an easy to type / remember domain. I also check to see if there is a real website out there before I lose it by changing the hosts file.  Since I was using the acquia distro, I decided on *.aq.com.  In this case all my drupal instances would be something.aq.com. So when I’m developing with ubercart, I can create cart.aq.com, or  client1.aq.com or test.aq.com.

Step 2.
You’ll need a VirtualHost setting in your httpd-vhosts.conf file.  I run my server on port 8090 for testing, my entry looks like this:

#acquia settings
<VirtualHost *:8090>
 ServerName www.aq.com
 ServerAlias *.aq.com aq.com
 ErrorLog "O:/www/drupal.osm.com/logs"
 LogLevel notice
 RewriteEngine On
 RewriteOptions inherit

 DocumentRoot "O:/www/drupal.osm.com/html/aq"
 <Directory "O:/www/drupal.osm.com/html/aq">
 Options Indexes FollowSymLinks MultiViews ExecCGI
 AllowOverride All
 Order allow,deny
 allow from all
 </Directory>

</VirtualHost>

A few things to note:

  1. The server is running on port 8090, so to get to a site in the browser I’ll need to access: http://cart.aq.com:8090
  2. osm.com – I create all my project folders with this suffix (OpenStep Media)
  3. document root is where acquia is setup, in this folder you’ll see the main drupal index.php file

Step 3.
You’ll need to update your hosts file in c:\windows\system32\drivers\etc   here’s an example.  You’ll need to do this for every site.  I’d like to add a plugin to the xampp control panel to either add entries, or at least create a shortcut to the file (nudge, nudge apachefriends)

#aquia sites
127.0.0.1       test.aq.com
127.0.0.1       web.aq.com

Step 4.
Restart apache.

Step 5.
This is the most important step, and the one that was driving me nuts, but yet so simple.  You will have to go into your drupal install, to the sites folder.  In there you’ll see a folder called “default”.  You’ll need to copy this folder to a new folder name that matches what you put into the hosts file.  So your new folders should be: “test.aq.com” and “web.aq.com”

When you navigate to http://test.aq.com  – you should get the install screen, the same with web.aq.com

Good Luck!

Categories: Drupal talk

Reported by Mustafa ULU

November 7, 2009 - 18:50

Mart 2008′de rapor ettiğim bu güvenlik açığı Ekim 2009′da giderildi.

SA-CONTRIB-2009-081 – Abuse – Cross Site Scripting

The Abuse module enables users to flag nodes and comments as offensive, bringing them to the attention of the site maintainer for review. The module suffers from a Cross Site Scripting (Cross Site Scripting) vulnerability. Such an attack may lead to a malicious user gaining full administrative access.

O zaman gönderdiğim e-posta:

Abuse module displays flagged nodes in a moderation queue without applying filters (without calling node_view) on them.

Module version: abuse 5.x-1.x-dev at (http://drupal.org/node/123349)

Steps to reproduce:

  • Install abuse.module.
  • Enable flagging of any content type at “admin/settings/abuse” page.
  • Flag a node by using “Flag as offensive” link on “node/#nid” page.
  • Go to “admin/content/abuse” page. Under any tab one can see unfiltered node contents.
Categories: Drupal talk

Article: Secure Your Web CMS with SecureLive, Software Plus Realtime Monitoring

November 6, 2009 - 17:37
In this article, I discuss CMS (and general web site) security offering SecureLive, which includes b
Categories: Drupal talk

Drupal Views Module Ajax Error

November 6, 2009 - 16:06

I’m pretty new to Drupal. After reading two Drupal books finally get my hands dirty and start building my first Drupal Site. I installed the Xampp 1.7.2 on my Windows machine, it comes with PHP 5.3 and MySQL 5.1.37. After the Drupal installation I also downloaded the Views 6.x-2.7 Module from Drupal Website.

When I create a new View as a node type, in the Edit View the Ajax error error keeps popping up after clicking on any of the links.

An error occurred at /admin/build/views/ajax/display/card/default/display_title.
An error occurred at /admin/build/views/ajax/display/card/page_1/path.

I spent an hour googling it and finally the solution. http://drupal.org/node/452384

There is an extra “&” in the function parameter. Removing it fixes the problem :D

views/includes/admin.inc

on line 1559:
function views_ui_ajax_form($js, $key, &$view, $display_id) {

to:
function views_ui_ajax_form($js, $key, $view, $display_id) {

Categories: Drupal talk

Linux like development environment in Windows

November 5, 2009 - 18:35

I am a fan of Linux based OS. I love Ubuntu a lot. In fact I started my programming in Redhat. So from the beginning I am comfortable using Linux than Windows. The only reason I use windows is to check IE browser compatability.

Recently I attended Drupal Sprint India 2009. I want to attend the sprint, so I need one Laptop to go there and work. My company provided me Laptop with Windows. So I need to work on drupal core issues in windows. Hmm it looks very hard for me to work in Windows. I want to have following things in my Windows machine.

  1. Cygwin to get the linux like terminal, so that I can see paths with forward slash.
  2. Xampp Lite to get Apache, Mysql, PHP.
  3. cvs, I am going to work on drupal core so I need it
  4. I should able to create patches, apply patches.
  5. I want to use Drupal Drush module, which provides some command line utilities
  6. Emacs. I am more comfortable with this editor. It is very hard to work with other editors once we are comfortable with Emacs

First I installed the things I know like Cygwin, Xampp Lite.

Installing Emacs

I Installed Emacs by following instructions at http://www.claremontmckenna.edu/math/ALee/emacs/emacs.html .

Installing UnxUtils

To be able create patches and apply patches I installed unxutils from http://sourceforge.net/projects/unxutils/ . With this unxutils I got most of the Linux commands. The commands like ls, mkdir, wget, diff, patch, tar, zip etc… are working. I am very happy after installing unixutils.
Installing UnxUtils is nothing but setting the path variable in Windows. I extracted the unixutils directory in C folder and Add C:\unixutils\usr\local\wbin path to the Path variable. In Windows XP we can set the Path variable by going to control panel > System > Advanced > Environment Variables. Select the Path and click Edit and add your path to the existing path.

Installing Drush

There is a documentation about installing Drush in Windows http://drupal.org/node/594744 . This document explain Drush installation by using GnuWin32. But I already installed UnxUtils so I don’t require GnuWin32. So first 3 steps in the http://drupal.org/node/594744 can be ignored. I extracted drush in C folder. As specified in the step 4 of http://drupal.org/node/594744 I edited drush.bat with the path of php.exe and path of drush.php. I added following statement in drush.bat file
@E:\xampplite\php\php.exe C:\drush\drush.php %1 %2 %3 %4 %5 %6 %7 %8 %9

Because I used xampplite to install php, php is there at path E:\xampplite\php\php.exe.Now I executed drush command from the windows terminal by specifying -r and -l attributes.
After that I got an idea why can’t I keep this php, drush paths also in path so that I can directly drush.bat file as it is. Yes I added php, drush, mysql paths in Windows Path variable. The everything works file.

Installing cvs

I downloaded TortoiseCVS from http://www.tortoisecvs.org/download.shtml. This is a exe file, I can simple double click and execute.

That’s it, Now I installed all the things necessary to work on drupal with a linux like environment. Now I am happy to work on windows.

Categories: Drupal talk

custom module in drupal

November 5, 2009 - 06:28
<?php // $Id: muthu.module,v 1.138.2.3 2008/11/22 10:49:15 dries Exp $ /** * @file * Enables user
Categories: Drupal talk

Open Source Comes to the White House and Hopefully the Rest of Government

November 4, 2009 - 17:44

By now you’ve probably read the coverage whitehouse.gov received when it was revealed that it is built using Drupal, an open source content management system.

The White House is not the first to employ Drupal, nor will it be the last, but it does stand as an example to the rest of government. I’ve spent a great deal of time on government websites lately, and government website administrators would be wise to take their cue from the White House and institute change. Navigating, say, the Illinois CHIP website, is a real pain. It present information in a counter-intuitive, non-user-friendly manner, and is almost impossible to find anything, let alone know where you are on the site. Well, not impossible, but very cumbersome. It was actually easier to make a phone call for information than try to find anything on the site.

Perhaps other government agencies are taking notice, though. The Department of Labor website, for example, has gone through a design overhaul. It is much cleaner, and easier to find information. It provides a nice list of bulleted topics, FAQs, latest labor numbers and other rather useful information.

It’s good to see government agencies advancing into the 21st Century, and using open source software to do it. It is certainly a step in the right direction. Government is catching up with what many of already know: open source gets the job done.

Categories: Drupal talk

Geek Squeaks' of the Week (#35)

November 4, 2009 - 13:00
Each week What’s On My PC features links to articles (posted within the past 7 days) from the tech b
Categories: Drupal talk

Blog megszűnése!

November 3, 2009 - 20:21

Tisztelt Látógatóim!

A blogom ebben a formájában a közeljövőben megszűnik, mivel nincs időm rá, a demo változatok sem érhetőek el egy ideje mivel megszűnt a tárhelyem. Azonban fontosnak, hogy eme tartalom meglegyen egy olyan helyen ami mindenki számára elérhető. Terveim szerint a tartalmak szép lassan átkerülnek a NewSoft Team oldalára, lehetőségeimhez mérten megpróbálom beüzemelni a legfrissebb Zend Frameworkos demó változatot, kipróbálásra és a cikkeimben található egyes demo változatok elérését is lehetővé szeretném majd tenni.

Categories: Drupal talk

Drupal中为zeropoint主题添加Node下面的Block

November 3, 2009 - 12:01

1. 修改template.php文件,在$vars['node_bottom'] = theme(‘blocks’, ‘node_bottom’); 下面加上

$vars['node_bottom_left'] = theme(‘blocks’, ‘node_bottom_left’);
$vars['node_bottom_right'] = theme(‘blocks’, ‘node_bottom_right’);

2. 修改Zeropoint.info文件,添加

regions[node_bottom_left] = Node bottom left
regions[node_bottom_right] = Node bottom right

regions中的名字显然要和上面$vars中的名字一致

3.修改node.tpl.php, 把原来$node_bottom的地方修改为

<?php if (($node_bottom_left or $node_bottom_right) && !$teaser): ?>
<div id=”node-bottom” class=”clear-block”>
<?php if ($node_bottom_left): ?>
<ul id=”node-bottom-left”>
<?php print $node_bottom_left; ?>
</ul>
<?php endif; ?>
<?php if ($node_bottom_right): ?>
<ul id=”node-bottom-right”>
<?php print $node_bottom_right; ?>
</ul>
<?php endif; ?>
</div>
<?php endif; ?>

4. 修改个性化css,其他可以慢慢调整,高亮的地方是必须的

div#node-bottom{

clear:both;
font-size:12px;
margin-left:auto;
margin-right:auto;
overflow:visible;
padding:20px 0 0;
text-align:center;
}

#node-bottom-left
{
float:left;
list-style-type:none;
margin:0;
padding-left:10px;
text-align:left;
width: 40%;
}
#node-bottom-right
{
float:left;
list-style-type:none;
list-style:none;
margin:0;
padding-left:10px;
text-align:left;
text-decoration:none;
width: 40%;
}
#node-bottom-right a {
list-style:none;
text-decoration:none;
}

 

Categories: Drupal talk

A Casa Branca se Rende ao Software Livre!

November 3, 2009 - 01:52

O site da Casa Branca, que durante a administração George Wilson Bush era baseada em um gerenciador de conteúdo proprietário, agora é baseado no gerenciador de conteúdo livre Drupal.

Depois de meses de planejamento, diz uma fonte da administração Obama, a Casa Branca substituiu o sistema de gerenciamento de conteúdo proprietário, que estava sendo utilizado desde o início da administração Bush, em favor da última versão do software de código aberto Drupal. Dries Buytaert, fundador da empresa Aquia e criador do software Drupal, disse: “este é um sinal claro de que este governo entendeu que o código aberto não colocar riscos adicionais, comparado com o software proprietário e, além do mais, afastando-se do software proprietário, eles não estarão presos a uma tecnologia em particular, e que podem se beneficiar da inovação que é o resultado da colaboração de milhares de desenvolvedores que contribuem com o Drupal”.

A grande mudança para o Drupal veio depois que a equipe de novas mídias de Obama, com poucos meses de trabalho, decidiu que eles precisavam de um ambiente de desenvolvimento mais maleável para a presença da Casa Branca na web. Eles queriam ser capazes de construir sua visão de um governo interativo de forma mais rápida, fácil e elegante. O General Dynamics Information Technology (GDIT), com sede na Virginia, que implantou o software proprietário de gerenciamento de conteúdo em uso na era Bush, foi encarregado pela administração Obama de oferecer uma solução mais flexível. A plataforma ideal seria uma onde características dinâmicas como fóruns de discussão, vídeo sob demanda e ferramentas de colaboração pudessem trabalhar em conjunto de maneira mais fluída com a infraestrutura do site. A solução, diz a Casa Branca, tornou-se o Drupal.

Se até a casa branca está mudando para o software livre, por que não a sua empresa? Seja Livre!

Fontes:

Categories: Drupal talk

在Ubuntu8.04上为Drupal配置Memcached

November 3, 2009 - 01:28
1. aptitude install memcached.

2. 如果希望手工编译最新版,可以按以下步骤
1) aptitude install libevent-dev (如果之前为PHP-FPM编译过libevent 1.4最新版,可以省略,或者同样手工编译
2) wget http://www.danga.com/memcached/dist/memcached-1.2.5.tar.gz
3)解压
tar xzvf memcached-1.2.5.tar.gz
cd memcached-1.2.5
4)编译安装
./configure
make
make install

2. 将默认配置的memcached服务从启动组中删除(因为默认读取/etc/memcached.conf,只产生一个进程,不利于Dupal 优化)
/etc/init.d/memcached stop
update-rc.d -f memcached remove

3. 在/root目录下编辑memcached_init.sh, 结束后别忘了chmod +x ./memcached_init.sh
#!/bin/sh

case "$1" in
 start)
 #drupal-bin:default
 memcached -u www-data -p 11211 -m 20 -d
 #drupal-bin:page
 memcached -u www-data -p 11212 -m 8 -d
 #drupal-bin:filter
 memcached -u www-data -p 11213 -m 8 -d
 ;;

 stop)
 killall memcached
 ;;

esac
exit 0;

4. 编辑/etc/rc.local, 加入
/root/memcached_init start

5. 编辑Settings.php
$conf = array(
‘cache_inc’ => ‘./sites/all/modules/memcache/memcache.inc’,

‘memcache_servers’ => array(
‘127.0.0.1:11211′ => ‘default’,
‘127.0.0.1:11212′ => ‘page’,
‘127.0.0.1:11213′ => ‘filter’,
),

‘memcache_bins’ => array(
‘cache_page’    => ‘page’,
‘cache_filter’  => ‘filter’,
‘cache’         => ‘default’,
‘cache_menu’    => ‘default’,
),
);

Categories: Drupal talk

Lição aprendida: Não reinventar a roda, escovar bytes = alto custo x perda de tempo

November 2, 2009 - 23:56

logos

Dizem que o ser humano aprende em duas situações: no amor ou na dor. Em minha experiencia recente como desenvolvedor de sistemas para a web, uma lição que aprendi duramente, e que se algo foi desenvolvido por dezenas, centenas de programadores ao redor do mundo, e existe cases de sucesso em relação a determinada ferramente, é muita pretensão de nossa parte afirmar que esta ou aquela ferramenta não se adequa ao processo da minha empresa.

É realmente desnecessário e custoso financeiramente falando, tentar recriar uma solução que já existe no mercado, como por exemplo: para que pensar em criar uma plataforma de conteúdo para websites, se já temos ao nosso dispor ferramentas open source como Joomla!, Drupal, e WordPress (blogs) ?

Na construção desse tipo de ferramenta, framework, foram levados em conta vários aspectos que podem ter passado despercebidos como performance, escalabilidade, segurança. Como dito acima, esses frameworks open source são frutos de dezenas de mentes, problemas e questões resolvidas ao longo de alguns anos, e apesar de uma relativa fácil implantação, exige que seja usado com profissionalismo.

Vale a pena tocar nessa questão, mesmo que superficialmente: profissionalismo. A síndrome do “meu sobrinho faz sites” unidos com os vários profissionais “micreiros” espalhados por ai, faz com que se crie um preconceito em relação a tais frameworks, surgindo assim uma atmosfera de desconfiança sobre o uso em projetos de uma empresa. Desconfiança essa fruto de implantações mal sucedidas, amadoras e por que não dizer, irresponsáveis, sem nenhuma gestão de riscos, suporte, e outros fatores que acabam por causar uma situação traumática para o cliente.

A dica que fica aqui, resume-se apenas a quatro palavrinhas: Estude ! Leia ! Pesquise ! Pergunte ! – Sempre considere o projeto no qual esta trabalhando. Se você foi contratado, seja por CLT, seja free-lancer, para desenvolver um portal de um provedor de internet por exemplo, considere a praticidade de usar o Joomla!, ou Drupal, ao invés de tentar escrever linha por linha de PHP, misturado com HTML e CSS, conectado a tabelas que não fazem o minimo sentido em um banco MySQL. As vezes aprender a desenvolver um componente para o Joomla, pode ser muito mais produtivo e interessante do que ter que escrever uma aplicação inteira simplesmente porque não consigo achar um fórum que se adeque ao pedido do cliente.

Por hoje é só pessoal, essa semana postar um artigo mais técnico, focado em um how-to. Tenho em mente iniciar uma série sobre o Joomla!, desde o basicão como indicações para casos de uso, ate a instalação, criação de template, dicas de módulos, ate uma parte mais avançada: criação de componentes, módulos e plugins.

Isso é tudo pessoal, ate a próxima

Categories: Drupal talk

FOAF ? Drupal ? Wordpress ? RDFa ?

November 2, 2009 - 22:12
Why cant I upload my foaf profile to wordpress ? Or can I ? Will wordpress go the semantic way as Dr
Categories: Drupal talk

Article: Drupal 7 Release Progress Report

November 2, 2009 - 21:23
In this article I cover where Drupal 7 stands in its release cycle, what features are making the cut
Categories: Drupal talk

Lo stile di vita Open Source viene adottato ufficialmente anche da Obama

November 2, 2009 - 09:59
Era da tanto tempo che se ne parlava e ha mantenuto una delle promesse fatte! E’ considerato c
Categories: Drupal talk

Drupal Views Edit Link(sample)

November 2, 2009 - 09:06

<html>
<head>
<style type=”text/css”>
/* administrative hover links */

div.view div.views-admin-links {
font-size: xx-small;
margin-right: 1em;
margin-top: 1em;
width: 30px;
}

.main div.view div.views-admin-links {
margin-top: 0;
}

div.view div.views-admin-links ul {
padding-left: 0;
list-style-type:none;
}

div.view div.views-admin-links li a {
color: #ccc;
}

div.view div.views-admin-links li {
padding-bottom: 2px;
z-index: 201;
}

div.view div.views-admin-links-hover a,
div.view div.views-admin-links:hover a {
color: #000;
}

div.view div.views-admin-links-hover,
div.view div.views-admin-links:hover {
background: transparent;;
}

div.view div.views-admin-links a:before {
content: “[";
}

div.view div.views-admin-links a:after {
content: "]“;
}

div.view div.views-hide {
display: none;
}

/** For IE we add the class via js; for other browsers we rely on :hover **/
div.view div.views-hide-hover,
div.view:hover div.views-hide {
display: block;
position: absolute;
z-index: 200;
}

/* don’t do this one in IE */
div.view:hover div.views-hide {
margin-top: -1.5em;
}

/* Remove the border on tbody that system puts in */
.views-view-grid tbody {
border-top: none;
}

/*.view{
float:left;
}*/
.main{
float:left;
width:500px;
height:100px;
}

</style>
</head>
<body>
<div>
<div>
<div>
<ul><li><a href=”[link]“>Edit</a></li>
</ul>
</div>
<div>Text</div>
<div>Footer</div>
</div>
</div>
<div>
<div>
<div>
<ul><li><a href=”[link]“>Edit</a></li>
</ul>
</div>
<div>Text</div>
<div>Footer</div>
</div>
</div>
</body>
</html>

Categories: Drupal talk
 
 

Drupal is a registered trademark of Dries Buytaert.