Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11845
Latest: SamoanOnion
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 42481
Total Topics: 7409
Most Online Today: 124
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 27
Total: 27

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

0 Members and 1 Guest are viewing this topic.

Offline KnightRobby

  • Member
  • *
  • 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

  • Member
  • *
  • 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

  • Member
  • *
  • 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

  • Member
  • *
  • 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

  • Member
  • *
  • 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

  • Member
  • *
  • 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
12707 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
177552 Views
Last post April 18, 2007, 09:39:07 pm
by pongsak
9 Replies
12789 Views
Last post January 28, 2007, 12:54:40 pm
by doctoreast
1 Replies
5392 Views
Last post February 19, 2007, 08:34:02 pm
by SlaveToThis
6 Replies
10132 Views
Last post May 11, 2007, 02:18:33 pm
by asklife

+- Recent Topics

Delete old file by SMFHacks
October 05, 2022, 08:11:13 am

[Feature Request] Thumbnail on topic list by Shades
October 04, 2022, 11:40:26 am

Undefined index: class_ad_seller by SMFHacks
October 04, 2022, 09:33:36 am

"Custom title" badge by Hatshepsut
September 27, 2022, 10:11:27 pm

Category Selection by Anmer
September 18, 2022, 02:40:06 am

Setting a single free download. by Zaphod
September 12, 2022, 10:18:45 pm

Error message "Data too long for column 'ipaddress' at row 1" by SMFHacks
September 12, 2022, 08:49:02 am

SMF to SMF bridge via WP by SMFHacks
September 11, 2022, 09:44:30 am

Video player included by SMFHacks
September 06, 2022, 10:26:27 pm

Upload hangs / doesn't complete by SMFHacks
August 28, 2022, 08:36:21 am

Powered by EzPortal