rules for node update by admin for userpoint

Hi
I m using drupal 7.x and using rules module. In my site for publishing nodes admin approval is need. So I want that when someone create any node no userpoint will be update. Only after publishing the node in fronpage will be add userpoint. I have already made it. But problem is that when author update the node. He automatically added same userpoint.
How can i restrict that. So what I want is as below point by point
1. Add userpoint when admin publish the node to frontpage

issues with starting drupal

Hi team,
Yesterday I successfully installed drupal and got started up with the drupal site.
http://localhost/drupal.
entered all the details in the site admistration completed all the formalities.
I was up on drupal for 11-20 min.
But today when I started with site it gave me this error.

Add html code to all the pages

I want to add some html code to all the pages for a D7 site. It could be for example a paragraph or an image or anything else. I want this code to appear straight after the < body > tag.
My module will have an option that, once checked, will print this string of html on every page of the site, no matter what theme is used: it should work for every theme.
What's the best way to do this?

Manipulating returned fields from db_select()

Hi,

    $result = db_select('node', 'n')
    ->fields('n')
    ->condition('status', 0,'>')
    ->execute()
    ->fetchAssoc();

As you can see I'm using db_select() to return all columns from the table, and I wanna know how can I operate on data from a specified 2 columns only, if $result is returning a single row or multi rows?

Allow user to contribute to gallery

Hello,

I have created a basic image gallery using colorbox, it is just an article with the images. Is there a simple way to allow registered users to contribute to the gallery and upload their own images? Currently the only person that can add images is me, through editing the article itself.

Custom PHP and content panes(?)

Hi all,

Let me first describe what I'm trying to accomplish in general terms, so that you can point out errors in my general approach. I'm new to drupal but fairly seasoned with PHP, so my main obstacle is to figure out how the plethora of concepts and modules fit together, and where to do what.

Here's the setup: I have a custom node type, let's call it "Person". Using Page Manager and Panels, I'm setting up a custom display page for Person nodes, displaying different information related to the Person in different panes and tabs. This part I can do completely within the system, without touching code.

The tricky part is the following: One of the fields in the Person node is an identifier for queries to a remote XML API, api_id. I want to use this identifier in the argument of a call to simplexml_load_file, and putting the results of the XML I get back from that call into a pane. This part I can't do (?) by pushing configuration buttons.

So, I'm considering my options, and would appreciate input on what the most reasonable (and simple) approach is, as well as any help and pointers in solving the task.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x