[ABD] Portal Extension for phpBB 3.1.x

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
michaelo
Registered User
Posts: 1292
Joined: Thu Jun 13, 2002 3:49 am
Location: Dublin, Ireland
Name: Michael O'Toole
Contact:

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by michaelo » Tue Oct 11, 2016 11:26 pm

The portal should work with the latest phpBB but keep in mind, development is very slow as I am old and the world is getting faster... I can't keep up :mrgreen:
Contributions: Mods & Styles Extensions
(site is down): Kiss Portal Engine

BertWijman
Registered User
Posts: 4
Joined: Tue Oct 11, 2016 12:53 pm

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by BertWijman » Thu Oct 13, 2016 2:39 pm

Thanks,

but I cannot get it to see in my forum to install it.

In which directory should it be placed in the directory "'ext.

In kiss_portal_engine_1_0_20????

If it works in my "we_universal skin" I will pay you!!!!

Can you send me the answer to bertw@upcmail.nl

User avatar
michaelo
Registered User
Posts: 1292
Joined: Thu Jun 13, 2002 3:49 am
Location: Dublin, Ireland
Name: Michael O'Toole
Contact:

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by michaelo » Fri Oct 14, 2016 1:46 pm

The path should be.... ext/phpbbireland/portal ...

The kiss_portal_engine_1_0_20 is for phpBB 2.x not for phpBB 3.x
The phpBB 3.1 requires the portal-master.zip from the link below...

The github link is: https://github.com/phpbbireland/portal


Installing:
Download the portal-master.zip and extract it, rename the folder from portal-master to portal ...
Inside your phpBB ext folder create a new folder named "phpbbireland" and copy the new "portal" folder to it... giving ext/phpbbireland/portal...

I am assuming you have phpBB 3.x and not phpBB 2.x, but if you need a version for 2.x.x post back...
Mike
Contributions: Mods & Styles Extensions
(site is down): Kiss Portal Engine

mark5228
Registered User
Posts: 58
Joined: Thu May 14, 2015 1:07 pm

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by mark5228 » Fri Nov 04, 2016 6:43 pm

i have this installed on 3.1.10 and the avatars are all different sizes in all boxes. Ive looked at the css files but cant find how to make them a fixed size.

Image

im using prosilver ive just edited the colours

User avatar
michaelo
Registered User
Posts: 1292
Joined: Thu Jun 13, 2002 3:49 am
Location: Dublin, Ireland
Name: Michael O'Toole
Contact:

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by michaelo » Sat Nov 05, 2016 9:56 am

The small avatar size I use for blocks is set in the portal_common.css

Code: Select all

.small_avatar img {
    max-height: 16px;
    width: auto;
}
In the case of the top posters block I set the div class to:

Code: Select all

<div class="trow small_avatar" style="width:100%;">
to restrict the avatars size... this may be true for other blocks too...
Mike
Contributions: Mods & Styles Extensions
(site is down): Kiss Portal Engine

mark5228
Registered User
Posts: 58
Joined: Thu May 14, 2015 1:07 pm

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by mark5228 » Sat Nov 05, 2016 3:07 pm

thank you for the reply i managed to sort, it wasnt the extension some avatars were a larger size from my old 3.0 board had to delete them to remove them from sql database. The latest extension release is working perfect on my site

User avatar
michaelo
Registered User
Posts: 1292
Joined: Thu Jun 13, 2002 3:49 am
Location: Dublin, Ireland
Name: Michael O'Toole
Contact:

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by michaelo » Sun Nov 06, 2016 8:58 am

Thanks for the feedback...

Haven't had much chance to work on the code this year but happy to know it's still working..
Mike
Contributions: Mods & Styles Extensions
(site is down): Kiss Portal Engine

Oehly
Registered User
Posts: 3
Joined: Wed Dec 21, 2016 2:56 pm

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by Oehly » Thu Dec 22, 2016 8:45 am

Is there a possability to get content from my extension into a block of portal?

gio73
Registered User
Posts: 64
Joined: Thu May 12, 2016 4:10 pm

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by gio73 » Tue Jan 03, 2017 5:04 pm

Hello i created a slider whit wowslider and i did added it to the next but i does not show up in the pull down menu when i would like the added a new blok?

ext/phpbbireland/portal/styles/all/template/blocks/

Code: Select all

<div class="block_slider">
<!-- Start WOWSlider.com HEAD section -->
<link rel="stylesheet" type="text/css" href="engine1/style.css" />
<script type="text/javascript" src="engine1/jquery.js"></script>
<!-- End WOWSlider.com HEAD section -->

<!-- Start WOWSlider.com BODY section -->
<div id="wowslider-container1">
<div class="ws_images"><ul>
		<li><img src="data1/images/warcraft_the_beginning_2016.jpg" alt="Warcraft The Beginning" title="Warcraft The Beginning" id="wows1_0"/></li>
		<li><img src="data1/images/victor_frankenstein.jpg" alt="Victor Frankenstein" title="Victor Frankenstein" id="wows1_1"/></li>
		<li><img src="data1/images/the_revenant_2015.jpg" alt="The Revenant" title="The Revenant" id="wows1_2"/></li>
		<li><img src="data1/images/the_legend_of_tarzan_2016.jpg" alt="The Legend of Tarzan" title="The Legend of Tarzan" id="wows1_3"/></li>
		<li><img src="data1/images/the_hateful_eight_2015.jpg" alt="The Hateful Eight" title="The Hateful Eight" id="wows1_4"/></li>
		<li><img src="data1/images/terminator_genisys_2015.jpg" alt="Terminator Genisys" title="Terminator Genisys" id="wows1_5"/></li>
		<li><img src="data1/images/schindlers_list_1993.jpg" alt="Schindlers List" title="Schindlers List" id="wows1_6"/></li>
		<li><img src="data1/images/san_andreas_2015.jpg" alt="San Andreas" title="San Andreas" id="wows1_7"/></li>
		<li><img src="data1/images/riphagen.jpg" alt="Riphagen" title="Riphagen" id="wows1_8"/></li>
		<li><img src="data1/images/mission_impossible_rogue_nation_2015.jpg" alt="Mission Impossible Rogue Nation" title="Mission Impossible Rogue Nation" id="wows1_9"/></li>
		<li><img src="data1/images/london_has_fallen_2016.jpg" alt="London Has Fallen" title="London Has Fallen" id="wows1_10"/></li>
		<li><img src="data1/images/everest_2015.jpg" alt="Everest" title="Everest" id="wows1_11"/></li>
		<li><img src="data1/images/deadpool_2016.jpg" alt="Deadpool" title="Deadpool" id="wows1_12"/></li>
		<li><img src="data1/images/de_surprise_2015.jpg" alt="De Surprise" title="De Surprise" id="wows1_13"/></li>
		<li><img src="data1/images/looper.jpg" alt="looper" title="looper" id="wows1_14"/></li>
		<li><img src="data1/images/ncis_new_orleans__seizoen_1.jpg" alt="NCIS New Orleans - Seizoen 1" title="NCIS New Orleans - Seizoen 1" id="wows1_15"/></li>
		<li><img src="data1/images/ncis_los_angeles__seizoen_7.jpg" alt="NCIS Los Angeles - Seizoen 7" title="NCIS Los Angeles - Seizoen 7" id="wows1_16"/></li>
		<li><img src="data1/images/ncis_los_angeles__seizoen_1.jpg" alt="NCIS Los Angeles - Seizoen 1" title="NCIS Los Angeles - Seizoen 1" id="wows1_17"/></li>
		<li><img src="data1/images/ncis__seizoen_12.jpg" alt="NCIS - Seizoen 12" title="NCIS - Seizoen 12" id="wows1_18"/></li>
		<li><img src="data1/images/ncis__seizoen_1.jpg" alt="NCIS - Seizoen 1" title="NCIS - Seizoen 1" id="wows1_19"/></li>
		<li><img src="data1/images/wonder_woman.jpg" alt="Wonder Woman" title="Wonder Woman" id="wows1_20"/></li>
		<li><img src="data1/images/uss_indianapolis.jpg" alt="USS Indianapolis" title="USS Indianapolis" id="wows1_21"/></li>
		<li><img src="data1/images/pan_2015.jpg" alt="Pan" title="Pan" id="wows1_22"/></li>
		<li><img src="data1/images/independence_day_resurgence_2016.jpg" alt="Independence day resurgence" title="Independence day resurgence" id="wows1_23"/></li>
		<li><img src="data1/images/hacksaw_ridge.jpg" alt="Hacksaw Ridge" title="Hacksaw Ridge" id="wows1_24"/></li>
		<li><img src="data1/images/expendables_3.jpg" alt="Expendables 3" title="Expendables 3" id="wows1_25"/></li>
		<li><img src="data1/images/de_bismarck_dvd_.jpg" alt="De Bismarck" title="De Bismarck" id="wows1_26"/></li>
		<li><img src="data1/images/captian_america_the_first_avenger.jpg" alt="Captian America The First Avenger" title="Captian America The First Avenger" id="wows1_27"/></li>
		<li><img src="data1/images/alvin_and_the_chipmunks_2.jpg" alt="Alvin and the chipmunks" title="Alvin and the chipmunks" id="wows1_28"/></li>
		<li><img src="data1/images/batman_v_superman__dawn_of_justice_dvd.jpg" alt="Batman v Superman - Dawn of Justice" title="Batman v Superman - Dawn of Justice" id="wows1_29"/></li>
		<li><a href="http://wowslider.com"><img src="data1/images/karate_kit_2015_cover.jpg" alt="http://wowslider.com/" title="Karate Kit" id="wows1_30"/></a></li>
		<li><img src="data1/images/dawn_of_the_planet_of_the_apes_cover.jpg" alt="Dawn of the Planet of the Apes" title="Dawn of the Planet of the Apes" id="wows1_31"/></li>
	</ul></div>
<div class="ws_script" style="position:absolute;left:-99%"><a href="http://wowslider.com/vi">bootstrap slider</a> by WOWSlider.com v8.7</div>
<div class="ws_shadow"></div>
</div>	
<script type="text/javascript" src="engine1/wowslider.js"></script>
<script type="text/javascript" src="engine1/script.js"></script>
<!-- End WOWSlider.com BODY section -->
ext/phpbbireland/portal/blocks/

Code: Select all

<?php

/**
* block_slider...
*
* @copyright (c) 2014 Michael O’Toole <http://www.phpbbireland.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
**/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, array(
	'ALLOW_BLOCK_SLIDER'         => 'Displays block slider on top of page',
));	
Sorry for my bad English im using Google translate.
Styles

Oehly
Registered User
Posts: 3
Joined: Wed Dec 21, 2016 2:56 pm

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by Oehly » Wed Jan 04, 2017 9:48 am

hm would like to do within a hook.
have seen that there is possibility but don't work for me, so i wrote my own extension ;)

gio73
Registered User
Posts: 64
Joined: Thu May 12, 2016 4:10 pm

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by gio73 » Thu Jan 05, 2017 12:38 am

gio73 wrote:
Tue Jan 03, 2017 5:04 pm
Hello i created a slider whit wowslider and i did added it to the next but i does not show up in the pull down menu when i would like the added a new blok?

ext/phpbbireland/portal/styles/all/template/blocks/

Code: Select all

<div class="block_slider">
<!-- Start WOWSlider.com HEAD section -->
<link rel="stylesheet" type="text/css" href="engine1/style.css" />
<script type="text/javascript" src="engine1/jquery.js"></script>
<!-- End WOWSlider.com HEAD section -->

<!-- Start WOWSlider.com BODY section -->
<div id="wowslider-container1">
<div class="ws_images"><ul>
		<li><img src="data1/images/warcraft_the_beginning_2016.jpg" alt="Warcraft The Beginning" title="Warcraft The Beginning" id="wows1_0"/></li>
		<li><img src="data1/images/victor_frankenstein.jpg" alt="Victor Frankenstein" title="Victor Frankenstein" id="wows1_1"/></li>
		<li><img src="data1/images/the_revenant_2015.jpg" alt="The Revenant" title="The Revenant" id="wows1_2"/></li>
		<li><img src="data1/images/the_legend_of_tarzan_2016.jpg" alt="The Legend of Tarzan" title="The Legend of Tarzan" id="wows1_3"/></li>
		<li><img src="data1/images/the_hateful_eight_2015.jpg" alt="The Hateful Eight" title="The Hateful Eight" id="wows1_4"/></li>
		<li><img src="data1/images/terminator_genisys_2015.jpg" alt="Terminator Genisys" title="Terminator Genisys" id="wows1_5"/></li>
		<li><img src="data1/images/schindlers_list_1993.jpg" alt="Schindlers List" title="Schindlers List" id="wows1_6"/></li>
		<li><img src="data1/images/san_andreas_2015.jpg" alt="San Andreas" title="San Andreas" id="wows1_7"/></li>
		<li><img src="data1/images/riphagen.jpg" alt="Riphagen" title="Riphagen" id="wows1_8"/></li>
		<li><img src="data1/images/mission_impossible_rogue_nation_2015.jpg" alt="Mission Impossible Rogue Nation" title="Mission Impossible Rogue Nation" id="wows1_9"/></li>
		<li><img src="data1/images/london_has_fallen_2016.jpg" alt="London Has Fallen" title="London Has Fallen" id="wows1_10"/></li>
		<li><img src="data1/images/everest_2015.jpg" alt="Everest" title="Everest" id="wows1_11"/></li>
		<li><img src="data1/images/deadpool_2016.jpg" alt="Deadpool" title="Deadpool" id="wows1_12"/></li>
		<li><img src="data1/images/de_surprise_2015.jpg" alt="De Surprise" title="De Surprise" id="wows1_13"/></li>
		<li><img src="data1/images/looper.jpg" alt="looper" title="looper" id="wows1_14"/></li>
		<li><img src="data1/images/ncis_new_orleans__seizoen_1.jpg" alt="NCIS New Orleans - Seizoen 1" title="NCIS New Orleans - Seizoen 1" id="wows1_15"/></li>
		<li><img src="data1/images/ncis_los_angeles__seizoen_7.jpg" alt="NCIS Los Angeles - Seizoen 7" title="NCIS Los Angeles - Seizoen 7" id="wows1_16"/></li>
		<li><img src="data1/images/ncis_los_angeles__seizoen_1.jpg" alt="NCIS Los Angeles - Seizoen 1" title="NCIS Los Angeles - Seizoen 1" id="wows1_17"/></li>
		<li><img src="data1/images/ncis__seizoen_12.jpg" alt="NCIS - Seizoen 12" title="NCIS - Seizoen 12" id="wows1_18"/></li>
		<li><img src="data1/images/ncis__seizoen_1.jpg" alt="NCIS - Seizoen 1" title="NCIS - Seizoen 1" id="wows1_19"/></li>
		<li><img src="data1/images/wonder_woman.jpg" alt="Wonder Woman" title="Wonder Woman" id="wows1_20"/></li>
		<li><img src="data1/images/uss_indianapolis.jpg" alt="USS Indianapolis" title="USS Indianapolis" id="wows1_21"/></li>
		<li><img src="data1/images/pan_2015.jpg" alt="Pan" title="Pan" id="wows1_22"/></li>
		<li><img src="data1/images/independence_day_resurgence_2016.jpg" alt="Independence day resurgence" title="Independence day resurgence" id="wows1_23"/></li>
		<li><img src="data1/images/hacksaw_ridge.jpg" alt="Hacksaw Ridge" title="Hacksaw Ridge" id="wows1_24"/></li>
		<li><img src="data1/images/expendables_3.jpg" alt="Expendables 3" title="Expendables 3" id="wows1_25"/></li>
		<li><img src="data1/images/de_bismarck_dvd_.jpg" alt="De Bismarck" title="De Bismarck" id="wows1_26"/></li>
		<li><img src="data1/images/captian_america_the_first_avenger.jpg" alt="Captian America The First Avenger" title="Captian America The First Avenger" id="wows1_27"/></li>
		<li><img src="data1/images/alvin_and_the_chipmunks_2.jpg" alt="Alvin and the chipmunks" title="Alvin and the chipmunks" id="wows1_28"/></li>
		<li><img src="data1/images/batman_v_superman__dawn_of_justice_dvd.jpg" alt="Batman v Superman - Dawn of Justice" title="Batman v Superman - Dawn of Justice" id="wows1_29"/></li>
		<li><a href="http://wowslider.com"><img src="data1/images/karate_kit_2015_cover.jpg" alt="http://wowslider.com/" title="Karate Kit" id="wows1_30"/></a></li>
		<li><img src="data1/images/dawn_of_the_planet_of_the_apes_cover.jpg" alt="Dawn of the Planet of the Apes" title="Dawn of the Planet of the Apes" id="wows1_31"/></li>
	</ul></div>
<div class="ws_script" style="position:absolute;left:-99%"><a href="http://wowslider.com/vi">bootstrap slider</a> by WOWSlider.com v8.7</div>
<div class="ws_shadow"></div>
</div>	
<script type="text/javascript" src="engine1/wowslider.js"></script>
<script type="text/javascript" src="engine1/script.js"></script>
<!-- End WOWSlider.com BODY section -->
ext/phpbbireland/portal/blocks/

Code: Select all

<?php

/**
* block_slider...
*
* @copyright (c) 2014 Michael O’Toole <http://www.phpbbireland.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
**/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, array(
	'ALLOW_BLOCK_SLIDER'         => 'Displays block slider on top of page',
));	
I dont need it anymore did delete the extension thx anyway.
Sorry for my bad English im using Google translate.
Styles

User avatar
michaelo
Registered User
Posts: 1292
Joined: Thu Jun 13, 2002 3:49 am
Location: Dublin, Ireland
Name: Michael O'Toole
Contact:

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by michaelo » Sun Jan 08, 2017 10:23 am

Oehly wrote:
Thu Dec 22, 2016 8:45 am
Is there a possability to get content from my extension into a block of portal?
Basically the answer is yes...

Blocks have two parts... (1) The php file to process data (read/write) and (2) the HTML file to display this data...

You can pass data to any block globally or via any function call using variables or a structure...

Previously in phpBB 2.x almost all data was global, that is, it could be read by any code executed while the data was valid in the global pool, however, in 3.x, data is passed via large structures making it globally invisible to most code...

3.1 code has the advantage of hiding global data at the expense of complicating the function prototypes (at least I find them more complicated)... Additionally passing large structure in many key functions increases the overall code size and slows down the operation, at least in relation to 2.x...

Back to the point at hand... it is possible to pass data to blocks from any code source either by declaring it as global or by means of a function call passing some structured data in your code and writing a simple function in the blocks php file to read that data and pass it to the blocks HTML file...

Mike
Contributions: Mods & Styles Extensions
(site is down): Kiss Portal Engine

User avatar
frederic14123
Registered User
Posts: 43
Joined: Tue Feb 03, 2015 10:38 am
Location: France
Contact:

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by frederic14123 » Tue Jan 31, 2017 4:16 pm

Hello.
I have a problem with this extension. The problem exists on my forum in 3.1.10 and on my forum test 3.2 (with the latest version for 3.2 of the portal). On pc everything goes well, but on smartphone, I have a problem of display, not on the page index, but in the sub headings. Below is an overview of the problem. I specify that I only display the portal on the portal page and the index page. Would you have a solution to this small problem? Thank you.

Image

My forum : www.fousdepeche/forum
Forum test : http://www.fousdepeche.fr/forum32test/

Can it be possible to deactivate in mobile mode?

Edit : Resolved : https://www.phpbb.com/customise/db/exte ... 31#p547831
Last edited by frederic14123 on Sun Mar 19, 2017 7:41 pm, edited 2 times in total.

User avatar
michaelo
Registered User
Posts: 1292
Joined: Thu Jun 13, 2002 3:49 am
Location: Dublin, Ireland
Name: Michael O'Toole
Contact:

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by michaelo » Thu Feb 02, 2017 9:26 am

Will check this out as soon as I get a chance...

Looks like a fix to the css is required but I don't know if php 3.x has a mobile specific switch to disable anything...

Mike

PS, your sample link looks like board3 portal not Kiss Portal extension?
Contributions: Mods & Styles Extensions
(site is down): Kiss Portal Engine

Oehly
Registered User
Posts: 3
Joined: Wed Dec 21, 2016 2:56 pm

Re: [DEV] Portal Extension for phpBB 3.1.x

Post by Oehly » Thu Feb 02, 2017 10:12 am

michaelo wrote:
Sun Jan 08, 2017 10:23 am
Basically the answer is yes...

Mike
Many thanks this helps

Locked

Return to “Abandoned Extensions”

Who is online

Users browsing this forum: No registered users and 7 guests