Page 4 of 4

Re: phpbb_Calendar_0_1_0 als Block

Posted: 9. July 2013 19:35
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:

Re: phpbb_Calendar_0_1_0 als Block

Posted: 10. July 2013 09:22
by fnys
It's ok. See if someone else some day got the time to make a try :-)

Re: phpbb_Calendar_0_1_0 als Block

Posted: 7. September 2013 22:58
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!

Re: phpbb_Calendar_0_1_0 als Block

Posted: 17. September 2013 23:09
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?

Re: phpbb_Calendar_0_1_0 als Block

Posted: 17. September 2013 23:16
by Picco
Gibt's auch eine Möglichkeit die Wochenansicht korrekt darstellen zu lassen?

Re: phpbb_Calendar_0_1_0 als Block

Posted: 18. September 2013 17:38
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.

Re: phpbb_Calendar_0_1_0 als Block

Posted: 14. December 2013 11:28
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

Re: phpbb_Calendar_0_1_0 als Block

Posted: 14. December 2013 12:07
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.

Re: phpbb_Calendar_0_1_0 als Block

Posted: 5. October 2014 20:33
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