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

Re: [ADDON] SimplePortal

Reply #615

Quote from: Burke Knight – Yes, I have to use 7.4 due to Levertine, as it sticks at processing images when uploading when using PHP 8.x.
Interesting ... I'm sure I updated everything for 8+, but I may not have done an official release.  I'll look into that.

Re: [ADDON] SimplePortal

Reply #616

Quote from: Spuds – I re-posted the file, give that one a try.  I think the issue is simply I've been using PHP 8.1 and I'm guessing you are on 7.4, the update should address that.

Tried it and modified it a little bit. Very nice block, my friend. :)

Re: [ADDON] SimplePortal

Reply #617

@Spuds
Is there a way to set the Board News block to posts, not topics?
On one site, that would really be better for me. :)

Re: [ADDON] SimplePortal

Reply #618

I'll take a look in the next couple of days ... I think you can.   I'm fixing a few 1.0.1 bugs and will be getting a 1.0.2 out soon ... plus I have 1.2 of the gallery and 1.1.10 of ElkArte so I'm loosing some:brain:cells right now LOL

Re: [ADDON] SimplePortal

Reply #619

Don't get confused, or "tricky" and decide to reuse code from one project to save time..  :tongue:

code.jpg

// Deep inside every dilemma lies a solution that involves explosives //

Re: [ADDON] SimplePortal

Reply #620

I think I found a bug related to Simple Portal,
In ACP -> Themes -> Theme settings (/index.php?action=admin;area=theme) I get an error: Constant SPORTAL_VERSION already defined

In Elk error log I see:
file: /public/sources/subs/Portal.subs.php
line: 61
61: define('SPORTAL_VERSION', '1.0.1');
62: define('SPORTAL_STALE', 'sp101');
sorry for my bad english

Re: [ADDON] SimplePortal

Reply #621

I have that fixed in the (soon) 1.0.2 ... keep looking for those:bug:Here is the short list in 1.0.2 thus far

  • Minor improvements to better support Elk Arte 1.1.9+ micro data
  • Layout fixes in login block (css)
  • !! Fix for MySql 8.02 reserved 'row' name
  • Updater improvements for pre 1.0 versions
  • Minor improvements to gallery block (levgal)
  • Fix issue where shoutbox was not rendering smileys
  • Theme selection block was not honoring user selectable themes
  • When adding an article comment, position the cursor in the textarea
  • !! Fetching an articles attachment could cause a 502 server error
  • Article attachments did not play well when auto-manage attachments was enabled (mainly during an edit)
  • Improve admin area news block formatting
  • Boardstats block could cause PHP8.2 depreciation notice
  • Various other minor tweaks (including Constant SPORTAL_VERSION already defined)

Re: [ADDON] SimplePortal

Reply #622


Whew! As if what I've already found isn't keeping you busy around here, you have to go and tell me to find more???  :laugh:

Re: [ADDON] SimplePortal

Reply #623

I know, I just like pain:punch:  LOL

Re: [ADDON] SimplePortal

Reply #624

:grin:  :grin:  Lol
sorry for my bad english


Re: [ADDON] SimplePortal

Reply #626

Quote from: Spuds – keep looking for those:bug:Here is the short list in 1.0.2 thus far

You just had to go and state that, eh?
Seems when on index.php?action=forum the Forum tab is highlighted as active as should be, but when go into boards or topics, it goes back to the Home tab as showing active.

Board Index:
ElkArte_SP_Active_1.png

Inside a board:
ElkArte_SP_Active_2.png

Re: [ADDON] SimplePortal

Reply #627

That be a bug  :grin: Yeah for 1.0.3

The fix should be to edit
/sources/admin/ManageSPortalModule.controller.php

Find
Code: (find) [Select]
		// Define the new menu item(s), show it for modes 1 and 3 only
$buttons = elk_array_insert($buttons, 'home', array(
'forum' => array(
'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
'data-icon' => 'i-spgroup',
'href' => $sportal_url,
'show' => empty($context['disable_sp']),
'sub_buttons' => array(),
),

Code: (replace) [Select]
		// Define the new menu item(s), show it for modes 1 and 3 only
$buttons = elk_array_insert($buttons, 'home', array(
'forum' => array(
'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
'data-icon' => 'i-spgroup',
'href' => $sportal_url,
'show' => empty($context['disable_sp']),
'sub_buttons' => array(),
'action_hook' => true,
),
So adding that 'action_hook' => true, to that menu options array

Re: [ADDON] SimplePortal

Reply #628

On a new install, with ElkArte 1.1.9 Install and elk_simple_portal-1.0.2 I get an error when enable SP:

Code: [Select]
Type of error: Undefined
Warning: Undefined variable $javascript
/index.php?action=admin;area=portalconfig;sa=generalsettings
File: /allpoints.cc.nf/sources/subs/Portal.subs.php
Line: 240

I've had this issue on 2 sites, and had to disable Resize images on portal.


Also, when uninstall SP:

Code: [Select]
Type of error: General
Warning: require_once(/sources/subs/Portal.subs.php): Failed to open stream: No such file or directory
/index.php?action=admin;area=packages;sa=uninstall2;package=elk_simple_portal-1.0.2.zip;pid=2
File: /sources/admin/ManageSPortalModule.controller.php
Last Edit: January 13, 2024, 10:45:28 pm by Burke Knight