Closed (fixed)
Project:
userreview
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2006 at 01:28 UTC
Updated:
26 Feb 2007 at 15:31 UTC
Trying to theme CCK content types, i noticed that Userreview submission form (activated for my content types) does not show when:
1) Activating the Content Template module (aka Contemplate)
2) using a node-content-mytype.tpl.php file in theme folder
Leaving CCK only, userreview submission form is there where it should be at bottom of nodes. When activating Contemplate or copying a php theme file to the theme folder, it vanishes...
anyone else experiencing this? Is there a quick way to fix?
thx
Comments
Comment #1
hedac commentedI have the same problem... don't know how to fix it
Comment #2
marcoBauli commentedseems that each contributed module needs first to pass it's variables to Contemplate in order to make it output all the desired contents.
Have a look at http://drupal.org/node/83829 at #5 for a quick explanation about how to do this, and eventually please submit a patch.
I tryed with other modules and that method worked, but Userreview is a bit more complicated to sort out...
Comment #3
hedac commentedHi... I got it working
Try this in your template of contemplate. I didn't need to add anything in the userreview.module
it seems to add the write your review form. and it works.... I add a review and it is there in the content nodes and in the frontpage... but I can't see the review in the page view node itself....
Comment #4
marcoBauli commentedyes, that's the problem... i got the form too, but didn't manage to output well the medium vote as well as the reviews..
since i needed something quick, i moved to core comments and Voting module widget combo.
Hope this will get fixed anyhow,
good luck!
Comment #5
chriszz commentedYou can find out that kind of information by doing this:
print_r($userreview);Than you will know, that you can achive what you asked for with this:
regards
Christian
Comment #6
nilamr commentedHi Christian,
Can you be more specific please. Where do I add the statements you mentioned - in template created by contemplate?
thanks for your help
nilam
Comment #7
gerd riesselmann commentedThe userreview does already what's mentioned in http://drupal.org/node/83829 at #5, so I think the bug can be marked as fixed.
The properties of relevance are:
Print or echo the properties you want to be displayed in your contemplate template.
Comment #8
chriszz commentedYou can add the statments in any kind of template - like contemplate - or phptemplate... I am using it within a phptemplate, as i found, that contemplate was restricting me to much.
regards
Christian
Comment #9
(not verified) commented