- Posts: 11
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- At last, a working JCE Advanced Link plugin for K2 content items
At last, a working JCE Advanced Link plugin for K2 content items
- Bernard Parsons
-
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- Frank Gillespie
-
- Offline
- New Member
- Posts: 16
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.
- Frank Gillespie
-
- Offline
- New Member
- Posts: 16
Please Log in or Create an account to join the conversation.
- Frank Gillespie
-
- Offline
- New Member
- Posts: 16
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
-
Topic Author
- Offline
- Senior Member
- Posts: 48
Please Log in or Create an account to join the conversation.
- Frank Gillespie
-
- Offline
- New Member
- Posts: 16
Please Log in or Create an account to join the conversation.
- Robert Ö
-
- Offline
- New Member
- Posts: 4
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'
;
Please Log in or Create an account to join the conversation.
- Nicholas K. Dionysopoulos
-
Topic Author
- Offline
- Senior Member
- Posts: 48
$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
-
Topic Author
- Offline
- Senior Member
- Posts: 48
Please Log in or Create an account to join the conversation.
- Simon Olsen
-
- Offline
- Junior Member
- Posts: 34
Thank you for this plugin! Awesome work!
Please Log in or Create an account to join the conversation.
- Nicholas K. Dionysopoulos
-
Topic Author
- Offline
- Senior Member
- Posts: 48
Please Log in or Create an account to join the conversation.
- Simon Olsen
-
- Offline
- Junior Member
- Posts: 34
Your extension is still kicking arse.
Please Log in or Create an account to join the conversation.
- Nicholas K. Dionysopoulos
-
Topic Author
- Offline
- Senior Member
- Posts: 48
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- At last, a working JCE Advanced Link plugin for K2 content items