drupal

A Programming Question.

For about a year and a half I used Codeigniter to build my sites. Then a client begged me to build theirs in Wordpress. I soon found the joy of using a CMS (if Wordpress can be called that). So for about the last 8 months I have been using Wordpress as much as possible to buld my sites - I made the content fit the design. Well, I began ...

Multiple Styles within one View in Drupal

I am creating a search functionality in Drupal by exposing filters within View. The problem is that I would like to add also a Google Map that display the location of nodes, apart from the search results (node title and some other fields). I can easily do one or the other but I find it difficult to display both search results in a standa...

Drupal Importing Content from Feed

I need to import Twitter posts (single account) into a Drupal site to display in a sidebar. Obviously I can use the pluggable JS script, but I don't want the page to hang waiting for a response from Twitter. I installed the new Feeds module, but I am a little confused. I want to create a content type. This content is created from the RS...

Add 'rel' Attribute to Drupal Views Link

I am currently using Drupal 7 with the Views module. I have built a photo gallery that is running properly, but I am trying to integrate a lightbox. However, to use a lightbox I need to image links to have the 'rel' attribute. Can anyone please help me with my problem. How do you add the 'rel' attribute in Drupal Views?? ...

Check if user agreed to terms , set cookie

I'm a Drupal nub. I would like to check on every page if user (anonymouse) agreed to somekind of terms. I suppose i should write small custom module ? Where will this condition be written if(!$_COOKIE('confirm')){ //jQuery show confirmation form //Set cookie for 1hour } maybee in page.tpl.php ? Please, give me some tips .. ...

Implement javascript in drupal node

In my drupal config I have created a video page, which I'm using to create video titles. I also created a course page, which will be displaying all the video titles available in that course using views and node reference combination. It only displays video title list. Now, Take a look here http://www.lynda.com/home/DisplayCourse.aspx?...

Accessing variables from two different sessions?

I have integrated WHMCS and Drupal. However, when you go to Drupal and you print_r the SESSION, you see completely different information than what you would do if you go to the WHMCS pages. So, my question is, how do I access the one's session, from the other one? I need to access it, in order to see if the user is logged in or not. ...

How far into drupal bootstrap to get global $user

If I want to use global $user in a php file outside the drupal system, how far into the boostrap using drupal_boostrap() must I go. I don't want to use DRUPAL_BOOTSTRAP_FULL since it sets the HTTP header. ...

Drupal - How do you add a region in comment-wrapper?

When you want to create a region in a node.tpl template, you simply put function xnalaraartbasic_preprocess_node(&$vars) { $vars['your_region'] = theme('blocks', 'your_region'); } in template.php. But how do you put a region in comment-wrapper.tpl? I couldn't find a hook for comment. ...

Search 2 fields in a Drupal content type

Hello. I need a simple search form on my Drupal site but I can't figure out the best way to get it done. Basically I have a content type with a couple of different fields and I want my form to search in both the title and the body and then return a list with the title its picture and the stripped body. I have tried with Views and it wo...

Remove/ trim a number of links from drupal navigation

Hi, How would I trim/ unset a certain number of menu from drupal navigation menu to avoid lengthy menus for a specific page? Say I want to remove the last 20 menu items from navigation menu. Any advice would be very much appreciated. Thanks ...

Drupal and advanced user rights

Hi everyone ! I work for a webagency, and I have to develop an intranet/extranet app to be used as sort of a DMS (Document Management System) for a high school. Some of the requirements of the projects are using Drupal CMS and having advanced user rights. Let me explain : The professors can post only for their students, and the students ...

modify drupal views output to diplay a facebook like button.

How can I edit views output rows to include a facebook like button and that like statement should take one of the field as parameter and output on facebook as :: abc user likes "content of field" on mywebsite.com ...

drupal filterable/sortable table from existing data

Hello, I have an existing database that holds information about upcoming meetings in my organization. I would like to be able to display this information in datatable type of format upon which I can then filter and sort the information (possibly jquery sort). Can anyone point me to some kind of tutorial that would give me an idea of how ...

Disable links to parent menus and breadcrumbs?

hi, 1) can I disable links of parents items in Drupal menus ? (In particular if I'm using the Nice Menu module ? I don't have any page to link to the parent items. 2) can I disable the links on the breadcrumbs ? I guess I have to change the php code for that. thanks ...

How to hide url of the embedded mov files in drupal using swftools ?

How can I hide or obfuscate the url of the embedded mov files in drupal using swftools and flowplayer 3 as the video player. I tried using SWFObject2 but infact it outputs the url very clearly. The site is basically a online video selling site, so I want to be able to prevent users to download the videos on their computer. ...

Drupal: Cron runs but Autoresponder doesn't send email?

Hi All, Within Drupal I have the Autoresponder module installed. I've configured cron to run twice a day which within the status report it's shown as being run successfully - however no emails are being sent from autoresponder.... If I then run cron manually then the emails are sent? Any ideas very much appreciated. Shane ...

Drupal: change view argument

Hello, I searched far and wide to find a working solution to this but couldn't find it. What I want to do is change the argument that is passed to the view because I want for pathauto cleaned taxonomy terms to work as an argument. I have a code that transforms cleaned term back to a original one, but cannot make the view use it. I saw s...

Comment $links order in drupal

In the comment.tpl, $links is printed to show the reply and edit link. In my theme, edit comes before reply. How do you change the order of the printed links? ...

How to filter custom content type nodes using ajax in Drupal?

Hello. I'm in a situation where I think I need to create my own custom search module. What I'm trying to do is make a page with a list of all my nodes in the node type - let's call it 'Beer'. So I want to be able to filter through the beers in a fashion similar to the one you find on the Apple Trailers page ( http://trailers.apple.com/ )...