Skip to main content
Recent Posts
66
Addons / Re: [ADDON] SimplePortal
Last post by Spuds -
Quote from: "ScottJB" – New bug detected:

When try to create new page:
In ManagePortalPages.php in the prepareEditor function you will need to add a line to the $editorOptions = [] array.

Find
Code: [Copy]
		$editorOptions = [
'id' => 'content',
'value' => $context['SPortal']['page']['body'],
'width' => '100%',
'height' => '275px',
'preview_type' => 1,
'smiley_container' => 'smileyBox_message',
'bbc_container' => 'bbcBox_message',
];
Update (basically just adding the disable_smiley_box line)
Code: [Copy]
		$editorOptions = [
'id' => 'content',
'value' => $context['SPortal']['page']['body'],
'width' => '100%',
'height' => '275px',
'preview_type' => 1,
'smiley_container' => 'smileyBox_message',
'bbc_container' => 'bbcBox_message',
'disable_smiley_box' => $GLOBALS['context']['smiley_set'] === 'none' || !empty($GLOBALS['options']['show_no_smileys']),
];
67
Addons / Re: [ADDON] SimplePortal
Last post by Spuds -
Quote from: "ScottJB" – Still have the issue of not being able to select a board for Board News blocks
Looks like the board values were being saved to the DB as expected, e.g. 5|3|12 but were not being cast back to int in the code.  The fix for this is in SimplePortal/AdminController/ManagePortalBlocks.php

find (should be line 448)
Code: [Copy]
					$config_variable = !is_array($config_variable) ? explode('|', $config_variable) : $config_variable;
ADD after
Code: [Copy]
					$config_variable = array_map('intval', $config_variable);
68
Addons / Re: [ADDON] Levertine Gallery
Last post by ScottJB -
@Spuds

Also, for some reason, the comments section does not seem to show.
I have everyone having permission to comment, but even admin does not see the ability to comment.

screencapture-scottjb9276-cc-nf-index-php-2026-08-01-07_00_25.png
69
Addons / Re: [ADDON] SimplePortal
Last post by ScottJB -
@Spuds

New bug detected:

When try to create new page:

Code: [Copy]
Type of error: Undefined
 Warning: Undefined array key "disable_smiley_box"
 /index.php?action=admin;area=portalpages;sa=edit
 File: /sources/subs/Editor.subs.php—Line:112

Code: [Copy]
Warning: Undefined array key "disable_smiley_box"
#0: {closure:ElkArte\Errors\ErrorHandler::__construct():53}()
Called from: /sources/subs/Editor.subs.php line: 112
#1: create_control_richedit()
Called from: /Addons/SimplePortal/AdminController/ManagePortalPages.php line: 402
#2: prepareEditor()
Called from: /Addons/SimplePortal/AdminController/ManagePortalPages.php line: 346
#3: action_edit()
Called from: /Addons/SimplePortal/AdminController/ManagePortalPages.php line: 498
#4: _sportal_admin_page_edit_save()
Called from: /Addons/SimplePortal/AdminController/ManagePortalPages.php line: 276
#5: action_edit()
Called from: /sources/ElkArte/Action.php line: 167
#6: dispatch()
Called from: /Addons/SimplePortal/AdminController/ManagePortalPages.php line: 79
#7: action_index()
Called from: /sources/ElkArte/Action.php line: 167
#8: dispatch()
Called from: /sources/ElkArte/AdminController/Admin.php line: 98
#9: action_index()
Called from: /sources/ElkArte/SiteDispatcher.php line: 421
#10: dispatch()
Called from: /index.php line: 143
#11: elk_main()
Called from: /index.php line: 71
70
Bug Reports / Re: ElkArte 2.0 Beta 1 Issues
Last post by ScottJB -
@Spuds

Found a bug while trying to get to a board on my site:

Code: [Copy]
Type of error: Undefined
 Warning: Undefined array key "num_replies"
 /index.php?board=8
 File: /sources/ElkArte/TopicUtil.php—Line:62


Code: [Copy]
Warning: Undefined array key "num_replies"