Skip to main content
[ADDON] SimplePortal Started by Spuds · · Read 339001 times 0 Members and 3 Guests are viewing this topic. previous topic - next topic

Re: [ADDON] SimplePortal

Reply #510

I have some questions about SimplePortal.

- User informations block

What is Total messages number ?
It's absolutely not the total messages of the user.

- Board stats block

Simultaneous connections : the number is not good (i get 512 only with 40 users)


I get some errors with SimplePortal on Elkarte1.1.8.

- Who is online block :

When there is a refresh to x seconds the block is reduced and the page must be refresh to get again who is online, but x seconds after....
Type d'erreur: Non défini
Notice: Undefined offset: 0
https://augras.eu/puppy_forum/index.php?
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/WhosOnline.block.php
Ligne: 130

- Board stats block

Type d'erreur: Non défini
Notice: Undefined index: boards
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 121
      
Type d'erreur: Non défini
Notice: Undefined index: categories
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 120
      
Type d'erreur: Non défini
Notice: Undefined index: topics
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 119   
   
Type d'erreur: Non défini
Notice: Undefined index: posts
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 118
      
Type d'erreur: Non défini
Notice: Undefined index: members
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 117

- portal.subs.php

admin
Type d'erreur: Générale
Notice: Constant SPORTAL_STALE already defined
https://augras.eu/puppy_forum/index.php?action=admin;area=theme;sa=list;th=1;b2fo4gRXIylE=jAQ77G5zEJkLqPep1C1Lf09lYB0xj3SC
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/Portal.subs.php
Ligne: 62
      
admin
Type d'erreur: Générale
Notice: Constant SPORTAL_VERSION already defined
https://augras.eu/puppy_forum/index.php?action=admin;area=theme;sa=list;th=1;b2fo4gRXIylE=jAQ77G5zEJkLqPep1C1Lf09lYB0xj3SC
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/Portal.subs.php
Ligne: 61

- PortalAdminBlocks.controller.php

admin   
Type d'erreur: Non défini
Notice: Undefined index: block_row
https://augras.eu/puppy_forum/index.php?action=admin;area=portalblocks;sa=edit
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/admin/PortalAdminBlocks.controller.php
Ligne: 572


A suggestion for the recents messages/subjects block :
the number of messages/subjects can be define but is it possible to get a link "see more" to display the next x messages/subjects define ?

Philippe




Re: [ADDON] SimplePortal

Reply #511

Quote from: augras – I have some questions about SimplePortal.

- User informations block

What is Total messages number ?
It's absolutely not the total messages of the user.
It is the number of personal messages the user has.  SP simply reports what ElkArte says the user has. 
Quote from: augras – - Board stats block

Simultaneous connections : the number is not good (i get 512 only with 40 users)
I have not idea what this is, are you using a custom block?  The number of connections is not part of SP that I am aware.
Quote from: augras – I get some errors with SimplePortal on Elkarte1.1.8.

- Who is online block :

When there is a refresh to x seconds the block is reduced and the page must be refresh to get again who is online, but x seconds after....
Type d'erreur: Non défini
Notice: Undefined offset: 0
https://augras.eu/puppy_forum/index.php?
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/WhosOnline.block.php
Ligne: 130

- Board stats block

Type d'erreur: Non défini
Notice: Undefined index: boards
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 121
      
Type d'erreur: Non défini
Notice: Undefined index: categories
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 120
      
Type d'erreur: Non défini
Notice: Undefined index: topics
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 119   
   
Type d'erreur: Non défini
Notice: Undefined index: posts
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 118
      
Type d'erreur: Non défini
Notice: Undefined index: members
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 117
I'm not seeing this on any of test site (for board stats), still curious if you have some custom code you entered in that file?
Quote from: augras – - portal.subs.php

admin
Type d'erreur: Générale
Notice: Constant SPORTAL_STALE already defined
https://augras.eu/puppy_forum/index.php?action=admin;area=theme;sa=list;th=1;b2fo4gRXIylE=jAQ77G5zEJkLqPep1C1Lf09lYB0xj3SC
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/Portal.subs.php
Ligne: 62
      
admin
Type d'erreur: Générale
Notice: Constant SPORTAL_VERSION already defined
https://augras.eu/puppy_forum/index.php?action=admin;area=theme;sa=list;th=1;b2fo4gRXIylE=jAQ77G5zEJkLqPep1C1Lf09lYB0xj3SC
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/Portal.subs.php
Ligne: 61

