error - Karma Error: Communication (0)

guppydrupal - November 14, 2007 - 22:11
Project:Simple Karma
Version:5.x-1.6
Component:Code
Category:support request
Priority:normal
Assigned:guppydrupal
Status:closed
Description

quick question:

where do I insert the

<?php
if(module_exists('simple_karma')){ print simple_karma_template_forms();}
?>

in the page.tpl.php of my theme?

thanks!

#1

mercmobily - November 15, 2007 - 02:45

Quick answer: wherever you like, really :-D
The important thing is that it's towards the top, because there are important JS variables there. I'd put it right avter actually.
I updated the user documentation as well.

Merc.

#2

mercmobily - November 15, 2007 - 04:42
Status:active» closed

#3

guppydrupal - November 15, 2007 - 18:15
Title:including line in page.tpl.php» error - Karma Error: Communication (0)
Status:closed» active

This may be related to where I'm putting the

<?php
if(module_exists('simple_karma')){ print simple_karma_template_forms();}
?>

in the page.tpl.php,

I put it after at the end of the head section like this:

head

<?php
if(module_exists('simple_karma')){ print simple_karma_template_forms();}
?>

/head

Sorry if I'm an idiot on this, I tried to put it in the section that didn't fix the error message.

I am getting this error message when I try to rate the comments:

Karma Error: Communication (0)

what's goin' on here?

this module is incredible by the way, thanks for all of the work.

#4

mercmobily - November 15, 2007 - 23:47

Hi,

No problem at all. I am here to help.
The module obviously needs some ironing out - that's what I here for!

It's best to put the forms right after the body tag. I am looking for a way so that I don't have to ask you guys to put that ugly line in the templates, but am finding it a little hard.

However, the communication error might be something else. Question: is your Drupal in the domain's root directory? If the answer is "no", please install the next version of the module, 1.7, and report back (1.7 fixes a bug that prevented the module to work unless Drupal is running in the domain's root).

ALSO, you _need_ to have clean URLs enabled.

If you send me your URL, I will have a look for you :-D

Bye!

Merc.

#5

mercmobily - November 18, 2007 - 10:22

Hi,

I will close this bug unless you tell me otherwise...!

Merc.

#6

mercmobily - November 18, 2007 - 10:23
Status:active» closed

CLosed! Pirandelo confirmed that the new version, 1.7, fixes it...

 
 

Drupal is a registered trademark of Dries Buytaert.