Keyword

Commenting on K2 blog using only social account

  • Filip Nikitovic
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #113408 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Commenting on K2 blog using only social account
Thank You once again.
Can You please look at my question again.

I edited my question.

Please,Im sorry.

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 4 months ago #113409 by Yiota
Read carefully my answer.
The change I provide occurs only to the K2 Item page and not in the category item, that is why you have to make the change only to the item.php file of your override.

Follow my instructions.
Search for the following if statement that starts with: $this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || .....

inside this if statement you should put the facebook comment box.

Please Log in or Create an account to join the conversation.

  • Filip Nikitovic
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #113410 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Commenting on K2 blog using only social account
Super.
Thank You very very much.

May I ask last one,,does google see facebook box comments as part of Your page?

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 4 months ago #113411 by Yiota

Please Log in or Create an account to join the conversation.

  • Filip Nikitovic
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #113412 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Commenting on K2 blog using only social account
Excellent.
You were very helpful.
Thank You for everything Yiota Ziaggou.

Please Log in or Create an account to join the conversation.

  • Filip Nikitovic
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago - 11 years 4 months ago #113413 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Commenting on K2 blog using only social account
Im very sorry,I really tried to do this but I have problems.

We have inserted the code inside the item.php file of the K2 template override (templates/YOUR_TEMPLATE/html/com_k2/default/item.php).


I didnt find item.php like that,insted I found it here root/components\com_k2\templates\default\item.php

I hope its the same file as You told me.

In item.php file at 579 line is this code
<?php if($this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)): ?>

Search for the following if statement that starts with: $this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || .....


I belive that is the right statment.

inside this if statement you should put the facebook comment box.


I dont get it just where in statement.

Can You please tell me where in this statment should I put facebook code?

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago - 11 years 4 months ago #113414 by Lefteris
I'm sorry, I had to be more precise.

You will have to create a K2 template override. The point of this is that you won't be hacking any core K2 files which upon update you will be lost. Copy the files in folder

components/com_k2/templates/
to
templates/YOUR_TEMPLATE/html/com_k2/.

Then open the file item.php that is located in your template folder and not the component's folder.

Locate the if statement I described earlier (that is the correct one you have posted), comment out all elements inside that if statement (or erase them) and paste your facebook code there.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Filip Nikitovic
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago - 11 years 4 months ago #113415 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Commenting on K2 blog using only social account
Problem again.

I disabled K2 comments before editing the code and when I tryed to turn on comments again nothing happened.

So i decided to start fresh from begining again,

Im working on wampserver on localhost,set everything for Joomla and installed K2 and I got this message.

Attachment not found



This happens in Joomla administration,when I click on K2 in components.
I also cleard Joomla cache but same error.

There is nothing on screen exept this message,so disabling error reporting dont help this time.

Then I tryed everything again from begining,and same error.

And then I deinstaled wampserver and instaled again,and I downloaded again K2,set everything for Joomla,installed that last K2 that I just downloaded and same error again.

Do You have any idea what is going on now?

Please help,Im going crazy here.
Attachments:

Please Log in or Create an account to join the conversation.

  • Filip Nikitovic
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago #113416 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Commenting on K2 blog using only social account
What is going on here.

Now when I click on components/K2/users it works.

And now when I click on components/K2 everything is ok.

Ok,so I will start with editing code from begining but I dont really know what just happend.

Please Log in or Create an account to join the conversation.

  • Filip Nikitovic
  • Filip Nikitovic's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 4 months ago - 11 years 4 months ago #113417 by Filip Nikitovic
Replied by Filip Nikitovic on topic Re: Commenting on K2 blog using only social account

Locate the if statement I described earlier (that is the correct one you have posted), comment out all elements inside that if statement (or erase them) and paste your facebook code there.


Sir please can You paste Your code here,how it should look after You edit this line
<?php if($this->item->params->get('itemComments') && ($this->item->params->get('comments') == '1' || ($this->item->params->get('comments') == '2')) && empty($this->item->event->K2CommentsBlock)): ?>

Please help, again.
Im trying to do this for few days and Im always doing something wrong.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum