Page 1 of 2

[RC]Meeting Block for Board3

Posted: 2. December 2009 15:06
by frold
For the Meeting Mod : http://phpbb3.oxpus.net/downloads.php?v ... il&df_id=4 I have created a block that gives you the X latest new meetings.

OPEN portal.php

FIND

Code: Select all

$template->assign_vars(array(
	'PORTAL_LEFT_COLUMN'	=> $portal_config['portal_left_column_width'],
	'PORTAL_RIGHT_COLUMN'	=> $portal_config['portal_right_column_width'],
BEFORE ADD

Code: Select all

include($phpbb_root_path . 'portal/block/meeting.' . $phpEx);
OPEN styles/prosilver/template/portal/portal_body.html
FIND

Code: Select all

		  <!-- IF S_DISPLAY_ADVANCED_STAT -->
			<!-- INCLUDE portal/block/statistics.html -->
		  <!-- ENDIF -->
AFTER ADD

Code: Select all

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


OPEN language/en/mods/meeting.php
FIND

Code: Select all

));

?>
BEFORE ADD

Code: Select all

//For the Meeting Block on board3portal by frold @ studmed.dk
	'MEETING_TIME'							=> 'Time',
	'MEETING_LATESTMEETINGS'				=> 'Latest Meetings',
Download:
http://studmed.dk/eksternefiler/Meeting ... Board3.zip

Upload the files in the "root" folder to your site.

Refresh templates in ACP. Clear cache.

To edit the number of the latest meetings to be shown.

OPEN portal/block/meeting.php
FIND

Code: Select all

$portal_config['number_of_meetings_shown'] = '3';
REPLACE

Code: Select all

3
with the number of latest meetings you wanna show!

Re: [RC]Meeting Block for Board3

Posted: 25. December 2009 19:31
by winni33
Thank you for this nice Block-Snippet ! I think that is very useful.
I will testet this snippet under prosilver and subsilver. Than i will report here.

With the best greetings
Peter

Re: [RC]Meeting Block for Board3

Posted: 25. December 2009 20:54
by winni33
OK, its work fine !

For subsilver based styles you must write:

OPEN styles/subsilver2/template/portal/portal_body.html
Find:

Code: Select all

<!-- INCLUDE portal/_block_config.html -->
After this:

Code: Select all

<!-- INCLUDE portal/block/meeting.html -->
Not more !

For german translation:
OPEN language/de/mods/meeting.php
Find:

Code: Select all

));

?>
BEFORE ADD:

Code: Select all

//For the Meeting Block on board3portal by frold @ studmed.dk
   'MEETING_TIME'                            => 'Zeit',
   'MEETING_LATESTMEETINGS'         => 'Treffen',
I have not see problems during test your snippet and my modifications.

Peter

Re: [RC]Meeting Block for Board3

Posted: 26. December 2009 07:53
by frold
Nice you could use it :D

Where to see it in german? :)

Re: [RC]Meeting Block for Board3

Posted: 26. December 2009 11:47
by winni33
Hi,

you can see it on www.der-arge-blog.de in german translation. It`s a social projekt under construction. The Style is not ready or perfect, its the next, what i must do.

Have a nice day
Peter

Re: [RC]Meeting Block for Board3

Posted: 26. December 2009 16:03
by frold
winni33 wrote:Hi,

you can see it on http://www.der-arge-blog.de in german translation. It`s a social projekt under construction. The Style is not ready or perfect, its the next, what i must do.

Have a nice day
Peter
Thanks... :D

Re: [RC]Meeting Block for Board3

Posted: 26. January 2010 17:09
by nightowl04

Code: Select all

{$LR_BLOCK_H_L}<!-- IF $S_BLOCK_ICON --><img src="{T_THEME_PATH}/images/portal/portal_minical.png" width="16" height="16" alt="" />&nbsp;<!-- ENDIF -->{L_MEETING_LATESTMEETINGS}{$LR_BLOCK_H_R}
    <table class="tablebg" cellspacing="1" width="100%">
	<tr class="row1">
	<td>
	<!-- IF .meeting -->
		<!-- BEGIN meeting -->
			<span style="text-align:left" class="portal-gensmall"><a href="{meeting.U_MEETING_LINK}" title="{meeting.MEETING_SUBJECT}"><strong><center>{meeting.MEETING_SUBJECT}</center></strong></a></span><br style="clear:both" />
			<span style="float:left;padding-right:10px;">{L_MEETING_TIME}:</span><span style="float:right;padding-right:10px;" class="portal-gensmall"><strong>{meeting.MEETING_TIME}</strong></span><br style="clear:both" />
			<span style="float:left;padding-right:10px;">{L_MEETING_UNTIL}:</span><span style="float:right;padding-right:10px;" class="portal-gensmall"><strong>{meeting.MEETING_UNTIL}</strong></span><br style="clear:both" />
			<span style="float:left;padding-right:10px;">{L_MEETING_LOCATION}:</span><span style="float:right;padding-right:10px;" class="portal-gensmall"><strong>{meeting.MEETING_LOCATION}</strong></span><br style="clear:both" />
			<!-- IF not meeting.S_LAST_ROW --><hr class="dashed" /><!-- ENDIF -->
		<!-- END .meeting -->
	<!-- ELSE -->
		<span style="text-align:left" class="portal-gensmall"><strong>{L_NO_ACTIVE_MEETINGS}</strong></span><br />
	<!-- ENDIF -->
	    </td>
	     </tr>
	     </table>
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}
Zwei Fragen hab ich zu dem Mod.

1. Wie muss man den Part "{L_MEETING_LATESTMEETINGS}{$LR_BLOCK_H_R}" umschreiben, damit die Überschrift als center-block gesetzt wird?
2. Wie kann man die Schriftgröße der Texte unter <!-- BEGIN meeting --> bis <!-- END .meeting --> auf normale Schriftgröße?

Ich bin über jede Hilfe und Mühe sehr dankbar und möchte mich im Vorfeld für die Hilfe bedanken.

Re: [RC]Meeting Block for Board3

Posted: 26. January 2010 19:12
by Mike
Da ich den Block nich kenne, kann ich dir nur deine erste Frage beantworten...
Du musst den Block in die mittlere Spalte des Portales verschieben, und im Block selbst alle (4) Tags abändern.
Also aus:
{$LR_BLOCK_H_L} wird {$C_BLOCK_H_L}
{$LR_BLOCK_H_R} wird {$C_BLOCK_H_R}

usw...

Außerdem muss für Prosilverbasierende Styles noch ein <dt>...</dt> um die Überschrift der mittleren Blöcke.
Wenn du mehr dazu wissen willst, schau dir am besten mal die beiden KB Artikel an:
Knowledge Base: _block_config.html: Blöcke an Style anpassen
Knowledge Base: Eigene Blöcke hinzufügen

Re: [RC]Meeting Block for Board3

Posted: 27. January 2010 02:08
by nightowl04
Vielen vielen Dank, das ging schon mal perfekt langsam verstehe ich den Aufbau bei phpbb3.

Okay, eine nicht ganz schöne Lösung für die Schriftgröße wäre "font-size:14px;" in style="float:left;padding-right:10px;" mit einzubauen, es geht, aber kann man dies nicht besser regeln ?

Eine weitere, aber sehr wichtige, Frage :

Wie oder was muss man verändern, damit der Block im Vorfeld eine Prüfung vollzieht, ob der benutzer überhaupt das recht zur Einsicht besitzt? Sprich: Eine Gruppenbenutzerrechtsprüfung im Vorfeld, wenn ja Block anzeigen und wenn nicht Block ausblenden (gesamten Block ausblenden halt)?

Re: [RC]Meeting Block for Board3

Posted: 31. January 2010 02:18
by nightowl04
nightowl04 wrote: Eine weitere, aber sehr wichtige, Frage :

Wie oder was muss man verändern, damit der Block im Vorfeld eine Prüfung vollzieht, ob der benutzer überhaupt das recht zur Einsicht besitzt? Sprich: Eine Gruppenbenutzerrechtsprüfung im Vorfeld, wenn ja Block anzeigen und wenn nicht Block ausblenden (gesamten Block ausblenden halt)?
Gibt es dafür wirklich keine Lösung?
Das wäre echt schade.

Re: [RC]Meeting Block for Board3

Posted: 1. February 2010 06:45
by Mike
Vielleicht könnte das hier helfen: viewtopic.php?f=31&t=1829

Re: [RC]Meeting Block for Board3

Posted: 3. February 2010 17:32
by nightowl04
oh thx für den Tipp, hatte die Hoffnung schon fast aufgegeben und wollte den Mod zum Wochenende eigentlich deinstallieren, aber nun schon ich erstmal, ob der Hinweis mein Problem lösen kann. Danke

Re: [RC]Meeting Block for Board3

Posted: 4. June 2010 06:53
by xnigelx
anyone have any idea on how to edit the text color by default for meeting details?

Re: [RC]Meeting Block for Board3

Posted: 14. June 2010 13:14
by MrPixel
Hey,

Thank you very much for this, its a great block. At the moment it only displays on the portal page, how can I get it to display on every page?

EDIT: I'm using portalview and have sidebars etc on all page.

Thanks again for a great mod :)

Re: [RC]Meeting Block for Board3

Posted: 19. June 2010 17:13
by MrPixel
This block will display all events to all groups, even if those events are restricted to one group.

Any way around this?