Page 1 of 1
Weird behaviour with QuoteMS
Posted: Sun May 25, 2008 12:01 pm
by Coume
Afternoon,
After 3 days of playing around I am still experiencing the same problem with this module and I am getting frustrated.
I use a very simple template to display my quote:
One of my favorite quotes
{$quoteauthor} says:
"{$quotecontent}"
but if you look at my page (ie:
http://ludoviccoumetou.com/resume ) you can see that the quote does get properly displayed but above it, the total number of quote get displayed.
The template, which calls the quote module, is also very simple and does not make any reference to the total number of quote that I entered in my DB.
(...)
{Quotes template="sidebar" pickedby="equal"}
I have just read
(...)
Any idea on where to look to remove this unwanted character because I am really puzzled on this one
Thanks in advance.
Regards,
Ludovic
Re: Weird behaviour with QuoteMS
Posted: Sun May 25, 2008 6:49 pm
by Dr.CSS
I have never used this module but it seems it's in the template "sidebar" in the module interface is there a place to see/change theĀ templates it may have a call for number of quotes...
Re: Weird behaviour with QuoteMS
Posted: Sun May 25, 2008 6:56 pm
by Coume
mark wrote:
I have never used this module but it seems it's in the template "sidebar" in the module interface is there a place to see/change theĀ templates it may have a call for number of quotes...
I should have been more specific in writing my first post. The template used and called sidebar is the first one I quoted:
One of my favorite quotes
{$quoteauthor} says:
"{$quotecontent}"
and as you can see there is no call for the number of quotes, which is why I am really puzzled on this one

Re: Weird behaviour with QuoteMS
Posted: Mon May 26, 2008 8:03 pm
by Coume
Ok, I found the problem:
File > Modules > Quotes > Quotes.module.php
function SelectQuote($params) {
$output=array();
//$params["quote"]
$availablequotes=$this->GetQuotes();
echo count($availablequotes);
$quotes=array();
The dev forgot to comment the "echo count($availablequotes);" line...
Unfortunately, CMSMadeSimple created the file with Apache as Owner and Group and not having a root access I cannot save any change to this file...
I will inform the dev so he can fix the install file
I should have ssh'ed earlier to look at the code, it would have save me lots of time!!!
Thanks
Ludo
Re: Weird behaviour with QuoteMS
Posted: Mon May 26, 2008 8:44 pm
by Coume
Re: Weird behaviour with QuoteMS
Posted: Tue May 27, 2008 5:44 pm
by Dr.CSS
If you can FTP to the site, download it to your comp. then in the admin of site uninstall and remove it then FTP it back to site, this should give you access...
Re: Weird behaviour with QuoteMS
Posted: Tue May 27, 2008 9:39 pm
by Coume
In fact, all the modules that I installed through the module manager have been belong to the user and group apache and I cannot remove them,
EVEN from the Module panel.
They all have the change permission button but this button is like non-working.
I created a patched version of this patch and tried to install it manually to overwrite the actual one but due to permissions problems it fails.
I do not understand why I am having problem with the modules. It is like my CMS install 1.2.5 has a problem dealing with the file owner and permission.
btw, the ftp method does not work as the file belongs to the apache user. I cannot edit/remove/etc. them

I will ask to the hosting company to chown and chmod them...