Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12388
Latest: Rands
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 40308
Total Topics: 7099
Most Online Today: 46
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 46
Total: 46

Author Topic: Need Some Help With Simple Blog  (Read 5118 times)

0 Members and 1 Guest are viewing this topic.

Offline KnightRobby

  • Newbie
  • *
  • Posts: 6
    • View Profile
Need Some Help With Simple Blog
« 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 :)

Offline Tick

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Need Some Help With Simple Blog
« Reply #1 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

Offline KnightRobby

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Need Some Help With Simple Blog
« Reply #2 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 :)

Offline Tick

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Need Some Help With Simple Blog
« Reply #3 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.

Offline KnightRobby

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Need Some Help With Simple Blog
« Reply #4 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.

Offline KnightRobby

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Need Some Help With Simple Blog
« Reply #5 on: July 17, 2007, 02:33:51 am »
Here's the files for you in a zip file.  Everything should be there now...
« Last Edit: July 17, 2007, 12:03:18 pm by KnightRobby »

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
11427 Views
Last post September 19, 2006, 09:25:37 am
by lisah746
[Mod] Simple Blog

Started by Little15 « 1 2 ... 8 9 » Latest Mods

133 Replies
169165 Views
Last post April 18, 2007, 09:39:07 pm
by pongsak
9 Replies
11470 Views
Last post January 28, 2007, 12:54:40 pm
by doctoreast
1 Replies
4708 Views
Last post February 19, 2007, 08:34:02 pm
by SlaveToThis
6 Replies
8697 Views
Last post May 11, 2007, 02:18:33 pm
by asklife

+- Recent Topics

Quality of images after import by SMFHacks
September 05, 2020, 10:21:44 am

How do I download gallery images? by CWVRV
August 30, 2020, 11:50:07 pm

Deleting Empty Galleries by SMFHacks
August 30, 2020, 11:43:32 am

PHP error by davejo
August 25, 2020, 07:35:13 am

Permissions to list ads and buy items by CWVRV
August 21, 2020, 05:19:45 pm

Doubt with download permissions. by Rock Lee
August 20, 2020, 08:23:24 pm

Attachment images Upsidedown or Sideways by SMFHacks
August 18, 2020, 05:41:07 pm

[Mod]Avatars Display Integration by Hatshepsut
August 17, 2020, 11:39:54 pm

Simple Portal Block - Classifieds by SMFHacks
August 16, 2020, 09:56:48 am

SMF Links by SMFHacks
August 16, 2020, 08:03:42 am

Powered by EzPortal