drupal

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...

My drupal only runs when I'm online

Hey, I'm using ubuntu 10.04, and when I try to run online on localhost without being connected on internet, it doesn't run. It only runs when I'm connected on internet. Everything is installed right, mysql, apache, bla bla bla, etc. help! ...

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...

Drupal module to show data in table formet

Is there a Drupal module which: opens a user-defined table in the same Drupal database displays all the columns and rows in HTML <table> format (best if) supports pagination (optionally) allow filtering of data range via SQL Thanks! ...

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...

Is it possible in drupal to delete a node without displaying the default drupal_set_message

I would like to be able to programmatic-ally delete a node: node_delete(N); Without getting something like the following message when the page is refreshed: Document Delivery Request Sather, Kinzer-Tevaris v. Smith, Death has been deleted Is this possible? ...

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:...

Pass the node and create a dynamic view according to the nid? Drupal

Hi everyone, I am creating a website in which users enter challenges through a form(created by CCK) so every challenge is a node. Now i want to pass the node id to a view so that the related information to that challenge can be displayed. That is when users click on the challenge name it should display all the information related to tha...

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...

GPL, Drupal, and Source Code to Related App

I realize that if I choose to distribute a custom module for Drupal that I must provide equal access to the source code of said module (without obfuscation). My question is what about a phone app that used data from a Drupal Module? Do I have to release the code to the phone app as well? The app would not function entirely without the d...

Add fields to user register

Is there any way (without using core Profile) to add two fields to the user registration form with Content Type Profile, OR, using Form API to add two fields to save into a content profile node created from user registration? Is there anyway to intercept user_save while its creating that user and add the fields to the profile node or is...

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...

Organic Groups - types of nodes allowed to create

Hi, Wondered if someone can shed some light on OG groups in Drupal. I know you can restrict what types of NODES that can be created within groups, but what if yuo have two types of groups. Can you restrict the creation of a certain type of node to only one group ? Example: I allow users to create groups called Sports I allow uses to c...

Drupal - get $primary_links with nested menus as php array

I'm trying to get a PHP array that includes a simple nested list of primary_links and their sub-menu items. This seems like a simple task but I can't seem to get a straight answer on how exactly to do it. From there I would theme it exactly as needed. Thanks! ...

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...