Show others what you've been working on and get feedback. For in-depth case studies, check the case studies section.

Learn-PHP - Drupal and PHP Tutorial and Resources

Today I launched a new Drupal powered website learn-php.de.
The site is mainly focussed on Drupal and PHP, but I'll also talk about W3C standards, XHTML, CSS and accessibilty. If you like Drupal and want to start programming with PHP this may be a good starting point for you.
It's a german site, because I think there is a need for a site about Drupal in german.
But as a community site we need your help and collaborative work. So feel free to write articles in english. You're welcome.

Dating Web Site

This is a site I created for a client.
Note - The client did NOT want a web dating service. It is a site to 'inform' his clients and for them to see who else are members that might match their requirements. It also gives his clients a sense of belonging.

Lokys.net

I finally have my own, proudly Drupal-powered site in a somewhat presentable state. It's a personal site - you know, a blog nobody wants to read, pictures nobody but me will look at, etc - but it's mine own, and I like it. I used a modified version of the Kubrick port. And I learned a ton when I made it, which is always nice.

I never found an image gallery script I could wrap my little head around, though; I just do everything manually, and toss a date on it to make it look vaguely scripted ;)

http://www.lokys.net

Kick the Tires

So I built a new blog and ported the spreadfirefox theme to meet my needs. I'm planning on adding a generic version of my theme (Dead or Alive) to the drupal community, but I need people to kick the tires first. Let me know what browser problem and errors come up at the site. Also, if you are a political junkie like myself, feel free to help me come up with a better name for it, by voting in the poll.

http://www.impolitic.org

Thanks,

Mordecai
Advomatic.com

SMEOS.org

Hi all,

This is my first post and I only have been playing around with Drupal since last year.

I am not a Drupal "guru" and the reason I am posting here is because I do need some help from someone of you who is a Drupal webmaster/professional and is willing to donate some his time and talent to setting up a linux community website devoted to the E-Smith/SME Server. The smeos.org website is not a commercial website and will not be in the future (read the news I posted there).

Here are some links for you to look at:

Drupal Gallery running with Plasmado flash-gallery frontend

Hi,

couldn't find where to post this, maybe an admin could move it later on to a better-fit place.

I have created a simple script, which converts image.module's database into Plasmado-galleries database format. It's really a dirty-style of coding, with a lot of fixed-path/variables. If someone likes to show their Drupal-galleries with a flash front-end -with no Drupal rendering at all- here is the converter script. I placed it directly into galleries/ where i have the content of my galleries as a subfolder. Also Plasmado's files have been put into gallery/ and the converter script run as a crontab.

Plasmado can be downloaded at http://www.plasmado.com

A Democan be viewed at http://www.elastikv2.org/gallery/index.php

It's not a total solution, take it only if you know what to do and know php a bit, to edit it to your needs.

// Drupal2Plasmado converter
//                                   by Cem Gencer, obsesif@gmail.com
//
// Converts database of a Drupal-gallery into Plasmado table
// $termo needs to be changed, reflecting the vocabulary id of your image gallery.
// $sizzle should be a resolution, which YOUR gallery has enabled
// on line 71 i also sue a fixed path, so you need to experiment with it to fir your configuration
// or even remove the str_replace comamnd with a simple
// $file=$details[$sizzle]['fname'];

include_once("config.php");

$termo=5;		// vocabulary id of the image-gallery
$sizzle="300x400";
$groupId=0;

function doSQL($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}

mysql_query("TRUNCATE TABLE plasmado");
$sql1="SELECT * FROM term_hierarchy INNER JOIN term_data ON (term_hierarchy.tid = term_data.tid) WHERE (term_data.vid = 5) AND (term_hierarchy.parent = 0)";
$res1=mysql_query($sql1);
while ($row1=mysql_fetch_object($res1)) {
	$sql2=sprintf("insert into plasmado values ('',0,%s,'','','','')",doSQL($row1->name,'text'));
	echo($row1->name);
	$result=mysql_query($sql2) or die(mysql_error());
}

$sql3="SELECT * FROM term_hierarchy INNER JOIN term_data ON (term_hierarchy.tid = term_data.tid) WHERE (term_data.vid = 5) AND (term_hierarchy.parent <> 0)";
$res3=mysql_query($sql3);
while ($row3=mysql_fetch_object($res3)) {
	$sql8="select * from term_data where tid=".$row3->parent;
	$res8=mysql_query($sql8);
	$row8=mysql_fetch_object($res8);
	$sql4="select * from plasmado where title='".$row8->name."'";
	$res4=mysql_query($sql4);
	$row4=mysql_fetch_object($res4);
	$sql9="insert into plasmado values ('',".$row4->id.",'".$row3->name."','','','','')";
	$res9=mysql_query($sql9) or die(mysql_error());
}

$sql5="SELECT * FROM image INNER JOIN node ON (image.nid = node.nid) INNER JOIN term_node ON (node.nid = term_node.nid) INNER JOIN term_data ON (term_node.tid = term_data.tid) WHERE (node.`type` = 'image') AND (node.`status` = 1) AND (node.`type` = 'image') AND (term_data.vid = 5) ORDER BY term_data.weight, term_data.name, node.nid";
$res5=mysql_query($sql5);
$cnt=1;
while ($row5=mysql_fetch_object($res5)) {
	$sql6="select * from plasmado where title='".$row5->name."'";
	$sub6=mysql_query($sql6);
	$row6=mysql_fetch_object($sub6);
	$groupId=$row6->id;
	$name=$row5->title;
	$details=unserialize($row5->image_list);
	$file=str_replace("gallery/","",$details[$sizzle]['fname']);
	$info=strip_tags($row6->body);
	if(file_exists($file)){
		list($width, $height)=getimagesize($file);
		$sql7 = "insert into plasmado values ('',$groupId,'$name','$file',$width,$height,'$info')";
		$res7 = mysql_query($sql7);
	}
}

** I (Bèr KEssels) edited this post, removed the pre tags, to show PHP highlighting. **

Pages

Subscribe with RSS Subscribe to RSS - Show off your Drupal site