This forum is for less technical discussions about the Drupal project, not for support questions.

Hellenic doupal group

For drupla users form Hellas (Greece) please register to Hellenic doupal group at http://groups.drupal.org/hellas (not required registasion if you already drupal.org user just login using username@dupal.org and your password )

Αν είστε από Ελλάδα έχει δημιουργηθεί Ελληνικό group στο http://groups.drupal.org/hellas.
Ελάτε

loading random members with images in block only works with node permission

$count = 22;
$result = db_query_range(db_rewrite_sql("SELECT * FROM {users} u ORDER BY RAND()"), 0, $count);
  while ($user_info = db_fetch_object($result)) {
      if($user_info->picture){
      print "<p align=\"center\"><a href=\"user/$user_info->uid\" title=\"View $user_info->name 's profile and brief biog.\">";      print '<img border="1" border-color="#eaeaea" src="'.$user_info->picture.'" width="88"><br>';
      print $user_info->name;
      profile_load_profile($user_info);

Having some trouble with adding thumbnail pics to user_profile.tpl.php

<?php
// Display N most recent thumbnails of images submitted by the user
// Each thumbnail is linked back to it's image node
// Can optional limit the photos shown by specififying one or taxonomy term id's

// The number of thumbnail images to show
$nlimit = 3;
$taxo_id = array();
// Add one line for each taxonomy term id you want to limit the thumbnails to
// As an example, the following two lines would select images associated with taxonomy terms 36 OR 37
// $taxo_id[] = 36;
// $taxo_id[] = 37;
// Note, if not taxonomy term ids are specified, the selection is from all the user submitted images

$userid=$user->uid;

if ( count($taxo_id) > 0 ) {
// Limit images based on taxonomy term id's
$taxo_str = implode(',', $taxo_id);
$sql = "SELECT n.created, n.title, n.nid, n.changed FROM node n INNER JOIN term_node ON n.nid = term_node.nid AND term_node.tid IN ($taxo_str) WHERE n.type = 'image' AND n.uid = $userid AND n.status = 1 ORDER BY n.changed DESC";
}
else {
$sql = "SELECT n.created, n.title, n.nid, n.changed FROM node n WHERE n.type = 'image' AND n.uid = $userid AND n.status = 1 ORDER BY n.changed DESC";
}

$result = db_query_range($sql, 0, $nlimit);
$output = '';
while ( $info = db_fetch_object($result) ) {
$node = node_load(array('nid' => $info->nid));
$img_tag = image_display($node, 'thumbnail');
$link = 'node/' . $node->nid;

Hiding Navigation

I am new to using Drupal and new to any type of development so pardon the lack of complexity to this question. I created a site using the pushbutton theme. I mistakenly unchecked the "Navigation" box in the Admin section and I can now not figure out how to get back in to make any administrative changes to the site. Any help is appreciated.

displaying two products in one row for taxonomy items like theme_product_view_collection()

Hi All,

I am trying to display 2 or three products listed in a taxomony items. by default it displays all the products one below the other. the products are a flexinode transformed in to products.
Basically I want to do what the theme_product_view_collection() function does in the product module, I want to do the same for the items listing of the taxonomy.

Thanks for help in advance

Regards
Rudy

how to filter my articles like...

hi all,

for example,
article 1, freetag A,B
article 2, freetag A,C
article 3, freetag A,D
article 4, freetag B,C
article 5, freetag B,D

i would like to filter out all articles which tagged both A,B and A,C (article 1 and article 2 in the case)
how to taxonomy it?

i have tried taxonomy/term/A,B+A,C and taxonomy/term/A,B+C nut fail, would you please advise me how to work it out? thx in advance!

Pages

Subscribe with RSS Subscribe to RSS - General discussion