11-Mar-2015, 08:41 AM
This is the community forum. For a developer response use the Client Area.
11-Mar-2015, 09:03 AM
Dont know why i cant edit but i forgot the "normal" comment-link:
http://www.domain.de/perma/link/site
page 2:
http://www.domain.de/perma/link/site?cmt...x_comments
and so on.
When i echo my ID, its the same on every comment-page. So that cant be the problem?
http://www.domain.de/perma/link/site
page 2:
http://www.domain.de/perma/link/site?cmt...x_comments
and so on.
When i echo my ID, its the same on every comment-page. So that cant be the problem?
11-Mar-2015, 10:32 AM
Still cant edit.
Looked little bit deeper in the code. Found the cmtx_paginate() funktion which refers to $current_page and $cmtx_current_page. $cmtx_current_page uses $_GET['cmtx_page']. may this course the failure?
Looked little bit deeper in the code. Found the cmtx_paginate() funktion which refers to $current_page and $cmtx_current_page. $cmtx_current_page uses $_GET['cmtx_page']. may this course the failure?
11-Mar-2015, 07:45 PM
Hi finzer,
The URL http://www.domain.de/perma/link/site?cmt...x_comments looks fine to me. So something on your website, maybe some type of re-write rule in your root's .htaccess file, seems to be affecting the $_GET parameters. As I'm not familiar with your site that's the best that I can help.
The URL http://www.domain.de/perma/link/site?cmt...x_comments looks fine to me. So something on your website, maybe some type of re-write rule in your root's .htaccess file, seems to be affecting the $_GET parameters. As I'm not familiar with your site that's the best that I can help.
11-Mar-2015, 07:47 PM
The forum is configured to disallow editing after 15 minutes of posting, so it's not a bug.
12-Mar-2015, 07:38 AM
Hey Steven, thx for the hint. I think i solved the problem. You are correct, it was a problem with my RewriteRules. I use this rule to rewrite my sites:
The problem was the L parameter. I tried it with QSA and it seems to work.
I get, after ich go to a second-comments-site, a link like this:
http://www.domain.de/seiten/infos/detail...&bar=blubb?cmtx_page=2&foo=blah&bar=blubb#cmtx_comments
Not very nice, but it works.
Now i have another problem. i rewrite my URLs as you can see. Now i have different languages. EN, ES, NL ... I use the following RewriteRules:
When somebody comment one of the site, the URL will be written in the DB. Everything is fine. But when he is on another language, for example NL, its a different URL für Commentics, but not for me. Is there a posibillity to change the URLs? I need für every Comment per Site the same URL. No sub-language. Maybe the $cmtx_url can do the trick?
Sorry für my bad english
best regards
finzer
Quote:RewriteRule ^(.*)/(.*)/site$ /seiten/infos/details.php?foo=$1&bar=$2 [L]
The problem was the L parameter. I tried it with QSA and it seems to work.
I get, after ich go to a second-comments-site, a link like this:
http://www.domain.de/seiten/infos/detail...&bar=blubb?cmtx_page=2&foo=blah&bar=blubb#cmtx_comments
Not very nice, but it works.
Now i have another problem. i rewrite my URLs as you can see. Now i have different languages. EN, ES, NL ... I use the following RewriteRules:
Quote:RewriteRule ^(.*)/(.*)/nl$ /seiten/infos/details_nl.php?foo=$1&bar=$2 [QSA,L]
RewriteRule ^(.*)/(.*)/dk$ /seiten/infos/details_dk.php?foo=$1&bar=$2 [QSA,L]
RewriteRule ^(.*)/(.*)/cz$ /seiten/infos/details_cz.php?foo=$1&bar=$2 [QSA,L]
RewriteRule ^(.*)/(.*)/es$ /seiten/infos/details_es.php?foo=$1&bar=$2 [QSA,L]
RewriteRule ^(.*)/(.*)/$ /seiten/infos/details.php?foo=$1&bar=$2 [QSA]
When somebody comment one of the site, the URL will be written in the DB. Everything is fine. But when he is on another language, for example NL, its a different URL für Commentics, but not for me. Is there a posibillity to change the URLs? I need für every Comment per Site the same URL. No sub-language. Maybe the $cmtx_url can do the trick?
Sorry für my bad english

best regards
finzer
12-Mar-2015, 08:52 AM
12-Mar-2015, 09:29 AM
Nah, str_replace dont work. Testet it with a new comment, in the DB is still the URL with the language-identifier...
12-Mar-2015, 10:07 PM
13-Mar-2015, 07:52 AM
« Next Oldest | Next Newest »
Possibly Related Threads…
Thread / Author
Replies
Views
Last Post
Users browsing this thread: 1 Guest(s)