Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 344
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 245
Total: 245

Author Topic: Need Some Help With Simple Blog  (Read 6239 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
13343 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
187890 Views
Last post April 18, 2007, 09:39:07 pm
by pongsak
9 Replies
13907 Views
Last post January 28, 2007, 12:54:40 pm
by doctoreast
1 Replies
6096 Views
Last post February 19, 2007, 08:34:02 pm
by SlaveToThis
6 Replies
10961 Views
Last post May 11, 2007, 02:18:33 pm
by asklife

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal