How to trigger a page redirection from .tpl.php page?

Hello,

I used a tutorial Building a real time chat module with node Js to make a small module that is able to receive an instant message.

On reception of this message I just want Drupal to redirect to a specific page.

Here is an extract of the code of the .tpl.php file:

user gets error message when submitting contact form

Notice: Undefined index: copy in contact_site_form_submit() (line 155 of /home/allmothe/public_html/modules/contact/contact.pages.inc).

This comment appears on the page after a user submits my contact us form. They are anonymous users, so they do not have the option of sending themselves a copy. 

How do I fix the code so that this message does not appear?

Here is the current code:

Selectively or conditionally display fields of a content type in a view

I have a view that displays all items of a content type which can contain both image fields and a youtube url field. Some content items have both a video and images; others have only images. In the view, I want only one of those field contents to display; for example, if it contains a video and images, it should show only the video thumbnail of specified size. But in some cases it is displaying both the video and the image. How can I get the view to display only a video thumbnail, or only an image, on a case by case basis?

Controlling email addresses at the node level

Hello There,

I am developing a Drupal 7 Car Classifieds site. Members of the site upload their own cars.  Is it possible for these members to receive questions from interested buyers directly into their own email addresses which they had registered while becoming the site members?  Please help if possible.

The website is as follows.

www.japaneseautoworld.com

Thanks and regards

in depth training video's

Hi All,

Been working with drupal for a while now i like to know what website has a good detailed guide to drupal video series going into detail also about modules and custom overrides etc.

There a bunch of website i like some suggestions before i spend money on one.

Thanks

How to copy everything from multivalue node reference and multivalue text field to text or node reference field.

Hi,

I have a content type named publications, having:

  • A multivalue node reference field called authors
  • A multivalue text field called authorstext
  • A text or node reference field called authors2

I want to copy everything from authors and authorstext to theauthors2.

I'm trying to use VBO with an arbitrary PHP code but nothing seems to be working. I'm a newbie so I'm really lost; could I maybe do it from MySQL? would that be better? Please any help would be great, and thanks!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x