The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Aug 12, 2008 1:19 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Aug 11, 2008 2:45 pm
Posts: 24
Location: Casablanca, Maroc
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...


Top
 Profile  
 
PostPosted: Thu Aug 14, 2008 12:01 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Aug 11, 2008 2:45 pm
Posts: 24
Location: Casablanca, Maroc
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.

Top
 Profile  
 
PostPosted: Mon Aug 18, 2008 7:21 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jul 28, 2008 1:55 am
Posts: 2
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.


Top
 Profile  
 
PostPosted: Tue Aug 19, 2008 10:48 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Aug 11, 2008 2:45 pm
Posts: 24
Location: Casablanca, Maroc
Quote:
* 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


Top
 Profile  
 
PostPosted: Tue Aug 19, 2008 11:01 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Aug 19, 2008 10:32 am
Posts: 2
Thank you juridakus it was usefull for me.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 



Who is online

Users browsing this forum: No registered users and 29 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group