Using some blocks on the index

Dyos MOD Portalview - to show up Portal blocks in the whole forum.
Dyos MOD Portalview - um Portal Blöcke im gesamten Forum anzeigen zu lassen.

Moderator: Dyo

Forum rules
Please note that this modification is not a official part of the Board3 Portal!
Bitte beachten das diese Modifikation kein offizieller Bestandteil des Board3 Portal ist!

Topic author
dragz
Valued Contributor
Valued Contributor
Posts: 70
Joined: 17. September 2008 17:18

Using some blocks on the index

Post by dragz » 12. December 2008 15:50

Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Beginner
Boardlink: http://www.megalk.com

What have you done before the problem was there?
Not a problem

What have you already tryed to solve the problem?


Description and Message
Hi there. Thanks for the great mod. I have a little question. Can I use the Recent block and
Latest global announcements blocks on the index page? Is it possible?
Thanks for your time

User avatar

Kevin
Site Admin
Site Admin
Posts: 2888
Joined: 7. January 2006 21:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg

Re: Using some blocks on the index

Post by Kevin » 12. December 2008 17:26

Better to ask here. ;)
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!


Topic author
dragz
Valued Contributor
Valued Contributor
Posts: 70
Joined: 17. September 2008 17:18

Re: Using some blocks on the index

Post by dragz » 12. December 2008 17:42

What? I tried using

Code: Select all

<!-- INCLUDE portal/block/recent.html -->
in index_body.html but it didn't work. Look at my site now. I removed the right bar and it looks nice :D Still couldn't figure out how to add the shoutbox :cry:


Dyo
Tester
Tester
Posts: 45
Joined: 21. November 2008 23:06

Re: Using some blocks on the index

Post by Dyo » 13. December 2008 03:38

Hi,

you also have to include the scripts to fill the *html-template with some live.

Code: Select all

	if ($portal_config['portal_recent']) 
	{ 
		include($phpbb_root_path . 'portal/block/recent.'.$phpEx);
	}
This is only for recent, for every other block only use the script-include from portal.php.

If you want it on index you can include it in index.php at board-root. I think the best place should be after the include for the portalview-includes.
Just try it, and post the result, I didn't test it.

Code: Select all

// Add for Portalview of complete Board
include($phpbb_root_path . 'portal/includes/portalview.' . $phpEx);


It also shpould work to add it in portalview-includes, but it will include on every page, so it's not a goog idea to do so.

Regards

Dyo
Es gibt so viele schlaue Signaturtexte, nur mir fällt grade nix vernünftiges ein.
Da sieht man mal für wie wichtig ich eine Signatur halte, Fliegendreck auf dem Monitor ist wichtiger für mich.
In welcher Hinsicht überlasse ich der Phantasie des Lesers.


Topic author
dragz
Valued Contributor
Valued Contributor
Posts: 70
Joined: 17. September 2008 17:18

Re: Using some blocks on the index

Post by dragz » 13. December 2008 09:17

I didn't get it. Can you explain what to do step by step?
Thnaks


Dyo
Tester
Tester
Posts: 45
Joined: 21. November 2008 23:06

Re: Using some blocks on the index

Post by Dyo » 13. December 2008 15:36

I did in in my demoboard as an example for you, but its only done for prosilver.


Open: index.php

find:

Code: Select all

// Add for Portalview of complete Board
include($phpbb_root_path . 'portal/includes/portalview.' . $phpEx);
after add:

Code: Select all

// this is added to use of recentblock in index
 if ($portal_config['portal_recent']) 
   { 
      include($phpbb_root_path . 'portal/block/recent.'.$phpEx);
   }

open style/prosilver/template/index_body.html

find:

Code: Select all

<!-- INCLUDE forumlist_body.html -->
before add:

Code: Select all

<!-- INCLUDE portal/block/recent.html -->
activate the recentblock in acp
Es gibt so viele schlaue Signaturtexte, nur mir fällt grade nix vernünftiges ein.
Da sieht man mal für wie wichtig ich eine Signatur halte, Fliegendreck auf dem Monitor ist wichtiger für mich.
In welcher Hinsicht überlasse ich der Phantasie des Lesers.


