drupal-6

How to update Customer Information messages in Drupal :: Ubercart

Hi there, i recently installed Ubercart module and manged to configure most of the shopping cart..One of the issues i am having is finding a place to update Customer Information message "Enter a valid email address for this order or click here to login with an existing account and return to checkout." to whatver i want.....could not fig...

Drupal: I need to display the user name in a block

Is there a Drupal module to display the user name in a block, when he is logged in ? thanks ...

How to add custom blocks in drupal ?

I have a simple module which will return a form , but now i have added this to a menu like admin/settings/ But i want this form in another page ,so i added a hook_block() , my module showed up in the blocks page and i added it to be seen by all in all pages in content area but i dont get that form ? where did i go wrong ? I am new to dru...

How do I display individual fields in a custom block?

A have a view created with Drupal's Views module, and have given it a Block display. It has the following fields: first_name last_name professional_title I understand that I can create a "[viewname]-block.tpl.php" file to provide a custom theme for this particular block, overriding the generic block.tpl.php template file. Within thi...

Why are certain 3rd party modules not saving admin settings properly?

There are two modules that I have documented where admin settings not get saved in my Drupal 6 installation. Specifically I am talking about logintoboggan and Service Links modules. When I make admin changes and hit save and then hit refresh later on: all my settings revert back. Why? I also found out that the same code base works fin...

Weird characters at the end of src/href attributes in head tag

Hi everyone. Quick question : Why is drupal adding characters at the end of the src or href attributes in the link and script tags in the head of the page ? I have this : <link type="text/css" rel="stylesheet" media="all" href="/ste_thecle/modules/views/css/views.css?n" /> And it is the same for every stylesheet and script loaded. I ...

help me to proceed with drupal views ?

Hi, I am newbie to drupal , I just created a view called "master" and i wanna manipulate the output pro grammatically for creating widget (javascript widget can embed in other website). $view = views_get_view('master'); $view->set_display('page'); $view->execute(); $viewArray = $view->result; $title = $view->display['default...

Drupal, Views Exposed Filters: List Options Containing Results

Hi All! I'm setting up an apartment search site and have exposed a views filter for 'property type'. The property type is a select field with 16 options but the client only wants those options that actually contain results to appear in the drop down of the exposed filter. Any ideas? Thanks! ...

Theming node's links in Drupal 6

By default, the node links in the blog page contains blog_usernames_blog (admin's blog), comment_add (Add new comment) and node_read_more (Read more). I need to get rid of the first 2 of them, and to change the text in node_read_more. I created a function named $themenamepreprocess_node into template.php in my theme, with this content:...

Does variable_get in Drupal have major issues with memcache?

On a few modules there is a variable_get that is pulling either the correct setting (toboggan/denied) or (node/200) even though the {variable} table is set to toboggan/denied? where is the node/200 coming from and why the randomness in values? Is this a caching issue? This problem is causing us to not be able to set admin settings on mod...

Can I have fixed cropping with images?

How can I specify a default value and hide this checkbox ? [states] => Array ( [#type] => checkboxes [#title] => Status [#options] => Array ( [active] => Active users [inactive] => Inactive users ) [#descripti...

correct way to redirect changed site location via .htaccess

i used to host my site at www.mysite.com/here now the url is simply www.mysite.com so how do i properly redirect all old links from say www.mysite.com/here/about to www.mysite.com/about thanks. ...

Make a visible primary link not clickable

On my Drupal site I've got a set of Primary Links. The ones that expand I'd like to make the parent not click able e.g -home -about -history -website Only home, history, website should link to a page. If the user clicks on aboutnothing should happen. I've tried searching around the admin panels as well as leaving the field...

Why can't I move this element?

hi, I want to reorder my fields in my Ubercart edit product form. Everything works good for all fields except Product Information (the group with price, model, etc).. If I change the weight of this field it doesn't move. If I change the weight of its children, it works. So I can reorder its children, all its brothers, but not the obje...

How to display the total amount of posts?

What's the best way to display in a block the total amount of posts and comments of my entire drupal website? thanks ...

How to pass the variables between hook_nodeapi() and search-result.tpl.php?

I'm customizing my search results. I'm using hook_nodeapi() and search-result.tpl.php. However, I don't know how to pass variables from the first to the second one. i.e. I would like to pass some information about the $node variable in hook_nodeapi() to the template. At the moment, it only gets the $title. thanks ...

How to work with hook_nodeapi after image thumbnail creation with ImageCache

Hi all, A bit of a followup from a previous question. As I mentioned in that question, my overall goal is to call a Ruby script after ImageCache does its magic with generating thumbnails and whatnot. Sebi's suggestion from this question involved using hook_nodeapi. Sadly, my Drupal knowledge of creating modules and/or hacking into e...

How can I automatically run cron without pauses?

I need to index 80.000 nodes. The max amount of nodes I can index per each cron run is 500. I need to run crone 80.000 / 500 times to index the entire website. How can I automatically schedule these runs (when a run is finished, the next run automatically should start)? I don't have SSH access so I cannot use drush. Thanks ...

Update warnings

1) Can I automatically receive an email from my Drupal website when new updates are available ? 2) Can Drupal automatically update itself ? Is this risky ? ...

Drupal:how to pass argument to exported views code?

Hi, im working with drupal views, function themespage_views_default_views() { views_include("view"); $view = new view; $view->name = 'master'; $view->description = ''; $view->tag = ''; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = TRUE; $handler = $vie...