ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Jorin on July 03, 2014, 11:14:29 am

Title: [RC1] Who's online: links to threads are broken
Post by: Jorin on July 03, 2014, 11:14:29 am
If you open the "who's online" page and a user is looking into a thread, the link to the thread is broken. It's http://elkarte.hybrid-piloten.de/index.php?topic=0.0. The same problem if a user is looking at a board - the board ID is 0.
Title: Re: [RC1] Who's online: links to threads are broken
Post by: emanuele on July 03, 2014, 03:04:08 pm
Looks good here on this site, could it be related to the other bug about quoting (http://www.elkarte.net/community/index.php?topic=1667.0)?
Title: Re: [RC1] Who's online: links to threads are broken
Post by: Jorin on July 04, 2014, 01:52:34 am
Maybe. But we have this problem with all posts, not only them who were started with a quote.

It seems my RC1 has some problems you don't have. Should I overwrite my installation with a new package?
Title: Re: [RC1] Who's online: links to threads are broken
Post by: emanuele on July 04, 2014, 04:13:21 am
I don't remember having touched anything in that area recently, but refresh the files is worth a try I think.
Title: Re: [RC1] Who's online: links to threads are broken
Post by: Jorin on July 06, 2014, 07:53:37 am
I uploaded the source package of RC1. I still have this problem.  :(
Title: Re: [RC1] Who's online: links to threads are broken
Post by: emanuele on July 06, 2014, 08:14:26 am
Well, yes, if you refresh with the same package you will likely have the same behaviour. ;)

Go to:
https://github.com/elkarte/Elkarte/
bottom of the right column, there is a "download" button, download the package, unzip, pick sources and themes and upload them.

I tried to click on the link you provided in the first post, but it doesn't allow me to access. :-(
Title: Re: [RC1] Who's online: links to threads are broken
Post by: Jorin on July 06, 2014, 08:21:10 am
Quote from: emanuele – Well, yes, if you refresh with the same package you will likely have the same behaviour. ;)

Go to:
https://github.com/elkarte/Elkarte/
bottom of the right column, there is a "download" button, download the package, unzip, pick sources and themes and upload them.

Done. No change.  :(

Quote from: emanuele – I tried to click on the link you provided in the first post, but it doesn't allow me to access. :-(

I can send you the login information if you wish? It's our test board, so without public access.
Title: Re: [RC1] Who's online: links to threads are broken
Post by: emanuele on July 06, 2014, 09:44:54 am
I tried and tried.
I can replicate it on your site.
I can't on any other.
I thought it may be because of the subdomain, but I wasn't able to replicate it even with a subdomain at http://testing.elkarte.it/elk/index.php

Honestly I'm out of ideas... :-[
Any error in the log?
Title: Re: [RC1] Who's online: links to threads are broken
Post by: Jorin on July 12, 2014, 12:32:13 am
No error in the log. But success: I tried the  the Who.english.php from GitHub (ElkArte development workspace). Copied the code in a new php file and uploaded it as language file and now the links to threads and boards work.

It seems I must controll all language files. The code not working is:

Code: [Select]
$txt['who_board'] = 'Ist im Board <a href="' . $scripturl . '?board=%1$d.0">%2$s</a> unterwegs.';

The code working is:

Code: [Select]
$txt['who_board'] = 'Ist im Board <a href="%1$s">%2$s</a> unterwegs.';

So I need to check the language files from the ElkArte-master.zip (they use the working strings) and compare them to my already translated files. Oh, that's a lot of work!  ::)
Title: Re: [RC1] Who's online: links to threads are broken
Post by: emanuele on July 12, 2014, 06:01:30 am
That's why I told you I can check it out, I did the changes so I more or less know already what to touch.
Anyway, if you look at transifex untranslated strings, most likely that's all you have to change/fix. ;)
Title: Re: [RC1] Who's online: links to threads are broken
Post by: Jorin on July 12, 2014, 07:29:50 am
Would be great, but you invest enough time into this project, I don't want to bother you with this. I have free time, I'll start now.
Title: Re: [RC1] Who's online: links to threads are broken
Post by: Jorin on July 12, 2014, 10:31:08 am
Took me three hours. Not so bad.  :D
Title: Re: [RC1] Who's online: links to threads are broken
Post by: emanuele on July 12, 2014, 11:48:19 am
Not bad indeed! ;D