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),...
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...
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...
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...
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(*...
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...
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...
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 ...
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 ...
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...
Hello
Could somebody write me a name of function from Drupal 6 that converting nodes titles for url usage?
Regards
...
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 ...
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 ,
...
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...
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...
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...
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...
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 can I change HTML header to show email contents in HTML.
...
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...