[EXT] Simple Portal

Extensions & Styles for phpBB 3.3.X maintained and supported by Stoker
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 147
Joined: 07 Mar 2010, 00:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy
Contact:

Re: [EXT] Simple Portal

Post by Galandas »

Don't worry Stoker, it's just a stupid whim of mine, it's nice to see your extensions updated. ;)
User avatar
Stoker
Site Admin
Site Admin
Posts: 3558
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: [EXT] Simple Portal

Post by Stoker »

Galandas wrote: 16 Dec 2024, 11:48 Don't worry Stoker, it's just a stupid whim of mine, it's nice to see your extensions updated. ;)
This is what I use:

Code: Select all

<div class="forabg">
	<div class="inner">
		<ul class="topiclist">
			<li class="header">
				<dl class="row-item">
					<dt><div class="list-inner">{{ lang('PORTAL_PAGE') }}</div></dt>
					<dd>&nbsp;</dd>
				</dl>
			</li>
		</ul>
		<!-- IF not S_IS_BOT and ENABLE_XMAS and S_XMAS -->
		<div class="panel" style="background-image: url('images/christmasbg1.png');background-repeat: no-repeat;background-position: center center;">
		<!-- ELSE -->
		<div class="panel" style="background-image: url('images/hippie2.png');background-repeat: no-repeat;background-position: center bottom;">
		<!-- ENDIF -->
			<div class="inner">
				<div class="content"><div style="text-align:center;padding-top:10px;">{S_WELCOME}<br><br></div>
				{{ PORTAL_OUTPUT }}</div>
			</div>
		</div>
	</div>
</div>
Board rules! No PM support
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 147
Joined: 07 Mar 2010, 00:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy
Contact:

Re: [EXT] Simple Portal

Post by Galandas »

DEMO HERE

Thank you very much, I actually guessed the code and put it similar to yours, then I checked your forum and found your answer, but actually the code was very similar to yours, however I wanted to bring to your attention a problem, I installed the portal on my forum, and it told me that the extension could not be installed due to the lack of the version config: here is the error it gave me: Something did not work properly during the request and an exception was generated. The changes made before the error occurred were corrected in the best possible way, but it is recommended to check the Board to verify any errors.

The "portal_version" configuration setting does not exist.
I solved it by modifying the file in the migrations/portal_1_0_7.php folder in this way: config.update to config.add

Code: Select all

public function update_data()
{
return array(
array('config.add', array('portal_version', '1.0.7')),
);
}
after the fix the extension installed :thumb:

lastly I inserted the code into the template like this, I thought of inserting the image in the images folder in the extension itself:

Code: Select all

{% include 'overall_header.html' %}

<p class="{S_CONTENT_FLOW_END} responsive-center time<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{MEMBER_FOR}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p>
<!-- IF S_USER_LOGGED_IN --><p class="responsive-center time">{L_WELCOME_YOU} {SITENAME}: {S_JOINED_DATE}</p><!-- ENDIF -->

<!-- IF not S_IS_BOT and ENABLE_XMAS -->
<!-- IF (XMAS_TESTMODE and U_ACP) or not XMAS_TESTMODE -->
<!-- IF S_XMAS -->
<div class="hat"></div>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ENDIF -->

<div class="forabg">
	<div class="inner">
		<ul class="topiclist">
			<li class="header">
				<dl class="row-item">
					<dt><div class="list-inner">{{ lang('PORTAL_PAGE') }}</div></dt>
					<dd>&nbsp;</dd>
				</dl>
			</li>
		</ul>
		<div class="panel" style="background-image: url('{BOARD_URL}ext/stoker/portal/styles/prosilver/theme/images/hippie2.png');background-repeat: no-repeat;background-position: center bottom;">
			<div class="inner">
				<div class="content"><div style="text-align:center;padding-top:10px;">{S_WELCOME}<br><br></div>
				{{ PORTAL_OUTPUT }}</div>
			</div><br>
			<a href="https://phpbb3bbcodes.com/viewtopic.php?p=17819%5D" class="button"><span>Download Simple Portal</span></a>
		</div>
	</div>
</div>

{% include 'overall_footer.html' %}
the translation on my forum here it is: https://phpbb3world.altervista.org/comm ... 4090#p4090
User avatar
Stoker
Site Admin
Site Admin
Posts: 3558
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: [EXT] Simple Portal

Post by Stoker »

Galandas wrote: 18 Dec 2024, 04:28 DEMO HERE

Thank you very much, I actually guessed the code and put it similar to yours, then I checked your forum and found your answer, but actually the code was very similar to yours, however I wanted to bring to your attention a problem, I installed the portal on my forum, and it told me that the extension could not be installed due to the lack of the version config: here is the error it gave me: Something did not work properly during the request and an exception was generated. The changes made before the error occurred were corrected in the best possible way, but it is recommended to check the Board to verify any errors.

The "portal_version" configuration setting does not exist.
I solved it by modifying the file in the migrations/portal_1_0_7.php folder in this way: config.update to config.add

Code: Select all

public function update_data()
{
return array(
array('config.add', array('portal_version', '1.0.7')),
);
}
after the fix the extension installed :thumb:

lastly I inserted the code into the template like this, I thought of inserting the image in the images folder in the extension itself:

Code: Select all

{% include 'overall_header.html' %}

<p class="{S_CONTENT_FLOW_END} responsive-center time<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{MEMBER_FOR}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p>
<!-- IF S_USER_LOGGED_IN --><p class="responsive-center time">{L_WELCOME_YOU} {SITENAME}: {S_JOINED_DATE}</p><!-- ENDIF -->

<!-- IF not S_IS_BOT and ENABLE_XMAS -->
<!-- IF (XMAS_TESTMODE and U_ACP) or not XMAS_TESTMODE -->
<!-- IF S_XMAS -->
<div class="hat"></div>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ENDIF -->

<div class="forabg">
	<div class="inner">
		<ul class="topiclist">
			<li class="header">
				<dl class="row-item">
					<dt><div class="list-inner">{{ lang('PORTAL_PAGE') }}</div></dt>
					<dd>&nbsp;</dd>
				</dl>
			</li>
		</ul>
		<div class="panel" style="background-image: url('{BOARD_URL}ext/stoker/portal/styles/prosilver/theme/images/hippie2.png');background-repeat: no-repeat;background-position: center bottom;">
			<div class="inner">
				<div class="content"><div style="text-align:center;padding-top:10px;">{S_WELCOME}<br><br></div>
				{{ PORTAL_OUTPUT }}</div>
			</div><br>
			<a href="https://phpbb3bbcodes.com/viewtopic.php?p=17819%5D" class="button"><span>Download Simple Portal</span></a>
		</div>
	</div>
</div>

{% include 'overall_footer.html' %}
the translation on my forum here it is: https://phpbb3world.altervista.org/comm ... 4090#p4090
Glad you got it sorted.
I have had some problems with the config update. Did you update from 1.0.5 to 1.0.7?
Board rules! No PM support
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 147
Joined: 07 Mar 2010, 00:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy
Contact:

Re: [EXT] Simple Portal

Post by Galandas »

what I did or downloaded the updated version 1.0.7 then uploaded it to my forum and enabled it, when I enabled the extension it gave me the warning I reported above.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3558
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: [EXT] Simple Portal

Post by Stoker »

Galandas wrote: 18 Dec 2024, 13:23 what I did or downloaded the updated version 1.0.7 then uploaded it to my forum and enabled it, when I enabled the extension it gave me the warning I reported above.
Found the bug. It happens when updating from 1.0.5 to 1.0.7
Thats why I asked you which version you updated from.
Board rules! No PM support
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 147
Joined: 07 Mar 2010, 00:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy
Contact:

Re: [EXT] Simple Portal

Post by Galandas »

ok the important thing is that you have identified the "defect". perfect. I was thinking of expanding this portal and merging it with my extension, Simple Block Gest. basically I added an event in the listener.php file of my extension and created an html file in the event folder,/ with the same name that I inserted in the php file, finally I pasted the event into the portal theme, here is the result.
https://phpbb3world.altervista.org/comm ... php/portal I was wondering if you are interested in this union, maybe I can release a package here with the two extensions merged?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3558
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: [EXT] Simple Portal

Post by Stoker »

Galandas wrote: 18 Dec 2024, 15:13 ok the important thing is that you have identified the "defect". perfect. I was thinking of expanding this portal and merging it with my extension, Simple Block Gest. basically I added an event in the listener.php file of my extension and created an html file in the event folder,/ with the same name that I inserted in the php file, finally I pasted the event into the portal theme, here is the result.
https://phpbb3world.altervista.org/comm ... php/portal I was wondering if you are interested in this union, maybe I can release a package here with the two extensions merged?
Nice idea. I been thinking about merging topstats and forumgoal with the portal.

But I think its better you post a link to your own board if you want to do it :thumb:
Board rules! No PM support
User avatar
Galandas
BBCoder III
BBCoder III
Posts: 147
Joined: 07 Mar 2010, 00:08
BBCodes: 35
Favourite BBCode: player yahoo
Favourite MOD: Mod Rey
Location: italy
Contact:

Re: [EXT] Simple Portal

Post by Galandas »

Okay 💯💯
Post Reply