Template Installation: variable undefined notice

Everything to do with Joomla! 1.5 templates and templating.
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
User avatar
juridakus
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Mon Aug 11, 2008 2:45 pm
Location: Casablanca, Maroc
Contact:

Template Installation: variable undefined notice

Postby juridakus » Tue Aug 12, 2008 1:19 pm

hello!
I have just finished to install a template Siteground42 in joomla 1.5, and i have some errors:
After the problem of text alignment, and the legacy module query,

I have this and i want to know his meaning and how to solve it
Notice: Undefined variable: gid in C:\Program Files\EasyPHP 2.0b1\www\Joomla_Fr\templates\siteground42\menu.php on line 8

here the code of menu.php

<div class="div">
<div id="menu">
<div class="menuc">
<div id="topnavi">
<ul>
<?php
$item_id = mysql_escape_string( $_GET['Itemid'] );
$qry = "SELECT id, name, link FROM #__menu WHERE menutype='mainmenu' and parent='0' AND access<='$gid' AND sublevel='0' AND published='1' ORDER BY ordering LIMIT 5";
$database->setQuery($qry);
$rows = $database->loadObjectList();
foreach($rows as $row) {
echo "<li><a href='$row->link&Itemid=$row->id' ".( $row->id == $item_id ? "class='current'" : "" )." ><span>$row->name</span></a></li>";
}
?>
</ul>
</div>
</div>
</div>
</div>


Thank for u'r help...

User avatar
juridakus
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Mon Aug 11, 2008 2:45 pm
Location: Casablanca, Maroc
Contact:

Re: Template Installation: variable undefined notice

Postby juridakus » Thu Aug 14, 2008 12:01 pm

it works fine now, i have just change variable $gid to $item_id ;) but i want to know if is there an application for your own template building in joomla?
how can check the 1.5 compatibility before installing an extension like a template or component? I see the 1.5 native mention but it's sometimes missing...
thank's
Last edited by juridakus on Mon Aug 18, 2008 8:43 pm, edited 1 time in total.

pridgen_words
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Jul 28, 2008 1:55 am

Re: Template Installation: variable undefined notice

Postby pridgen_words » Mon Aug 18, 2008 7:21 pm

I need help fast, I am unable to down ANY template what so ever! ... I get this error message

* JFolder::create: Could not create directory
* Warning! Failed to move file.

I used winzip and 7zip and neither of them work. I need to get this page done! I am pretty knowledgeable with Joomla, but for some odd reason it is not downloading any temp what so ever.

User avatar
juridakus
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Mon Aug 11, 2008 2:45 pm
Location: Casablanca, Maroc
Contact:

Re: Template Installation: variable undefined notice

Postby juridakus » Tue Aug 19, 2008 10:48 am

* JFolder::create: Could not create directory
* Warning! Failed to move file.

Try to download the template zip archive on your server and then process to install the file in the Administrator Menu -> Extensions -> Installation. If it doesn't work too, check the templates directory's permissions ( value set to 755) to allow JFolder for folders created.
I hope this will help you

sallywon
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Aug 19, 2008 10:32 am

Re: Template Installation: variable undefined notice

Postby sallywon » Tue Aug 19, 2008 11:01 am

Thank you juridakus it was usefull for me.


Return to “Templates for Joomla! 1.5”

Who is online

Users browsing this forum: Google Feedfetcher and 17 guests