News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Light Portal

Started by Bugo, March 25, 2020, 07:36:36 AM

Previous topic - Next topic

@rjen

Quote from: Bugo on August 25, 2022, 07:31:34 AMHowever, I keep waiting for portal users to start sharing their own portal plugins. For example, someone could make a plugin to add collapse/expand buttons for blocks :)

That would be nice, but I am afraid that there are not enough contributors for that. TinyPortal used to have similar functionality, allowing people to contribute plugins and modules.

It never really caught on, so we finally stripped the functionality.

I hope to see it happen with Light Portal, but...
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

vbgamer45

Quote from: @rjen on August 25, 2022, 09:35:40 AM
Quote from: Bugo on August 25, 2022, 07:31:34 AMHowever, I keep waiting for portal users to start sharing their own portal plugins. For example, someone could make a plugin to add collapse/expand buttons for blocks :)

That would be nice, but I am afraid that there are not enough contributors for that. TinyPortal used to have similar functionality, allowing people to contribute plugins and modules.

It never really caught on, so we finally stripped the functionality.

I hope to see it happen with Light Portal, but...
Same with mine, guess not as many developers out there but I do like how Light Portal does it.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

eazyguy0

Nice Portal I love it but the Random Post Plugin keep giving me fatal errors

Saying the number of posts is returning string instead of Integer, please can you help me with that?

Bugo

Quote from: eazyguy0 on October 11, 2022, 07:47:46 PMNice Portal I love it but the Random Post Plugin keep giving me fatal errors

Saying the number of posts is returning string instead of Integer, please can you help me with that?
You need to make a small change in the plugin file.

wylekk

Привет. На практике не хватает функции "Кто может управлять всеми статьями"
Можно ли ее реализовать?

Hello. In practice, there is not enough function "Who can manage all articles"
Can it be implemented?


cieplutki

#246
whats a bug on this line:
            'start_day'          => $this->options['calendar_start_day'] ?: 0,on Sources/LightPortal/Addons/CurrentMonth/CurrentMonth.php linie 46
maybe it should be like this:
'start_day'          => !empty($options['calendar_start_day']) ? $options['calendar_start_day'] : 0,




.

Bugo

"?:" is ternary operator. Are you getting notice, warning, or error? This mod requires PHP 7.4+ to work.
"$this->options['calendar_start_day'] ?: 0" = "$this->options['calendar_start_day'] = empty($this->options['calendar_start_day']) ? 0 : $this->options['calendar_start_day']"

cieplutki

Wersja moda: 2.0, wersja PHP: 7.4.32, MySQL wersja: 10.4.26-MariaDB-cll-lve.
error: Undefined index: calendar_start_day
error: undefined_vars




.

Bugo

Can you give me the page url where the error occurs?

cieplutki

my site: https://ewmapa.pl/

Błąd
Typ błędu
Undefined_vars
Komunikat błędu
8: Undefined index: calendar_start_day
Plik
/home/ewmapapl/websites/ewmapa/Sources/LightPortal/Addons/CurrentMonth/CurrentMonth.php
Linia
46
URL strony powodującej błąd
https://ewmapa.pl/index.php?https://ewmapa.pl/
Informacje backtrace
#0: smf_error_handler()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/Addons/CurrentMonth/CurrentMonth.php w linii 46
#1: getData()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/Utils/Cache.php w linii 59
#2: setFallback()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/Addons/CurrentMonth/CurrentMonth.php w linii 135
#3: prepareContent()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/AddonHandler.php w linii 107
#4: run()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/app.php w linii 33
#5: prepare_content()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/Entities/Block.php w linii 45
#6: show()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/Integration.php w linii 185
#7: menuButtons()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/Subs.php w linii 5787
#8: call_integration_hook()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/Subs.php w linii 5592
#9: setupMenuContext()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/Subs.php w linii 4378
#10: setupThemeContext()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/Subs.php w linii 4535
#11: template_header()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/Subs.php w linii 4178
#12: obExit()
Wywoływana z /home/ewmapapl/websites/ewmapa/index.php w linii 206




.

Bugo

Replace line 46 (Addons/CurrentMonth/CurrentMonth.php) with it:
'start_day'          => (int) $this->options['calendar_start_day'] ?? 0,

cieplutki

still the same error
only when i change
'start_day'          => !empty($options['calendar_start_day']) ? $options['calendar_start_day'] : 0,does not display errors




.

thatjustit

I tried adding blocks of random topics and it broke my forum
Fatal error: Uncaught TypeError: Argument 1 passed to Bugo\LightPortal\Addons\RandomTopics\RandomTopics::getData() must be of the type int, string given, called in /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/Utils/Cache.php on line 59 and defined in /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/Addons/RandomTopics/RandomTopics.php:57 Stack trace: #0 /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/Utils/Cache.php(59): Bugo\LightPortal\Addons\RandomTopics\RandomTopics->getData('10') #1 /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/Addons/RandomTopics/RandomTopics.php(190): Bugo\LightPortal\Utils\Cache->setFallback('Bugo\\LightPorta...', 'getData', '10') #2 /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/AddonHandler.php(107): Bugo\LightPortal\Addons\RandomTopics\RandomTopics->prepareContent('random_topics', 2, 72000, Array) #3 /usr/home/pro33/domains/burning-brushes.pl/public_html/So in /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/Addons/RandomTopics/RandomTopics.php on line 57

Bugo


Bugo

I plan to add a FAQ section to the documentation, so post questions you are interested in.

Bugo

v2.1 beta released. What's new?

* Updated some plugins
* Updated documentation
* Fixed found issues
* Added rating system for page comments
* Added Page Moderator role - members with this permission can manage any pages
* Added new plugins - ExtendedBlockOptions, RandomPages, and ChessBoard
* Added tabs for some text inputs
* Added option for page comment sorting
* Changed minimum PHP version required - now it's 8.0
* And a lot of other small edits...

How to update:
    * Export your blocks/pages (optional = if you want to delete the previous version entirely)
    * Uninstall the previous version
    * Update PHP version to 8.0
    * Install the new version
    * Import your backups (optional)

Ricsca

How come the latest 2.1 beta only works with php 8?

Bugo

Because in developing this modification I decided to keep up with the times.

Ricsca

Yes but still 7.4 is used by many.
New versions should be compatible with both 7.4 and 8

Advertisement: