Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 5:37 am (All times are UTC )

 




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: rd_sitemap
Posted: Sat Mar 18, 2006 10:15 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Sep 16, 2005 3:14 pm
Posts: 246
i installed RD SITEMAP component and worked fine untill few rev. back...

now i'm getting error:
Code:
Fatal error: Call to a member function get() on a non-object in C:\AppServ\www\J11\components\com_rd_sitemap\rd_sitemap.php on line 23


rd_sitemap.php source:
Code:
20   $menu =& new mosMenu( $database );
21   $menu->load( $Itemid );
22   $params =& new mosParameters( $menu->params );
23   $first = $params->get('first','1');
24   $showmenu = $params->get('showmenu','1');
25   $showcontent = $params->get('showcontent','1');
26   $showachiv = $params->get('showachiv','1');
27   $title = $params->get('title','Sitemap');
28   $divclass = $params->get('divclass','');


so please help me fix this...


Last edited by Jinx on Wed May 24, 2006 7:14 pm, edited 1 time in total.

Top
   
 
 Post subject: Re: rd_sitemap component
Posted: Tue Mar 21, 2006 9:58 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Sep 16, 2005 3:14 pm
Posts: 246
work OK again after in rev. 2861

Web


Top
   
 
 Post subject: Re: rd_sitemap component
Posted: Wed Apr 12, 2006 11:22 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Sep 16, 2005 3:14 pm
Posts: 246
REV 3099: RD_SITEMAP broken again ....

i got error:
Code:
Fatal error: Cannot instantiate non-existent class: mosmenu in c:\appserv\www\j15\components\com_rd_sitemap\rd_sitemap.php on line 20


so i changed:

Code:
$menu =& new mosMenu( $database );
$menu->load( $Itemid );
$params =& new mosParameters( $menu->params );


to

Code:
$menu = & JTable::getInstance('menu', $db);
$menu->load($Itemid);
$params = new JParameter($menu->params);


but now i get this error:

Code:
Fatal error: Call to a member function on a non-object in c:\appserv\www\j15\libraries\joomla\database\table.php on line 196


is there anythig else i need to change?


Top
   
 
 Post subject: Re: rd_sitemap component
Posted: Fri Apr 14, 2006 9:18 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Sep 16, 2005 3:14 pm
Posts: 246
PLEASE, can someone HELP ME ?


Top
   
 
 Post subject: Re: rd_sitemap component
Posted: Wed Apr 26, 2006 10:32 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Nov 08, 2005 6:43 pm
Posts: 214
Location: the Netherlands
Websitemaker wrote:
Code:
$menu = & JTable::getInstance('menu', $db);
$menu->load($Itemid);
$params = new JParameter($menu->params);


but now i get this error:

Code:
Fatal error: Call to a member function on a non-object in c:\appserv\www\j15\libraries\joomla\database\table.php on line 196


is there anythig else i need to change?


Mhzzz... I'm also working on this. I still do not really get what JMenu and JParameter do, so if you can helping me with it. I think it has something to do with widgets like headers, printing buttons, etc... What I can say your piece of sourcecode looks very similar to a piece of code in /components/com_weblinks/weblinks.php (Weblink Component). Maybe this is what you need. Maybe you can explain me what the purpose/working is of these classes. A little bit of code:

Code:
$menu = JMenu::getInstance();
$menu = $menu->getItem($Itemid);

$params = new JParameter($menu->params);
$params->def('page_title', 1);
$params->def('header', $menu->name);
$para........ (etc.)


Kind regards,
Mark


Top
  E-mail  
 
 Post subject: Re: rd_sitemap
Posted: Wed May 24, 2006 7:15 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Fri Aug 12, 2005 12:47 am
Posts: 6431
Mark,

Where u able to solve this question or do u need further guidance ?

_________________
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.nooku.org - multi-lingual content manager and rapid extension development framework for Joomla 1.5
http://www.joomlatools.eu - training, consulting and extension development


Top
   
 
 Post subject: Re: rd_sitemap
Posted: Wed May 24, 2006 8:30 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Nov 08, 2005 6:43 pm
Posts: 214
Location: the Netherlands
Jinx wrote:
Where u able to solve this question or do u need further guidance ?


Hello Jinx,

Thank you for your attention... Most things in Joomla! I learn just by looking into code and browsing into api.joomla.org . This is code that is used in (almost) any component, but still I don't really get what the purposes of these classes JMenu and JParameter are and how I can use them in a correct way.

So the answer is... Yes: I might need some information on this. So if you have time? Thank you in advance.

Kind regards,
Mark


Top
  E-mail  
 
 Post subject: Re: rd_sitemap
Posted: Tue Apr 24, 2007 6:40 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Fri Aug 12, 2005 12:47 am
Posts: 6431
Sure, what you struggling with ?

_________________
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.nooku.org - multi-lingual content manager and rapid extension development framework for Joomla 1.5
http://www.joomlatools.eu - training, consulting and extension development


Top
   
 
 Post subject: Re: rd_sitemap
Posted: Tue Apr 24, 2007 9:31 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Nov 08, 2005 6:43 pm
Posts: 214
Location: the Netherlands
Jinx wrote:
Sure, what you struggling with ?


Hi Johan,

I almost forgot this thread... Thanks for your offer to help me out, but in the meantime I've taken a big dive in the JParameter and the JMenu classes so now things are clear to me.  :pop

I don't know if Websitemaker needs more assistance in his specific problem though?

Cheers, Mark


Top
  E-mail  
 
 Post subject: Re: rd_sitemap
Posted: Tue Sep 25, 2007 1:53 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Thu Aug 18, 2005 6:50 am
Posts: 294
Location: Germany - Aachen
I have updated my sitemap for 1.5, atm for rc1

download here: http://www.run-digital.com/download/run ... a_1_5.html

or with small changes for rc2

in adapter/joomla/menu.php

Code:
class RdMenu extends JMenu
{
   function getInstance()
   {
      return JSite::getMenu();
   }
}


Some documentation here: http://service.run-digital.com/trac/wik ... DokuV2v0vJ (german)

and here: http://service.run-digital.com/trac/wik ... uV2v0vJ_en (english, incomplete)

_________________
Best regards, Robert
--
My Blog: http://www.robert-deutz.de


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 1 guest


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 © 2000, 2002, 2005, 2007 phpBB Group