ModphpBB3 1.0.5 Portal Version Blocks
ModphpBB3 1.0.5 Portal Version Blocks
Will post some blocks to add to the board 3 portal version over the next few days. I left them off of the installation of 1.0.5 portal as not all would want the blocks. This way you can add what you want.
Re: ModphpBB3 1.0.5 Portal Version Blocks
sounds great LDM, keep up the good work! ![Grin :D](./images/smilies/biggrin.gif)
![Grin :D](./images/smilies/biggrin.gif)
Re: ModphpBB3 1.0.5 Portal Version Blocks
Add recent & random Gallery images as a Portal block
This will add recent, random or both as a portal block. Full credit for this is to nickvergessen.
For a demo of this block in use, please visit the ModphpBB3 Board 3 Portal Version Demo.
Open: portal.php
Find:
Add After:
To configure between random images, recent images or both, change the 'both' text on bottom line. Also you can configure how many images to show (as well as rows) by adjusting the two numbers on the bottom line on code.
Open: styles/prosilver/template/portal/portal_body.html
Find:
Add After:
Note: I opted for preference to put this line under;
on the demo so you can add it anywhere really on the middle block after blocks.
More blocks to add coming soon..
This will add recent, random or both as a portal block. Full credit for this is to nickvergessen.
For a demo of this block in use, please visit the ModphpBB3 Board 3 Portal Version Demo.
Open: portal.php
Find:
Code: Select all
$user->setup('mods/lang_portal');
Code: Select all
$gallery_root_path = GALLERY_ROOT_PATH;
include($phpbb_root_path . $gallery_root_path . 'includes/functions_recent.' . $phpEx);
$display = array(
'name' => true,
'poster' => true,
'time' => true,
'views' => true,
'ratings' => false,
'comments' => false,
'album' => true,
);
/**
* rows numeric default 1,
* columns numeric default 4,
* display array,
* modes string(recent|random|both),
*/
recent_gallery_images(1, 4, $display, 'both');
Open: styles/prosilver/template/portal/portal_body.html
Find:
Code: Select all
<!-- INCLUDE portal/block/welcome.html -->
<!-- ENDIF -->
<!-- ENDIF -->
Code: Select all
<!-- INCLUDE gallery_recent_body.html -->
Code: Select all
<!-- IF S_DISPLAY_RECENT -->
<!-- INCLUDE portal/block/recent.html -->
<!-- ENDIF -->
More blocks to add coming soon..
Re: ModphpBB3 1.0.5 Portal Version Blocks
Add some Arcade Blocks to Portal page
This will add 4 new arcade blocks to your board 3 portal front page. Full credit of these blocks goes to ThunderCrew, I have just edited it very slightly by fixing bugs mentioned in thread on phpBB.com.
Note: This is for Prosilver based styles as the gallery block is as above.
First, download this zip, open and add the files to the forum in the correct folders.
Find:
Add After:
Open root/styles/prosilver/template/portal/portal_body.html
I preferred on the ModphpBB3 Board 3 Portal Version Demo to add three arcade blocks on either left or right column and the arcade scroll in the centre, so to set it up that way..
Find:
Add above:
Then to the side blocks (you can add these where you prefer in either left or right blocks)
Add:
Open language/en/common.php
Find:
Add above:
Save and upload files, purge cache and template files.
See ModphpBB3 Portal Demo for these blocks on portal, one scroll in the centre and three on the right.
This will add 4 new arcade blocks to your board 3 portal front page. Full credit of these blocks goes to ThunderCrew, I have just edited it very slightly by fixing bugs mentioned in thread on phpBB.com.
Note: This is for Prosilver based styles as the gallery block is as above.
First, download this zip, open and add the files to the forum in the correct folders.
Open root/portal.phpROOT/portal/block/arcade.php
ROOT/portal/block/arcade_newest.php
ROOT/styles/prosilver/template/portal/block/arcade.html
ROOT/styles/prosilver/template/portal/block/arcade_top3a.html
ROOT/styles/prosilver/template/portal/block/arcade_newest.html
ROOT/styles/prosilver/template/portal/block/arcade_scroll.html
Find:
Code: Select all
if ($portal_config['portal_change_style'])
{
include($phpbb_root_path . 'portal/block/change_style.'.$phpEx);
}
Code: Select all
include($phpbb_root_path . 'portal/block/arcade.'.$phpEx);
include($phpbb_root_path . 'portal/block/arcade_newest.'.$phpEx);
I preferred on the ModphpBB3 Board 3 Portal Version Demo to add three arcade blocks on either left or right column and the arcade scroll in the centre, so to set it up that way..
Find:
Code: Select all
<!-- IF S_DISPLAY_ANNOUNCEMENTS -->
<!-- IF S_ANNOUNCE_COMPACT -->
<!-- INCLUDE portal/block/announcements_compact.html -->
Code: Select all
<!-- INCLUDE portal/block/arcade_scroll.html -->
Add:
Code: Select all
<!-- INCLUDE portal/block/arcade.html -->
<!-- INCLUDE portal/block/arcade_newest.html -->
<!-- INCLUDE portal/block/arcade_top3a.html -->
Find:
Code: Select all
'ARE_WATCHING_FORUM' => 'You have subscribed to be notified of new posts in this forum.',
'ARE_WATCHING_TOPIC' => 'You have subscribed to be notified of new posts in this topic.',
Code: Select all
'ARCLED' => 'Leaders',
'ARCSTAT' => 'Arcade Stats',
'ARC3' => 'Top 3 Players',
'ARCNEW' => 'Latest Games',
See ModphpBB3 Portal Demo for these blocks on portal, one scroll in the centre and three on the right.
You do not have the required permissions to view the files attached to this post.
Re: ModphpBB3 1.0.5 Portal Version Blocks
Add the Shoutbox to Portal Page
This will add the shout box currently on ModphpBB3 to the Portal version front page too. All shouts entered on the portal will show on the forum index shoutbox and the other way round too.
For a Demo of this in use, please see the ModphpBB3 with Board 3 Portal Version Demo Board.
Open: portal.php
Find:
Add below:
Open: styles/prosilver/template/portal/portal_body.html
Find:
Add below:
Save files, upload to correct locations and purge cache and template files.
This will add the shout box currently on ModphpBB3 to the Portal version front page too. All shouts entered on the portal will show on the forum index shoutbox and the other way round too.
For a Demo of this in use, please see the ModphpBB3 with Board 3 Portal Version Demo Board.
Open: portal.php
Find:
Code: Select all
include($phpbb_root_path . 'portal/includes/functions.'.$phpEx);
Code: Select all
$user->add_lang('mods/shout');
Find:
Code: Select all
<!-- INCLUDE forumlist_body.html -->
<br />
<!-- ENDIF -->
Code: Select all
<!-- INCLUDE shout_body.html -->
Re: ModphpBB3 1.0.5 Portal Version Blocks
Add 'Who was Here' to Portal 'Online' Block
This will add nickvergessen's Who was Here mod currently on ModphpBB3 to the ModphpBB3 Board 3 Portal Version. Credit for this block goes to Kevin at board3.de.
To see this block, please visit the ModphpBB3 Portal Version Demo.
Open: portal.php
Find:
Add before:
Open styles/prosilver/template/portal/block/whois_online.html
Find:
Add after:
Play with font size if you prefer the same size text as Who is Online.
Save files, upload, purge cache and template files.
This will add nickvergessen's Who was Here mod currently on ModphpBB3 to the ModphpBB3 Board 3 Portal Version. Credit for this block goes to Kevin at board3.de.
To see this block, please visit the ModphpBB3 Portal Version Demo.
Open: portal.php
Find:
Code: Select all
page_header($user->lang['PORTAL']);
Code: Select all
include($phpbb_root_path . 'includes/functions_wwh.' . $phpEx);
Find:
Code: Select all
<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
Code: Select all
<h3 style="font-size: 90%; margin: 10px 0 0 5px;">{L_WHO_WAS_HERE}</h3>
<p style="font-size: 90%; margin: 0 5px 0 5px;"><!-- IF WHO_WAS_HERE_LIST2 -->{WHO_WAS_HERE_LIST2}<br />({WHO_WAS_HERE_EXP})<br />{WHO_WAS_HERE_RECORD}<br />{WHO_WAS_HERE_LIST}<!-- ELSE -->{L_WWH_UPDATE_NEED}<!-- ENDIF --></p>
Save files, upload, purge cache and template files.
Re: ModphpBB3 1.0.5 Portal Version Blocks
Thank you for these add-on tutorials. I just installed Board 3 Portal a few days ago and am really impressed with it. I added the gallery one and it's working perfectly.
Re: ModphpBB3 1.0.5 Portal Version Blocks
Add FeedJit Real Time Traffic Block
I found this good visits widget and thought I'd share it as it works perfect on your portal page. No real instructions to it really, just go to Feedjit, pick one of the four blocks you want to add and customise the colours to match, then copy the code underneath into your 'Add custom block' in portal admin.
Your live stats will then appear on your portal. See the bottom left panel on the ModphpBB3 Demo Site.
I found this good visits widget and thought I'd share it as it works perfect on your portal page. No real instructions to it really, just go to Feedjit, pick one of the four blocks you want to add and customise the colours to match, then copy the code underneath into your 'Add custom block' in portal admin.
Your live stats will then appear on your portal. See the bottom left panel on the ModphpBB3 Demo Site.
-
- Forum Member
- Posts: 1
- Joined: Wed Feb 17, 2010 2:36 pm
Re: ModphpBB3 1.0.5 Portal Version Blocks
Thanks for your great work.
i am running board3 portal 1.0.5 phpbb3 3.0.6 and gallery block 1.0.4, i also want to add the random gallery on the portal center like your demo, but after i added the following code above it show me " gallery_recent_body.html not exist ". Could u help me?
Thanks alot and sorry for bad English.
i am running board3 portal 1.0.5 phpbb3 3.0.6 and gallery block 1.0.4, i also want to add the random gallery on the portal center like your demo, but after i added the following code above it show me " gallery_recent_body.html not exist ". Could u help me?
Thanks alot and sorry for bad English.
Re: ModphpBB3 1.0.5 Portal Version Blocks
Unfortunately, the portal seems to have changed since those newer versions so blocks may not run as once expected. I'm updating the ModphpBB3 portal version and having the same trouble.