Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 167
Total: 168

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

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal