[RC]Meeting Block for Board3

Forum rules
This forum is not for support requests.

Only post Modifications for Board3 Portal 1.0.x in this forum.

Topic author
frold
Portal Enthusiast
Posts: 108
Joined: 24. March 2008 07:52

[RC]Meeting Block for Board3

Post 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!
http://www.studmed.dk - Portal for doctors and medical students in Denmark
User avatar

winni33
Active Member
Posts: 22
Joined: 18. March 2009 17:29
phpBB.de User: winni33

Re: [RC]Meeting Block for Board3

Post 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
User avatar

winni33
Active Member
Posts: 22
Joined: 18. March 2009 17:29
phpBB.de User: winni33

Re: [RC]Meeting Block for Board3

Post 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

Topic author
frold
Portal Enthusiast
Posts: 108
Joined: 24. March 2008 07:52

Re: [RC]Meeting Block for Board3

Post by frold »

Nice you could use it :D

Where to see it in german? :)
http://www.studmed.dk - Portal for doctors and medical students in Denmark
User avatar

winni33
Active Member
Posts: 22
Joined: 18. March 2009 17:29
phpBB.de User: winni33

Re: [RC]Meeting Block for Board3

Post 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

Topic author
frold
Portal Enthusiast
Posts: 108
Joined: 24. March 2008 07:52

Re: [RC]Meeting Block for Board3

Post 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
http://www.studmed.dk - Portal for doctors and medical students in Denmark

nightowl04
Active Member
Posts: 13
Joined: 21. January 2010 05:34

Re: [RC]Meeting Block for Board3

Post 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.
User avatar

Mike
Former Team Member
Posts: 1862
Joined: 3. July 2008 23:59
Location: Schwarzwald / FDS
Contact:

Re: [RC]Meeting Block for Board3

Post 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
kein Support per PN / Messenger
no Support via PM / Messenger

nightowl04
Active Member
Posts: 13
Joined: 21. January 2010 05:34

Re: [RC]Meeting Block for Board3

Post 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)?

nightowl04
Active Member
Posts: 13
Joined: 21. January 2010 05:34

Re: [RC]Meeting Block for Board3

Post 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.
User avatar

Mike
Former Team Member
Posts: 1862
Joined: 3. July 2008 23:59
Location: Schwarzwald / FDS
Contact:

Re: [RC]Meeting Block for Board3

Post by Mike »

Vielleicht könnte das hier helfen: viewtopic.php?f=31&t=1829
kein Support per PN / Messenger
no Support via PM / Messenger

nightowl04
Active Member
Posts: 13
Joined: 21. January 2010 05:34

Re: [RC]Meeting Block for Board3

Post 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

xnigelx
Active Member
Posts: 3
Joined: 28. May 2010 05:50

Re: [RC]Meeting Block for Board3

Post by xnigelx »

anyone have any idea on how to edit the text color by default for meeting details?

MrPixel
Active Member
Posts: 2
Joined: 14. June 2010 13:10

Re: [RC]Meeting Block for Board3

Post 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 :)

MrPixel
Active Member
Posts: 2
Joined: 14. June 2010 13:10

Re: [RC]Meeting Block for Board3

Post by MrPixel »

This block will display all events to all groups, even if those events are restricted to one group.

Any way around this?
Locked

Return to “board3 Portal v1.0.x - Modifications”