Drupal is up and running but how do I ...?

Img_Assist: Adding Custom Size Pic to a Node

In administer-->settings-->images I've set up two additional image sizes in addition to "original" and "thumbnail".

I had hoped that Img_Assist would be aware of that. However, when I use Img_Assist to add a pic to the node it gives only two choices, "Original" and "thumbnail".

In Img_Assist the pixel dimmensions ARE editable when you choose "original". However, it just uses html to make the image show at that size and so it would use just as much bandwitdth and take just as long to download a resized pic as thge original pic.

Gaming site solutuons

Hey,

I've got my site working pretty well at http://www.playstationteam.com

I'm now trying to work out how to implement the usual gaming site features such as game reviews (with ratings and a big list of the most popular) and also a cheats database that would be searchable.

Anyone have any suggestions?

If anyone wants to help me on this project just contact me ;) Or if anyone wants a site like mine I will be happy to help!

difficulty with image tag inside of a block

Trying to get an image tag to work within a block. I'm using the $base_path function so as to not hard code the path to the image. The images are in a sub-directory off of the "themes" directory. Seems like it should be straight forward but I'm having a hard time getting it to work. The following code is in the block's body, and the input format is set to php.

php block is not working.

This php block is not working. It trys to get all the nodes in the same taxonomy that the currently viewed is in.

<?php
//limit for number of nodes
$limit = 30;
//the function to get nodes from a certain taxonomy
function get_nodes($tid, $limit)
{

$result = db_query(db_rewrite_sql("SELECT node.title, node.nid FROM node INNER JOIN term_node ON node.nid = term_node.nid WHERE term_node.tid = %d"), $tid);
while ($anode = db_fetch_object($result))
{
$result2 = db_query(db_rewrite_sql("SELECT flexinode_data.numeric_data FROM flexinode_data WHERE flexinode_data.field_id = 3 AND flexinode_data.nid = %d"), $anode->nid);
$front2 = db_fetch_object($result2);
if($front2->numeric_data == 1)
{
$items[] = '

'.l($anode->title, "node/". $anode->nid).'

';
}
else
{
$items[] = l($anode->title, "node/". $anode->nid);
}
}

if(!$items)
{
return;
}
else
{
$output = "

    ";
    foreach ($items as $item)
    {
    $output .= '
  • '. $item .'
  • ';
    }
    $output .= "

";
return $output;
}
}

$terms = taxonomy_node_get_terms(arg(1));
if ( count($terms) ) {
$first_term = array_pop($terms);
$nodes = get_nodes($first_term->tid, $limit);
if ($nodes) {
$output .= $nodes;
$output .= "
\n
";
}
}

creating organization contacts on civicrm

I am using civicrm 1.4. It's helpful when storing info about individual contacts but I am unsure about how you store data about ogranizations as a whole without a firstname or lastname. Does anybody know how to do this?

Problem with installing img_assist

Hi,

i installed the module img_assist, but when i tried to open the img_assist folder on my site i got the following error-mesage:

Fatal error: Call to undefined function form_radios() in C:\Programme\xampp\htdocs\drupal\modules\img_assist\img_assist.module on line 139

Has anyone seen this message before?
I hope you can help me...thanks!

Tina

Pages

Subscribe with RSS Subscribe to RSS - Post installation