Jump to:
| Project: | NodeReview |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi,
Exactly what I would like! as in 'Recommend this user' at http://www.linkedin.com. The only problem is please, that I'm using Node Profile which is attached to the content type 'profile'.
I works on the node/ but we have a 301 redirect to the Node Profile and well, it does not show.
I've been able to add a 5-star rating to the node-profile.tpl.php template and wondering would it be possible to add a link with 'review this mode' and just one step more, to have 'this node has x reviews' with a link to the page of the reviews of that specific node.
Have had a good look at the views and sorry, do not quite see how to add a field of the specific node's reviews. Am I missing something, is it in the arguments? Is it possible?
Would most appreciate any suggestions, and thank you :)
Have a great weekend.
Lilian
Comments
#1
Hi,
Been checking on a daily basis .. with no reply .. :)
Please, how do I add a link on node-profile.tpl.php for a visitor to 'recommend this user', which I presume will take the visitor through to the form for their review?
I figured out the views for results, but gives 'No reviews have been submitted. Maybe you should be the first? with no link. '
Just to mention, Node Review works perfectly on other content types (articles, story, etc). It is just the content type 'profile' which is a Node Profile.
Look so forward to hearing from you and thank you.
Lilian
Update: Adding the following
<?phpprint l("Add a review","node/add/nodereview",NULL,"pnid=" . $node->nid,NULL,NULL,TRUE);
?>
#2
This module uses arg checking to add tabs on the node/1 page - so if you're using any profile as nodes module which takes of the user/1 tab and redirects node views to it, you'll never see the tabs (but you can browse to them manually at node/1/reviews
Ideally, it'd need the arg() check removed, and add the tabs to user/% if bio or nodeprofile are in use. I need something along these lines on a site I'm working on, so may contribute back a patch.
#3
Dear Catch,
Wow, that would be stunning and would most appreciate your patch ..
Look so forward to any help on this.
Lilian
#4
Hi Catch,
Hope you are very well. Catch, have you perhaps figured out the patch to make Node Review work on a nodeprofile ..
Would be amazing, and just what I need.
Look forward to hearing from you.
Lilian
#5
Hi Catch,
I've been trying
'path' => 'user/$uid/addreview',inelse {$items[] = array(
'path' => 'node/'. arg(1) .'/addreview',
'title' => t('Add review'),
'callback' => 'node_add',
'callback arguments' => array('nodereview'),
'access' => user_access('submit reviews'),
'type' => MENU_LOCAL_TASK,
'weight' => 3
and nothing shows on the node profile .. is there another path that I should be using?
Look forward to hearing from you.
Lilian
#6