Keyword

Advanced Search

Search Results (Searched for: How do I check K2 version)

  • Silvia Greco
  • Silvia Greco's Avatar
17 Nov 2014 11:22
Replied by Silvia Greco on topic K2 Portfolio Component

K2 Portfolio Component

Category: English K2 Community

Kannan Naidu Venugopal wrote: Hi Greg,

Nope, the portfolio with animated sort is not a standard component of K2.

You can check out isotope js - isotope.metafizzy.co/

See the filtering demo - isotope.metafizzy.co/demos/filtering.html

and how it's implemented - isotope.metafizzy.co/docs/filtering.html


Hello,
I'm sorry but have not yet been able to solve my problem with filters ( isotope.metafizzy ) used in the selection displayed in the portfolio .
I downloaded the version Quickstar and changing the categories and the items are displayed correctly only on the first link ( all work) but not by typing the link corresponding to the items changed !!
as if they would'n update the new items implemented .
How do I fix ???? Help me please!!!!
thanks so much
the link :

www.sylvia.netsons.org/sylvia/index.php?...;id=1&Itemid=115

attch:
imgur.com/1qkfaHI
imgur.com/lwiBzez
  • Evanggelos
  • Evanggelos's Avatar
22 Oct 2014 16:37
[SOLVED] k2 module was created by Evanggelos

[SOLVED] k2 module

Category: English K2 Community

hi i want to create module for k2 .
i want your help.
when i select from module id 1 from item to show title and fulltext from db.
i want to select multi id from admin e.g Select id : 1, 2

query is this $db = JFactory::getDbo();
$query = 'SELECT * FROM #__k2_items WHERE id ='.$params->get('id');
$db->setQuery($query);
$result = $db->LoadObjectList();
return $result;


loop is this : <div class="nameclas" style="width:200px;">
<?php foreach ($result as $row) :?>
<h1><?php echo $row->title; ?> </h1>
<?php endforeach ; ?>
</div> :(


if i select id 1 from backend My returns the title one..
if i select id 1, 2 from backend i have this error... You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2' at line 1 SQL=SELECT * FROM d1l9y_k2_items WHERE id =1,2..... please help me... sorry for my english sucks :D

​Best regards,
Evanggelos E. Goritsas
  • Katarzyna
  • Katarzyna's Avatar
14 Oct 2014 18:20
Cannot create K2 category:( was created by Katarzyna

Cannot create K2 category:(

Category: English K2 Community

Hi!


I'm very new to Joomla and K2;) I would like to add new K2 category however everytime I do it I'm redirected to the blank page. Of course new category is not created. I've checked some forums where I found that I need to enable mbstring, however I check in my Joomla settings and it's ON. Reinstalling K2 is not giving expected results. What else can I do?

My Joomla version: 2.5.27

PHP version: 5.4.30



Best

Kate
  • Lefteris
  • Lefteris's Avatar
10 Oct 2014 13:55
Replied by Lefteris on topic Show number of comments when not logged in

Show number of comments when not logged in

Category: English K2 Community

@Bart Coenen

Ensure that you are using the latest version of K2. Also check that you do not have any custom template overrides.
  • Tero Kankaanperä
  • Tero Kankaanperä's Avatar
26 Sep 2014 20:08
Replied by Tero Kankaanperä on topic FPSS messes up the assets table!

FPSS messes up the assets table!

Category: Frontpage Slideshow

The reason they get parent_id zero is that the asset of the category is not saved correctly. That's why i asked you to edit the category and save it.

The asset category has now been opened and saved.

When slides are saved their asset entries should get as parent the asset id of the category. If that's zero then you have a problem.

I know.

The category's asset entry now should have as parent the id of the component entry. Once again if this is zero there is a problem.

This has been the case the whole time.

How you transferred the slides out of the category? Have you moved them to a different category? Have the assets changed correctly when you moved them? Can you check all the FPSS relevant asset entries? Can you verify that FPSS is indeed inserting zeros while the data is different in the assets table? A dump of the FPSS related entries of your database would be very helpful.

I created a new category called "temp" and opened the slides one by one and set them to this new category. After that did the same transfering them back to the original category. I did not check the database in between the transfers to make sure that the cahnges took place but on the Slides-view they seem to have the correct category.
I opened the assets-table in PHPMyAdmin and searched the name field for fpss with the LIKE %..% search. This resulted in six entries.
One for com_fpss (the component) with parent_id 1, level 1 and id 863.
One for com_fpss_category.2 with parent_id 863 and level 2 and id 2167
One for each com_fpss_slide.5 through 8 with parent_id 0 and level 3 each.
I then manually corrected the parent_ids of the slides to 2167.
This problem has now surfaced two times and these are the only times that slides have been added to FPSS, so I would deem the connection established and causality confirmed but certainly I can try to duplicate it once more.

Here's a FPA generated report on the site:

Part of the message is hidden for the guests. Please log in or register to see it.
  • Timo
  • Timo's Avatar
25 Sep 2014 13:51
Frontend add or edit item fails was created by Timo

Frontend add or edit item fails

Category: English K2 Community

Hello!

I have a new K2 section in my site that I have been building up few weeks. Everything else is working fine but there is one problem and I´m totally stuck with it. I can edit and publish from backend but not in front.

Problem is that when I edit or try to add item, a lightbox window appears and after editing when I press save button nothing is saved. Instead this box does not close and content in it is my frontpage. When I try to close this box it wont close.

I have tried several templates, disabled css, tried overrides, tested every jquery version that is listed in k2 parametres. Groups and rights are ok. frontend editing is enabled, have tried to disable mootools, and disable jquery but no result. Tried to disable almost every other plugin. Tried to use k2 user module also but no result with add or edit.

Joomla! 2.5.25 tested also with 2.5..24
PHP 5.4.23
K2 version is from dev tested with 2.6.8 downloaded from k2org also
Template is beez 5
No extra modules on k2 site, no K2 modules either

My sourcecode shows these scripts

<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/modal.js" type="text/javascript"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js" type="text/javascript"></script>
<script src="/components/com_k2/js/k2.js?v2.7.0&amp;sitepath=/" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/templates/beez5/javascript/md_stylechanger.js" type="text/javascript" defer="defer"></script>
<script type="text/javascript">

There are also some javascript errors in firefox console

TypeError: anonymous function does not always return a value mootools-core.js:123
TypeError: anonymous function does not always return a value mootools-core.js:338
TypeError: anonymous function does not always return a value mootools-core.js:340
TypeError: anonymous function does not always return a value mootools-core.js:382
ReferenceError: reference to undefined property v mootools-core.js:42
ReferenceError: reference to undefined property Element.prototype.fireEvent mootools-core.js:260
ReferenceError: reference to undefined property a[1] mootools-core.js:272
Use of getAttributeNode() is deprecated. Use getAttribute() instead. mootools-core.js:343
TypeError: variable a redeclares argument core.js:9
TypeError: function checkAll does not always return a value core.js:12
SyntaxError: property name unit appears more than once in object literal modal.js:11
TypeError: anonymous function does not always return a value modal.js:19
TypeError: function An does not always return a value jquery.min.js:2
TypeError: function Fn does not always return a value jquery.min.js:2
TypeError: function In does not always return a value jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
TypeError: function o does not always return a value jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
SyntaxError: test for equality (==) mistyped as assignment (=)? jquery.min.js:2
TypeError: anonymous function does not always return a value jquery.min.js:2
ReferenceError: reference to undefined property v.valHooks[this] jquery.min.js:2
TypeError: function getUrlParams does not always return a value k2.js:14
ReferenceError: reference to undefined property e.selector jquery.min.js:2
ReferenceError: reference to undefined property e.nodeType jquery.min.js:2
TypeError: anonymous function does not always return a value mootools-more.js:247
TypeError: anonymous function does not always return a value mootools-more.js:254
TypeError: anonymous function does not always return a value mootools-more.js:378
TypeError: anonymous function does not always return a value mootools-more.js:385
TypeError: anonymous function does not always return a value mootools-more.js:612
TypeError: anonymous function does not always return a value mootools-more.js:625
TypeError: anonymous function does not always return a value mootools-more.js:628
TypeError: anonymous function does not always return a value mootools-more.js:635
TypeError: anonymous function does not always return a value mootools-more.js:638
TypeError: anonymous function does not always return a value mootools-more.js:650
TypeError: anonymous function does not always return a value mootools-more.js:686
TypeError: anonymous function does not always return a value mootools-more.js:694
SyntaxError: property name getSelected appears more than once in object literal mootools-more.js:695
TypeError: anonymous function does not always return a value mootools-more.js:699
TypeError: anonymous function does not always return a value mootools-more.js:700
TypeError: anonymous function does not always return a value mootools-more.js:702
SyntaxError: property name getSelected appears more than once in object literal mootools-more.js:703
TypeError: anonymous function does not always return a value mootools-more.js:705
ReferenceError: reference to undefined property this.Binds mootools-more.js:27
ReferenceError: reference to undefined property this.document mootools-core.js:192
ReferenceError: reference to undefined property this.document mootools-core.js:170
ReferenceError: reference to undefined property (intermediate value).parsed mootools-more.js:129
ReferenceError: reference to undefined property v.event.triggered jquery.min.js:2
ReferenceError: reference to undefined property v.event.triggered jquery.min.js:2
ReferenceError: reference to undefined property e.returnValue jquery.min.js:2
Use of getPreventDefault() is deprecated. Use defaultPrevented instead. jquery.min.js:2
ReferenceError: reference to undefined property n.result

I dont have any idea what should I do now. Please can you give me some advice

Kind regards
Timo
  • Paul Andrews
  • Paul Andrews's Avatar
11 Sep 2014 02:59

[SOLVED] Items not showing in subcategories in back end.

Category: English K2 Community

HI thanks for your support. This is what I see:

500 - An error has occurred.
JDatabaseMySQLi::query: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT i.*, g.title AS groupname, c.name AS category, v.name AS author, w.name' at line 1 SQL=SELECT DISTINCT i.`id`,DISTINCT i.*, g.title AS groupname, c.name AS category, v.name AS author, w.name as moderator, u.name AS editor FROM sstuwa_k2_items as i LEFT JOIN sstuwa_k2_categories AS c ON c.id = i.catid LEFT JOIN sstuwa_viewlevels AS g ON g.id = i.access LEFT JOIN sstuwa_users AS u ON u.id = i.checked_out LEFT JOIN sstuwa_users AS v ON v.id = i.created_by LEFT JOIN sstuwa_users AS w ON w.id = i.modified_by LEFT JOIN sstuwa_k2_additional_categories AS ca ON ca.`itemID` = i.`id` WHERE i.trash=0 AND (i.catid IN (466,50,73,76,190,250,282,292,302,303,305,317,318,319,320,321,505) OR ca.`catid` IN (466,50,73,76,190,250,282,292,302,303,305,317,318,319,320,321,505)) ORDER BY i.id DESC LIMIT 0, 30

Return to Control Panel

Call stack
# Function Location
1 JAdministrator->dispatch() /home/sstuwa/public_html/administrator/index.php:46
2 JComponentHelper::renderComponent() /home/sstuwa/public_html/administrator/includes/application.php:153
3 JComponentHelper::executeComponent() /home/sstuwa/public_html/libraries/joomla/application/component/helper.php:348
4 require_once() /home/sstuwa/public_html/libraries/joomla/application/component/helper.php:380
5 JController->execute() /home/sstuwa/public_html/administrator/components/com_k2/k2.php:135
6 K2ControllerItems->display() /home/sstuwa/public_html/libraries/joomla/application/component/controller.php:761
7 K2Controller->display() /home/sstuwa/public_html/administrator/components/com_k2/controllers/items.php:21
8 JController->display() /home/sstuwa/public_html/administrator/components/com_k2/controllers/controller.php:32
9 K2ViewItems->display() /home/sstuwa/public_html/libraries/joomla/application/component/controller.php:722
10 K2ModelItems->getData() /home/sstuwa/public_html/administrator/components/com_k2/views/items/view.html.php:64
11 JDatabase->loadObjectList() /home/sstuwa/public_html/administrator/components/com_k2/models/items.php:128
12 JDatabaseMySQLi->execute() /home/sstuwa/public_html/libraries/joomla/database/database.php:1126
13 JError::raiseError() /home/sstuwa/public_html/libraries/joomla/database/database/mysqli.php:396
14 JError::raise() /home/sstuwa/public_html/libraries/joomla/error/error.php:251
  • Dominic Danson
  • Dominic Danson's Avatar
08 Sep 2014 11:53
Replied by Dominic Danson on topic Text field in plugin won't save

Text field in plugin won't save

Category: English K2 Community

Hi Mohamed,

Sure:

video.xml:

<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin" group="k2" method="upgrade">
<name>Video Backgroud plugin</name>
<author>Dominic Danson</author>
<creationDate>September 5th, 2014</creationDate>
<version>1.2</version>
<license>www.gnu.org/licenses/gpl-2.0.html GNU/GPL
<description>A plugin to place a video background onto pages.</description>
<files>
<filename plugin="video">video.php</filename>
</files>
<config>
<fields name="params">
<fieldset name="basic">
</fieldset>
</fields>
</config>
<fields group="item-content">
<field name="videoURL" type="textarea" size="60" label="URL to the mp4 source file" description="" />
<field name="image" type="media" directory="images" label="Fallback image" description="" />
</fields>
</extension>

video.php:

<?php
defined('_JEXEC') or die ;

JLoader::register('K2Plugin', JPATH_ADMINISTRATOR.'/components/com_k2/lib/k2plugin.php');

class plgK2Video extends K2Plugin
{

// Some params
var $pluginName = 'video';
var $pluginNameHumanReadable = 'Video Background plugin';

function plgK2Video(&$subject, $params)
{
parent::__construct($subject, $params);
}

function onK2PrepareContent(&$item, &$params, $limitstart)
{
$mainframe = JFactory::getApplication();
//$item->text = 'It works! '.$item->text;
}

function onK2BeforeDisplay(&$item, &$params, $limitstart)
{
$mainframe = JFactory::getApplication();

// Get the output of the K2 plugin fields (the data entered by your site maintainers)
$plugins = new K2Parameter($item->plugins, '', $this->pluginName);

$videoURL = $plugins->get('videoURL');
$image = $plugins->get('image');

// Check if we have a value entered
if (empty($videoURL))
return;

// Output
$output = '
$image
<script>
$(function() {
var BV = new $.BigVideo({container: $("#video-wrap")});
BV.init();
BV.show("'.$videoURL.'", {ambient:true});
BV.getPlayer().on("durationchange",function(){
$("#video-wrap").fadeIn();
});
});
</script>
';

return $output;
}

}


Thanks!
  • Sean
  • Sean's Avatar
08 Sep 2014 03:08 - 08 Sep 2014 03:10

Cannot create user groups or register new users.

Category: English K2 Community

Hello all

I'm new to K2 having only recently started working with it. I am using a custom template based on T3 Framework and so far I am having strange issues with getting K2 to do anything useful at all.

I can create a new user group and everything appears to save correctly. However, when I go back to my list there is no new group there. The same issue applies to creating a new user through front end registration. The process works and the confirmation email comes through but no users appear in K2/Users only in Joomla/Users. Import Joomla users does nothing.

I have checked Yes for "Enable K2 User Profile" and selected the default user group. Strangely enough, I am able to see the groups I created in the dropdown list for "Select the default K2 User Group for new registrations" (see attached image - IMAGE ATTACH NOT WORKING) but they don't appear in my use groups area. Once again though, these changes are having no affect on getting anything to work correctly. I have tried disabling Jquery within K2 to see if the problem lies there but this also has no affect at all.

I would greatly appreciate any advice on where to start troubleshooting this issue. I will also follow up if I am able to find a solution in the meantime. I have updated to the latest K2 version (2.6.8.) and I am using Joomla 2.5.2.

In the attached image the groups I have created appear in uppercase at the bottom of the list.
  • Mr_Anonymous
  • Mr_Anonymous's Avatar
04 Sep 2014 17:08
Replied by Mr_Anonymous on topic K2 Version 3 Questions

K2 Version 3 Questions

Category: English K2 Community

Hi Krikor.. First I was creating my template based on Gavern FW (Gavick). Later it felt like a bloat since it has too many css, scripts and other files that I dont need so I scratched that and I ended up completely writing my own template old school style with pure html/css/php without using any FW. Now my 2.6.8 k2 sub-templates are designed (css) and re-structured (html) to match my site theme. I only override 3 files now: category.php, category_item.php and item.php. I have created 3 different sub-templates (1 for each section in my site).

From what you are saying, it does seem like k2 templating has gone simpler. When I briefly had a look in github, I noticed that category_item.php is not there (probably merged with category.php) which is good. From one of your previous post I understand that the version 3 has backward compatibility so I am guessing my 2.6.8 template should work without much changes or overrides. The questions I still have in mind is:

1) Are there any api changes? For instance, I use a lot of php custom codes that fetches k2 extra fields like $this->item->extraFields->XYZ->value, etc.. and use the various k2 php codes like fetching hits, rating counts etc.. for schemas and other things. Have there been any changes to this? Would all of these still work in version 3 or do I need to reverify and check them for V3?

2) Have the css and html classes / IDs changed? When I created css overrides for k2 templates, I used the same css classes used in K2 such as catItemImageBlock, catItemImage, etc.. If the tags have been changed, removed or template layout changed, then I need to re-do them. How big of a change in there in the default html and css that was used in 2.6.8 to version 3? (I am mainly interested to know for category.php and item.php pages).

3) Lastly, do you have a list of code changes done to the k2 templates from 2.6.8 to V3? It will be useful if there is a documentation on code changes on templates if you have one already. If not I need to use Winmerge which can get annoying sometimes.

I am hoping to have some spare time in 2-3 of weeks once I finalize everything else on my site and I am thinking of exploring the version 3 then. Hopefully I will have a better idea on what I can expect by then.
  • Chris
  • Chris's Avatar
04 Sep 2014 16:53

No CSS on pages using k2 items - Joomla! website

Category: English K2 Community

Hello,

We have a website using the JA K2 filter component on a couple different pages - execwell.com/exercise-library, execwell.com/resources/product-reviews, and execwell.com/resources/fitness-friendly-hotels. The landing page is totally fine, even clicking on the titles of the individual items is fine. You can even scroll down to the bottom of the page and use the pagination navigation to go through the list of items. All of this works accordingly. HOWEVER... The instant you start using the JA k2 search module on the left of the screen to generate the results on the page (such as checking off "Bands" and "Body Weight" on the Exercise Library) and THEN using the pagination navigation, you'll notice it brings you to an HTML-only page. No sign of any CSS anywhere. Here's an example - execwell.com/component/jak2filter/?Itemid=536&isc=1&category_id=9,15,16,17,18,19,20,21,22,23,24,25,27&xf_7[0]=3&xf_7[1]=5&tmpl=component&limit=2&start=2.
As you can see, the URL is quite ridiculous. Maybe it has something to do with the whole issue?

Thank you in advance to anyone who tries to help solve this problem.

Specs:
Joomla version 3.3.3
JA K2 FILTER (component) version 1.1.4
K2 - JA K2 Filter (plugin) version 1.1.1
K2 version 2.6.8

Let me know if you need anything else. Thanks again.
  • Naeem
  • Naeem's Avatar
28 Aug 2014 22:34 - 28 Aug 2014 22:40

Img and Description Issue while sharing url on Fb

Category: English K2 Community

I am using Joomla 3.2.2 with k2 article latest version. When i share article url on facebook, it does not show image and description. My cache is disabled, Gzip is disabled. Googled alot but couldnot find proper solution.

I have checked developers.facebook.com/tools/debug/og/object/ andI am getting following Open Graph errors.

Object at URL 'www.mywebsite.com/life/health/15-amazing-health-benefits-of-berries-you-didn-t-know-about' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.

But after fetching new scrape information, url is showing description and image.

I would appreciate if someone can help me in this regard



Regards,
Naeem
  • Mr_Anonymous
  • Mr_Anonymous's Avatar
06 Aug 2014 22:47 - 06 Aug 2014 22:48
Replied by Mr_Anonymous on topic K2 Version 3 Questions

K2 Version 3 Questions

Category: English K2 Community

Thanks again Krikor. You've been so helpful. :)

