what is CCK Computed Field?
Explaine me please in simple words what is CCK Computed Field? ...
Explaine me please in simple words what is CCK Computed Field? ...
A couple of years ago, before I knew about Stack Overflow, I was working in an office with a lot of competition between the programmers. There, I had to code a web page in PHP with Drupal, that needed to get data from another site by RSS. What happened was that there was no way to get the data beforehand: the data depended on the content...
I would like to retrieve a cck field "field_info" in my form alter to insert into another table when user is submitting. This doesn't seem to work. //mymodule_form_alter() implemented function mymodule_form_mysubmit{ $test = $form['field_info']['#value']; //insert stuff code } Is there any mistake in th...
how can I know in Drupal if the role of the logged-in user ? In the $user variable there is not role information.. I need to specify specific php code depending on the user role in my custom module. N.B. In $user there is a field 'role' but it always contains "authenticated user". What I need to know is the specific role (I've created ...
I'm writing a custom module, and I would like to do some checks before the node is deleted. Is there a hook that gets trigerred before a node is deleted? And is there a way to somehow prevent the deletion? BTW, I'm using drupal6 ...
hi, I'm using the "User Points" module in Drupal to assign points to the users given the rating on some of their nodes. I visited the menu: admin/user/userpoints from which I can see users scores. However when I click on one of them, I get "Access Denied" (and I'm the admin id=1). For example, this link is forbidden for me: myuserpo...
Similar to the question posting form on SO, Drupal adds a draggable expander to the bottom of textareas created through the form api. How can I disable this in a nice manner? ...
hi, I'm using "Users Points Voting API" module to combine "User Points" module and "Fivestar" module. It works, but not as expected. When an user rate a post, the author gains N points. If an user removes its vote, the author loses the N points. N is a fixed number (I set it in the settings). It is fixed, and not related to the number...
When you get a node, how do you load the previous version (revision)? I know how loading a revision but not how getting the previous revision number ($node->vid is the current revision). thanks ...
I am trying to add custom images into Drupal's calendar view by checking 'nid' of a node (or taxonomy term in future). I am writing this custom code in views-view-field--calendar--nid.tpl. The problem is that, what ever is output by views-view-field--calendar--nid.tpl is also inserted into 'id' attribute of div tag. Please see the secon...
hi, I'm using FiveStars module and I'm modifying the code. I need to get the last vote of a user for a specific node. I'm sure that the module stores it, because it displays the stars the user previously selected, when he logs in and re-visits the node. But I'm not able to find this in the code. (I only found the average vote for a no...
The Drupal's main admin page contains many links grouped by different purposes. By default there are following sections: Content management, Site building, Site configuration, User management, Reports Now I'm using Rootcandy admin theme and want to move all these annoying links into sliding panel which is collapsed by default. So the...
In drupal, is there a way to check or display which users are currently logged on? I want users who are logged on to be able to see who else is on. Is this possible and if so, how? Thanks. ...
In drupal, how can I change the permissions on a single page or story? I want to change one page or story so that only admins can post comments and all users can see those comments but can't post any of their own. Thanks. ...
I'm using a multisite setup in subfolders, everything words fine except the non-www to www redirection. I got it working with no issues for the main domain, but I cant get it to work for the other sites: for example , I want this redirection : site.com/ru > www.site.com/ru ...
So lets say that I'm interested in the functionality that Install Profile A offers, but I'm also interested in some of the functionality that Install Profile B offers. But technically it's not possible to fire up both install profiles. Is there a way I could someone manually combine 2 install profiles into a custom one? Do I have to re...
I trying to get the twitter_admin_form and twitter_user_settings form in a div. /** * Get twitter form for user * @param $account * @type user object */ function getTwitterForm($account){ //module_load_include('inc', 'twitter'); module_load_all(); $twitter_form = drupal_get_form('twitter_admin_form');...
Is there any way to place 2 views in a 2 columns page in Drupal without having to install the Panels module ? N.B. The 2 columns layout should be used only for this page. thanks ...
Every project on drupal.org has its own page: http://drupal.org/project/marinelli When a new release is made, it gets added to that project's release page http://drupal.org/node/185969/release I'm trying to monitor when the page, but of course I don't want to keep checking on it manually. I need to do it programmatically with php. ...
I'd like to click on the map and get the nearest nodes, stored in the system. I've installed modules: location, gmap, views. I've created two nodes with location information. I've created a view with exposed filter: proximity search Now i can see the map, but i cannot see any search result if i click on that map.. why? ...