News:

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

Main Menu

Problem with SMF unread posts

Started by ddarude, June 05, 2006, 04:21:03 AM

Previous topic - Next topic

ddarude

I have Joomla 1.0.8 and SMF 1.1 RC2 bridge with custom template.

hxxp:www.stonersdent.com [nonactive]

when I clicked

Show unread posts since last visit.
Show new replies to your posts.

it gives me this error:

Parse error: syntax error, unexpected $end in /home/jtcandra/public_html/forums/Sources/Recent.php on line 1152

This is the code from line 1148-1152 (last line)
         
                                'board' => array(
            'id' => $row['ID_BOARD'],
            'name' => $row['bname'],
            'href' => $scripturl . '?board=' . $row['ID_BOARD'] . '.0',
            'link' => '<a href="' . $scripturl .

Can someone help me resolve this issue?

Kindred

well...   a few MORE lines would have been useful....  because, with only a glance at line 1152 (and nothing after that) it seems obvious that you have an unclosed string.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Orstio

What SMF mods do you have installed?  In my un-modded Recent.php, there are only 1106 lines....

ddarude

Quote from: Kindred on June 05, 2006, 06:50:59 AM
well...   a few MORE lines would have been useful....  because, with only a glance at line 1152 (and nothing after that) it seems obvious that you have an unclosed string.

that is the problem kindred, line 1152 is the last line of Recent.php

Currently, this is my mod list

Mod Name Version 
1. SMF 1.0.7 / 1.1 RC2 Update 1.0 [ Uninstall ]
2. Lots_o_Smileys 1.0 [ Uninstall ]
3. Award Mod 1.1 [ Uninstall ]
4. 2DTV 100px 1.0.100 [ Uninstall ]
5. Attachments Mod 1.1 [ Uninstall ]
6. SMFShop 2.1 [ Uninstall ]
7. Integrated Chat 2.6 [ Uninstall ]
8. Sticky First Post (extends sticky topic) 1.2.2 [ Uninstall ]
9. Member Color Link 1.87 [ Uninstall ]
10. SSI Member Color Link 0.99 [ Uninstall ]
11. Member list by registration 1.0 [ Uninstall ]
12. Active Members In Topic 1.2 [ Uninstall ]
13. Ad Managment 1.2 [ Uninstall ]
14. AutoSig 1.1 [ Uninstall ]
15. Board Notes 1.0.4 [ Uninstall ]
16. Custom Action Mod 2.0 [ Uninstall ]
17. Googlebot & Spiders Mod 1.0.5 [ Uninstall ]
18. Location Mod 1.2 [ Uninstall ]
19. MessagePreviewOnHover 1.0 [ Uninstall ]
20. Users Online Today Mod 1.4.0 Beta 2 [ Uninstall ]
21. Display Number of Attachments 0.4.1 [ Uninstall ]
22. Custom Profile Field Mod 3.11 [ Uninstall ]
23. PJIRC Integrated Chat Mod 2.0 [ Uninstall ]
24. Hide Post 1.0.7 [ Uninstall ]

Orstio

I just tried it on your stand alone forum:

http://www.stonersdent.com/forums/index.php?action=unread

And it behaves the same way.  This is not related to the bridge.

Chances are that you have conflicting mods.

Kindred

and if that is the last line of the file, then you have MAJOR issues...    that is an unclosed string and it's missing the rest of the command (and who knows how many other lines you are missing!)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ddarude

I tried to download the original SMF and copied the original Recent.php and everything works fine now.
I'm not sure why my old Recent.php modified with incomplete code, is it because of package that i Installed?

Kindred

with 24 mods installed, I would guess that, YES, it was the result of one or more mods...   and restoring the basic Recent.php may cause some of your mods to not work correctly.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: