Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Recent Posts question

Aloittaja dliw, helmikuu 26, 2005, 06:09:16 IP

« edellinen - seuraava »

dliw

On the Recent Posts section of the board index, is there a way to make it an option to expand or collapse? Thank you.

Oldiesmann

Michael Eshom
Christian Metal Fans

wgm

#2
I keep getting parse error on line 252, with expecting "," or ";" from the link above.

dliw is a staff/helper (or whatever he chooses) of the site/forum I own.
2 heads are better then one. :)

Edit; Add.
Exact error
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /usr/home/williamm/public_html/forum/Themes/default/BoardIndex.template.php on line 252

[Unknown]

Can you post three lines above and three lines below?

-[Unknown]

wgm

Not exactly 3 lines above and below, sorry.


// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="catbg" colspan="2"><a href="javascript:boardIndexCollapse('recent');"><img src="', $settings['images_url'], '/collapse.gif" alt="" border="0" id="collapse_recent" />', $txt[214], '</a></td>
</tr>
<tr id="row_recent">
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent">
<img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
</td>
<td class="windowbg2">';

[Unknown]

Find:

javascript:boardIndexCollapse('recent');

Replace:

javascript:boardIndexCollapse(\'recent\');

-[Unknown]

wgm

Lainaus käyttäjältä: [Unknown] - helmikuu 27, 2005, 04:41:00 AP
Find:

javascript:boardIndexCollapse('recent');

Replace:

javascript:boardIndexCollapse(\'recent\');

-[Unknown]

Thank you, that worked.

dliw

Thank you [Unknown].

Actually, I'm the staff helper helping the staff.  :D 

Advertisement: