phpbb_Calendar_0_1_0 als Block

User avatar

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

Re: phpbb_Calendar_0_1_0 als Block

Post by archivar »

fnys wrote:The code is already made, is it really that hard to publish same code in another place?
for me, yes but for a person that knows coding it doesn't feels like a huge problem.
so I'm asking one more time:
Please, is there someone how could check this up?
I can not help you because I do not use the calendar module. :oops:
V.G. archivar
sorry for my bad english

fnys
Translator
Posts: 24
Joined: 20. May 2010 00:06

Re: phpbb_Calendar_0_1_0 als Block

Post by fnys »

It's ok. See if someone else some day got the time to make a try :-)

willi2010
Valued Contributor
Posts: 53
Joined: 26. April 2010 22:33
phpBB.de User: willi2010

Re: phpbb_Calendar_0_1_0 als Block

Post by willi2010 »

Mr Strech wrote:Also haben tu ich was.

Momentan kann man sich nur die nächsten Events ansehen, in der Anzahl, wie sie im ACP eingestellt ist. Die Wochenansicht geht (noch) nicht. Das Template gefällt mir auch noch nicht so wirklich, aber das ist ja immer Geschmackssache.

http://www.mrstrech.com/phpbb_calendar_block.zip

Einfach Block hochladen und einfügen, wie gehabt.

Großartig Fragen dazu kann ich nicht beantworten. Habs auch nur durch Try and Error hinbekommen.
Ich sage mal Danke.

Genau so habe ich das gesucht!
Viele Grüße
Klaus
http://www.kf2-forum.de // Versionen: phpBB 3.0.12 / board3_portal_2.0.2 / prosilver / phpbb_gallery_1_1_6 / Kalender alightner 0_1_0 / NV_who_was_here_1_2_1_1
b3p_gallery_block_2_1_1 / b3p_who_was_here_block_200

Picco
Active Member
Posts: 2
Joined: 17. September 2013 23:07
phpBB.de User: Picco
phpBB.com User: Picco

Re: phpbb_Calendar_0_1_0 als Block

Post by Picco »

Mr Strech wrote:Also haben tu ich was.

Momentan kann man sich nur die nächsten Events ansehen, in der Anzahl, wie sie im ACP eingestellt ist. Die Wochenansicht geht (noch) nicht. Das Template gefällt mir auch noch nicht so wirklich, aber das ist ja immer Geschmackssache.

http://www.mrstrech.com/phpbb_calendar_block.zip

Einfach Block hochladen und einfügen, wie gehabt.

Großartig Fragen dazu kann ich nicht beantworten. Habs auch nur durch Try and Error hinbekommen.
Ich habe das Modul in Portal 2.0.1 hinzugefügt, jedoch scheint es nirgends auf. Habe die Files ebenfalls manuell hochgeladen, jedoch ohne Ergebnis. Woran liegts?

Picco
Active Member
Posts: 2
Joined: 17. September 2013 23:07
phpBB.de User: Picco
phpBB.com User: Picco

Re: phpbb_Calendar_0_1_0 als Block

Post by Picco »

Gibt's auch eine Möglichkeit die Wochenansicht korrekt darstellen zu lassen?
Last edited by Kirk on 18. September 2013 17:35, edited 1 time in total.
Reason: Zitat entfernt / Es reicht wenn man einmal zitiert
User avatar

Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: phpbb_Calendar_0_1_0 als Block

Post by Kirk »

Picco wrote:Ich habe das Modul in Portal 2.0.1 hinzugefügt, jedoch scheint es nirgends auf. Habe die Files ebenfalls manuell hochgeladen, jedoch ohne Ergebnis. Woran liegts?
Du musst das Modul im ACP hinzufügen.
Gruß Udo

JuergenBY
Active Member
Posts: 12
Joined: 28. February 2013 09:58

Re: phpbb_Calendar_0_1_0 als Block

Post by JuergenBY »

Gibt es eine Möglichkeit, den Block links oder rechts zu positionieren? Oder kann mir jemand bei der Anpassung behilflich sein?

MfG
JuergenBY
User avatar

Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: phpbb_Calendar_0_1_0 als Block

Post by Kirk »

Hallo
Dieses ist schon möglich, du müsstest folgendes machen:

Öffne: root/portal/modules/portal_calendar_alightner_center.php
Finde:

Code: Select all

public $columns = 21;
Ersetze es mit:

Code: Select all

public $columns = 31;
Finde:

Code: Select all

       return 'calendar_alightner_center.html';
       }
Danach einfügen:

Code: Select all

       public function get_template_side($module_id)
       {
       global $config, $template, $phpbb_root_path, $phpEx;

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

       // Generate calendar week view or next events if required ...
calendar_display_calendar_on_index();

       return 'calendar_alightner_side.html';
       }
Erstelle eine Datei mit dem Namen calendar_alightner_side.html und folgenden Inhalt

Code: Select all

