Webform ip_address not posting correct IP

Hey gang,

Running Drupal 7. We would like to have the IP address of those who submit forms on our site just for our records. We are using webform.

I've added ip_address to the email template, but each submission has the same IP address no matter if I submit an inquiry or a website visitor submits an inquiry.

I'm thinking the problem is that we are running some pretty strict security including a content distribution network hosting solution. And even with the CDN, we have things locked down pretty tight.

Query Inside a Function Won't Run When Function is Called (Solved)

I've got a file with 2 functions. One function has a db_select query. At one point in the other function, it calls the first function, but the query won't run. However, if I pull the query out and paste it directly into the second function, it runs fine. Is there something special I need to do inside of the first query to make it recognizable to the second query when called?

Substituting a bit of html in the body of a node with some html

I would like to find a module that could search a node body and replace text.

Currently I am just using PHP in the page.tpl.php.

Is there a module for Drupal 7 that will do the same thing as this:

$the_body = render($page['content']);
print str_replace('(whatever)','<span class="highlight">what</span>ever&#8482;',$the_body);

I have tried String Overrides but t() doesn't seem to work with a node body, or I do not understand how to do it.

Clean URLs problem? Testing page keeps loading...

Hello-

I installed drupal with a few other basic mods (views, seo checklist, token, panels). When I test my server's 'clean url' capability using the drupal tester all I get is a page refresh.

I go to 'clean urls' and do the test. When I push 'run the clean url test' button the page just refreshes and displays the test page again.

Any ideas on what the cause is?

Thanks

Post to social network sites

Hello guys,

I'm planning on making a personal website which will include e-commerce, static pages, and a few other things, but I also want it to have a little blogging properties. I was wondering if there is any module to post to most networking sites like Facebook, Twitter, MySpace, and other. As far as I've seen there is a Post to Facebook module but it's still under development.

How to change content type fields based upon the term user selects?

I have 8 different resource types that a user can choose from (website, book, journal, music, etc.). Each resource type has a unique set of fields associated with it (for example, a book probably doesn't have a URL field). Instead of creating 8 different content types, I'd like to list all 8 resource types together through a vocabulary. When the user selects that the resource they're adding is a website, the page will change to show website related fields (ex: URL).

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x