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

Increase characters in title?

I'm making a trivia site, and I' putting the question in the title. And, some of my questions are very long, but the title doesn't allow many characters. Where do I go to increase the amount?

Thanks.

e-Commerce: subproducts cart problem

Hi everyone.

I'm having a problem using the subproducts module for e-commerce. Alle modules are latest CVS.

I have a shop set up that sells t-shirts. I have added variations to let the user choose color and size from a dropdown menu. This is what i'm doing:

1. View a product with available subproducts.
2. Choose size and color from dropdown menus.
3. Add to cart

Moving Modules makes DB confused

I was updating my 4.7 install of drupal to 4.7.2 today and I noticed a reproduction of a problem I was having before.

When I updated the gallery module. I noticed that drupal thinks the gallery module is located at -Mysite-/modules instead of -Mysite-/modules/gallery . Many months ago the same forgetfulness started to effect my tinymce module.

The problem is generated whenever I click on the modules admin page at ?q=/admin/modules. I have been fixing it each time the problem occurs by editing the DB directly.

here is a dirty hack for role based menus

I have read through the dozens of posts on role based menus and have come up with this hack. Place this code in a new block.

I would like to see this vastly improved/modified upon because as far as I know there is still no built in support for this.
Things to improve include:
1) More than one level of depth
2) A gui form/database table to handle assigning of roles to menu items.
3) Hook this into the drupal core (I don't know much about drupal modules or the api so need help here)

As a side note, I use the 'nice menus' module and wonder if anyone knows how to modify this to dynamically generate an actual menu tree (instead of printing off the pieces), so that I could easily feed this into the 'nice menus' module.

<?php global $user;
/****
@author Brian Danchilla
@date June 27, 2006
@brief A hack to get custom role based menus. As is, only goes one level deep. Could expand program and use custom database table for storage of roles/disallowed menu items.
****/

if($user->uid == 1){
//admin gets full menu
print(theme_menu_tree(2));
}else{
//set root menu, replace 2 with actual mid
$rootMenu = menu_get_item(2);

//disallow certains roles for different users
if($user->uid == 5){
$disallowedItems = array(36, 46);
}else if($user->uid == 358){
$disallowedItems = array(93, 100);
}

/**
@brief usort function to sort menus. Here the order is is by weight then title

Views on the front page

How do you go about putting views on the front page of your site? As in having a block of text at the top with a site description/etc, and then a custom views list of blog/news entries?

And can this be done with other pages? So I can have a list of views for blog entries of certain members with some text saying it is only those specific members, etc.

I couldn't find much on the views documentation on adding them somehow to existing pages.

Attach multiple images to a node

Hello everybody,

could any good soul enlight me on how to let final users attach *easily* more images to a node, and then output (show) them nicely as thumbnails in a block on the final node page?

I have considered almost all the possible Drupal solutions for handling images, but each one seems the piece of a big scattered puzzle...it let's you do one thing, but not the others...

This is what i considered:

[1] upload (or upload_image) + nodeimageblock
PROS:
+ possibility to attach more images to a node
+ possibility to show these images on the final node page
CONS:
- lacks thumbnail/preview images generation
- lacks any sort of theming of the output (it just throws images as they are one stitched roughly to another in a block)

[2] image + attach_image + CCK (or Flexinode)
PROS:
+ friendly User Interface
CONS:
- Possibility to attach only 1 image

[3] image + img_assist + CCK (or Flexinode)
CONS:
- way too complicated workflow for final users

[4] cck + imagefield
PROS:
+ possibility to attach more images to a node
CONS:
- the number of images available has to be set in advance in the content type
- does not generate thumbnails / previews

[5] image_tab
PROS:
+ possibility to attach more images to a node
CONS:
- not yet ready for 4.7
- uses a Tab to add images (not ideal, since Tabs are not that visible)

Pages

Subscribe with RSS Subscribe to RSS - Post installation