drupal-6

Translating "layout strings" in Drupal 6

I'm developing a site in Drupal 6 that will be translated to over 10 idioms. For the main content, I'm using CCK + i18n. But there are some text in the site's layout that I'm not sure how to translate. For example, let's suppose that it's a site that sells software. In the page that lists all available software (which are Drupal nodes),...

How can I add a summary row to a Drupal View?

I've built a view (Drupal 6.x, Views 2.x). I'd like to be able to add a summary row at the end of this view — total up several columns and include the totals in the summary row. How can I do this? Is there some Views data-altering hook I can implement, to change the constructed data (before it gets themed)? (Note that I can't use vie...

On redirection does the redirected page gets processed?

I put redirection code on the top of a page which has bootstrapping code below. Does redirection spawn a different process making the redirecting page process as a background process or it kills the current process entirely? Im using header() for redirection but surprisingly the remaining code below header() which required database con...

Drupal Node Form Incomplete POST Data

Hi buddies, I'm working on a drupal 6 site that needs multiple node forms in one page, the problem is when I submit one form posted data is not complete! I mean some fields of the form are not exist in posted data, i checked this with tamper data (firefox addon) and also print_r($_POST) at first line of index.php. but any from in its on...

Drupal SQL "Select count distinct"

Hi can someone help debug this? Currently my script throws this error "Parse error: syntax error, unexpected '=' in includes/common.inc(1695) : eval()'d code on line 38" and I've narrowed it down to this SQL statement. It appears that counting results rows in Drupal isn't as straight forward as I'd hoped. $sql_checkIP = "SELECT COUNT(*...

Drupal where to set global variables accessible to all pages on the site?

Hello, Im working on a Drupal installation where the setup in my local testing server is different from online server. On my local server drupal is installed in /var/www/my_drupal and the base_path is set to /mydrupal but on the online server its installed on the root of the site, usually /public_html/ So my problem is I wanted to set...

Sharing data with blocks

I have a page that displays some data. The source of the data is not Drupal nodes, so Views is of no use me: function mymodule_main_page($arg1, $arg2, $arg3) { $results = call_remote_api_and_get_lots_of_results($arg1, $arg2, $arg3); return theme('mymodule_page', $results, $arg1, $arg2, $arg3); } My module also displays a block. Th...

How do I do this in Drupal?

Hello, Im currently evaluating Drupal to see if we can use it to replace our framework. My problem is I have this legacy tables which I would want to try to reflect in Drupal. It involves a join table. There's quite a lot of this kind of relationship in our existing web app so I am looking for possible ways to solve it. Thank you for ...

How to generate a list of which Features are enabled in which Spaces?

I'm running a Drupal 6.x site with Organic Groups, Features, and Spaces, and I'm interested in generating a list of which Spaces have which Features enabled. Preferably a table, with Spaces along the Y axis, and Features along the X axis. Any ideas regarding how to generate this? I can generate a list of Group Spaces using Views, but ...

Overriding Drupal javascript behaviors.

I want to override a bit of core drupal behavior on the comment form. If you make a comment as an anonymous user, your name and mail are stored in a cookie, and then javascript fills out the appropriate fields in subsequent comment forms using this code below: Drupal.behaviors.comment = function (context) { var parts = new Array("na...

Function name for converting node tile to seo friendly

Hello Could somebody write me a name of function from Drupal 6 that converting nodes titles for url usage? Regards ...

Drupal event registration and attendance recording

Dear all, I am building a Drupal 6 site, with event managing feature, in particular: Selling events participation Recording events attendances: once the event is concluded, administrator can review attendances indicating which users have really participated I have searched a lot, already seen different similar posts and considered ...

what is the purpose of Id in drupal .info

in in drupal , what is ; $Id: i know for when we use this ; $Id:,strong text for create block , we should first create .info module, this tell to drupal about the our module/ block / menu inform , my question what is necessary of ; $Id: What is the use , In which place it is calling , ...

Migrate SMF -> Drupal 6. Need some tips.

Hello I am trying migrate SMF forum to Drupal native forum. I tried to use converter but with no luck. I found tables that are using with forum: node_term node comments node_revisions url_alias forum First I migrate users from SMF to Drupal. I try do it 'manually' using JDBC as support for a lot of queries. I added terms from my a...

CCK fields disappear from Content type

Sometimes, during period of high traffic on sites, CCK input fields disappear while adding a content from the backend. I haven't enabled the throttle module. The fields are restored automatically at other times. For example - field for image upload, checkbox for featured for a content type News disappear during heavy traffic but get au...

Drupal Site accessible to Mobile

I have some 20 sites with common codebase and database via Drupal Multisite installation. Whats the best way to make a multisite Drupal installation also accessible via mobile. For example, I have sites like www.abc.com, www.cde.com, www.fgh.com etc all poiting to same codebase and a common database of a Drupal multisiste installation w...

Issues in hook_form_submit() in IE browser

i have a custom module with a form I have implemented form hooks like this hook_form() hook_form_submit($form, &$form_state) When i have a print statement in _submit it doesnt show on the screen , but which works fine in mozilla firefox . In IE _submit is only not getting called , am using drupal_render to render each form elements in...

Customize TinyMCE using Drupal's WYSIWYG module

Hi there, I am looking to create a custom button on the TinyMCE toolbar that wraps the currently selected content in a div with a class. I am using drupal 6.19 with wysiwyg-dev and TinyMCE 3.3.9.2. Sample text: <h3>Heading</h3> <p>Sample text</p> <ul> <li>item 1</li> <li>item 2</li> </ul> <p>more text</p> Sample text that has ...

How to send HTML email in drupal 6 using drupal_mail ?

How to send HTML email in drupal 6 using drupal_mail ? How can I change HTML header to show email contents in HTML. ...

Why does this query work inside a block but not inside custom Panel content?

Why does the following query work within a Drupal Block, but not when part of a "custom content" in a pane within a Panels Page? It gives an error saying to check the syntax of the query near "AND node.type in....". Also, if I put it in a Block then display that Block inside a Panels Page, it works just fine. So while I've got this worki...