{$LR_BLOCK_H_L}<!-- IF $S_BLOCK_ICON --><img src="{$IMAGE_SRC}" width="{$IMAGE_WIDTH}" height="{$IMAGE_HEIGHT}" alt="" />&nbsp;<!-- ENDIF -->{$TITLE}{$LR_BLOCK_H_R}

                         <ul class="topiclist bg1">

                                <li>

                                        <dl>

                                                <dt style="padding-left:45px">{L_UPCOMING_EVENTS}</dt>

                                                <!-- IF S_RSVP_COLUMN -->

                                                        <dt class="lastpost" style="width:16%">{L_COL_WILL_ATTEND}</dt>

                                                        <dt class="lastpost" style="width:16%">{L_INVITE_INFO}</dt>

                                                <!-- ELSE -->

                                                        <dt class="lastpost" style="width:16%">{L_INVITE_INFO}</dd>

                                                        <dt class="lastpost" style="width:16%">{L_EVENT_CREATED_BY}</dd>

                                                <!-- ENDIF -->

                                        </dl>

                               </li>

                        </ul>

                        <ul class="topiclist bg1">

                        <!-- BEGIN events -->

                                <!-- IF S_RSVP_COLUMN -->

                                        <!-- IF events.VALUE != 1 -->

                                                <li class="row">

                                                        <dl class="icon"<!-- IF events.IMAGE --> style="background-image: url({events.IMAGE}); background-repeat: no-repeat;"<!-- ENDIF -->>

                                                                <dt><a href="{events.EVENT_URL}" title="<!-- IF events.ETYPE_DISPLAY_NAME -->{events.ETYPE_DISPLAY_NAME}: <!-- ENDIF -->{events.FULL_SUBJECT}">

                                                                        <span style="<!-- IF events.COLOR -->color:#{events.COLOR};<!-- ENDIF --> font-weight: bold;">

                                                                                <!-- IF events.ETYPE_DISPLAY_NAME -->{events.ETYPE_DISPLAY_NAME}: <!-- ENDIF -->{events.SUBJECT}</span><br /><!-- IF events.ALL_DAY -->{L_ALL_DAY} {events.START_TIME}<!-- ELSE -->{events.START_TIME} {L_TO_TIME} {events.END_TIME}<!-- ENDIF --></a>

                                                                                <br>{events.POSTER}

                                                                </dt>

                                                                <dd style="width:16%; padding-left:5px;" class="lastpost">{events.VALUE_TXT}<!-- IF events.HEADCOUNT > 1 --> ({events.HEADCOUNT})<!-- ENDIF --></dd>

                                                                <dd style="width:16%; padding-left:5px;" class="lastpost">{events.INVITED}</dd>

                                                        </dl>

                                                </li>

                                        <!-- ENDIF -->

                                <!-- ELSE -->

                                        <li class="row">

                                                <dl class="icon"<!-- IF events.IMAGE --> style="background-image: url({events.IMAGE}); background-repeat: no-repeat;"<!-- ENDIF -->>

                                                        <dt><a href="{events.EVENT_URL}" title="<!-- IF events.ETYPE_DISPLAY_NAME -->{events.ETYPE_DISPLAY_NAME}: <!-- ENDIF -->{events.FULL_SUBJECT}">

                                                                <span style="<!-- IF events.COLOR -->color:#{events.COLOR};<!-- ENDIF --> font-weight: bold;">

                                                                        <!-- IF events.ETYPE_DISPLAY_NAME -->{events.ETYPE_DISPLAY_NAME}: <!-- ENDIF -->{events.SUBJECT}</span><br /><!-- IF events.ALL_DAY -->{L_ALL_DAY} {events.START_TIME}<!-- ELSE -->{events.START_TIME} {L_TO_TIME} {events.END_TIME}<!-- ENDIF --></a>

                                                        </dt>

                                                        <dd style="width:16%; padding-left:5px;" class="lastpost">{events.INVITED}</dd>

                                                        <dd style="width:16%; padding-left:5px;" class="lastpost">{events.POSTER}</dd>

                                                </dl>

                                        </li>

                                <!-- ENDIF -->

                        <!-- END events -->

                        </ul>

{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}
Lade diese Datei in den Template Ordner deines Styles und leere danach alle Cache.

Hinweis:
Du müsstest evtl. den Code in der calendar_alightner_side.html noch anpassen.
Gruß Udo

SIL_EL_MOT
Active Member
Posts: 3
Joined: 10. October 2013 18:49

Re: phpbb_Calendar_0_1_0 als Block

Post by SIL_EL_MOT »

Hello,
i am glad, that smb did a portal-block working with the calendar mod.
Unfortunately after installation of the block , the user-block doesnt show the right avatar anymore. Furthermore the Standard-Block for chaning styles doesnt work anymore.
Any Help or Workarounds?

Thank u very much
Post Reply

Return to “Modification Requests”