×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Compojoom and adsmanager

Compojoom and adsmanager 12 years 8 months ago #15676

  • RIBES Frederic
  • RIBES Frederic's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Hello,
I just bought your component Compojoom.
I uploaded the .zip and it worked.
Now and want to install it with adsmanager. I read in the documentation that one should hack the file adsmanager.php.html
Be aware that with the new adsmanager there no such file any longer. The ad view function was moved in components/com_adsmanager/views/details/tmpl/default.php
reading your doc, I added the line of code you give at line 178 after the </div>
I did that, but I get an error message
"Notice: Trying to get property of non-object in /homez.514/xnpitaph/www/administrator/components/com_comment/plugin/com_adsmanager/josc_com_adsmanager.php on line 5"

Any idea how to fix that ?
thanks
Lydia

Re: Compojoom and adsmanager 12 years 8 months ago #15686

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Lydia,
Sorry for the troubles -> did you try the plugin in our download section compojoom.com/downloads/compojoomcomment/compojoomcomment-4-2-1 - it should work with adsmanager 2.6.5 and higher.

Regards,
Daniel

Re: Compojoom and adsmanager 12 years 8 months ago #15693

  • RIBES Frederic
  • RIBES Frederic's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
ok thanks , I did download the plugin and activated it.

I have the following message on the front end of my website :
Fatal error: Class 'CommentPluginAdsmanager' not found in /homez.514/xnpitaph/www/plugins/adsmanagercontent/comment/comment.php on line 34

Any idea ?
thanks
Lydia

Re: Compojoom and adsmanager 12 years 8 months ago #15694

  • RIBES Frederic
  • RIBES Frederic's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
I found the thread from 2 months ago of someone having the same problem:
compojoom.com/forum/2-general-talk/15058...-work-on-adsmamanger

So I followed the changes you suggested on administrator/com_comment/plugin/com_adsmanager/josc_com_adsmanager.php
and I was able to see the link to add comments on my web site.
The problem is that I cannot write comments, so I followed the second suggestion in the same post :
change 2 functions in administrator/component/com_comment/plugin/com_adsmanager/josc_com_adsmanager.class.php

but I get the same error as in the post
"Fatal error: Call to undefined method JOSC_com_adsmanager::getCatId() in /var/www/..../administrator/components/com_comment/plugin/com_adsmanager/josc_com_adsmanager.class.php on line 120"

Did you manage to make it work ?
thanks
Lydia

Re: Compojoom and adsmanager 12 years 8 months ago #15695

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hm, can you create a private ticket and give me super admin + ftp access to your site? I'll fix the problem for you directly on the site.

Kind regards,
Daniel

Re: Compojoom and adsmanager 12 years 8 months ago #15696

  • RIBES Frederic
  • RIBES Frederic's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Hi Daniel,

thanks, actually if you fixed it in the past, please let me know how to do it.
I like to learn things, and also I usually try not to let too many ftp out there...because of company policy

thanks
Lydia

Re: Compojoom and adsmanager 12 years 8 months ago #15702

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hi Lydia,
So I installed adsmanager on my system again. And also installed the module - it works for me out of the box. Did you do the changes that I suggested in that thread:
compojoom.com/forum/2-general-talk/15058...-work-on-adsmamanger

Daniel

Re: Compojoom and adsmanager 12 years 8 months ago #15707

  • RIBES Frederic
  • RIBES Frederic's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Please read my previous post #15694 carefully.
I said that indeed I tried all the changes from the thread you mentioned and I get the same error as in the thread
"Fatal error: Call to undefined method JOSC_com_adsmanager::getCatId() in /var/www/..../administrator/components/com_comment/plugin/com_adsmanager/josc_com_adsmanager.class.php on line 120"

Is getCatId not defined ?

You should also mention in your doc that in newer version of adsmanager it is not the adsmanager.php.html that should be changed because this file doesn't exist anylonger.

thanks
Lydia

Re: Compojoom and adsmanager 12 years 8 months ago #15710

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
open josc_com_adsmanager.class.php

and look if it contains the getCatId. If it doesn't then add it the following function
	/**
	 * category id needed for url
	 * @param type $contentId 
	 */
	private function getCatId($contentId) {
		$db = JFactory::getDBO();
		$query = 'SELECT catid FROM ' . $db->nameQuote('#__adsmanager_adcat')
				. ' WHERE adid = ' . $contentId;
		$db->setQuery($query);
 
		return $db->loadObject()->catid;
	}

add it in the class definition not outside of it
 
class JOSC_com_adsmanager extends JOSC_component {
... some functions here
 
... add the getCatid here as well
}

Let me know if this solves it?
Daniel

Re: Compojoom and adsmanager 12 years 8 months ago #15711

  • RIBES Frederic
  • RIBES Frederic's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
It looks like it is working !
Great !
thanks
Lydia
  • Page:
  • 1
Time to create page: 0.189 seconds