php

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Hanscraft's picture

Template Design

Does anyone have resources (like step-by-step tutorials) for building templates in Drupal? As part of my library job, I'm being pushed into designing templates which will need stuff like image resizing capabilities, uploading stuff, etc. I know very little PHP. The regular Drupal forums haven't been very fruitful so I decided to try out the libraries + Drupal community on here for pointers!

Thanks.

Read more
kenppx's picture

Drupalの勉強方法

いつもお世話になっております。Drupal修行中のkenppxと申します。
今回は皆さんがどのように、この複雑かつ魅力的なDrupalというCMSを勉強したのかを
お聞きできればと思いまして質問を立てさせてもらいました。

Drupalを使いこなす上で一番問題になるのが、勉強方法だと思います。
他のCMSに比べて日本語の情報ソースが少ないのと、教育機関等が無いのが
Drupalの習得を難しくしている要因なのかと考えます。
先輩方がどのように習得したのか、また何から勉強したら良いのか、
勉強を始めた当時の技術レベルなど初心者向けのアドバイスを頂ければ幸いと思います。

私の場合はこんな感じで勉強をしています。

私はDrupal7の勉強を始めて半年になります。勉強を始めた当初はHTMLとCSSを使ってサイトを組める
知識はありましたが、phpやDrupalに関する知識は全く無い状態でした。
半年間の勉強の結果、panels、views、CCK等を組み合わせてある程度のサイト構築はできるようになってきました。
勉強に使った情報ソースは以下の通りです。

書籍:Drupal実践プログラミング徹底入門 

この本で概要を勉強しました。まだ、勉強中ですがthemingを行う時にはどのファイルを

Read more
yogaesh's picture

Need help - Dynamic pages not rendering fine

Hi,

I recently installed Drupal 7 on Windows with Apache Web server (2.2) and PostGres DB. When I try to access the drupal site, I'm always seeing the directory listing and if I click on a specific php page, I'm able to see the HTML contents; but none of the dynamic features (search, filter, etc.) are working. I thought PHP wasn't installed fine; but if I throw in a simple PHP page with PHP functions, I'm able to get dynamic contents on the page. Is there any other configuration I need to do before I get started with my first site?

Thanks in advance for your help!

Regards,
Yogaesh

Read more
Lars Bo Jensen's picture

Evaluating Tokens with PHP

Dear DS experts,

I've got a small problem: I have a content type 'arrangement' with a field, that can contain several values, e.g. 'excursion' and 'lecture'. I am displaying teaser, full node and so on with Display Suite on Drupal 7.8, and THANK YOU for DS, it's GREAT, and I want it to display like this:

'Excursion and lecture: Lüneburger Heide'

I have added a code field for the header using tokens:

[node:field_aktivitetstype]: [node:title]

It displays:

'Udflugt, Foredrag: Lüneburger Heide'. Flaw: both values have a capital first letter.

Read more
Anonymous's picture

Rasmus Lerdorf, creator of PHP, speaking in Seattle on Oct. 4

Tuesday, October 4th, Rasmus Lerdorf, the creator of PHP will be speaking at the Seattle PHP Meetup. He will be talking about the state of PHP and developer best practices.

This event is sponsored by HasOffers and is free, but you must register on Eventbrite if you wish to attend.

You can find more details and register here:
http://hasmeetup.eventbrite.com/

Read more
leon2004's picture

modificar php para cambiar de posicion lo fields

Os dejo este fragemento de codigo por si me podeis ayudar:


<?php
print theme(&#039;grid_row&#039;, $header, &#039;header&#039;, &#039;full-width&#039;, $grid_width);
?>
<?php
if ($title):
?>
<h1 class="title">
<?php
print $title;
?>
</h1> <div class="hr"></div>

Esta es la cabecera a sido muy facil cambiar que el titulo aparezca en vez de en el cuerpo sea en la cabecera .
lo que yo pretendo es que se vean algunos fields en la cabecera y otros en el cuerpo,
actualmente todos los field se ven en el cuerpo.

Read more
AndyCanfield's picture

My methodology - request for comments

I have fallen into a pattern which works well for me. But I would like your comments - warnings, advice, extras, etc. Please let me pick your wisdom.

Read more
GasmanDesign's picture

VPS help?

Hello,

Does anyone have experience in installing or enabling a GD library (php-gd-5.3.5-1.fc14.i686) on a virtual private server (VPS) with GoDaddy?

The server is Linux CentOS with a C-panel control panel.

The library is used by Drupal (PHP) for working with images. It's not enabled on this VPS. I tried a number of things along with their support guy and could not get it enabled.

Of course GoDaddy has it listed as one of the php libraries that are installed by default.

Any advice or help would be welcomed.

Thanks!

Corey
612.203.0728

Read more
simonwidjaja's picture

Passing Arguments for a filter to a view (views 3) in code scenario?

Hi Drupal Friends,
I am working on a Views 3 Project and I'm stuck with this issue:

So far:
A Service-Method that reads a view and returns the results:
$products_result = views_get_view_result($viewName);

Goal:
Now I want to add a filter (default or contextual???) for setting the maximum price (e.g. "maximum price": field_price < max_price)

Problem:

Read more
danielw's picture

Action: Display Image?

I'm trying to display an image as part of an Action.
Is my best bet to use Execute Custom PHP Code, and then do something like this:

<?php
$imagepath
="phpimages/dog.jpg";

$image=imagecreatefromjpeg($imagepath);

header('Content-Type: image/jpeg');

imagejpeg($image);
?>

Thanks!

Read more
Subscribe with RSS Syndicate content