News:

Wondering if this will always be free?  See why free is better.

Main Menu

Light Portal

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

Previous topic - Next topic

Doug Heffernan

Quote from: FrizzleFried on March 11, 2022, 10:57:28 AMI've read through this support topic and I can't seem to find a definitive answer.  I did find where someone else asked the question (well,  insinuated that the mod (at the time) needed one).

Shoutbox.  Does this portal have a shoutbox plugin?

Thanks!

It would have been much easier, and quicker too, if you installed it and checked it out for yourself, rather than going through all the 10 pages of this topic as you claim, posting and waiting for an answer. :D


FrizzleFried

I don't 'play' with my live forum to be honest... and I've yet to put together a 2.1.1 sandbox.


Doug Heffernan

Quote from: FrizzleFried on March 11, 2022, 12:28:34 PMI don't 'play' with my live forum to be honest... and I've yet to put together a 2.1.1 sandbox.



I hear you. That is why a test forum can come in handy. Like that you can try out things without being afraid of messing up the live/main forum.

Bugo

Quote from: FrizzleFried on March 11, 2022, 10:57:28 AMI've read through this support topic and I can't seem to find a definitive answer.  I did find where someone else asked the question (well,  insinuated that the mod (at the time) needed one).

Shoutbox.  Does this portal have a shoutbox plugin?

Thanks!
No, there's no shoutbox block yet. And there are no Aeva Media/SMF Gallery/Levertine Gallery blocks yet too ;)

Bugo

v2.0 RC2

* Fixed found issues
* Alternate frontpage layouts moved to separate files (`/Themes/default/LightPortal/layouts`)
* Updated docs site
* Updated some translations
* Updated some plugins
* Added export/import for block presets (experiment)
* Added a new plugin - CategoryList
* Some plugins removed from the package and now are available for download separately

pocttopus

There is a new version from today?  ???

Diego Andrés

Probably just language files update?

SMF Tricks - Free & Premium Responsive Themes for SMF.

Bugo

Just a new user review on the mod's page :)

pocttopus

It's the same file name from previous version 2.0 RC2

Bugo

Does anyone use the MainMenu plugin?

Diego Andrés

I don't use it, but adding the pages to the menu is something nice to occasionally have, if it's not dependent on it.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Darknico

Quote from: Bugo on April 07, 2022, 12:54:07 PMDoes anyone use the MainMenu plugin?

Yes, I use MainMenu :)
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Biology Forums

You've done an fantastic job here. I couldn't find any faults browsing through your demo site.

Bugo

Question to users who make edits to the portal templates. How would you feel if I added support for Blade Template Engine? Would that make it easier for you?

Example:


@empty ($context['lp_active_blocks'])
	
<
div class="col-xs">
@endif

	
<
div class="lp_frontpage_articles article_alt_view">

	
@
php show_pagination() @endphp

	
@foreach (
$context['lp_frontpage_articles'] as $article)
	
	
<
div class="col-xs-12 col-sm-6 col-md-{{ $context['lp_frontpage_num_columns'] }}">
	
	
	
<
article class="roundframe">
	
	
	
	
<
header>
	
	
	
	
	
<
div class="title_bar">
	
	
	
	
	
	
<
h3>
	
	
	
	
	
	
	
<
a href="{{ $article['msg_link'] }}">{{ $article['title'] }}</a>@if ($article['is_new']) <span class="new_posts">{{ $txt['new'] }}</span>@endif
	
	
	
	
	
	
</
h3>
	
	
	
	
	
</
div>
	
	
	
	
	
<
div>

	
	
	
	
	
@if (! empty(
$modSettings['lp_show_num_views_and_comments']))
	
	
	
	
	
	
<
span class="floatleft">

	
	
	
	
	
	
@if (! empty(
$article['views']['num']))
	
	
	
	
	
	
	
{{ 
str_replace(' class='' title="' $article['views']['title'] . '" class='$context['lp_icon_set']['views']), $article['views']['num'] }}
	
	
	
	
	
	
@endif

	
	
	
	
	
	
@if (! empty(
$article['views']['after']))
	
	
	
	
	
	
	
{{ 
$article['views']['after'] }}
	
	
	
	
	
	
@endif

	
	
	
	
	
	
@if (! empty(
$article['replies']['num']))
	
	
	
	
	
	
	
{{ 
' ' str_replace(' class='' title="' $article['replies']['title'] . '" class='$context['lp_icon_set']['replies']), $article['replies']['num'] }}
	
	
	
	
	
	
@endif

	
	
	
	
	
	
