Post installation

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

Add comments to a view page?

phonydream2 - July 5, 2009 - 12:53

I'd like to have a comment box and a list of comments at the bottom of my View.

One option is to create a node(e.g. 'page') and load the view into the content area of that node.

This is satisfactory, however I'm concerned about the extra processing that might be involved with creating a node object in addition to a view object. Is there a way to display a view with comments that doesn't involve loading a node object?

Formatting php snippet output

khan_lko - July 5, 2009 - 11:47

hi

i have got a code for custom cart block. its giving a perfect output like this " 0 items 0.00 " but i want to format it somewhat like this " Cart: 0 items ($0.00) " and hyperlinked. here is the code..

<?php
$number_of_items
= count(uc_cart_get_contents());
echo
$number_of_items;
?>

<?php
   $sinitem
= "item";
  
$pluitems = "items";

if (
$number_of_items == 1) {
   echo
$sinitem;
}  else {
   echo
$pluitems;
}
?>


<?php
  $subtotal
= 0;
  foreach (
uc_cart_get_contents() as $item) {
   
$subtotal += $item->price * $item->qty;
  }
?>


<?php
$dtotal
= sprintf("%1\$.2f",$subtotal);
echo
$dtotal;
?>

check this link to understand what i want.. http://www.ubercart.org/files/rifftrax_.jpg

Question about classifying content and breadcrumb

mamadoo06 - July 5, 2009 - 11:46

Hello,

I can't understand how to classify my content on Drupal 6.
For example, when I want to create a page about a dog, the Golden Retriver, and I want it to be in the vocabulary & terms :
Animals
-Domestic
--Dogs

My questions :
1- When creating the page, do I have to select both Domestic AND dogs or Drupal will understand, if I only select Dogs, that this page is relative de Dogs in the Domestic category ?
2- How to create a breadcrumb like : Home > Animals > Domestic > Dogs > Title of the page ?

Thanks

APK error: user warning: Unknown table 'users' in group statement query:...

Inifnitee - July 5, 2009 - 11:22

Drupal 5.16
APK

Anyone have any ideas about this error on the user profile page.

user warning: Unknown table 'users' in group statement query: SELECT count(node.nid) AS num_nodes, node_comment_statistics.last_comment_timestamp AS node_comment_statistics_last_comment_timestamp_last_comment_timestamp, node.type AS node_type, node.title AS node_title, node.changed AS node_changed, node_comment_statistics.comment_count AS node_comment_statistics_comment_count, node_comment_statistics.last_comment_timestamp AS node_comment_statistics_last_comment_timestamp FROM node node LEFT JOIN comments comments ON node.nid = comments.nid AND comments.uid = '2' INNER JOIN buddylist baj_node_buddylist ON node.uid = baj_node_buddylist.buddy LEFT JOIN node_comment_statistics node_comment_statistics ON node.nid = node_comment_statistics.nid WHERE (node.status = '1') AND (node.type IN ('usernode')) AND (node.uid = '2' OR comments.uid = '2') GROUP BY users.name, node_comment_statistics_last_comment_timestamp_last_comment_timestamp ORDER BY node_comment_statistics_la in /nfs/c01/h09/mnt/5120/domains/drupal/includes/database.mysql.inc on line 174.

I don't even know where to begin.

Thanks,
Ralph

CCK and Views to produce image select plus ID

xdakotax - July 5, 2009 - 11:08

Hello guys,

I am a Drupal newbie and have been experimenting with the system for about a week now.
Disappointed that I haven't come across this sooner!

I wondered if anyone could take the time to point me in the right direction as to be frank I have absolutely no idea how to approach this one.
I have messed around with CCK and Views and have compiled some nice input forms and pages.

I am looking to create something like this:
A directory of rank images on the server

Input form would allow the content creator to select an image from a drop down list.
Each image would be grouped via an ID field which I want to remain constant so I can make this the sortable field in views.

Ie. Rank 1 would have an ID of 1 and load image1.jpg
Rank 2 would have an ID of 2 and load image2.jpg

There will be multiple ranks which will have the same ID.
ie.

User 1 - Rank 1 - image ID 1 - Image1.jpg
User 2 - Rank 1 - image ID 1 - image1.jpg (possible to apply same image which would house the same image ID).

I hope I've managed to outline what I am trying to achieve.

As previously mentioned I would be eternally grateful if anyone could share some words of advice on how to do this.

Multiple Signup Forms

pwhite - July 5, 2009 - 10:52

Hi,

I'm just trying to work out how to have multiple register forms in Drupal 6. I'm using the content profile module to add CCK fields into a registration form.

ie. if a user signed up they would go to /user/register/user and get CCK fields such as date of birth.
Alternatively if a company wanted to sign up they would be directed to /user/register/company and get CCK fields such as organisation name etc.

I've seen other Drupal based sites do this but can't work out how.

Many thanks

Syndicate content
 
 

Drupal is a registered trademark of Dries Buytaert.