Is there a comprehensive list of features and changes coming up in Version 3 both front end and back end? I've only read bits and pieces here and there.

I would really love more sneak peeks so I know what changes I need to be prepared for. I check the blog here everyday. Would love to see some quick preview on front end changes, editing screen, comments improvements and any other awesome changes that are coming up. I just dont have the time yet to set up a beta in my locahost to test it around (time is our enemy). Just a 5 min video of the demo in your blog should be really good if one of yous ever get a spare time. No need to worry about commentaries or lousy techno music. I just want to see how much K2 has improved! :)
  • Nnov Leumik
  • Nnov Leumik's Avatar
02 Aug 2014 10:46 - 02 Aug 2014 12:13
Error 500 K2 saving an item with Image was created by Nnov Leumik

Error 500 K2 saving an item with Image

Category: English K2 Community

:( Got stuck for almost 3 days looking for solutions about this.

When saving a ITEM with image it throws me to an error 500 internal server error.

I have joomla 3.3.3 and K2 v2.6.8.

Joomla is installed clean and K2 is also.

Your help is appreciated. :)

SEO Settings
Search Engine Friendly URLs - Yes
Use URL rewriting - No
Adds Suffix to URL - No
Unicode Aliases - No
Include Site Name in Page Titles - No

---additions---
if i make my joomla's htaccess.txt to .htaccess the error is now 404 category not found.

