drupal-6

How to Search Twitter with Drupal and Juitter Module BUT with the search box in the home page.

Hi, I am using Drupal 6.x, I installed successfully Juitter http://drupal.org/project/juitter which is doing exactly what my users need to do, that is Searching Twitter. But to do so they have to navigate to the specific page where the Juitter module is invoked which is something like: ____example.com/juitter and THEN they have to ...

Drupal User Profile

One of my favourite sites at the moment is developmentseed.org. I really like what they do with there user profiles. How would you go about recreating it. http://developmentseed.org/team seems to be a view of users/nodes /team/eric-gundersen is a profile/node "Posts by Eric Gundersen" block on the right of 2. seems to be a view. Is an...

hook_theme() affects display order of a node

Hi I have a node with many CCK fields. I want to hide a field from anonymous user. I found there are roughly two approaches from http://www.lullabot.com/articles/modifying-forms-5-and-6. First, I tried theme_theme() with the code below function ssaa_theme1(&$existing, $type, $theme, $path) { return array( 'volunteer_node_fo...

Drupal - Getting node id from view to customise link in block

How can I build a block in Drupal which is able to show the node ID of the view page the block is currently sitting on? I'm using views to build a large chunk of my site, but I need to be able to make "intelligent" blocks in PHP mode which will have dynamic content depending on what the view is displaying. How can I find the $nid which...

Add Logic to 'Promoted to front page' feature in Drupal 6

I am trying to add some additional logic to the 'Promoted to front page' feature in Drupal 6. That is, rather than the boolean behavior there by default, I would like to add additional criteria that a node must meet before appearing on the home page. Specifically, I don't want past events (as determined by a CCK Date field) appearing on...

Drupal 6: Anonymously created nodes result in 404

Nodes of this certain types can be created by anonymous or registered users. If a registered user creates it, everything works fine. If an anon creates it, going to that node's page results in a 404 error. The node clearly exists, however. If I edit its entry in the node table and set its uid to be something other than 0, everything wo...

Custom URL aliases in Drupal 6

I have several pages in my drupal website that produce custom query strings. The query string values and aliases I want to use are referenced from a MYSQL database. I've seen examples for this in Drupal 5 using the custom_url_rewrite function but not in 6... can somebody provide me with an example of how to do this? Thanks ...

change block content

I want to change content inside $block->content, which drupal hook i should to implement? ...

Drupal6: Administer Menu Gone

In Drupal 6, the administer menu is gone. The super user (uid = 1) can see it, but the Admin role, that has the correct permission, does not. If a user with the Admin role were to go to the pages, they could access them (like nodes/add/content_type or something), but there is no menu. (So hypothetically, the site could be administered by...

Drupal6: No blog node can be edited - solved

Going to http://www.example.com/node/NID/edit, where NID is any valid nid referring to a node of the story content type, results in the following error: warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'blog_node_form' was given in /home/site/public_html/site2/includes/f...

Drupal6: Linebreaks from fckeditor aren't reflected on page - solved

I think this might be a problem with the theme I'm using (Nitobe). I'm also using the WYSIWYG rich text editor fckeditor. When I make formatting changes to a post using fckeditor, such as bolding, italicizing, or more substantial changes, like adding a numbered list, it works fine. However, when I try to add line breaks, the changes ar...

Drupal 6 Forms formatting

I am trying to create a form in drupal 6 that has multiple items on the same line. More specificly, I want a right alligned form what has a textfield, dropdown-box, and button all on the same line. I know how to create the items, but drupal tends to put them all on seperate lines. How do I put it on one line? Thanks ...

Ungroup user menu in Drupal

I am using Drupal 6.x with Zen theme. Currently, the following 3 user functions are grouped under a menu, when accessing urls like http://domain.com/user Create new account / Log in / Request new password How can I un-group them so that each of them can still be accessed via its original url; while removing/ supressing the men...

DRUPAL: Fatal error: Allowed memory size error when editing specific existing pages.

Fatal error: Allowed memory size of 18874368 bytes exhausted (tried to allocate 1481725 bytes) in __/public_html/includes/database.inc on line 224 I'm having this error occur in Drupal 6 every time I try to edit the following pages (sorry about the xx's): hxxp://chipkin.com/fs-8700-125-stulz hxxp://chipkin.com/fs-8700-47-dnp-3...

PHP Parse Error; Drupal6 Deployment

I had a Drupal installation at www.example.com/test. Now, it's ready to go live, and I am trying to move it to www.example.com. I changed the line in sites/default/settings.php to: $base_url = 'http://www.example.com/'; // NO trailing slash! When I navigate to my index.php, I get all sorts of parse errors, like this: Parse error: sy...

Drupal section accessible by role.

I need to limit access of content on Drupal site based on the Drupal User's Role. http://site.com/managers/intro http://site.com/managers/reviews http://site.com/managers/up-for-raises The content can be of multiple content types and isn't limited to one specific content-type. These content types will be used elsewhere on the site s...

Hide Drupal nodes from search.

I made a private section on a drupal site by writing a module that checks the RERQUEST_URI for the section as well as user role. The issue I am running into now is how to prevent those nodes/views from appearing in the search. The content types used in the private section are used in other places in the site. What's the best way to ge...

Upgrading from Drupal 6 to Drupal 7: best programmer's practices?

Although I am using drupal since the D4 series, I only started developing professionally for it with D6, so - despite I did various site upgrades - I was never faced by the task of having to port my own code to a new version. I know the Drupal community will come up with lot of technical support about changed API's and architectural cha...

how to organize my menu, taxonomy, views, pages in drupal 6

i am try to build a web site, it has a 2 level menu. global|asia|euro|u.s (this is locaion menu) about|home|news (this is content menu) if a web site user clicks on global, it will show global|home page, if the user clicks euro , it will show euro|home page, clicks on u.s it shows u.s|home page. global|home , euro|home, u.s|home, all...

Foreach in SQL?

I'm not quite sure how to do this in SQL. Here it is in pseudocode: Take the list of nodes with content type X. For each node, take the value of field Y. Insert into term_nodes VALUES ((tid that corresponds to Y), 4, (nid of node X)) The (tid that corresponds to Y) is given by SELECT `tid` FROM `term_data` WHERE `name` = Y (I'm tr...