×

Notice

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

TOPIC: mmsblog plugin?

mmsblog plugin? 15 years 3 weeks ago #7398

  • Royal Trude
  • Royal Trude's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 37
  • Thank you received: 0
well, like I said, it doesn't work: adding the code above to [joomla site root]/components/com_mmsblog/views/item/tmpl/default.php causes a blank screen when you click a link pointing to a MMSBLOG image.


similar problem with no answer:
compojoom.com/forum/9-plugins/5848-mms-p...-is-not-working#5867

mmsblog plugin? 15 years 3 weeks ago #7399

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
a blank page simple means that all php errors are turned off. Obviously the code is generating an error for you.

Check out the error log and tell us what it says.

mmsblog plugin? 15 years 3 weeks ago #7425

  • Royal Trude
  • Royal Trude's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 37
  • Thank you received: 0
will do... once I find the sys admin to set the php error reporting ON....

The original MMSBLOG [joomla site root]/components/com_mmsblog/views/item/tmpl/default.php, btw, did NOT include the marked ending tag of PHP (see the attached image)

Adding that to the code did not help though... but at least the blanc page disappeared.

mmsblog plugin? 15 years 3 weeks ago #7426

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
this is how my default.php looks like:
<?php
/**
* @version $Id: default.php 255 2008-09-04 04:42:00Z jenscski $
* @package MMS Blog
* @copyright Copyright (C) 2006 - 2008 Jens-Christian Skibakk. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
 
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
 
JHTML::_('behavior.modal');
JHTML::stylesheet('mmsblog.css', 'components/com_mmsblog/assets/');
 
$this->link = JRequest::getUri();
?>
<table class="contentpaneopen">
	<tr>
		<td class="contentheading" width="100%">
			<?php echo $this->row->subject; ?>
		</td>
	</tr>
</table>
<table class="contentpaneopen">
	<tr>
		<td width="70%" valign="top">
			<span class="small"><?php echo JText::sprintf('Written by site', $this->row->author); ?></span>
		</td>
	</tr>
	<tr>
		<td valign="top" class="createdate">
			<?php echo JHTML::_('date', $this->row->created, JText::_('DATE_FORMAT_LC2')) ?>
		</td>
	</tr>
	<?php if (count($this->row->media) && $this->conf->get('pos_media') == 1): ?>
	<tr>
		<td>
			<?php echo $this->loadTemplate('media'); ?>
		</td>
	</tr>
	<?php endif; ?>
	<tr>
		<td valign="top">
				<?php echo $this->row->content; ?>
		</td>
	</tr>
	<?php if (count($this->row->media) && $this->conf->get('pos_media') == 0): ?>
	<tr>
		<td>
			<?php echo $this->loadTemplate('media'); ?>
			</td>
	</tr>
	<?php endif; ?>
</table>
<?php
if ($this->conf->get('sharing', 1)) {
	echo $this->loadTemplate('sharing');
}
 
if ($this->conf->get('comments', 0))
{
	include_once(JPATH_PLUGINS.DS.'content'.DS.'jom_comment_bot.php');
	echo jomcomment($this->row->id, 'com_mmsblog');
}
?>
<!-- START joomlacomment INSERT -->
<div class="dm_description" style="text-align:center; vertical-align: bottom;">
<?php
global $option;
require(JPATH_SITE . "/administrator/components/com_comment/plugin/$option/josc_com_mmsblog.php");
?>
</div>
<!-- END OF joomlacomment INSERT -->
 
 

mmsblog plugin? 15 years 3 weeks ago #7430

  • Royal Trude
  • Royal Trude's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 37
  • Thank you received: 0
mine's 99% the same, "?>" was missing. Funny...

When activated, the page source reveals the problem: error received and the rest of the Joomla html generation is ignored.

compojoom.com/components/com_agora/img/m...setup03-20091021.jpg

obviously the parameter "$option" is not defined or cannot be read. Any suggestions?


edit: image not shown inline, changed to URL

(will check the php errors later)

mmsblog plugin? 15 years 3 weeks ago #7431

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
instead of option use
<!-- START joomlacomment INSERT -->
<div class="dm_description" style="text-align:center; vertical-align: bottom;">
<?php
require(JPATH_SITE . "/administrator/components/com_comment/plugin/com_mmsblog/josc_com_mmsblog.php");
?>
</div>
<!-- END OF joomlacomment INSERT -->

mmsblog plugin? 15 years 3 weeks ago #7440

  • Royal Trude
  • Royal Trude's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 37
  • Thank you received: 0
why sure, obviously... there's something fishy. That didn't help, html generation stopped in exactly the same phase... :unsure:

Lemme have those php errors checked... (note to self: /etc/php.ini )

mmsblog plugin? 15 years 3 weeks ago #7443

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, let me know what you found out. I'm really curious :)

mmsblog plugin? 15 years 1 week ago #7693

  • Royal Trude
  • Royal Trude's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 37
  • Thank you received: 0
This is the error that occurs when trying to view an image submitted to MMSBLOG:

Fatal error: Call to undefined method JOSC_com_mmsblog::getPageId() in [site]/components/com_comment/joscomment/comment.class.php on line 2864

mmsblog plugin? 15 years 1 week ago #7694

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
RT, you most probably are using beta2, but the mmsblog plugin that you have is not for beta 2.

your mmsblog plugin is missing the following function:
function getPageId() {
return $this->id;
}
Perhaps something more is also missing. The best thing would be to check the plugin comming with beta2 and make sure that you use it.

mmsblog plugin? 15 years 1 week ago #7696

  • Royal Trude
  • Royal Trude's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 37
  • Thank you received: 0
I'm using this one
compojoom.com/downloads/cat_view/56-joom...oomlacomment-plugins

Care to give me a pointer where I can download the beta2 mmsblog plugin, can't find it from your site... the one above is the only one I could find...

EDIT: I miseed those files in the PACKAGE of beta2 ZIP!

Blind me... ;)

mmsblog plugin? 15 years 1 week ago #7698

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
the mmsblog plugin is part of joomlacomment beta2 zip package.

mmsblog plugin? 15 years 1 week ago #7699

  • Royal Trude
  • Royal Trude's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 37
  • Thank you received: 0
it works now!

Oh well, just another example of "You need to add instructions for dummies" to every package...

;)
  • Page:
  • 1
  • 2
Time to create page: 0.197 seconds