Keyword

sh404SEF plugin for K2 2.0

More
15 years 2 months ago #71501 by Claudio Azevedo
Replied by Claudio Azevedo on topic sh404SEF plugin for K2 2.0
finaly i get it working, so i add these to com_k2.php (for sef_ext):

first, i added the "id" select on sql string about line 161
$q = 'SELECT id, title, alias, catid FROM #__k2_items WHERE id = '.$id;

and for my surprise, i only added one more thing, about line 169:
$title[]=$row->id .'-'. $row->alias ;

the "$row->id add the id of article in the url, and the "'-'" add the separator in ID>name of article, now no more duplicates URL!!!!

THANKS TO ALL!!!



Claudio Azevedo said:so, this file is using title alias instead of title

but you "or someone" know how can i insert the item ID in the url?

i tried (a lot) but cant get close...

thanks

Kai Roen said:I have modified the file, but I haven't testet it yet. Try this file: dmtalvdal.biz/sef_ext.zip

Please let me know if that works

Cherashev Feodor said:it takes page title, but it should be aliases..

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

  • Kai Roen
  • Kai Roen's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 2 months ago #71502 by Kai Roen
Replied by Kai Roen on topic sh404SEF plugin for K2 2.0
Great work.
I have modified the file as you described above, and download the file from this location:
www.dmtalvdal.no/images/stories/dokumenter/com_k2.zip

Unzip the file and upload it to: /components/com_sh404sef/sef_ext/

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

More
15 years 2 months ago #71503 by Claudio Azevedo
Replied by Claudio Azevedo on topic sh404SEF plugin for K2 2.0
hello guys!

thanks kai, now this plugin for 404sef is working like a charm!
(i tested it about 30hours now!)

But is one problem (but i have the solution, of couse)
when try to add a coment the 404SEF does invalid url and the comment...well...crash...

how i can solve that? the solution:

open 404sef control panel and you will see one 404 error, go to "View/Edit 404 Logs" and add what you want for these 404 error, because the 404sef does not allow to add "index2.php" item, you need to add it in the phpmyadmin
so, open phpmyadmin of you database, look for #__sh404sef_aliases (# is your database prefix), find the entry whith the 404 and edit newurl to index2.php

so this is my solution, i dont now if there another solution, if someone now pease tell us!

so, btw, thanks a lot Kai!

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

More
15 years 2 months ago #71504 by Claudio Azevedo
Replied by Claudio Azevedo on topic sh404SEF plugin for K2 2.0
hello
i'm here, again :-)

i have found one bug in pagination, the page 5 and 6 have the same link (HOMESITE/blog/Page-4.html) and pages 9/10 have also the same link (page-7.html).

i'm trying to fix that, so only for your know...there is one problem..auehauehauea

so....i back again here later... ^^

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

More
15 years 2 months ago #71505 by vtiger
Replied by vtiger on topic sh404SEF plugin for K2 2.0
Hello, same here.
Pagination don't work at all.
Every pagination links point me to (Page-1.html) url.
Other stages works like a charm.
Any news Would Be Very Appreciated.

Thanks & regards,
LN

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

More
15 years 2 months ago #71506 by Adam Altmejd
Replied by Adam Altmejd on topic sh404SEF plugin for K2 2.0
I cant seem to get the plugin to work with the "add new article" iframe in the K2 Login box. Anyone else experiencing this problem?
It tries to link to the following adress:
index.php?option=com_k2&lang=sv&task=add&tmpl=component&view=item

Can't see whats wrong with it but i get a 500 Server error.

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

More
15 years 2 months ago #71507 by vtiger
Replied by vtiger on topic sh404SEF plugin for K2 2.0
Hi, that works for me. So, can't confirm.
p.s. That link points me also to nonSEF url, but it works and without 505..

LN

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

More
15 years 2 months ago #71508 by Claudio Azevedo
Replied by Claudio Azevedo on topic sh404SEF plugin for K2 2.0
until now, i have tested ALL links, for about a mounth now, BUT pagination is not a bug in the k2 sef plugin, is a bug in 404sef, as you can see (and search) for pagination in 404sef forum.
Yes guys (and ladies), the 404SEF has a bug in pagination, its generate a wrong pagination links, depending on the number of itens on eatch page.
IF you have a 20 itens in eacht page, the pagination will work, and this is the only solution that i have found untill now.
Get 20 itens/page and all will be fine.

Thanks to all!

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

  • Cornerstone Properties, LLC
  • Cornerstone Properties, LLC's Avatar
  • Offline
  • New Member
More
15 years 2 months ago #71509 by Cornerstone Properties, LLC
Replied by Cornerstone Properties, LLC on topic sh404SEF plugin for K2 2.0
I've found a problem with K2 tags, when the tag consists of more than one word. For example, "barbie doll". SH404SEF is using a URL with a "% 20" inserted in place of the space that is in between the two words. The result is a 404 missing error when I try to access K2 articles with that tag. One-word tags work fine. Anyone come across this, or a fix? thanks
Jeff

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

More
15 years 2 months ago #71510 by vtiger
Replied by vtiger on topic sh404SEF plugin for K2 2.0
Well, thanks for kick off. Seems there is some logic.

No just 20 items per page works for me, but also 5,10,15,25,30,50,100 items per page. This is corresponding to List Length settings in J! Global Configuration....

So, we should setup same number of List Length in Global J! Configuration & Number of items in K2 Menu/Category Setup.

p.s. Don't forget clean sh404sef cache after changes...

Thanks & Regards
LN

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


Powered by Kunena Forum