joomGPStracks

...the GPS extension for Joomla

  • Increase font size
  • Default font size
  • Decrease font size
Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Jom Comment: 3rd Party Component Integration
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Jom Comment: 3rd Party Component Integration
#239
Jom Comment: 3rd Party Component Integration 2 Years, 5 Months ago Karma: 1
I use Jom Comment on my site and I was wondering if I could use it with joomGPStracks to keep a standard feel to my website.

According to Jom Comments Wiki it only need three lines of code to intergrate into any application.

Code:

global $mosConfig_absolute_path;
include_once($mosConfig_absolute_path. "/mambots/content/jom_comment_bot.php");
echo jomcomment($uid, "com_joomgpstracks");



Could you please show me where to use this code in your app.

It might even be a good feature to have to in the backend to let admins select jomGPStracks comment system, Jom Comments or none, as a lot of site use Jom Comments.
Jason
Expert Boarder
Posts: 85
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Eat, Sleep, Mountainbike
 
#245
Re:Jom Comment: 3rd Party Component Integration 2 Years, 5 Months ago Karma: 3
This code won`t work that way, this is for Joomla 1.0. Thats the right one.

Code:

require_once( JPATH_PLUGINS . DS . 'content' . DS . 'jom_comment_bot.php' );
echo jomcomment($this->track->id, "com_joomgpstracks");


You have to add it in views/tracks/tmpl/track.php after line 199, so it looks like this

Code:

endif;

<div class="no-float"></div>

require_once( JPATH_PLUGINS . DS . 'content' . DS . 'jom_comment_bot.php' );
echo jomcomment($this->track->id, "com_joomgpstracks");
// adding the comments
if($this->cfg->comments == 1):

    <div class="comments"><?php echo JText::_('GPS_COMMENTS'); ?></div>



Let me know if it works like this. If it does i include it as a feature. In the file there are ?php tags i have to delete in this example, otherwise the code here won`t be shown.
Michael
Administrator
Posts: 203
graph
User Offline Click here to see the profile of this user
Gender: Male MP Development Birthday: 08/02
Last Edit: 2009/08/17 07:42 By Michael.
The administrator has disabled public write access.
it`s not a bug, it`s a feature
 
#247
Re:Jom Comment: 3rd Party Component Integration 2 Years, 5 Months ago Karma: 1
Hi Michael, I tried the code, but I get a 500 error. Not sure what you meant by In the file there are ?php tags i have to delete in this example, otherwise the code here won`t be shown.

Could you please amend, zip and post the file track.php file here, and I will give it a try. Thanks
Jason
Expert Boarder
Posts: 85
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Eat, Sleep, Mountainbike
 
#248
Re:Jom Comment: 3rd Party Component Integration 2 Years, 5 Months ago Karma: 3
If it`s not working i have to take a longer look at the JomComment documentation.
File Attachment:
File Name: track.zip
File Size: 3152
Michael
Administrator
Posts: 203
graph
User Offline Click here to see the profile of this user
Gender: Male MP Development Birthday: 08/02
Last Edit: 2009/08/17 13:13 By Michael.
The administrator has disabled public write access.
it`s not a bug, it`s a feature
 
#249
Re:Jom Comment: 3rd Party Component Integration 2 Years, 5 Months ago Karma: 1
Thanks Michael, works perfectly
Jason
Expert Boarder
Posts: 85
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Eat, Sleep, Mountainbike
 
#254
Re:Jom Comment: 3rd Party Component Integration 2 Years, 5 Months ago Karma: 3
Your welcome

So i can add these as a feature and you have the choice between included commenting system, JomComment or none. Not bad.
Michael
Administrator
Posts: 203
graph
User Offline Click here to see the profile of this user
Gender: Male MP Development Birthday: 08/02
The administrator has disabled public write access.
it`s not a bug, it`s a feature
 
Go to topPage: 12

Online Users

None

Newsletter











drink-cultural