drupal 6

2 answers

Anonymous user not able to "Add to Cart" products on Drupal Ubercart

12 points

I installed Ubercart on my existing drupal system and I can not add add products to cart. I can "add to cart" products when logged in. What could be the reason?

Tim

Read more »
Created by Anonymous 12 weeks 5 days ago
  Tags:

How to Remove unwanted tabs in Drupal 6

In Drupal 6, you can remove unwanted tabs by using following function in template.php: <?phpfunction yourthemename_preprocess_page(&$vars) {  // Remove undesired local task tabs.  // This first example removes the Users tab from the Search page.  yourthemename_removetab('Users', $vars);}?> <?php// Remove undesired local task tabs.// Related to yourthemename_removetab() in yourthemename_preprocess_page().function yourthemename_removetab($label, &$vars) {  $tabs = explode("\n", $vars['tabs']);  $vars['tabs'] = '';?>

Sortable Drupal Pagination: pager_query

Drupal pagination can be achieved using pager_query API function and tablesort. I am here mentioning the code snippet that would help create drupal pagination of the output that is sortable with fields. <?php  $sql = 'SELECT cid, first_name, last_name, company, city FROM {clients}';  $limit = 20;  $header = array(    array('data' => t('Name'), 'field' => 'last_name', 'sort' => 'asc'),    array('data' => t('Company'), 'field' => 'company'),    array('data' => t('City'), 'field' => 'city')  );  $tablesort = tablesort_sql($header);?>
1 answers

Drupal Menu Drop Down?

9 points

I am a newbie. What is the best way to create a drop down menu system in Drupal? Am I required to do some drupal themeing? Like here: drupal menu theming.

Read more »
Created by Anonymous 18 weeks 5 days ago
  Tags:
1 answers

How to pass arguments in Drupal 6 Views?

10 points

I have installed drupal 6 views and now I need to pass argument to Drupal views from the url. How do I do that?

Cheers,
Mona

Read more »
Created by Anonymous 18 weeks 5 days ago
  Tags:
1 answers

Drupal messages

13 points

Hi All,

I am new to drupal programming. What is the drupal php varaible that shows messages/alerts on the drupal theme?

Read more »
Created by Anonymous 19 weeks 2 days ago
  Tags:
2 answers

Theming Drupal Menu

18 points

Hi,

I have added a drupal menu to my site. I want to alter the html code for only this one menu so that the main menu ul can have a custom ID and CLASS. How can I do this? I have searched the forums, and have tried the instructions here: but they seem to be only for secondary and primary links not other menus. Thanks in advance for the assistance.

Read more »
Created by Anonymous 19 weeks 2 days ago
  Tags:
1 answers

Using 'drupal_get_destination()' with a l() link

1 point

Hi, I'm trying to create a login link that returns the user to their previous page once logged in. The link looks something like:

"l(t('login'), 'user/login?'.drupal_get_destination() ..."

Which correctly shows as "user/login?destination=recipe" in the source, but turns into
"user/login%3Fdestination%3Drecipe" 

once on the login page, and doesn't work.

What am I doing wrong?

Read more »
Created by Anonymous 19 weeks 3 days ago
  Tags:
2 answers

Drupal Forms Tutorial?

12 points

I am a newbie to the Drupal world and I want to create my own Drupal Forms. How are they different from HTML forms?

-- Tina

Read more »
Created by Anonymous 19 weeks 3 days ago
  Tags:
3 answers

Drupal Views Filter?

5 points

I have created a Drupal view for which I am unable to find any module that provides me with the filter that I need. How do we create a custom filter for Drupal views?

Read more »
Created by Anonymous 20 weeks 15 hours ago
  Tags: