I've got another question. The stats show up in my dashboard, but it lacks all styling. To make it clear, look at the image


My guess is this has something to do with not being able to load the googleanalytics.js and googleanaytics.css. Not sure if that's the problem. If I call those files in the browser I get a nice error:
- Code: Select all
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /pivotx/extensions/googleanalytics/googleanalytics.js
on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
Also, the file access on all files in the /pivotx/extensions/googleanalytics/ are the same and I do get to see stats:
- Code: Select all
-rw-r--r-- 1
I compared this to the syntaxhighlighter and it seems to be wrong. So I changed it to match the file rights by doing a chmod 755 *. Unfortunately that doesn't help.
For now I've made a rather ugly change by copying the .js and .css to the [templates_dir]/googleanalytics and changing line 561 of hook_googleanalytics.php:
- Code: Select all
$path = $PIVOTX['paths']['extensions_url'];
to
- Code: Select all
$path = $PIVOTX['paths']['templates_url'];
Does anyone have an idea on what I'm doing wrong here?
--People who say it cannot be done, should not interrupt those who are doing it.--