Welcome Guest ( Log In | Register )

 Forum Rules Extensions Support
 
Reply to this topicStart new topic
> Microformatvotes In Kunena 2.0
ChaosHead
post Sep 7 2012, 10:08 AM
Post #1


Newbie
*

Group: Members
Posts: 4
Joined: 7-September 12
Member No.: 1,339



I need support, how to add Microformatvotes in Kunena 2.0?
thx


This post has been edited by ChaosHead: Sep 7 2012, 10:41 AM
Go to the top of the page
 
+Quote Post
Web Design Seo
post Sep 7 2012, 07:17 PM
Post #2


Web Design Seo
****

Group: Root Admin
Posts: 4,332
Joined: 29-April 09
From: Sofia
Member No.: 1



1. Buy and download latest version.
2. In package are install guides for two versions of Kunena - one for versions before 2.0, one for Kunena v.2.xx and over
3. Install guide for kunena is text file - just make all steps.

Ready - you will have votes system in Kunena on topics pages with microformats support.


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post
ChaosHead
post Sep 10 2012, 02:59 PM
Post #3


Newbie
*

Group: Members
Posts: 4
Joined: 7-September 12
Member No.: 1,339



A week ago, I downloaded the latest version 3.2.0. It contains instructions for Kunena 1.7.2.
In Kunena 2.0 does not have the file in which it is proposed to make changes.
Go to the top of the page
 
+Quote Post
Web Design Seo
post Sep 10 2012, 03:15 PM
Post #4


Web Design Seo
****

Group: Root Admin
Posts: 4,332
Joined: 29-April 09
From: Sofia
Member No.: 1



Tomorrow we will check latest kunena - 2.0.2 and will post here the right install code.


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post
Ivan Stamenov
post Sep 11 2012, 09:17 AM
Post #5


Advanced User
****

Group: Advanced Member
Posts: 218
Joined: 15-April 11
Member No.: 761



Цитат(Web Design Seo @ Sep 10 2012, 03:15 PM) *
Tomorrow we will check latest kunena - 2.0.2 and will post here the right install code.


ChaosHead, make this for KUNENA 2.0.2:

*********************************************************************
* Instructions for KUNENA v. 2.0.2 -- TOPIC
********************************************************************

1. Open /components/com_kunena/template/{your template, blue_eagle by default}/html/topic/default.php

2. Search for the following line

<div class="kheader">

Just below it add the following code:

<?php
#MicroformatsVotes BOM
if (JPluginHelper::importPlugin('content','microformatsvotes',true)) {
$seoparams = new JRegistry();
$seorow = new stdClass();
$seorow->mfv_id = $this->topic->id;
$seorow->mfv_title = $this->topic->subject;
$seorow->mfvtext = '';
JDispatcher::getInstance()->trigger('onContentBeforeDisplay', array('_com_kunena.topic', $seorow, $seoparams));
}
#MicroformatsVotes EOM
?>

3. A few lines below there is:

<?php if ($this->usertopic->favorite) : ?><div class="kfavorite"></div><?php endif ?>

After it insert the following code:

<?php
#MicroformatsVotes BOM
if (!empty($seorow->plgmfvhtml))
echo $seorow->plgmfvhtml;
#MicroformatsVotes EOM
?>

*********************************************************************
* Instructions for KUNENA v. 2.0.2 -- CATEGORY
*********************************************************************

If you intend to use the MFV tag, put it into the category header. Do the changes in 2. in both the files in 1a and 1b:

1a. Open /components/com_kunena/template/{your template, blue_eagle by default}/html/category/default.php
1b. Open /components/com_kunena/template/{your template, blue_eagle by default}/html/topic/default.php

2. Search for the following line

<?php echo KunenaHtmlParser::parseBBCode ( $this->category->headerdesc ) ?>

Just before it add the following code:

<?php
#MicroformatsVotes BOM
if (JPluginHelper::importPlugin('content','microformatsvotes',true)) {
$seoparams = new JRegistry();
$seorow = new stdClass();
$seorow->mfv_id = $this->category->id;
$seorow->mfv_title = $this->category->name;
$seorow->mfvtext = $this->category->headerdesc;
JDispatcher::getInstance()->trigger('onContentBeforeDisplay', array('_com_kunena.category', $seorow, $seoparams));
$this->category->headerdesc = $seorow->mfvtext;
}
#MicroformatsVotes EOM
?>

3. In 1a, a few lines below there is:

<h2><span><?php echo $this->escape($this->headerText); ?></span></h2>