Category not found

Call stack
# Function Location
1 JApplicationCms->execute() /home/original/public_html/test/index.php:40
2 JApplicationSite->doExecute() /home/original/public_html/test/libraries/cms/application/cms.php:245
3 JApplicationSite->dispatch() /home/original/public_html/test/libraries/cms/application/site.php:224
4 JComponentHelper::renderComponent() /home/original/public_html/test/libraries/cms/application/site.php:178
5 JComponentHelper::executeComponent() /home/original/public_html/test/libraries/cms/component/helper.php:332
6 require_once() /home/original/public_html/test/libraries/cms/component/helper.php:352
7 JControllerLegacy->execute() /home/original/public_html/test/components/com_content/content.php:16
8 ContentController->display() /home/original/public_html/test/libraries/legacy/controller/legacy.php:722
9 JControllerLegacy->display() /home/original/public_html/test/components/com_content/controller.php:79
10 ContentViewCategory->display() /home/original/public_html/test/libraries/legacy/controller/legacy.php:685
11 JViewCategory->commonCategoryDisplay() /home/original/public_html/test/components/com_content/views/category/view.html.php:72
12 JError::raiseError() /home/original/public_html/test/libraries/legacy/view/category.php:129
13 JError::raise() /home/original/public_html/test/libraries/legacy/error/error.php:253


