Skip to main content
Topic: [ADDON] SimplePortal (Read 156022 times) previous topic - next topic
0 Members and 5 Guests are viewing this topic.

Re: [ADDON] SimplePortal

Reply #120

Quote from: overscan – So - on my test forum, it looks like html articles don't work - I get to see the html tags in the output as text.
This should address that issue, although I may still change how all those source variants are handled.  https://github.com/Spuds/Elk-SimplePortal/commit/ec544184a5344384e3e94602c6c3d250ef514a30

The commits after that one are an experiment in using the editor to handle the various source translations should one swap around.   Of course as with any translations some structure can/will get lost, but hey its just an experiment !

Re: [ADDON] SimplePortal

Reply #121

You shouldn't need to do that I believe. sportal_parse_content function handles parsing the content as necessary. However article previews don't seem to be using that, so that's the problem.

Re: [ADDON] SimplePortal

Reply #122

Thanks for the hint, I'll take a look :D

Re: [ADDON] SimplePortal

Reply #123

I have translated the file SPortal.english.php into italian and then I renamed it into SPortal.italian.php and uploaded into themes/default/languages/italian but my translations are not visible.

If I remember well on SMF there was a package to install the translations of SP. How could I install my italian translation to SP on Elkarte? Thank you in advance.

p.s. Not a big deal, and maybe could have some string errors but I did it quick translation using the old SP translation from Darknico, if this could be useful I attach the italian translation of SPortal.italian.php.

Re: [ADDON] SimplePortal

Reply #124

Thanks ... I'll take a look when I get a couple of free moments, how SP does the languages was not something I've tested in the ElkArte version so could be some bugs !

Re: [ADDON] SimplePortal

Reply #125

Take your time, for now I "solved" overwriting the content of english files ;)
sorry for my bad english

Re: [ADDON] SimplePortal

Reply #126

Where can I change the words "given" and "received" in the member information box? These appear on mouseover over the blue arrow icons.
I want to change them in German words but I can't find where I have to do it. I've searched unsuccessfully on all pages of the portal, the forum and on the language pages. :(

 

Re: [ADDON] SimplePortal

Reply #127

Thats because I forgot to add them so its just using the image name instead  :-[

In Portal.subs find the sp_embed_class function (~line 930).
Code: [Select]
		$default_title = array(
'dot' => $txt['sp-dot'],
'stars' => $txt['sp-star'],
'arrow' => $txt['sp-arrow'],
'modify' => $txt['modify'],
'delete' => $txt['delete'],
'delete_small' => $txt['delete'],
'history' => $txt['sp_shoutbox_history'],
'refresh' => $txt['sp_shoutbox_refresh'],
'smiley' => $txt['sp_shoutbox_smiley'],
'style' => $txt['sp_shoutbox_style'],
'bin' => $txt['sp_shoutbox_prune'],
'move' => $txt['sp_move'],
);
As you can see both 'given' => and 'received' => are missing, so they need to be added. 
Code: [Select]
		$default_title = array(
'dot' => $txt['sp-dot'],
'stars' => $txt['sp-star'],
'arrow' => $txt['sp-arrow'],
'modify' => $txt['modify'],
'delete' => $txt['delete'],
'delete_small' => $txt['delete'],
'history' => $txt['sp_shoutbox_history'],
'refresh' => $txt['sp_shoutbox_refresh'],
'smiley' => $txt['sp_shoutbox_smiley'],
'style' => $txt['sp_shoutbox_style'],
'bin' => $txt['sp_shoutbox_prune'],
'move' => $txt['sp_move'],
'given' => $txt['sp_likes_given'],
'received' => $txt['sp_likes_received'],
);

Then in your Sportal.language.php files add
Code: [Select]
$txt['sp_likes_given'] = 'Given';
$txt['sp_likes_received'] = 'Received';


Re: [ADDON] SimplePortal

Reply #128

Quote from: Lars – the words "given" and "received" in the member information box?
It's strange to me but my block looks different and there are no likes. I'll try to update everything on my localhost
sorry for my bad english

Re: [ADDON] SimplePortal

Reply #129


Done. Works fine now. Thank you, Spuds! :)

Re: [ADDON] SimplePortal

Reply #130

Quote from: radu81 –
Quote from: Lars – the words "given" and "received" in the member information box?
It's strange to me but my block looks different and there are no likes. I'll try to update everything on my localhost
That just means its been updated (again).  I've tagged release so in the future folks know when to update.  Of course this is still a pre release since the port is still under development etc.   Get it here:

https://github.com/Spuds/Elk-SimplePortal/releases

Re: [ADDON] SimplePortal

Reply #131

I think I found a bug in Simple Portal ;)

I have a board news block with 8 news per page and 16 news totaly. So SP inserts the page numbers. I can't go to page 2, the link is wrong (index.php?news8=%1$d;start=8) and should be index.php?news8=8

you can see it in my live site skoda (link in my signature)
sorry for my bad english

Re: [ADDON] SimplePortal

Reply #132

Yup ...

In PortalBlocks.subs.php find (around line 1408)
Code: (find) [Select]
		$context['page_index']  = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, false);

and change that false to a true
Code: (replace) [Select]
		$context['page_index'] = constructPageIndex($current_url . 'news' . $id . '=%1$d', $start, $limit, $per_page, true);


Re: [ADDON] SimplePortal

Reply #133

Thank you Spuds, that solved my problem ;)
sorry for my bad english

Re: [ADDON] SimplePortal

Reply #134

Maybe if only my bad setup SP,
but when i try to change page and click on number 2 or next the page dont change,
always remains in the first page.  :-[

I use SP 2.4