3
votes
Accepted
K2: Call To A Member Function Get() On Null
I posted the issue on k2 forum and got the answer. Following is the issue's reason and solution:
In Helix Framework, when we create a menu item of type item edit form. It throws an error. So, this is ...
3
votes
How to call K2 currently viewed item's title / creation date on my template index.php?
You can do something similar like:
$app = JFactory::getApplication();
$jinput = $app->input;
$option = $jinput->getCmd('option');
$view = $jinput->getCmd('view');
if ($option=="com_k2"...
2
votes
Accepted
Integration of Facebook Comments
My opinion is to use Facebook, because then the comments are more widely shared if that's your objection. If the comments are in K2, they will remain just there and can only be seen by visitors to ...
2
votes
Accepted
Get K2 Extra Field Name Using Id
The extra fields are saved in json encoded format, so first you will need to have:
$arrExtraFields = json_decode($extra_fields);
Once you have that, you will need to loop through the array $...
2
votes
Accepted
Redirect K2 article url after alias change
The Redirect Manager only works if the URL of the first article returns a 404 error. If it doesn't, then the redirect will not take place.
I suggest you do this redirect in the .htaccess file by ...
2
votes
What would be the best approach to modify multiple articles' content programatically?
You can edit the K2 articles directly from the database using phpMyAdmin. That shouldn't be a problem. Just make sure you clear your Joomla and your browser cache in order to see the updated data. ...
2
votes
Accepted
How to add submenus to a menu?
Beez template doesnt support dropdown menu.
You can use different templates also if the Beez template is important then you can install menu extension to work with the same template.
Some free ...
2
votes
How to change home page title and description in meta tag
The second screenshot you have posted is from the Global Configuration. In Global configuration, apart of the Basic Setup/Configuration, you can define settings that would be used globally across your ...
2
votes
How to create Multiple Sets of K2 Extra Fields for the same K2 item
This exactly what the Datasets for K2 plugin does: http://www.joomreem.com/extensions-store/k2-datasets
Also, there is a documentation to learn in details how to use it: http://www.joomreem.com/...
2
votes
Accepted
K2 Item view —Call to undefined method K2HelperHTML::loadjQuery()
"items.php" no longer exists in K2 (as of 2.8.0). I think you have a problem in your libraries folder because of the Joomla update. It might be that you have some reminiscent files from a previous ...
2
votes
Accepted
How to use convert_tz in a joomla query?
Rather than using CONVERT_TZ(), you can use INTERVAL in your query to execute a daylight-savings-ignorant conversion and avoid the use of a php variable.
$query->where("DATE(publish_up + INTERVAL ...
2
votes
SEF URL Issues on several sites
The "enable advanced SEF" option in K2 is a standalone SEF router, and is most likely conflicting with anything that RS SEO is doing.
Without taking a look at your site, I can't really tell, but it ...
1
vote
Accepted
K2: Show 5 articles per page
Try this:
Go to Components > K2 > Categories
Here select the main category and go to the Tab Display Settings, see the screenshot:
1
vote
Accepted
K2 User show total number of Item hits
This should be what you need.
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select($db->qn('hits'))
->from($db->qn('#__k2_items'))
->where($db->qn('...
1
vote
Accepted
Editing K2 Items showing error
Ok, so it turns out this wasn't an issue with Joomla or K2 at all, but an issue with WAMP. I increased the PHP memory limit in php.ini to 512M and edited the index.php within the root of the Joomla ...
1
vote
Koowa suddenly throwing strict errors
I had a very similar thing happen with a different component after upgrading the server's PHP version from 5.4 -> 5.5.
Essentially, Strict Standards warnings are not errors; they’re messages ...
1
vote
What would be the best approach to modify multiple articles' content programatically?
Yes, there is a perfect extension for the job: Regular Labs (ex-NoNumber) DB Replacer.
I have used it successfully for years for similar tasks: batch Find & Replace of text in articles or K2 ...
1
vote
Accepted
How to display social sharing buttons in k2 category items, tag list, and item's page?
Add social media sharing to K2 component using https://www.addthis.com/
After registering and getting your addthis buttons codes, goto K2 parameters, in the social tab, place your code inside the '...
1
vote
Wrong Creation time for article and error on edit of existing article
If you go to phpMyAdmin, and you check the create_date for that article, then what do you see? Is it "0000-00-00 00:00"? If it is, then try changing it to a real date and see if that helps solve the ...
1
vote
Align to center JO K2 Slideshow
In your custom.css you have this:
.jo-k2-slidecontent {
border: 1px solid #cccccc
margin-left: auto;
margin-right: auto;
overflow: hidden;
padding: 1px;
position: relative;
...
1
vote
Align to center JO K2 Slideshow
Not sure what template you're using, but a CSS solution would be as follows:
.jo-k2-slidecontent {
margin: 0 auto;
}
1
vote
Joomla K2 articles redirect
Add this line to the very beginning of your .htaccess file:
RedirectMatch 301 /blog/item/(\d+)-(.*) /blog/$2
Explanation:
This part (\d+) matches any number immediately after /blog/item/
This part (...
1
vote
Get rid of 404 Errors after removing K2
I don't know how you handle your legitimate urls (your actual articles/pages) with moving from k2 to joomla articles, nor if you had SEF urls enabled/disabled before and now.
It's expected to see ...
1
vote
Get rid of 404 Errors after removing K2
I would suggest you install a sitemap and give that to webmastertools. That'll help maintain your google links over time.
If all the K2 links you're concerned about are non-SEF URIs then you can ...
1
vote
Accepted
K2 Items edit icon missing
Go to Components -> K2 -> User Groups and check that the group Site Owner has the Front-end item editing as YES also there you can choose what categories can be edited or not.
Go to Components -> K2 ->...
1
vote
K2 Items edit icon missing
First let's just confirm all the config steps.
In the K2 parameters > frontend editing, 'Enable frontend editing'
is set to yes.
You have a K2 usergroup called editors (or something) and the ...
1
vote
Accepted
Fatal error in K2 Tools Module
I have changed:
require_once (dirname(__FILE__).DS.'helper.php');
To:
require_once (dirname(__FILE__).'/'.'helper.php');
This is a known bug and an official solution should be given in the next K2 ...
1
vote
K2 show items to selected users
If you want to control access to K2 articles individually, you can do that inside that article settings in the "Access Level" field. The same setting can be applied (Access Level) to K2 categories ...
1
vote
How to change home page title and description in meta tag
The page title and meta description are changed through the 'Menus' menu item in the administrative back-end.
1) Choose the page.
2) Go to the 'Page Display' tab.
3) Change the page title via the '...
1
vote
Accepted
K2 : Redirect user after login to User Blog Page
The only way (out of the box) that K2 can dynamically create the link to the user page is to use the K2 User module. However, the "Login Redirection" setting uses Menu Items, only. Unfortunately, ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
k2 × 136joomla-3.x × 54
php × 16
joomla-2.5 × 14
sef × 8
tags × 8
plugin × 7
seo × 7
templates × 5
module × 4
articles × 4
joomla-3.3.x × 4
overrides × 4
ajax × 4
joomla-3.5 × 4
sql × 4
joomla-3.4 × 3
extensions × 3
css × 3
user × 3
menu-item × 3
url × 3
redirect × 3
acl × 3
front-end × 3