Keyword

At last, a working JCE Advanced Link plugin for K2 content items

More
13 years 1 month ago #75011 by Bernard Parsons
Thanks for your help, it was there the whole time just looking in the wrong place. Installed perfectly. :)

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

More
13 years 1 month ago #75012 by Frank Gillespie
Hi - Web design novice here

I tried to install the plug in and all I got was a blank page. I installed other plugins fine. Ho an I solve this

Thanks

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

More
13 years 1 month ago #75013 by Frank Gillespie
Very Sorry me again - The plug in seemed to install but when I tried to link text in an article/item i got a "restricted acess" message. What have I done wrong?

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

More
13 years 1 month ago #75014 by Frank Gillespie
Novice here AGAIN

Ok Nic, feel stupid - just figured it out - I was looking in the joomla content and not the K2 content tab. It is working. You said in a previous post that this jouney is exciting - can not wait for the "excitment" when the frustration passes!!

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

  • Nicholas K. Dionysopoulos
  • Nicholas K. Dionysopoulos's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 4 weeks ago #75015 by Nicholas K. Dionysopoulos
Replied by Nicholas K. Dionysopoulos on topic At last, a working JCE Advanced Link plugin for K2 content items
I'm glad you got it figured out! Frustration is part of the journey, but that's what makes it exciting. Soon enough everything falls into place and you get a very strong "aha" factor :)

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

More
13 years 4 weeks ago #75016 by Frank Gillespie
thks

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

More
13 years 1 month ago #75017 by Robert Ö
Hi guys, just a quick post regarding those of you who might be playing around with the K2 v2.5 (SVN) version.The plugin did not work for me when I tried it (Yes, version is not for production but still I wanted to post this fix just to give a heads up before a future K2 release), Nicholas will most likly do a propper fix for this issue when K2 2.5 goes stable. I did a very quick and dirty edit to get the plugin to work with the version:

File: components/com_jce/editor/extensions/links/k2links/k2.php
row 78 - 86, Remove:
if(version_compare(JVERSION,'1.6.0','ge')) {
$user =& JFactory::getUser();
$query .= ' AND access <= '.(int) $user->get('aid');
}

$query .=
' AND parent = '.$db->Quote($parent_id)
. ' ORDER BY ordering ASC'
;

row 100 - 109, remove:
if(version_compare(JVERSION,'1.6.0','ge')) {
$user =& JFactory::getUser();
$query .= ' AND access <= '.(int) $user->get('aid');

}

$query .=
' AND catid = '.$db->Quote($category_id)
. ' ORDER BY ordering ASC'
;
Again, not pretty but it will make the "K2 Content" working atleast,  :)

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

  • Nicholas K. Dionysopoulos
  • Nicholas K. Dionysopoulos's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 4 weeks ago #75018 by Nicholas K. Dionysopoulos
Replied by Nicholas K. Dionysopoulos on topic At last, a working JCE Advanced Link plugin for K2 content items
The correct solution is to replace:

$query .= ' AND access <= '.(int) $user->get('aid');

with

$query .= ' AND access IN ('.implode(',', $user->authorisedLevels()).')';

in the file you mentioned. The first line won't work on Joomla! 1.6/1.7 as there is no aid column any more. Instead, we have to fetch the list of the user's authorised view levels and make sure the category/article belongs to one of them. A fixed version will be posted shortly after I get back from vacation :)

 

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

  • Nicholas K. Dionysopoulos
  • Nicholas K. Dionysopoulos's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 3 weeks ago #75019 by Nicholas K. Dionysopoulos
Replied by Nicholas K. Dionysopoulos on topic At last, a working JCE Advanced Link plugin for K2 content items
I updated the plugin to work with Joomla! 1.7 and K2 2.5 (and, of course, Joomla! 1.5 and K2 2.1 or later!). The new download can be found at www.dionysopoulos.me/blog/k2-meets-jce-2_0

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

More
12 years 11 months ago #75020 by Simon Olsen
Worked perfectly on my JCE Admin 2.0.14 and K2 2.4.1 on my Joomla 1.5.23 website. Don't know why dionysopoulos says it won't work with J1.5 on his blog

 

Thank you for this plugin! Awesome work!

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


Powered by Kunena Forum