×

Notice

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

TOPIC: Compojoom and Azrul MyBlog

Compojoom and Azrul MyBlog 13 years 8 months ago #11698

  • Matt Bryan
  • Matt Bryan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Hello,
I have used the Compojoom with several plugins, but not with the notorious MyBlog. Has anybody got this working?
I have JomComment installed, but I am using this for something else and as you may know Jomcomment is not that flexible like Compojoom. (point being I can't just uninstall JomComment)

If anybody had any ideas, I would greatly appreciate it - I couldn't find anything on the site for Compojoom.

Thanks!

Compojoom and Azrul MyBlog 13 years 8 months ago #11701

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
There are a lot of users that use compojoomcommnet with MyBlog. Look at the compojoomComment documentation and you will see how easy the integration is :)

Cheers,
Daniel

Compojoom and Azrul MyBlog 13 years 8 months ago #11704

  • Matt Bryan
  • Matt Bryan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Hello,

I have followed the instructions in the documentation. I downloaded the plugin and enabled it. Then I published the mambot integration in MyBlog, then I created a new setting for MyBlog in the Compjoom component. Still nothing. I tried disabling Jomcomment to test (I read that somewhere) and that didn't work either.

Any more ideas? I must be missing something. I am running Joomla 1.5.22 and the latest versions of MyBlog and Compojoom. I so badly need this to work!

Thanks!

Compojoom and Azrul MyBlog 13 years 8 months ago #11705

  • Matt Bryan
  • Matt Bryan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Also, on a side note,
I do have CompojoomComent on the same site running with Jmylife and on just some standard articles, so I know it works with those.

Compojoom and Azrul MyBlog 13 years 8 months ago #11707

  • Nils Ally
  • Nils Ally's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 299
  • Thank you received: 33
Take a look at Page 13 of the Guide1.4 PDF.
I am guessing that's your problem...

Compojoom and Azrul MyBlog 13 years 8 months ago #11708

  • Matt Bryan
  • Matt Bryan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
The instructions and my code don't match at all, but I bet you are right. I will post what the code is in my index.tmpl.html file below. Any help on where to place the line of code listed in the help would be great. This is the line of code I am told to place around line 43:
<?php require(JPATH_SITE."/administrator/components/com_comment/plugin/com_myblog/josc_com_myblog _readmore.php"); ?>

But as the document asks, there is no line around there resembling this:
<p class="postSummary-footer">


Here is what my file looks like:
<?php
	if ($entry and is_array($entry) and count($entry) != 0)
	{
		foreach ($entry as $e)
		{
			$date = strtotime($e['created']);
			$month_day = strftime("%b ", $date) . strftime("%d", $date);
			$year = strftime("%Y", $date);
			$month_day = i8n_date($month_day);
		?>
 
<div class="entryContent">
    <div class="entry">
    	<table class="entryTitle">
			<tr>
				<td class="my-dateCell">
					<div class="dateContainer">		
						<div class="date">
							<div class="month"><span><?php echo $month_day; ?></span></div>
							<div class="year"><span><?php echo $year; ?></span></div>
						</div>
					</div>
				</td>
				<td class="my-titleCell">
					<div class="entry-title">
						<h3><a href="<?php echo $e['permalink']; ?>"><?php echo $e['title']; ?></a></h3>
						<p><?php echo JText::_('POSTED BY'); ?> <a href="<?php echo $e['authorLink']; ?>"><?php echo $e['author']; ?></a> in <?php echo $e['categories']; ?></p>
					</div>
				</td>
 
				<?php if(!empty($e['avatar'])){ ?>
				<td class="my-avatarCell">
					<div class="userAvatar">
					<?php echo $e['avatar']; ?>
					</div>
				</td>
				<?php } ?>
			</tr>
		</table>
		<?php
        	if (isset($e['beforeContent']))
			{ ?>
			<div class="onBeforePrepareContent">
				<?php echo $e['beforeContent'];?>
			</div>
			<?php
			}
		    ?>
        <div class="entry-body"> 
			<?php echo $e['text']; ?>
			<div class="clear"></div> 
		</div>
       <?php if (isset($e['afterContent']))
			{ ?>
			<div class="onAfterPrepareContent">
				<?php echo $e['afterContent'];?>
			</div>
			<?php
			}
		    ?>
		<div class="entry-footer">
			<?php
				if ($e['comments']!="") // if comments enabled
					echo '<div class="entry-comment"><a href="'.$e['permalink'].'#comments">'.$e['comments'] .'</a>';
				else
					echo '<div>';
				if ($e['comments']!="" and $e['readmore']=="1")
					 echo ' | ';
			?>
			<?php  // IF NEED READMORE
			if ($e['readmore']=="1")
			{ ?>
			<a href="<?php echo $e['permalink']; ?><?php echo $showAnchor; ?>"><?php echo JText::_('READMORE');?></a>
			<?php } ?>
			</div> 
		</div>
    </div>
</div>
<?php
		}
	}
?>

Thanks for any help, I can feel I am close!

Compojoom and Azrul MyBlog 13 years 8 months ago #11711

  • Matt Bryan
  • Matt Bryan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
I did find that line of code in the default template, but that doesn't seem to help when I change it, regardless of the template.

Compojoom and Azrul MyBlog 13 years 8 months ago #11712

  • Matt Bryan
  • Matt Bryan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Crazy, but I just loaded MyBlog and the Compojoom plugin on my live server in a leap of faith and I didn't even need to change any code, it just worked.
Haven't thoroughly tested, but it seems to work as it does in every other component. Must have been my local testing environment?

Thanks!

Compojoom and Azrul MyBlog 13 years 8 months ago #11714

  • Nils Ally
  • Nils Ally's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 299
  • Thank you received: 33
I think... if you check, your local testing environment might be using a different template...
Good it worked out, cause I had just started to check this closer...

Compojoom and Azrul MyBlog 13 years 8 months ago #11715

  • Nils Ally
  • Nils Ally's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 299
  • Thank you received: 33
But since I am not a programmer... etc

Compojoom and Azrul MyBlog 13 years 8 months ago #11716

  • Matt Bryan
  • Matt Bryan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Yes, I am not a programmer either, but it worked with the default template and then I switched templates to the one I use for other uses and it still worked. On my local environment it didn't work with any template.
Thanks for the help!

Compojoom and Azrul MyBlog 13 years 8 months ago #11719

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I'm so happy that you guys have sorted this out :)
Nils, thank you for the help!!!

Re: Compojoom and Azrul MyBlog 12 years 7 months ago #15607

  • MIreille Liong-A-Kong
  • MIreille Liong-A-Kong's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Make it a good day
  • Posts: 2
  • Thank you received: 0
Where can I download the plugin? I like to get it to work in MyBlog as well.

Re: Compojoom and Azrul MyBlog 12 years 7 months ago #15608

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081

Re: Compojoom and Azrul MyBlog 12 years 7 months ago #15612

  • MIreille Liong-A-Kong
  • MIreille Liong-A-Kong's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Make it a good day
  • Posts: 2
  • Thank you received: 0
Thanks. it works but I get this warning:


Warning: Invalid argument supplied for foreach() in libraries/joomla/html/html/select.php on line 536

Anything I should do?

Re: Compojoom and Azrul MyBlog 12 years 7 months ago #15616

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I'll need to have a look at your site. Please submit a new private ticket and provide me with login details.
Regards,
Daniel
  • Page:
  • 1
Time to create page: 0.151 seconds