Topic author
dragz
Valued Contributor
Valued Contributor
Posts: 70
Joined: 17. September 2008 17:18

Re: Using some blocks on the index

Post by dragz » 14. December 2008 17:53

I screwed up adding the mod mod_portalview and now I'm tring to fix it, :D I'll post a secreenshot later. I wont give up cuz this is the best


Topic author
dragz
Valued Contributor
Valued Contributor
Posts: 70
Joined: 17. September 2008 17:18

Re: Using some blocks on the index

Post by dragz » 14. December 2008 18:03

Because I don't need the bar on the right hand side I didnt do the overall footer edits. As far as I know I have done everything correctly but the site looks like this

Image


Dyo
Tester
Tester
Posts: 45
Joined: 21. November 2008 23:06

Re: Using some blocks on the index

Post by Dyo » 14. December 2008 20:11

well, to do this, you also have to edit the footer cause of the endinmg tags of the tables.

So do the normal edits on the overall_footer.html and than remove everything between:

Code: Select all

<!-- [+] right block area -->
and

Code: Select all

<!-- [-] right block area -->
Es gibt so viele schlaue Signaturtexte, nur mir fällt grade nix vernünftiges ein.
Da sieht man mal für wie wichtig ich eine Signatur halte, Fliegendreck auf dem Monitor ist wichtiger für mich.
In welcher Hinsicht überlasse ich der Phantasie des Lesers.


Topic author
dragz
Valued Contributor
Valued Contributor
Posts: 70
Joined: 17. September 2008 17:18

Re: Using some blocks on the index

Post by dragz » 17. December 2008 19:32

Sorry for being late to reply, Im supposed to study cuz my exam is on Sunday, I did as you said but there is still things wrong, I'm using the 3.0.4 and I couldn't find what is causing these problems,

1st thing, some fonts are too large
Image

2nd, No footer in the portal, simply, the end of the page looks like this,
Image

3rd Blocks are not aligned properly on the login page
Image


Dyo
Tester
Tester
Posts: 45
Joined: 21. November 2008 23:06

Re: Using some blocks on the index

Post by Dyo » 17. December 2008 19:42

Could you please add a user for me to your forum and send me the username and password?
I'de like to have a look at the html-sourcecode.
Es gibt so viele schlaue Signaturtexte, nur mir fällt grade nix vernünftiges ein.
Da sieht man mal für wie wichtig ich eine Signatur halte, Fliegendreck auf dem Monitor ist wichtiger für mich.
In welcher Hinsicht überlasse ich der Phantasie des Lesers.


vova_ob
Active Member
Active Member
Posts: 5
Joined: 5. December 2010 08:54
phpBB.de User: vova_ob
phpBB.com User: vova_ob

Re: Using some blocks on the index

Post by vova_ob » 5. December 2010 09:11

Hello,
I want make index page with recent block.
My style is subsilver type
But your method, is not work:
Open: index.php

find:

Code: Select all
// Add for Portalview of complete Board
include($phpbb_root_path . 'portal/includes/portalview.' . $phpEx);

after add:

Code: Select all
// this is added to use of recentblock in index
if ($portal_config['portal_recent'])
{
include($phpbb_root_path . 'portal/block/recent.'.$phpEx);
}

open style/prosilver/template/index_body.html

find:

Code: Select all
<!-- INCLUDE forumlist_body.html -->

before add:

Code: Select all
<!-- INCLUDE portal/block/recent.html -->
Help me!!
Give correct instruction for intagration resent block in index page.
Thank you :D

User avatar

archivar
Portal Professional
Portal Professional
Posts: 1883
Joined: 19. April 2009 21:34
phpBB.de User: archivar
phpBB.com User: archivar
Location: Deutschland

Re: Using some blocks on the index

Post by archivar » 5. December 2010 16:13

Hi vova_ob,
For the subsilver2 You must still be done here:

open style/subsilver2/template/index_body.html

find:

Code: Select all

<!-- INCLUDE forumlist_body.html -->
before add:

Code: Select all

<!-- INCLUDE portal/block/recent.html -->
V.G. archivar
sorry for my bad english

Return to “MOD Portalview - Portal blocks in whole forum”