SMFHacks.com

Modifications/Themes => General SMF Forum => Topic started by: KnightRobby on July 11, 2007, 01:59:41 pm

Title: Need Some Help With Simple Blog
Post by: KnightRobby on July 11, 2007, 01:59:41 pm
Hey guys and gals, I am having a problem with my blog.  When I go to the forums after installing the blog, it shows the following code (Note line 599!):

Code: [Select]
Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

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

590: <a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
591: </td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
592:
593: // The [calendar]!
594: if ($context['allow_calendar'])
595: echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
596: <td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
597: <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
598: // The Blogs!

599: echo ($current_action == 'blog' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '

600: <td valign="top" class="maintab_' , $current_action == 'blog' ? 'active_back' : 'back' , '">
601: <a href="', $scripturl, '?action=blog">' , $txt['blog'] , '</a>
602: </td>' , $current_action == 'blog' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
603: </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '"> </td>' : '';

I would appreciate any support, Thanks!
Robby :)
Title: Re: Need Some Help With Simple Blog
Post by: Tick on July 12, 2007, 01:15:58 am
in this part in lin 598
Code: [Select]
$txt['calendar24'] , '</a> add  this   ;  at the end of it
Title: Re: Need Some Help With Simple Blog
Post by: KnightRobby on July 13, 2007, 01:31:38 am
I did do that but I am still getting the same error.  It says there is a problem with line 599, not 598.  Do you know what the problem might be?

Thanks for replying though - appreciate it,
Robby :)
Title: Re: Need Some Help With Simple Blog
Post by: Tick on July 13, 2007, 11:16:34 am
Ok I see now.  If you will notice the blog code split into the calender code cutting the bottom part of it off.  try this and copy over the calender and the blog code.
Code: [Select]
// The [calendar]!
  if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
  <td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
  <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
                                        </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '"> </td>' : '';

// The Blogs!

echo ($current_action == 'blog' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '

  <td valign="top" class="maintab_' , $current_action == 'blog' ? 'active_back' : 'back' , '">
  <a href="', $scripturl, '?action=blog">' , $txt['blog'] , '</a>
  </td>' , $current_action == 'blog' ? '<td class="maintab_active_' . $last . '"> </td>' : '';

If this does not fix attach your index template to the post here and i will fix it for you.
Title: Re: Need Some Help With Simple Blog
Post by: KnightRobby on July 16, 2007, 02:35:10 pm
Thanks so much.  I still need your help, however.  I am going to attach a couple of files to this thread, simply because of this error that happened when I first installed:

Code: [Select]
1.  Execute Modification  ./Themes/default/languages/Modifications.english.php  Test successful
2. Execute Modification ./Themes/default/Profile.template.php Test failed
3. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
4. Execute Modification ./Themes/default/Display.template.php Test failed
5. Execute Modification ./index.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Sources/BoardIndex.php Test successful
8. Execute Modification ./Sources/ModSettings.php Test failed
9. Execute Modification ./Sources/Profile.php Test successful
10. Execute Modification ./SSI.php Test successful
11. Extract File ./Sources/SimpleBlog.php
12. Extract File ./Themes/default/SimpleBlog.template.php
13. Extract File ./Themes/default/SimpleBlogView.template.php
14. Execute Code SimpleBloginstall.php

BTW, the blog link appears now but it takes me to...
http://www.webquad.com/site/component/option,com_smf/Itemid,44/action,blog

Can you help me some more?  I would really appreciate it.  I just feel so excited about my website and this mod - it is so important to the website.

I am going to attach 4 files for you to look at (itest failed files), including the one you needed.
Title: Re: Need Some Help With Simple Blog
Post by: KnightRobby on July 17, 2007, 02:33:51 am
Here's the files for you in a zip file.  Everything should be there now...