ModphpBB3 1.0.5 Portal Version Blocks

Post any general problems, information or issues on ModphpBB3 in here.
User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

ModphpBB3 1.0.5 Portal Version Blocks

Postby LDM » Tue Dec 30, 2008 1:52 am

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.
Image

Image

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.


User avatar
cisco007
Staff
Staff
Posts: 501
Joined: Tue Oct 07, 2008 3:44 am
Your Forum/Website URL: http://phpbbmexico.com

Re: ModphpBB3 1.0.5 Portal Version Blocks

Postby cisco007 » Tue Dec 30, 2008 2:03 am

sounds great LDM, keep up the good work! :D
Image
Image

User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: ModphpBB3 1.0.5 Portal Version Blocks

Postby LDM » Wed Dec 31, 2008 2:32 pm

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:

Code: Select all

$user->setup('mods/lang_portal');


Add After:

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');


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:

Code: Select all

<!-- INCLUDE portal/block/welcome.html -->
         <!-- ENDIF -->
      <!-- ENDIF -->


Add After:

Code: Select all

<!-- INCLUDE gallery_recent_body.html -->


Note: I opted for preference to put this line under;

Code: Select all

<!-- IF S_DISPLAY_RECENT -->
         <!-- INCLUDE portal/block/recent.html -->
      <!-- ENDIF -->

on the demo so you can add it anywhere really on the middle block after blocks.

More blocks to add coming soon..
Image

Image

User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: ModphpBB3 1.0.5 Portal Version Blocks

Postby LDM » Wed Dec 31, 2008 3:07 pm

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.
ROOT/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

root.zip


Open root/portal.php

Find:

Code: Select all

if ($portal_config['portal_change_style'])
{
   include($phpbb_root_path . 'portal/block/change_style.'.$phpEx);
}


Add After:

Code: Select all

include($phpbb_root_path . 'portal/block/arcade.'.$phpEx);

include($phpbb_root_path . 'portal/block/arcade_newest.'.$phpEx);


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:

Code: Select all

<!-- IF S_DISPLAY_ANNOUNCEMENTS -->
         <!-- IF S_ANNOUNCE_COMPACT -->
            <!-- INCLUDE portal/block/announcements_compact.html -->


Add above:

Code: Select all

<!-- INCLUDE portal/block/arcade_scroll.html -->


Then to the side blocks (you can add these where you prefer in either left or right blocks)

Add:

Code: Select all

<!-- INCLUDE portal/block/arcade.html -->
       
        <!-- INCLUDE portal/block/arcade_newest.html -->
       
        <!-- INCLUDE portal/block/arcade_top3a.html -->


Open language/en/common.php

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.',


Add above:

Code: Select all

'ARCLED'                        => 'Leaders',
        'ARCSTAT'                       => 'Arcade Stats',
        'ARC3'                             => 'Top 3 Players',
   'ARCNEW'                        => 'Latest Games',


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.
You do not have the required permissions to view the files attached to this post.
Image

Image

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.


User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: ModphpBB3 1.0.5 Portal Version Blocks

Postby LDM » Wed Dec 31, 2008 3:28 pm

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:

Code: Select all

include($phpbb_root_path . 'portal/includes/functions.'.$phpEx);


Add below:

Code: Select all

$user->add_lang('mods/shout');


Open: styles/prosilver/template/portal/portal_body.html

Find:

Code: Select all

<!-- INCLUDE forumlist_body.html -->
         <br />
      <!-- ENDIF -->


Add below:

Code: Select all

<!-- INCLUDE shout_body.html -->


Save files, upload to correct locations and purge cache and template files.
Image

Image

User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: ModphpBB3 1.0.5 Portal Version Blocks

Postby LDM » Wed Dec 31, 2008 3:47 pm

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:

Code: Select all

page_header($user->lang['PORTAL']);


Add before:

Code: Select all

include($phpbb_root_path . 'includes/functions_wwh.' . $phpEx);


Open styles/prosilver/template/portal/block/whois_online.html

Find:

Code: Select all

<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>


Add after:

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>


Play with font size if you prefer the same size text as Who is Online.

Save files, upload, purge cache and template files.
Image

Image

User avatar
Ashley
Forum Member
Forum Member
Posts: 242
Joined: Fri May 30, 2008 10:15 pm
Your Forum/Website URL: http://

Re: ModphpBB3 1.0.5 Portal Version Blocks

Postby Ashley » Fri Jan 02, 2009 7:07 pm

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.
Image

User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: ModphpBB3 1.0.5 Portal Version Blocks

Postby LDM » Fri Mar 27, 2009 1:38 pm

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.
Image

Image

channelasian
Forum Member
Forum Member
Posts: 1
Joined: Wed Feb 17, 2010 2:36 pm
Your Forum/Website URL: http://

Re: ModphpBB3 1.0.5 Portal Version Blocks

Postby channelasian » Wed Feb 17, 2010 2:41 pm

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.

User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm
Your Forum/Website URL: http://
Location: UK
Contact:

Re: ModphpBB3 1.0.5 Portal Version Blocks

Postby LDM » Fri Mar 19, 2010 2:50 pm

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.
Image

Image

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.



Return to “ModphpBB3 General”



Who is online

Users browsing this forum: Google [Bot] and 6 guests