Seite 1 von 1

Topic Calendar und Portal. Geht das?

Verfasst: 09.02.2005 12:14
von stoni81
Ich wollte fragen ob wer weiß ob es einen Mod gibt der vom Topic Calendar die nächsten Einträge in den Portal & Intro Mod einbaut.

Wäre wirklich toll wenn mir wer helfen kann.
Ich habe bisher nichts gefunden.

Danke.

Verfasst: 02.02.2006 20:23
von kolja
lang lang istst her...

aber hat in der zwischenzeit jemand ne möglichkeit gefunden ?

kolja

Verfasst: 02.02.2006 20:43
von stoni81
ich weiß nicht mehr um was es genau ging aber schau dir mal das an.

www.hockeyonline.at.tt

Verfasst: 03.02.2006 00:00
von kolja
genau den meinte ich

ich such mal denmod...

Verfasst: 03.02.2006 00:05
von Markus67
Hi ...

wenn ich mich recht entsinne geht das mit dem MiniCalender :wink:
MOD - Mini Cal

Es gibt dort auch noch eine neuere Beta Version .. dafür musst du dich allerdings registrieren und der Benutzergruppe phpBB beitreten :wink:

Markus

Verfasst: 03.02.2006 00:15
von kolja
ich hab leider gerade den topic_calendar MODeingebaut und wollte eigentlich auch dabe bleiben...

aber ich meine sawas auch schon für den tc gesehen zu haben

kolja, der weitersucht

edit:

ich weiss jetzt was du meintest,
der mini cal stellt die termine aus dem tp dar

danke

Verfasst: 03.02.2006 18:14
von kolja
also ich hab gefunden was ich meinte,

aber leider verstehe ich die "anleitung" nicht ganz:

Code: Alles auswählen

I modified the posts.php so that the phpbb_fetch_posts(n) function will return the topics from forum n in order of the calender events.

There are two $CFG parameters to keep in mind, $CFG['post_order'] and a new one $CFG['cal_posts'] with the following contents possible:

$CFG['posts_order']= 't.topic_calendar_time DESC' 
-> events from future to past
$CFG['posts_order']='t.topic_calendar_time ASC' 
-> events from past to future
$CFG['posts_order']='p.post_time DESC' 
-> default

$CFG['cal_posts']='news' 
-> events in future including present
$CFG['cal_posts']='history'
 -> events in the past

For events that span multiple days, they will be history when all days have passed.
For a news page I have used the following code:
$CFG['posts_order'] = 't.topic_calendar_time ASC';
$CFG['cal_posts'] = 'news';
$news = phpbb_fetch_posts(9);


Here is the modified code of posts.php, just replace the existing file with it.
NOTE: it does not contain the RepeatsinNews mod.

<?php
###############################################################################
##                                                                           ##
## phpBB Fetch All - A modification to phpBB that displays data from the     ##
##                   forum on any page of a website.                         ##
## ------------------------------------------------------------------------- ##
## This module contains functions for fetching post related data.            ##
##                                                                           ##
###############################################################################
##                                                                           ##
## Authors: Volker 'Ca5ey' Rattel <ca5ey@users.sourceforge.net               ##
##          http://phpbbfetchall.sourceforge.net/                            ##
##                                                                           ##
## This file is free software; you can redistribute it and/or modify it      ##
## under the terms of the GNU General Public License as published  by the    ##
## Free Software Foundation; either version 2, or (at your option) any later ##
## version.                                                                  ##
##                                                                           ##
## This file is distributed in the hope that it will be useful, but WITHOUT  ##
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or     ##
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for  ##
## more details.                                                             ##
##                                                                           ##
###############################################################################

###############################################################################
## CONFIGURATION
###############################################################################
weiss jemand damit was anzufangen ??

kolja