Support Forum

Web browser issue with "most recent topics with unread posts"

50 Answers

New Answer

ME Meztli
Meztli
Member

Mr Papa said
Ah, darn…  looks like the string is not translated properly…  its in your sp theme, the spNewPostsView.php template file..  its missing the localization around the string…  you can change it yourself there and I will get it fixed in next version..

Thanks Steve,

In Swedish that string will be “Senaste trådarna med olästa inlägg”.

How to add Å, Ä and Ö to a php file?

 

MP Mr Papa
Mr Papa
Member

I would imagine its the same way you would add it to a translation file??   doesnt your keyboard have those keys?

ME Meztli
Meztli
Member

Mr Papa said
I would imagine its the same way you would add it to a translation file??   doesnt your keyboard have those keys?

No problem with my keyboard.

I did not think php files supported special characters. Will try later tonight.

 

MP Mr Papa
Mr Papa
Member

dont know for sure, but seems like in a text string shouldnt be a problem?

ME Meztli
Meztli
Member

Mr Papa said
dont know for sure, but seems like in a text string shouldnt be a problem?

It did not work. This is how it looks:

Senaste tr�darna med ol�sta inl�gg

 

MP Mr Papa
Mr Papa
Member

darn.  okay, I am afraid I dont know much how translations work – except of course adding the php translation code around the strings…  Andy does all the po/mo work for us…  and he is on vacation…  I can try sending him a note and seeing what he would recommend…

ME Meztli
Meztli
Member

Welcome back Andy.

Maybe you should help me with my translation issue?

Cheers

YS Yellow Swordfish
Yellow Swordfish
Member

Did you actually try just putting the translation function in place? So that the line reads:

echo '<div>'.__sp('Most recent topics with unread posts').'</div>';

That should do it I believe – as long as that line has been translated of course!

 

ME Meztli
Meztli
Member

Hi Andy,

I got this error after changing the line according to above:

Fatal error: Call to undefined function _sp() in /problem-with-post-edit-buttonome/friskytt/public_html/wp-content/sp-resources/forum-themes/friskyttarna/templates/spNewPostsView.php on line 21

 

YS Yellow Swordfish
Yellow Swordfish
Member

Sorry – I should have pointed out that that is a double underscore (__sp) not a single one.

ME Meztli
Meztli
Member

Yellow Swordfish said
Sorry – I should have pointed out that that is a double underscore (__sp) not a single one.

Thanks Andy.

The translation is now in place, but the styling of the title 1-2.jpgheader disapeared.

See image below:

 

 

YS Yellow Swordfish
Yellow Swordfish
Member

Odd – the code above appears to have stripped out the class definition. Let’s try it again:

echo '<div class="spMessage">'.__sp('Most recent topics with unread posts').'</div>';

That should put the class back in place. Not sure what happened there above!

 

MY My
My
Member

I’m having the same issue as described in the original post

When I click on unread topics and get the popup box with list of topics, I used to like using Ctrl + left click to open a bunch of them in new tabs (saves a lot of time, you can read one while others are loading) but now the first link I click is fine but any second click results in not opening the link but instead jumping back to the top of the list.

I have confirmed it does happen on this site as well as my own site. I’m using Firefox but I just tested in Chrome and the issue is similar (it only seems to happen in chrome if I’m scrolled down the list).