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

Re: [ADDON] SimplePortal

Reply #465

@Auctor Lucan‍ I merged here your topic since it's related to Sportal

I've seen this error too, but I don't remeber how I solved. If you just updated from elkarte 1.0 to 1.1 try to open and save all blocks and/or disable/enable them. Try also enable/disable the portal from SP settings.

Also check that you are using the latest version https://github.com/SimplePortal/SimplePortal_ElkArte/archive/development.zip
sorry for my bad english

Re: [ADDON] SimplePortal

Reply #466

Hello people from ElkArte :)

I just upgraded my SP version to the one linked above and I'm currently facing two issues:

1) The "New post" icon appears when somebody already read that post. When a post is actually unread, SP shows no icon at all. This issue was there even with the previous version.

2) Right side blocks show under the top or bottom ones. This is a new problem I didn't have with the previous version.

Re: [ADDON] SimplePortal

Reply #467

I'm not sure I understand the first issue, is that inside of one of SP blocks?

I believe I set it up so the right side will "float" under the other blocks when the screen narrows, what happens when you use a full screen on your browser?

Re: [ADDON] SimplePortal

Reply #468

Quote from: Spuds – I'm not sure I understand the first issue, is that inside of one of SP blocks?
Anytime I have an issue I always forget to specify something. Always. Sorry >_>
Yes. It's the Recent Post/Topic block, with Posts and Full options enabled.

Quote from: Spuds – I believe I set it up so the right side will "float" under the other blocks when the screen narrows, what happens when you use a full screen on your browser?
The Recent Posts/Topics block from above is the one I'm using in the Top Blocks position. If I add a Right Side Block, this one goes under the Recent Topics block if I'm full screen. By switching to a little window it goes under all the others on the left.
It happens even if I put the Recent Posts block in Bottom position instead of Top.

Re: [ADDON] SimplePortal

Reply #469

Thanks for the clarification, let me see if I can reproduce the error.

Re: [ADDON] SimplePortal

Reply #470

Thanks again for all your hard work Spuds!  I'm testing this on a low traffic production site before going to the larger ones.

One item encountered is an int expected database error. In subs/PortalArticle.subs.php, changing

Code: [Select]
$request = $db->query('', '
SELECT
views, comments
FROM {db_prefix}sp_articles
WHERE id_article = {int:article_id}
$query[] = 'spa.id_article = {int:article_id}';
$parameters['article_id'] = (int) $article_id;
}

to

Code: [Select]
$request = $db->query('', '
SELECT
views, comments
FROM {db_prefix}sp_articles
WHERE id_article = {string:article_id}
$query[] = 'spa.id_article = {int:article_id}';
$parameters['article_id'] = (int) $article_id;
}

"seems" to fix it. Is that a proper fix?

Also, I'm having issues inlining attached images in articles. Is there a means to do so? Edit: they work fine for images attached in forum threads, or hosted elsewhere. They don't work for images attached to the article itself.  

Is there a way to give blocks custom styling (i.e. no background at all)?  Nevermind, figured out it's as easy as creating a custom style profile!  ;D

Some blocks are hidden on mobile, at least in Chrome. Is there a way to remedy?

Sorry for the million questions. Thanks again!  8)
Last Edit: March 31, 2019, 01:08:34 pm by badmonkey

Re: [ADDON] SimplePortal

Reply #471

I need to look into a couple of those items ... which package did you install?  I want to make sure I'm looking at the right stuff.

Re: [ADDON] SimplePortal

Reply #472

Quote from: Spuds – I need to look into a couple of those items ... which package did you install?  I want to make sure I'm looking at the right stuff.
 
 This one:

https://github.com/SimplePortal/SimplePortal_ElkArte/archive/development.zip

Listed as the version for 1.1 in the first post.  8)

 

Re: [ADDON] SimplePortal

Reply #473

Dang, that would be the latest ... Need to see what I missed adding from my local


Re: [ADDON] SimplePortal

Reply #475

Where can I download the translation of files into Italian SPortalAdmin and SPortalhelp for version 1.0.0.rc1?
Thank you
Saluti
Sebastiano Basile

Re: [ADDON] SimplePortal

Reply #476

Code: [Select]
#sp_center {
    flex: 1 1 auto;
    overflow: auto;
    padding: 2px;
}
No can do. Auto overflow chops the sidebar menu flyouts at the bottom. Needs to be some other solution to whatever problem auto was supposed to fix.

If you were trying to clear floats, then this should work:
Code: [Select]
#sp_center::after{
display: block;
clear: both;
content: "";
}
Which is your bog standard Elk clearfix, of course.

Also, typos in portal.css:
Code: [Select]
.sp_online_flow {
overflow: auto;
max-height: 150px;;
height: auto !important;
}

.sp_rss_flow {
overflow: auto;
max-height: 300px;;
height: 300px !important;
}
Should be single semi-colons, not double. ;)
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: [ADDON] SimplePortal

Reply #477

I am not using Articles on my forum, in the past I did create some articles but never published them. Today I tried to add a new article and I am getting this error:

    Type of error: Critical
    Wrong value type sent to the database. Integer expected. (id_article)
    Function: attachmentsSizeForArticle
    /index.php?action=admin;area=portalarticles;sa=edit
    File: /sources/subs/PortalArticle.subs.php
    Line: 688

Code: [Select]
674: 	function attachmentsSizeForArticle($id_article, $include_count = true)
675: {
676: $db = database();
677:
678: if ($include_count)
679: {
680: $request = $db->query('', '
681: SELECT
682: COUNT(*), SUM(size)
683: FROM {db_prefix}sp_attachments
684: WHERE id_article = {int:id_article}
685: AND attachment_type = {int:attachment_type}',
686: array(
687: 'id_article' => $id_article,
688: 'attachment_type' => 0,
689: )
690: );
sorry for my bad english

Re: [ADDON] SimplePortal

Reply #478

Oi @Spuds  :D

The issues link from the SP page on the Elk Add-ons site is a 404 now. Needs updating to whatever the new url is.

https://addons.elkarte.net/feature/Simple-Portal.html
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: [ADDON] SimplePortal

Reply #479

Issues ??? Can't be any issues, so no link :P  

Looks like i never updated that link when I moved the code to the SimplePortal team, its here: https://github.com/SimplePortal/SimplePortal_ElkArte/issues

Thats where you can give me a kick in the keister!