Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
Universatil (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Universatil
#48624
Universatil 6 Months, 1 Week ago  
www.bestofjoomla.com/joomla-templates/universatil.html

I can't get this template to work! I keep getting this error:
Notice: Undefined variable: teasertop1 in /home/username/public_html/templates/universatil/includes/modules-configuration.php on line 30

This is particularly frustrating since there isn't any code on line 30 and in fact, there isn't anything but comments above line 30!

So I looked more at the code and there are several spaces and blank lines below the closing tag "?>" at the bottom around line 85 so I removed them. Here is the new error message.
Notice: Undefined variable: teasertop1 in /home/username/public_html/templates/universatil/includes/modules-configuration.php on line 59

Now I don't understand how deleting lines at the end of the code causes the error to change line numbers????

Now a bit about my installation:

Joomla 1.5.2
No data installed except 1 article, 1 user, 1 searchbot, and a few templates.

I'm wondering if because I don't have a populated website, the template is missing data. For example, if I place a custom module in the "teasertop1" module position, the error goes away.

Anyhow, I modified the code in that file to eliminate the error meessage:
Code:


<?php
/**
 * @version $Id: modules-configuration.php $
 * @package Joomla
 * @subpackage Templates / Universatil template
 * @copyright Copyright (C) 2004 - 2007 55thinking Solutions S.L. All rights reserved.
 * @contact email: XXXXXXXXXXXXXXXXX
 * @license GNU/GPL - Proposal for 1.5 Templates Contest - September 2007
 * Joomla! is free software. This version may have been modified pursuant to the
 * GNU General Public License, and as distributed it includes or is derivative
 * of works licensed under the GNU General Public License or other free or open
 * source software licenses. See COPYRIGHT.php for copyright notices and
 * details.
 */
 
 // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );


if ($this->countModules('teasertop1 or teasertop2 or teasertop3 or teasertop4 or teaserbottom1 or teaserbottom2 or teaserbottom3 or teaserbottom4 or footer or syndicate or showcredit')){


/* Count the number of the teaser modules at top*/
if ($this->countModules('teasertop1')){
$teasertop1 = 1;
}
else{
$teasertop1 = 0;
}
if ($this->countModules('teasertop2')){
$teasertop2 = 1;
}
else{
$teasertop2 = 0;
}
if ($this->countModules('teasertop3')){
$teasertop3 = 1;
}
else{
$teasertop3 = 0;
}
if ($this->countModules('teasertop4')){
$teasertop4 = 1;
}
else{
$teasertop4 = 0;
}

/* output the top total */
$teasertop_total = ($teasertop1 + $teasertop2 + $teasertop3 + $teasertop4);

/* Count the number of the teaser modules at bottom*/
if ($this->countModules('teaserbottom1')){
$teaserbottom1 = 1;
}
else{
$teaserbottom1 = 0;
}
if ($this->countModules('teaserbottom2')){
$teaserbottom2 = 1;
}
else{
$teaserbottom2 = 0;
}
if ($this->countModules('teaserbottom3')){
$teaserbottom3 = 1;
}
else{
$teaserbottom3 = 0;
}
if ($this->countModules('teaserbottom4')){
$teaserbottom4 = 1;
}
else{
$teaserbottom4 = 0;
}

/* output the bottom total */
$teaserbottom_total = ($teaserbottom1 + $teaserbottom2 + $teaserbottom3 + $teaserbottom4);
}
?>


There are more efficient methods to write the code but this is clean and easy to read! I'll look at optimizing the code after I figure out the rest of the problems!


On to the next problem...

With or without the error message described above, I get a "Error" message on the search component. It is stylized with the template and doesn't provide any information about the error. If I try to search for something, I get a text only version of my website.

I do however get an error message I can work with...
Notice: Undefined property: SearchViewSearch::$image in /home/username/public_html/templates/universatil/html/com_search/search/default_results.php on line 11

Again, I'm assuming that I get this message because I don't have some data installed that the template is looking for...

I looked at that line to find that it looks for an image that doesn't seem to exist.

If I remove it, the search component still gives a generic error message and when searching, no styling is applied to the website.

Looks like the author didn't code any error reporting or account for data not being included in some setups.

I'll try the template on another Joomla 1.5.2 installation with all of the sample data included to see how that works...

I'll get back to you.

vujsa
vujsa (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Handy PHP Location: Indianapolis, Indiana, U.S.A. Birthdate: 1974-01-27
Logged Logged
 
Last Edit: 2008/04/08 01:34 By vujsa.
 
Handy PHP, a PHP support and download website offering free help and scripts.
 
The administrator has disabled public write access.  
#48627
Re:Universatil 6 Months, 1 Week ago  
Well, sorry to double post but I did a new Joomla 1.5.2 installation with the default sample data and the template still won't work.

This is really a shame, I was looking forward to using this template.

Thanks,
vujsa
vujsa (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Handy PHP Location: Indianapolis, Indiana, U.S.A. Birthdate: 1974-01-27
Logged Logged
 
Handy PHP, a PHP support and download website offering free help and scripts.
 
The administrator has disabled public write access.  
Go to top