Assing user field value

Hello,

I have define extra field for user add form -name, address, phone...- and one of that is "membership name" that is computed. There was and error while one add user process, and now I need set this field manually for two user. So I execute following code:

<code>
<?php
$user = user_load(114);
$user->n_de_soci_a = 29;
?>
</code>

It worked for with the first user butt not with the second. 

So I try too

Drupal 7.x & Views: Duplicate grouping title is showing on load more.

I am working for an aggregator site. I need to show data by group with different taxonomy term title. I also need to theme that display. So far I am close to layout and functionalities except on load more it's repeating the group title. I need to show the group title once on the top of each group. I am using unformatted list for views format. I also tried with grid format but in that case when I overwrote the tpl then it's not even showing the load more appended data.

In the pager settings, I am showing 3 items on page load and append 3 more on each load more. Ajax is on.

How to tell Google that a page no longer exists after deleting the page

Hi all

Hope you can help/advise

A client has had their D7 site hacked with the hackers creating new pages directing traffic to various rubbish pages such a cracked serial codes etc. The hack has now been addressed and pages removed but Google is now telling the client via Google Search Console that those pages are now missing and throwing a 4xx.

What the best practice in these situations so as to appease Google? How would one go about sorting this?

Thank you

Stephen 

Save a blob file in database.

How to save a text file in database by taking input through form?

Drupal7: Is it possible to call an hook_menu with the POST method?

Hi,

in a custom module, I'd like to call a hook_menu using the POST method because I have to pass some data in the body of the request.

Is it possible?

What changes in its definition?

$items['/feedback'] = array( 'title' => 'Sent', 'page callback' => 'feedback_received', 'type' => MENU_LOCAL_TASK, 'access callback' => 'user_is_logged_in', );

And how can I get the data in the 'feedback_received' callback?

Thank you very much

Views: How to display a default item in place of an empty list item

I'm trying to display a list of 100 Nodes of a specific content type. The list will include Field items from each node (title, image, description).

I want to display a full list of 100 where "occupied positions" display node content and "unoccupied positions" display a default node... in other words, say there are 25 items (nodes) displayed and 75 "available" positions that display "coming soon". As node items are created and added to the list each new node displaces a "default" or empty position. Maintaining 100 total list items. (I hope I'm making sense.) 

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x