- PortalAdminBlocks.controller.php
I'll put in a fix to prevent that, seems like SP is being called twice so I'll have to check that theme list area in the ACP
Quote from: augras –
admin   
Type d'erreur: Non défini
Notice: Undefined index: block_row
https://augras.eu/puppy_forum/index.php?action=admin;area=portalblocks;sa=edit
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/admin/PortalAdminBlocks.controller.php
Ligne: 572
I'm Guessing you chose a block location (before/after) but not the block itself.  I'll have to add additional user input checking.
Quote from: augras –
A suggestion for the recents messages/subjects block :
the number of messages/subjects can be define but is it possible to get a link "see more" to display the next x messages/subjects define ?
If I understand what you are asking, you would have to create a custom block with your "more" button.  I'd then likely create a custom page to display when the more is pressed so that it looked like you were still on the portal.

Re: [ADDON] SimplePortal

Reply #512

Quote from: Spuds –
Quote from: augras – I have some questions about SimplePortal.

- User informations block

What is Total messages number ?
It's absolutely not the total messages of the user.
It is the number of personal messages the user has.  SP simply reports what ElkArte says the user has.

Ok, thank you : i will change the translation. But the english must be Total personal messages Personal messages and  not Total messages.

Quote from: Spuds –  
Quote from: augras – - Board stats block

Simultaneous connections : the number is not good (i get 512 only with 40 users)
I have not idea what this is, are you using a custom block?  The number of connections is not part of SP that I am aware.

No custom block and no personal code, it's the normal block, the last line.

Quote from: Spuds –
Quote from: augras – - Who is online block :

When there is a refresh to x seconds the block is reduced and the page must be refresh to get again who is online, but x seconds after....
Type d'erreur: Non défini
Notice: Undefined offset: 0
https://augras.eu/puppy_forum/index.php?
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/WhosOnline.block.php
Ligne: 130

I think you haven't seen this error with the Who is online block

Quote from: Spuds –
Quote from: augras – - Board stats block

Type d'erreur: Non défini
Notice: Undefined index: boards
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 121
      
Type d'erreur: Non défini
Notice: Undefined index: categories
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 120
      
Type d'erreur: Non défini
Notice: Undefined index: topics
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 119   
   
Type d'erreur: Non défini
Notice: Undefined index: posts
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 118
      
Type d'erreur: Non défini
Notice: Undefined index: members
https://augras.eu/puppy_forum/index.php?https://augras.eu/puppy_forum/
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/BoardStats.block.php
Ligne: 117
I'm not seeing this on any of test site (for board stats), still curious if you have some custom code you entered in that file?

No custom code. And i have a lot of pages with these errors, it's not just one.

Quote from: Spuds –
Quote from: augras – - portal.subs.php

admin
Type d'erreur: Générale
Notice: Constant SPORTAL_STALE already defined
https://augras.eu/puppy_forum/index.php?action=admin;area=theme;sa=list;th=1;b2fo4gRXIylE=jAQ77G5zEJkLqPep1C1Lf09lYB0xj3SC
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/Portal.subs.php
Ligne: 62
      
admin
Type d'erreur: Générale
Notice: Constant SPORTAL_VERSION already defined
https://augras.eu/puppy_forum/index.php?action=admin;area=theme;sa=list;th=1;b2fo4gRXIylE=jAQ77G5zEJkLqPep1C1Lf09lYB0xj3SC
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/Portal.subs.php
Ligne: 61

- PortalAdminBlocks.controller.php
I'll put in a fix to prevent that, seems like SP is being called twice so I'll have to check that theme list area in the ACP

Ok, thank you.

Quote from: Spuds –
Quote from: augras –
admin   
Type d'erreur: Non défini
Notice: Undefined index: block_row
https://augras.eu/puppy_forum/index.php?action=admin;area=portalblocks;sa=edit
Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/admin/PortalAdminBlocks.controller.php
Ligne: 572
I'm Guessing you chose a block location (before/after) but not the block itself.  I'll have to add additional user input checking.

I think you are right : i have this error only one time.

Quote from: Spuds –
Quote from: augras –
A suggestion for the recents messages/subjects block :
the number of messages/subjects can be define but is it possible to get a link "see more" to display the next x messages/subjects define ?
If I understand what you are asking, you would have to create a custom block with your "more" button.  I'd then likely create a custom page to display when the more is pressed so that it looked like you were still on the portal.

As you say, i would like to stay still on the portal. You think about to create a custom html block with a "more" button ? And the "more" button open a custom page : but i don't really know how to create this page with the next messages/subjetcs.
Last Edit: January 09, 2022, 12:03:04 pm by augras

Re: [ADDON] SimplePortal

Reply #513

I made a change in the translation : the new files !
(one change in SPortal.french.php on line 54 : Messages personnels and not Total des messages).
Philippe

Re: [ADDON] SimplePortal

Reply #514

Thanks for the updated translation :cool:

