Customizing SMF > SMF Coding Discussion

Topic Description Editing help? [Not that advanced!]

<< < (2/2)

Silmarama:
Tried that and got this instead:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/Post.template.php on line 240

231:       }
232:       
233:       
234:       //End Tagging system mod
235:       echo '
236:       
237:       
238:       
239:

240:    $boards = !empty($modSettings['topic_descriptions_boards']) ? explode(",", $modSettings['topic_descriptions_boards']) : array();

241:    if (!empty($modSettings['topic_descriptions_enable']) && $context['is_first_post'] && !in_array($context['current_board'], $boards)) {
242:       echo '         <dt>
243:                      <span id="caption_description">' . $txt['topic_descriptions_post_desc'] . '</span>
244:                   </dt>

Anthony`:
Get rid of the echo ' on line 235.

Silmarama:
Now it seems to be working like a charm. Thanks for your quick help!

Navigation

[0] Message Index

[*] Previous page

Go to full version