Zum Inhalt springen

mal wieder: tt_board und postform

Erstellt am 27. Mai 2007 · 1 Antwort · letzte Antwort am 1. Juni 2007

Tags: Frage

zab1981 ·

Hallo liebe Typo3-ler,

seit Tagen kämpfe ich nun mit der Extension tt_board (ich weiß tt_board ist nicht so Feature- und Facettenreich wie andere Extensions. Nachdem ich aber lediglich ein einfaches Forum ohne Anmelde- und sonstigem Schnick-Schnak benötige doch die erstere Wahl).

Also, mein Problem ist ein wohl altbekanntes: Forum-List wird angezeigt, aber kein Postform in der jeweiligen Forums-Kategorie (nur die Spaltenüberschrift und das Such-Feld).
Wer guggen will: http://www.islandpraktikum.de/index.php?id=509

Meine Konfiguration:

- Typo3 4.1.1
- tt_board 1.1.9
- CSS_Styled_Content 0.3.1

Im +ext-Template der (übergeordneten) Forums-Seite steht:

#### CONSTANTS ####

plugin.tt_board {
  moderatorEmail  = MY_EMAIL_GOE_SHERE
  numberOfRecentPosts = 0
  emailCheck = 1
  spamWords = viagra, cialis, gogofacility
}


plugin.tt_board_list {
  file.templateFile = fileadmin/path.to.template.file/board.tmpl
  color1 = #C0DDFE
  color2 = #C0DDFE
  color3 = #0078FF
  color4 = #8AC1FE
}
#### SETUP ####

FEData.tt_board >
FEData.tt_board {
  processScript = EXT:tt_board/lib/board_submit.inc
  processScript {

    notify = 1
    notify_from = islandpraktikum.de
    
    # Notification message template, first line is subject.
    newReply.msg = EXT:tt_board/template/board_notify.txt
    newReply.didWhat = has just replied to a thread at
    newReply.subjectPrefix = Reply to post at
    newThread.msg = EXT:tt_board/template/board_notify.txt
    newThread.didWhat = has just created a new thread at
    newThread.subjectPrefix = New thread

    debug=1
    emailCheck = {$plugin.tt_board.emailCheck}
    spamWords = {$plugin.tt_board.spamWords}
    memberOfGroups = {$plugin.tt_board.memberOfGroups}
  }
  default {
    hidden = 0
    parent = 0
  }
  allowNew {
    subject = 1
    message = 1
    author=1
    email=1
    parent=1
    notify_me=1
  }
  autoInsertPID = 1
  doublePostCheck = doublePostCheck

}





temp.tt_board.shared = USER
temp.tt_board.shared {
  pid_list.field = pages
  code.field = select_key
  memberOfGroups = {$plugin.tt_board.memberOfGroups}

  date_stdWrap.strftime = %a %b %e, %Y
  time_stdWrap.strftime= %H:%M:%S
  age_stdWrap.age = 1
  allowCaching = 0
  
  list_categories {
    cache_timeout = 120
  }
  list_forums {
    author_stdWrap.wrap = by |
    cache_timeout = 300
    post_content_stdWrap.crop = 130 | ...
    numberOfRecentPosts = {$plugin.tt_board.numberOfRecentPosts}
  }
  list_threads {
    post_content_stdWrap.crop = 130 | ...
    thread_limit = 20
  }

postform < tt_content.mailform.20
   postform.data >
   postform.dataArray {
    10.label = Betreff:
    10.type = *data[tt_board][NEW][subject]=input,60
    20.label = Nachricht:
    20.type =  *data[tt_board][NEW][message]=textarea,60
    30.label = Name:
    30.type = *data[tt_board][NEW][author]=input,40
    40.label = E-Mail:
    40.type = *data[tt_board][NEW][email]=input,40
    50.label = Benachrichtigen bei<br />Antwort(en): 
    50.type = data[tt_board][NEW][notify_me]=check
    60.type = formtype_db=submit
    60.value = Absenden!
  }
  postform.no_cache=1

  postform_newThread < .postform
  postform_newThread.dataArray.60.value = Post New Thread

  moderatorEmail_newThread = {$plugin.tt_board.moderatorEmail}
  moderatorEmail = {$plugin.tt_board.moderatorEmail}
  
  PIDforum = {$plugin.tt_board.PIDforum}
}


temp.userFuncList = tx_ttboard_pi_list->main
temp.userFuncList {
  
  HELP = COA_INT
  HELP {
    10.userFunc = tx_ttboard_pi_list->help
  }

  LIST_CATEGORIES = COA
  LIST_CATEGORIES {
    10.userFunc = tx_ttboard_pi_list->listCagetories
  }

  LIST_FORUMS = COA
  LIST_FORUMS {
    10.userFunc = tx_ttboard_pi_list->listForums
  }

  FORUM = COA
  FORUM {
    10.userFunc = tx_ttboard_pi_list->forum
  }

  POSTFORM = COA_INT
  POSTFORM {
    10.userFunc = tx_ttboard_pi_list->postForm
  }

  POSTFORM_REPLY = COA_INT
  POSTFORM_REPLY {
    10.userFunc = tx_ttboard_pi_list->postFormReply
  }

  POSTFORM_THREAD = COA_INT
  POSTFORM_THREAD {
    10.userFunc = tx_ttboard_pi_list->thread
  }

}



## This enables the tt_content.list item to display the forum, list style:
plugin.tt_board_list < temp.tt_board.shared
plugin.tt_board_list {
  userFunc < temp.userFuncList

  templateFile = {$plugin.tt_board_list.file.templateFile}

  # Global wraps
  wrap1.wrap = {$plugin.tt_board_list.wrap1}
  wrap2.wrap = {$plugin.tt_board_list.wrap2}
  wrap3.wrap = {$plugin.tt_board_list.wrap3}
  color1.wrap = {$plugin.tt_board_list.color1}
  color2.wrap = {$plugin.tt_board_list.color2}
  color3.wrap = {$plugin.tt_board_list.color3}
  color4.wrap = {$plugin.tt_board_list.color4}
}


## This enables the record item to display board list items
tt_board_list >
tt_board_list = < plugin.tt_board_list
tt_board_list.displayCurrentRecord = 1

Ausserdem ist Include static (from extensions) Board CSS Style (tt_board) ausgewählt. (Funktionert aber auch nicht, wenn ich stattdessen Board Old Style nehme).

Nu war's ja vor einiger Zeit so, dass CSS-styled-content und tt_board nicht zusammen konnte und eben meinen Fehler verursacht hat.

Der Workaraound (postform < styles.content.mailform mit postform < tt_content.mailform.20 im Setup ersetzen ist in der 1.1.9er Version schon gemacht)

Ausserdem hab' ich irgendwo gelesen, man soll in sysext/css_styled_content/static/setup.txt bei Zeile 660 folgendes einfügen styles.content.mailform < tt_content.mailform.20 ... hat auch nicht funktioniert.

Daher suche ich nun händeringend nach einer Lösung. Jede Hilfe und jeder Tip ist Willkommen.

VIELEN DANK schon mal im Voraus.

raymondo ·

Hatte das gleiche Problem. Bin allerdings dahinter gekommen als ich mir die Constants angeschaut habe. Und zwar hier:

----
Member of group [plugin.tt_board.memberOfGroups]
Comma separated list of FE groups which a user must belong to that the post forms are shown.
---

Per default ist die Gruppe 1 eingestellt. Solange also kein FE-User eingeloggt ist, der dieser Gruppe angehört, gibt's auch keine Postform zu sehen.

Gruss, Raymond