So I'm trying to achieve something seemingly very basic in jQuery. I have a number of "headers," and when I click on a header I want the info beneath that header to slide down, and all other header info to slide up (so that only one header is showing info at a time).
Here's sudo code of what I want to happen:
$('.more-info-header:not(...
Hi,
I want to write a utility function so my Drupal project knows if it's running on the development, staging or live server.
Something like:
function mymodule_is_development() {
return (//some condition) ? TRUE : FALSE;
}
Does anyone know how to do this the Drupal way? Drupal's multisite functionality should be leveraged I ...
hi,
I'm modifying the invoice template of my Ubercart shop.
There is a missing parameter I need (Please see the image): http://dl.dropbox.com/u/72686/extendedPrice.png
The Extended Price is not correct. I need to multiply the unit price for the units. I was wondering how can I retrieve it (i.e. The unit price is uc_price($price_info, ...
I'm trying to get an AJAX-submitted (AHAH) form working to display in a block on the sidebar. For testing purposes, I'm using an example module called "Poof" from the Pro Drupal Development book: http://books.google.com/books?id=VmZrdGuBZCMC&lpg=PA269&ots=cnHiYG6kXn&dq=pro%20drupal%20development%20poof&pg=PA269#v=onepage&...
I have a block that I want to show edit and delete buttons for users with access, and other buttons for the rest of the users. This is the script I'm using for the users with update permission:
<?php
if(arg(0) == 'node' && is_numeric(arg(1))){
//load $node object
$node = node_load(arg(1));
//check for node update access
...
I was considering using drupal to solve this problem, but not sure if it can be done with drupal.
I'm trying to implement access to content through points.
If the user does not have sufficient points, they should not be able to access the content
and as they access content, points get removed from their existing points
Can this be ...
hi,
I'm using mimemail module in Drupal to send e-mails with attachments. The e-mails are correctly sent, but the attachments not. This is the code I use (I've just enabled the module):
$sender = '[email protected]';
$recipient = '[email protected]';
$subject = 'New order';
$body = 'Please, see the attachment.';
$plaintext = TRUE;
$...
Hi,
I'm an IPhone developer who wants to change to Drupal developement.
I have already read some books, coded some samples and stuff like that.
I feel like my level in Drupal is not that bad now but I have no experience, how can I find a job? How can I show off my level in an interview?
* Coding a module? And posting it on Drupal.org?
*...
Hi
Trying to figure out how to get taxonomy term id from ubercart catalog page. It looks like ubercart catalog system does not support "native" drupal structure "taxonomy/term/id"
I've used this snippet as argument for block provided by Views module
if (arg(0) == 'taxonomy' && is_numeric(arg(2))){
return arg(2);
} else {
return FAL...
Hi, we've put a quick Drupal 6 site as part of a Give-Camp and at the last minute noticed a problem with the site blog's recent posts section. If you go here: http://closingthenolagap.org/ you can see the problem that I'm talking about under Recent Posts. Those links should exist since those posts do.
We can't figure out what setting ...
I want to group some fields inside a div or similar HTML tag, for example I'm displaying node's title + node's teaser + node's image, I want to group the title and teaser into one DIV in layout for easier CSS styling.
I know a silly method to do it in templates, but I want a quicker and easier method (Drag-and-drop in views edit). A sim...
Hello
I'm looking for some beginners resources for drupal. I've been writing my own module as a way of teaching myself the basics of development as I like the idea of having Drupal to go to when Wordpress can't manage. (Although wordpress is fast becoming as accomplished as Drupal, but that's not what the questions about.)
I have the m...
I've got a Drupal site, and WHMCS (www.whmcs.com) site. I am busy integrating the two. I was wondering if there would be a way to call a function that would return the drupal template (processed) so that I can only provide the $content variable with my own variable. Effectively, this will allow me to integrate my WHMCS template with my D...
hi,
can I group blocks in Drupal 6 ?
I need to wrap two adjacent blocks in a single parent element in my page.
thanks
...
I've built a view using the views module in Drupal to display a grid of thumbnail images (field_image) that are linked to a full size image for use with Lightbox.
I've got that part working but I also display caption text beneath the thumbnail image. I want to append this caption text to the A tag like: <a href="image/photo.jpg" title="...
The title is probably not the best description. I want two functions:
getHeader();
getFooter();
The header must return all the content in the template.php file BEFORE
print $content;
And the latter must return everything after it.
Is this possible?
...
Within the context of a module, how can you determine what theme is loaded for the current user?
drupal_get_path
path_to_theme
Neither of these are any good because they seem to only work in the template.php of a theme.
...
How can I print a nodes $links in a sidebar? What function can I call to retrieve them from outside the node.tpl.php and print them? I am still on the node. Also, I can't use Panels.
...
I created a GMap macro but I do not know how to insert it on the page. When I try to put it in the body field of a page, it does not work. Any ideas?
...
I am building an idea capture website from the Array Shift installation profile of drupal and I'm trying to create a similar entry lookup for when a user starts to create a new idea. Is there a way I can detect when the user is typing text into the title field of the create new idea form (a new content type I created in cck) and then, us...