I believe the majority of the errors you have reported are due to permissions (including the who's online going blank).  But what I feel is happening is that you have enabled blocks for everyone, including guest, but then in your forums permissions you don't allow them to see these things.   The portal should be dealing more gracefully with these type of contradictions, so that is a todo for me (but TBH its very low on my list, I have many things I want to work on)

So attached are two files, this should stop the stats block error and the who block from going blank.

Regarding the "Simultaneous connections" aka "Most Online (ever)"  ... This value is set in your database, its found in the settings table, the index is mostOnline  You will need to use phpmyadmin or adminer or ... and change that value to something other than 512.  Looking at your page stats here:  https://augras.eu/puppy_forum/index.php?action=stats you can see that it says "Connexions simultanées:   512 - Mercredi 04 Décembre 2019, 01:38:23"   %12 is a suspicious number, like a bad import or ??? but anyway its not a SP issue, its what your forum has for the value.

ETA: Of course adding attachments is broken (still) so I can't attach the files just yet

Re: [ADDON] SimplePortal

Reply #515

Looks like a zip file works but php did not ...

Well there are two files in that archive, both go in your subs/spblocks directory, just overwrite them.  That should help with the issues.

Re: [ADDON] SimplePortal

Reply #516

Quote from: Spuds – I believe the majority of the errors you have reported are due to permissions (including the who's online going blank).  But what I feel is happening is that you have enabled blocks for everyone, including guest, but then in your forums permissions you don't allow them to see these things.   The portal should be dealing more gracefully with these type of contradictions, so that is a todo for me (but TBH its very low on my list, I have many things I want to work on)
The blocks are on the portal and not in the forum and enabled for everyone, including guests.
Only one block is enabled on the portal and everywhere in the forum.

Quote from: Spuds – Regarding the "Simultaneous connections" aka "Most Online (ever)"  ... This value is set in your database, its found in the settings table, the index is mostOnline  You will need to use phpmyadmin or adminer or ... and change that value to something other than 512.  Looking at your page stats here:  https://augras.eu/puppy_forum/index.php?action=stats you can see that it says "Connexions simultanées:   512 - Mercredi 04 Décembre 2019, 01:38:23"   %12 is a suspicious number, like a bad import or ??? but anyway its not a SP issue, its what your forum has for the value.
Thank you, il will do that.

Quote from: Spuds – ETA: Of course adding attachments is broken (still) so I can't attach the files just yet
There is a message and it seems .php files are not in the list of authorized files... maybe it's just that, but some others are allowed.

Thank you,
Philippe

Re: [ADDON] SimplePortal

Reply #517

Quote from: Spuds – Looks like a zip file works but php did not ...

Well there are two files in that archive, both go in your subs/spblocks directory, just overwrite them.  That should help with the issues.
Thank's again.
I will do that tonight when i will be back at home,
Philippe

Re: [ADDON] SimplePortal

Reply #518

The 2 files are in place and it seems to solve the problem : no errors at this time in the log... i was nearly 50 pages.
Il will make a feedback in a few days.
Thank's a lot.
I'm going to "play" with phpmyadmin to solve my problem with the Simultaneous connections.

Re: [ADDON] SimplePortal

Reply #519

Quote from: Spuds – Regarding the "Simultaneous connections" aka "Most Online (ever)"  ... This value is set in your database, its found in the settings table, the index is mostOnline  You will need to use phpmyadmin or adminer or ... and change that value to something other than 512.  Looking at your page stats here:  https://augras.eu/puppy_forum/index.php?action=stats you can see that it says "Connexions simultanées:   512 - Mercredi 04 Décembre 2019, 01:38:23"   %12 is a suspicious number, like a bad import or ??? but anyway its not a SP issue, its what your forum has for the value.
I got it and put a 9 !
Thank you.

Any errors at this time in the logs.

Re: [ADDON] SimplePortal

Reply #520

Hi,
as the terminator this error is back !

Code: [Select]
Type d'erreur: Non défini
    Notice: Undefined offset: 0

    https://augras.eu/puppy_forum/index.php?action=PortalRefresh;sa=whos;api

    Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/subs/spblocks/WhosOnline.block.php
    Ligne: 130

The WhosOnline block works still fine after your new file but the error is coming back : it seems it's only when i'm whith my admin account (no error with others accounts).
Philippe

Re: [ADDON] SimplePortal

Reply #521

Hi,
It seems this error is only when someone is connected and there is a robot also : the difference between a user and a robot is that the robot has no avatar and maybe the error is coming from that.
It's ok with Guests, but Guests are not displayed in the user list : Robots are displayed
who.JPG
Last Edit: January 14, 2022, 02:41:46 am by augras

Re: [ADDON] SimplePortal

Reply #522

Thanks for the additional details.  I'm still looking in to why that is happening.

Re: [ADDON] SimplePortal

Reply #523

How might one add a block for searching article content?

Re: [ADDON] SimplePortal

Reply #524

There is a block Quick search : is it what you are looking for ?