After it insert the following code:

<?php
#MicroformatsVotes BOM
if (!empty($seorow->plgmfvhtml))
echo $seorow->plgmfvhtml;
#MicroformatsVotes EOM
?>
Go to the top of the page
 
+Quote Post
ChaosHead
post Sep 11 2012, 05:24 PM
Post #6


Newbie
*

Group: Members
Posts: 4
Joined: 7-September 12
Member No.: 1,339



Thanks, Ivan. But there is an error:
Warning: Parameter 2 to plgContentMicroformatsvotes::onContentBeforeDisplay() expected to be a reference, value given in /var/www/denkubani/data/www/denkubani.ru/libraries/joomla/event/event.php on line 71

What did I miss?

Joomla! 2.5.6, Kunena 2.0.2, my phpinfo: edited
Go to the top of the page
 
+Quote Post
Ivan Stamenov
post Sep 12 2012, 09:14 AM
Post #7


Advanced User
****

Group: Advanced Member
Posts: 218
Joined: 15-April 11
Member No.: 761



Цитат(ChaosHead @ Sep 11 2012, 06:24 PM) *
Thanks, Ivan. But there is an error:
Warning: Parameter 2 to plgContentMicroformatsvotes::onContentBeforeDisplay() expected to be a reference, value given in /var/www/denkubani/data/www/denkubani.ru/libraries/joomla/event/event.php on line 71

Joomla! 2.5.6, Kunena 2.0.2
What did I miss?


Hi, ChaosHead!

We have seen this odd PHP behaviour occasionally. In order to fix this you need to prepend an '&' char before the '$' sign in the beginning of the variables, passed to the plugin by the dispatcher, thus explicitly sending them by reference. E.g.: change in:
Код
/components/com_kunena/template/{your template, blue_eagle by default}/html/topic/default.php


this:
Код
JDispatcher::getInstance()->trigger('onContentBeforeDisplay', array('_com_kunena.topic', $seorow, $seoparams));


into
Код
JDispatcher::getInstance()->trigger('onContentBeforeDisplay', array('_com_kunena.topic', [color="#FF0000"]&[/color]$seorow, [color="#FF0000"]&[/color]$seoparams));
Go to the top of the page
 
+Quote Post
ChaosHead
post Sep 13 2012, 02:37 PM
Post #8


Newbie
*

Group: Members
Posts: 4
Joined: 7-September 12
Member No.: 1,339



CODE
JDispatcher::getInstance()->trigger('onContentBeforeDisplay', array('_com_kunena.topic', &$seorow, &$seoparams));


This work
Go to the top of the page
 
+Quote Post
Web Design Seo
post Nov 13 2012, 02:31 PM
Post #9


Web Design Seo
****

Group: Root Admin
Posts: 4,332
Joined: 29-April 09
From: Sofia
Member No.: 1



Latest updates - 13 November 2012: Now Microformats plugin work in Kunena 2.0 and Virtuemart 2.xx in combination with Joomla 1.5 also.

Integration is checked again today and working with latest Kunena 2.0.2 in both joomla versions - 1.5 and 2.5.


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No New Posts Kunena Doesn't Show Up
Cannot select Kunena for my Postings
2 linienland 30,181 15th September 2015 - 12:53 PM
Last post by: Web Design Seo
No New Posts Kunena 3.0 Release Breaks Post By Mail
Recently did a Kunena 3.0 upgrade to see what would happen
1 supamic 11,509 31st May 2013 - 05:36 AM
Last post by: Web Design Seo
No New Posts Kunena 2.0.4 Jomsocial Plugin Conflict With Seolinks
0 NosyWeb 30,891 28th May 2013 - 01:21 PM
Last post by: NosyWeb
No new Kunena Integration Problems - Post By Email
[solved]
31 agrawal_atul 207,941 22nd April 2013 - 07:27 AM
Last post by: Web Design Seo
No New Posts Microformatvotes Manage Votes
1 pienso 5,274 12th September 2012 - 11:26 AM
Last post by: Ivan Stamenov
No New Posts Pinned: Kunena plugin for sh404sef
sh404sef and Kunena forum
2 Web Design Seo 22,398 14th April 2010 - 06:44 AM
Last post by: 3D Web Design
No New Posts Kunena плъгин за sh404sef
sh404sef и Kunena форум
0 Web Design Seo 13,689 7th February 2010 - 09:57 AM
Last post by: 3D Web Design


 



RSS Lo-Fi Version Time is now: 2nd June 2026 - 03:43 AM