drupal-6

transferring drupal site from localhost to live server

i have copied the drupal files to the live server using fzilla, now when i open the live site it says site offline,The mysql error was: Unknown MySQL server host 'dbramha' (1).,in settings.php i have given db_url as $db_url = 'mysql://dbramha/testing', testing is the database used locally, do i have to install drupal again in the server?...

Drupal, Views: trimming text doesn't work because tags are not closed properly

hi, I have a node with a text area editable with CKEditor. THis means my customer can add italic style with it. Then I have a VIew in which I'm trimming this text area for each node to 140 characters. The problem is that if my customer adds italic style right before the treshold, the text is not closed, and I have html errors (for exa...

What can I check for in module building to ensure no crashes in drupal

Hello guys, I have a quick question I am currently running a test site of Drupal. I have a module that was written and supported for versions up to 6.16 the test site that I would currently like to use this module in crashes when I enable the module. I would like to know what basic elements can I look at to ensure that the code is comp...

Date errors upon programatically inserting multiple nodes in Drupal

I am building a Drupal module that (among other things) creates multiple nodes of type 'individual_match' when a node of type 'team_match' is created. A team_match is a collection of related individual matches. I used the method explained on Advomatic, which I found in an old Stack Overflow post. It works great (meaning it creates the n...

Drupal get module info?

Is there any function in Drupal like get_module_info('MODULE_NAME') or I should parse info file? ...

drupal user relationships

hey all, throwing this one out there... hope it's a simple one. using the drupal module user relationships i can see my relationships by going to site.com/relationships i need a page that displays the relationships of a different user. is that available? ...

Drupal form submission to a 3rd party website

I'm building a form in Drupal that needs to submit to a 3rd party website. Within the form API it seems like this is not really possible as you register form submission handlers to do all of the processing. I need to have the form method to to POST and it needs to be submitted to this website as it is a 3rd party hosted ordering system. ...

Drupal: Can't access any link within "Administer" but normal user access works well

Hi there, I'm new to Drupal and am experiencing this strange problem with my testing Drupal 6.19 site: I've installed and enabled some custom theme ("acquia_marina"), and now strange things happen: 1) I can login/logout both as admin and as normal users 2) I can access Forums/Blogs from the primary links, and by clicking on them I can...

Reading node field values in module code using Drupal 6

I have created a custom module and am using hook_block to programmatically create some blocks. My question is how can I access field values including CCK fields for the current node within my module? I basically want to get a value from a CCK field and use the value when building my block for that page. ...

drupal what is vid in node_revision

hi , am exploring drupal 6.15 , am going to do the DB migration ,plain db to drupal db , what is vid field in node_revision table in drupal cms , i thing vid not an vocabulary id, but plz clear it ...

Drupal FB-Connect and IE

i have installed the fbconnect module under drupal 6. i have added <html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>"> to every pag...

Please suggest Joomla or Drupal software product theme?

I'm looking for a Joomla or Drupal software product site theme(preferably Drupal and free)? I have no problem if the theme needs some css hacking. Any suggestions? Thanks ...

Imagefield Crop – use existing file

Is there a way to make a few images with Image Crop out of one uploaded file? Currently i have to upload the same, big pic to get new pics with various dimensions. Unfortunately the "Imagefield sources"-module doesn´t support Image Crop. Is there an alternative? ...

Drupal 6: "Facebook" style comment ordering (threaded, descending+ascending)

Hello. Working with Drupal 6, my goal is to order a set of threaded comments similar to how Facebook outputs comments: with the 'anchor' or first comment in each thread sorted DESC, and any 'internal' thread replies sorted ASC so the newest comments are at the bottom. Here's the SQL query from comment_render, with ordering by COMMENT_OR...

Drupal Admin is not able to access edit views page

I have a Drupal site and the Drupal site's admin is not able to access the edit views page. Lately, the site has also had the problem of Content Access permissions which required me to rebuild the permissions.However, the warning that 'Content Access Permissions need to be rebuilt' continues to persist. Whenever I goto admin>build>vie...

How to customize drupal search to show only taxonomy view pages?

Hi, I'm stuck and need your help! Setting: I have a Drupal 6 website and activated the view for taxonomy term pages. On my website a taxonomy page is composed of several different content types. All the different content pieces are tight together by the shared taxonomy term and displayed by the taxonomy view. Problem: When sea...

Is there any way to get uid from user name in Drupal?

Hi, Is there any core function to get uid from username in Drupal? Or I should perform a db query? my field is a textfield with '#autocomplete_path' equal to 'user/autocomplete' ...

Security question: excessive Drupal requests from a single user account

I've notice some strange behaviour on my Drupal site. I like to understand the data I'm looking at before I take action so that I don't waste time pursuing the wrong measures, but I'm lacking security knowledge to interpret. A single account has made many odd repeat requests, including attempting to reach the edit profile page, logging...

how do i filter out content from a default Drupal View, based on what content is pulled into the attached view?

currently: i have a page view that is displaying all content that is flagged as "not featured" with a simple CCK dropdown. the attachment to the view displays all content that is "featured" and is styled to be a little more impressive. what i'd like to be able to do is have a few, say 3, featured items display at the top in the attach...

Drupal error reporting by e-mail

I'm looking for a solution that would mail me errors from /admin/reports/dblog site in Drupal 6. The best would be a daily summary. Is there any module or a trigger+action solution for that? ...