Drupal allows you to create additional fields for user profile pages that can be publically accessible (anonymous user). I would like to add a contact form on each user´s profile page. I know that each user already has a contact page, but I want to have a contact form that´s embedded on the http://localhost/users/foobar page.
Maybe ther...
drupal 6 web form module allows a user to specify a "to" email address.
but how can i change that "to" email adress programmatically.
for example: i have some nodes in the drupal 6 system, each node has an email address,
when a person accesses that node (page), programm put that node's email address in a session variable, then when the...
Link : http://designbracket.com/ . Click on Our Services and the links under it. I have used Overlay of Jquery Tools to display overlay when any link is clicked. This is a drupal site . The problem is that though the overlay is opening as expected however the text is appearing under it in IE 7 while that does not happen in FF or Chrome (...
I am working on a Drupal-based website that works fine on the remote server (LAMP stack) as well as all other developer's systems (WAMP stack). But when I try to run it, the PHP code is spit out in the browser along with the HTML instead of being parsed like it should.
There's very little information that I can glean from error logs. PH...
I'm working in Drupal 6 with CCK. Under each text field there is a PHP section where you can run some PHP code to get allowed values. I'm running into trouble using an "if" statement to change the allowed values based on user type
So to start, I do a query to determine current users user type. -1 is default user, which is employees and ...
Hi
I am trying to input BC dates in Drupal 6.15 using the Date module. If I enter "old" dates (less than 1000 AD) I get an error. How can I go about this? I cannot revert to text because I need to order things by their date. I need to be able to input really ancient dates like 300 BC. The date is the most important data point in this pa...
On a Drupal 6 site, I have a 'moderator' role, who worka with an 'article' content type.
I want the moderators to be able to see the list of published/unpublished articles, and have the option to edit the articles (and change their 'published' status).
I do not want, however, for moderators to be able to edit (or see the list of) any oth...
i am having an issue where hook_preprocess_page 's changes to &$variables is not being rendered, even though it is the last item under $theme_registry['page']['preprocess functions']. logging contents of $variables to a file show the contents changed, but contents appear unchanged on the site. flushed all cache on drupal, flushed all bro...
hi!
i'm using WYSIWYG module to implement FCKeditor in drupal. If i want to add an image(upload from the user's system and not an url) in the content, how'd i do?
i've Image, ImageCache modules installed.
or do i need another module for this to be done?
thanks.
...
I 'm using zen as the basic theme to make a new theme for my site. The problem is i want background images for header and footer that are not getting displayed until i specify a height and width for them.Moreover, the height and width specified in the CSS inside the #header and #footer have to match the exact dimension of the original im...
I noticed that if I set my content type, Panel, to be a group node for Organic Groups that all the Panel Content I have setup no longer shows. It appears that only the body shows up once you set Panel to be a group node.
There must be something set within the code or something that does this.
Does anyone know why this happens and is ...
In Drupal's page.tpl.php
<?php foreach($node->og_groups as $test) {dpm($test);} ?>
Gives me
But when I do
<?php foreach($node->og_groups as $test) {print($test);} ?>
The value doesn't show up. this is kinda frustating..
Any help is appreciated.
Cheers!
...
I'm trying to dream up a way to institute color coding in Drupal views. I have several needs for this but can't figure out how to do it. Here are some examples...
In a table view for a content type, I want to color code each row based on the age of the post. In other words, "age" of the post is one of the columns in the table, and I wa...
Hi,
I am trying to include a Drupal form element in a table I am generating with theme_table/theme('table',..). Specifically, I am trying to include a submit button with an AHAH attached.
Currently, I am just including as one cell in each row a call to drupal_render to render my dynamically generated AHAH element. The button renders ...
I am using the Ad module for Drupal 6 (http://drupal.org/project/ad). I am wondering if I can make the ad changes automatically every 60 seconds even if the user doesn't refresh the page.
...
I want to be able to import my tweets from twitter into Drupal as Nodes. I want to be able to link @names and #tags back to the correct pages. I also dont myTweeterName to appear at the start of the tweet.
How would you go about doing this. The twitter module does not create nodes but store data in it's own table. The feed module can re...
I have a situation where I want a set of users (employees) to be able to create a node, but to replace the uid (user ID) with that of the users profile currently displayed.
In other words, I have a block that that calls a form for a content type. If an employee (uid = 20) goes to a clients page (uid =105), and fills out the form, I want...
For some reason, my form breaks when I try to make a file upload required. Here is the code for it:
$form_id = "upload_form";
$form[$form_id] = array (
'#type' => 'fieldset',
'#description' => t('This is a utility to import nodes from a Comma Separated Value file. To begin, pick a node type, and upload a CSV.'),
);
$form[$form...
I am dynamically generating a selectlist in Drupal and I want to create an associative array to populate the node ID as the value, and the title of the node as the option.
By default, it makes the value for each option the index of the select list. This is no good because the select list is dynamic, meaning the values won't be in the sa...
I'm writing a Drupal module that deals with creating new nodes from CSV files. The way I've been doing it currently, the user provides a node type, and my module goes to the database to find the fields for that node.
After the user matches the node fields to the CSV fields, I want to validate the data. This requires finding out the typ...