how to show profile Five star rating widget with nodes Drupal 7 ?

Hi,
I've associated fivestar widget with user profiles.
On node view page I want to show node author's(user) fivestar rating widget.
How can I do it.

I ve already done following on my end.

On node.tpl.php

nginx rewriting *.com/index.php to *.com results in infinite redirect (for canonicalisation)

I have the below in my nginx.conf which means i can just use *.com instead of having to use *.com/index.php :

location / {
try_files $uri $uri/ @rewrite;
expires max;
}

location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}

however, for the sake of canonicalisation, it would be good to redirect all *.com/index.php requests to just *.com

Is this possible? and if so how?

Many thanks, Adam

Best form generator for Drupal 7?

Hi,

I would like to add a form to my site. The form should have a couple of selects, possibly a date, and maybe other fields. I will be using it to allow them to book a course.

What's the best way to go about this in Drupal 7?

Shall I create a node, and then basically allow anybody to create a "node" of type "booking"? (That's what it would be)

What's the established, accepted way to create customizable forms in Drupal 7, so that I can allow people to book a course?

Thanks a lot,

Merc.

permissions sites/default/files

Hi,
I've got something going wrong with the file's permissions on default/files with the folowing error messages :

- ctools css cache unable to create
- File's system
writable (public download method)
The directory sites/default/files is not writable

Using Terminal isn't really my cup of tea but I did my homeworks before requesting your help and support ...
http://drupal.stackexchange.com/questions/373/what-are-the-recommended-d...
http://wiki.linux-france.org/wiki/Les_commandes_fondamentales_de_Linux#M...
and of course
http://drupal.org/node/244924

command ls -l pour sites/default/files returns the following infos

-rw-r--r--@   1 Superadmin  Superadmin   6148  7 nov 22:26 .DS_Store
-rw-r--r--    1 Superadmin  Superadmin  17960 28 jul 02:02 default.settings.php
drwxrwxr-x  146 Superadmin  Superadmin   4964 26 déc 12:21 files
-rw-r--r--@   1 Superadmin  Superadmin  18272 27 aoû 11:42 settings.php
drwxr-xr-x    3 Superadmin  Superadmin    102 24 oct 16:19 themes

Nota : Superadmin is for user=Website Superadmin

A 770 on 'Files' directory should be enough. I have 775 and still got errors ?
the files under 'Files' directory are 664 and subdirectories (included ctools) are 775

Pb indexing text field with apachesolr

Hello

I have a pb I cannot solve, without understanding why.
I have a content type "article" in which I had a field "president"

label : president
field : field_president
type : text
widget: textfield

I just want to create a specific attribute in my index in order to stock this field (later I will facet on this field)

So, i create a custom_solr module
with a hook for hook_apachesolr_update_index

The ss_field_president is ... empty.
Could anyone help me?

Here is my code

Allow user admin without rights to access the admin account

I have a website where my client needs to be able to moderate the users, and edit the website. I've created the role Editor, but if I grant him access to Administer users he can also access the admin account (mine) and potentially change the past word. I trust him not to but thats not the point. Is there any way to allow a content admin to admin the users but not have access to users with admin rights?

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x