@if (! empty(
$article['replies']['after']))
	
	
	
	
	
	
	
{{ 
$article['replies']['after'] }}
	
	
	
	
	
	
@endif

	
	
	
	
	
	
</
span>
	
	
	
	
	
@endif

	
	
	
	
	
@if (! empty(
$article['section']['name']))
	
	
	
	
	
	
<
class="floatright" href="{{ $article['section']['link'] }}">{!! $context['lp_icon_set']['category'] !!}{{ $article['section']['name'] }}</a>
	
	
	
	
	
@endif

	
	
	
	
	
</
div>

	
	
	
	
@if (! empty(
$article['image']))
	
	
	
	
	
<
img class="lazy" data-src="{{ $article['image'] }}" width="443" height="221" alt="{{ $article['title'] }}">
	
	
	
	
@endif

	
	
	
	
</
header>
	
	
	
	
<
div class="article_body">

	
	
	
	
@if (! empty(
$article['teaser']))
	
	
	
	
	
<
p>{{ $article['teaser'] }}</p>
	
	
	
	
@endif

	
	
	
	
</
div>
	
	
	
	
<
div class="article_footer">
	
	
	
	
	
<
div class="centertext">
	
	
	
	
	
	
<
class="bbc_link" href="{{ $article['link'] }}">{{ $txt['lp_read_more'] }}</a>
	
	
	
	
	
</
div>
	
	
	
	
	
<
div class="centertext">

	
	
	
	
	
@if (! empty(
$article['datetime']))
	
	
	
	
	
	
<
time datetime="{{ $article['datetime'] }}">{!! $context['lp_icon_set']['date'] !!}{{ $article['date'] }}</time>
	
	
	
	
	
@endif

	
	
	
	
	
@if (! empty(
$modSettings['lp_show_author']) && ! empty($article['author']))
	
	
	
	
	
	
@if (! empty(
$article['author']['id']) && ! empty($article['author']['name']))
	
	
	
	
	
	
	
| {!! 
$context['lp_icon_set']['user'] !!}<a href="{{ $article['author']['link'] }}" class="card_author">{{ $article['author']['name'] }}</a>
	
	
	
	
	
	
@else
	
	
	
	
	
	
	
| <
span class="card_author">{{ $txt['guest_title'] }}</span>
	
	
	
	
	
	
@endif
	
	
	
	
	
@endif

	
	
	
	
	
</
div>
	
	
	
	
</
div>
	
	
	
</
article>
	
	
</
div>
	
@endforeach

	
@
php show_pagination('bottom') @endphp

	
</
div>

@empty (
$context['lp_active_blocks'])
	
</
div>
@endif

Arantor

I'd personally advocate Twig over Blade (as someone who routinely does both, I much prefer Twig's syntax and I feel it is easier to follow for less-technical people)

But that's just my gut reaction.

Absolutely +1 to a template engine.

Bugo

v2.0 RC3

* Fixed found issues
* Updated some plugins
* Updated docs
* Updated FA icon list (to the FontAwesome 6.1.1)
* Added new plugins:
* LineAwesomeIcons
* GalleryFrontPage
* Removed the InitialAvatars plugin (use the Avatars Display Integration mod instead)
* Added previous and next links for the current page
* Added the moderation log for updating/removing pages
* Replace Slim Select with Virtual Select
* Plugin settings are saving in a separate table now

Unfortunately, the Polish and French localizations are still incomplete.

How to update

* At first, remove Sources/LightPortal/Addons dir.
* Uninstall the mod via the Package Manager.
* Install the new version.

New promotion: all premium plugins are now available for portal translators and SMF Charter members, by request.

pocttopus

After trying to install RC3, I get this message:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci' at line 6
File: /home/xxx/public_html/Packages/temp/database.php
Line: 488

Darknico

Quote from: pocttopus on April 20, 2022, 01:53:10 AMAfter trying to install RC3, I get this message:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci' at line 6
File: /home/xxx/public_html/Packages/temp/database.php
Line: 488

same issue :(
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Bugo

#218
And you both have MySQL version ...? I think it relates to reserved words in MySQL.

https://github.com/dragomano/Light-Portal/issues/90

pocttopus

 Database client version: libmysql - mysqlnd 7.4.28
 Server version: 5.7.37-log-cll-lve - MySQL Community Server - (GPL)
 PHP version: 7.4.28
 phpMyAdmin Version information: 4.9.7

Advertisement: