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

Re: [ADDON] SimplePortal

Reply #360

Is SimplePortal now ready for ElkArte 1.1.1?  This is the add-on I am waiting for to upgrade to 1.1.1.

Re: [ADDON] SimplePortal

Reply #361

I just tested the SP version 1.00 RC1 
and it just says at the homepage then:

  • SMF - Just Installed!

An Error Has Occurred
in_array() expects parameter 2 to be array, null given

What is the latest version that works with Elkarte 1.1.1 and SSL ?
It says, latest version is 2.3.7
but is that only the version for SMF ?



Re: [ADDON] SimplePortal

Reply #362

Simple Portal is not updated for 1.1.1 yet. Also the link here at this forum for Simple Portal is for ElkArte only. Where did you download the Simple Portal file that you installed?

Re: [ADDON] SimplePortal

Reply #363

Quote from: hartiberlin – I just tested the SP version 1.00 RC1
and it just says at the homepage then:

  • SMF - Just Installed!

An Error Has Occurred
in_array() expects parameter 2 to be array, null given

I already mentioned here that SP has an error:
Quote from: radu81 – p.s. I see you are using a portal on your forum, for elkarte you can use Simple Portal, download it from here https://github.com/SimplePortal/SimplePortal_ElkArte/tree/development . Pay attention, there is a small bug[1] with the Login block, so for now do not use the Login block on your portal

Disable the login block and the error will disappear.
Otherwise Emanuele posted a temporary solution on the italian SMF & Elkarte forum

File: sources\Load.php
Replace:
Code: [Select]
// Custom profile fields as well

with:

Code: [Select]
if (empty($context['admin_features']))
{
    $context['admin_features'] = array();
}
// Custom profile fields as well

The latest version of SP is https://github.com/SimplePortal/SimplePortal_ElkArte/tree/development
it works with 1.1, but as you can see there are some small bugs

Simple Portal 2.3.7 is reffered to Simple Portal for SMF
sorry for my bad english

 

Re: [ADDON] SimplePortal

Reply #364

Hmm, I applied this patch and the left and right blocks are not shown...
It seems the left blocks are somehow wrapped into the uppen blocks...

Look here:
https://dasalteberlin.de/index.php?topic=4.0
the Test Gallery Block is in the upper block section , although I have put them to the left side...

Only on the Frontpage it does how now all correct it seems here:
https://dasalteberlin.de/index.php

Also there is a hooks error:


Re: [ADDON] SimplePortal

Reply #365

Provided:
  • I'm a disaster with CSS
  • what I'm suggesting may or may not work
  • there may be an easier way to achieve the same

You may try changing:
Code: [Select]
<div id="sp_center_top" class="sp_main_cell">
to:
Code: [Select]
<div id="sp_center_top" class="sp_main_cell" '
, !empty($modSettings['rightwidth']) || !empty($modSettings['leftwidth']) ? ' style="width: calc(100% - ' . (!empty($modSettings['rightwidth']) ? $modSettings['rightwidth'] . 'px - 20px' : '0') . ' - ' .
(!empty($modSettings['leftwidth']) ? $modSettings['leftwidth'] . 'px - 20px' : '0') . ')"', '>
in Portal.template.php.

It MAY work.
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] SimplePortal

Reply #366

I forgot a bit, you should also add a
Code: [Select]
display: inline-block;
to the #sp_left, #sp_right, #sp_center_top, #sp_center_bottom definition (porta.css line 332).
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] SimplePortal

Reply #367

Actually, I have made things fairly complex for nothing I think: a simple use of display: table/row/cell should be more than enough to have the blocks aligned without touch the code... I'll try when I'm back to the desktop.
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] SimplePortal

Reply #368

Many thanks emanuele,
Hmm, pretty confusing now all...
so should I still use to edit the files as shown in Reply #365
and donĀ“t use Reply #366 ?


Re: [ADDON] SimplePortal

Reply #369

There seems to be a bug in the latest development version: It displays the full forums list on the main portal page, which is being inlined in the middle of the left column, just below where the center column ends, but not confined to the center column.

Re: [ADDON] SimplePortal

Reply #370

I am a bit confused too.  I installed the portal today in my testforum and everything is looking as it should do. And all my "old" portal blocks had been "converted"! Wow! :)

I am using the portal as frontpage, using portalblocks on both sides in portal and on the top and the bottom in forum.

I just added width: 22%; here in portal.css (and left the settings for the width for the left and right blocks in SP empty), as I had it before:

Code: [Select]
#sp_left {
float: left;
padding-right: .5em;
height: 100%;
width: 22%;
}
#sp_right {
float: right;
padding-left: .5em;
height: 100%;
width: 22%;
}

And I added Emanueles code in Radus post for the User-Info in sources\Load.php on line 977.

Everything is working until now, nothing seems "out of line" to me and no errors in the log.

A few icons are missing, that's all I noticed until now.


Last Edit: January 31, 2018, 02:08:16 pm by Ruth

Re: [ADDON] SimplePortal

Reply #371

The icons should be visible, I see them all on my test forum. Try to investigate with your browser inspector if you see something strange.
If you find something else that isn't working properly or other bugs related to Simple portal just report it here ;) 
sorry for my bad english

Re: [ADDON] SimplePortal

Reply #372

Here is what happens on our forum, Hydrogen Audio, when viewing the portal. It now inlines the forum listing, incorrectly for our layout.


Re: [ADDON] SimplePortal

Reply #373

@kode54 this is the same bug as reported by hartiberlin and for which I proposed a fiw/workaround in:
https://www.elkarte.net/community/index.php?topic=1399.msg35539#msg35539
and
https://www.elkarte.net/community/index.php?topic=1399.msg35541#msg35541
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] SimplePortal

Reply #374

Quote from: radu81 – The icons should be visible, I see them all on my test forum.

They are all there in default, Radu. They are just missing in my theme. I have to upload them there. It was always like this first, when I installed the portal, as I remember.

Portal_default.jpg Portal_theme.jpg


Two questions I have until now:

1.
If the portalblock "Theme Selection" is enabled, it is "disturbing" my custom php-block for recent topics. This block is showing a "Timeformat" (Zeitformat) instead of the dates of the last posts there. If "Theme Selection" is  disabled, this custom php-block is working perfect - in both themes, in the default and in my theme.

 A bug?

Theme selection.jpg Theme select.jpg


2.
In the "Visibility Profiles List" there are some possibilities looking like this: $_converted_6
They seem to work, this one means maybe "show on portal and forum"?

visible.jpg converted_6.jpg

Can I edit them by myself? O:-)
Last Edit: February 04, 2018, 08:46:36 pm by Ruth