This is my htaccess

##
# @package Joomla
# @copyright Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
# Options +FollowSymLinks #THIS PART IS COMMENTED to check whether this is the culprit

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

  • Nancy
  • Nancy's Avatar
11 Jul 2014 10:01

Read more only if there is a full text

Category: English K2 Community

I'm using K2 V2.6.1. on a website and would love to see the read more, only when there is a read more text. Now it's displaying at all times.

I've tried to use this tip: www.slurpitup.com/joomla/k2-tip-how-to-show-read-more-when-necessary

Changed the line in the template version of the php file. But it didn't work at all. Also tried the 'dirty way' he's talking about, but still nothing happened. I've checked if there is any hard show in the parameters from the item, where there should be no read more button. But there isn't.

Does anyone got any idea how to fix this?
I can't send you a link, because the website is still offline.
  • Daniel
  • Daniel's Avatar
01 Jul 2014 20:25
K2 Not Resizing Images Upon Upload was created by Daniel

K2 Not Resizing Images Upon Upload

Category: English K2 Community

Running PHP 5.4.29 with K2 version 2.6.8 (recently upgraded) on a Joomla 2.5.22 install. K2 doesn't resize images upon upload. I checked category settings for image size options and they are all blank (default). When I go into K2 Media Cache and download all flavors of the image they are all the original size I uploaded. Any thoughts on how to troubleshoot this?
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
30 Jun 2014 17:58
Replied by Krikor Boghossian on topic Customizing login form

Customizing login form

Category: English K2 Community

You followed the correct procedure about Joomla! overrides.
You did nothing wrong.

I referred you to the template developer because some developers/frameworks do not follow Joomla!'s patterns and handle overrides their own way.

As for attachment, if you have trouble uplading files, check if the file is bellow your max_upload_limit and also check if you are using the latest version of K2.

If the attachments are not showing, check your category settings (or the category which inherits its settings from) to make sure that Attachments are visible.
  • Tarun Das
  • Tarun Das's Avatar
30 Jun 2014 11:52 - 30 Jun 2014 12:35
Replied by Tarun Das on topic K2 Image Gallery not showing

K2 Image Gallery not showing

Category: English K2 Community

Esdrasviche,

What's your Joomla version?
Do you get any error message ?
Did you check your media/k2/galleries folder ? Can you see there image folders with numeric names ? and images inside them are intact ?
If you go to Components>Simple Image Gallery Pro>K2 Galleries what you see there ?
  • Rumen Georgieff
  • Rumen Georgieff's Avatar
26 Jun 2014 15:14 - 26 Jun 2014 15:20
1064 SQL syntax error from #_k2_tags_xref was created by Rumen Georgieff

1064 SQL syntax error from #_k2_tags_xref

Category: English K2 Community

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')}' at line 1 SQL=DELETE FROM #_k2_tags_xref WHERE itemID={intval(


Hello,

does anyone know how to fix this? It shows when update to Joomla 3.3.1 when try to add new item. I'm using K2 v2.6.9 (dev build).

Thanks.
  • Shahjahan Siraj
  • Shahjahan Siraj's Avatar
10 Jun 2014 20:54
Replied by Shahjahan Siraj on topic How to show Images in an Item?

How to show Images in an Item?

Category: English K2 Community

Hello,

I am using latest version of K2 and Joomla 3.3 at machizo.com/brac2/

In the category pages images show , but in detail page the image does not download, although it has been linked and uploaded properly.
Image show: machizo.com/brac2/publications
in Detail image does not show: machizo.com/brac2/publications/makingtuberculosishistory

I have doubled checked K2 image setting issue. It is ok.

I would like to show item images in individual ages . However I would like to make OFF the user profile from the bottom of posting.

I am looking support and guide to solve the issues.

Best regards

Shahjahan Siraj/ Machizo
www.machizo.com
Displaying 61 - 80 out of 270 results.

Powered by Kunena Forum