Skip to main content
[ADDON] SimplePortal Started by Spuds · · Read 539559 times 0 Members and 1 Guest are viewing this topic.

Re: [ADDON] SimplePortal

Reply #645

I'll get one attached this week.

Re: [ADDON] SimplePortal

Reply #646

Here is the test package for use with Elk 2.0 only

Re: [ADDON] SimplePortal

Reply #647

@Spuds

Working on having an image displayed in portal block for the gallery.
However, I can't get visibility profile to work right.

I used to use this before: ~action|media
Yet, not working. I want it showing on all media pages. (Levertine)
This is on my 2.0 site.

EDIT:

Also, just noticed, even though everything is set to show my main blocks everywhere, and visibility profile shows all, the blocks will only show on portal.
Last Edit: July 30, 2026, 11:06:31 am by Burke Knight

Re: [ADDON] SimplePortal

Reply #648

@Spuds
Another bug detected.
When try to create new block, do not even get to select type, but get:

Code: [Copy]
Type of error: General
 Exception: Class "SP_Abstract_Block" not found
 /index.php?action=admin;area=portalblocks;sa=add;col=5
 File: /Addons/SimplePortal/subs/spblocks/RecentEx.block.php—Line:29

Code: [Copy]
Exception: Class "SP_Abstract_Block" not found
#0: {closure:ElkArte\Errors\ErrorHandler::__construct():54}()
Called from: unknown line: -1

Re: [ADDON] SimplePortal

Reply #649

Looks like you are trying to use a custom block from 1.x, those will not work with this new version of SimplePortal.

I did a 2.0 version for RecentEx that you can try, its attached.  Overwrite the one you added to Addons/SimplePortal/subs/spblocks, and if you added any others there they need to be removed so they can be updated.

Re: [ADDON] SimplePortal

Reply #650

@Spuds
Any idea on why no blocks will show outside of the main portal page?
I have everything set right, and they should be showing.
This is on 2 sites.

Re: [ADDON] SimplePortal

Reply #651

I'm looking into that now ... its a bug  :shocked:

Re: [ADDON] SimplePortal

Reply #652

Quote from: Spuds – Looks like you are trying to use a custom block from 1.x, those will not work with this new version of SimplePortal.

I did a 2.0 version for RecentEx that you can try, its attached.  Overwrite the one you added to Addons/SimplePortal/subs/spblocks, and if you added any others there they need to be removed so they can be updated.

Funny thing was, I'd removed the block, and it was not in the new site.
Must have still been something in the database about it, maybe?
Anyway, seems to have done the trick with the abstract issue. :)

Re: [ADDON] SimplePortal

Reply #653

For the blocks not showing other than the main page.

in Portal.subs.php find (should be line 211)

Code: [Copy]
	// Add the portal template
theme()->getTemplates()->load('Portal');
and update as follows
Code: [Copy]
	// Add the portal template
theme()->getTemplates()->load('Portal');
theme()->getLayers()->add('portal');

Re: [ADDON] SimplePortal

Reply #654

That seems to have done it, my friend.

Still have the issue of not being able to select a board for Board News blocks.

@Spuds

EDIT:

I think I solved that one.
It happened to be that all boards were showing everywhere, due to not keeping my set boards for them.
Switched all board news blocks to correct visibility profiles, and it cleared up.
Last Edit: July 31, 2026, 12:54:03 pm by ScottJB