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: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 180
Total: 180

Author Topic: Board Index Template Error  (Read 6491 times)

0 Members and 1 Guest are viewing this topic.

Offline Wickedgood

  • Member
  • *
  • Posts: 32
    • View Profile
Board Index Template Error
« on: September 10, 2010, 05:33:15 pm »
Just installed Classified on a forum running 2.0RC3.

Getting error:
8: Undefined index: new
Apply Filter: Only show the errors from this file
File: /home/uscleane/public_html/smf/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 276

Seems to be coming from this:
// If the board is new, show a strong indicator.
            
               echo '
                  <img src="', $settings['images_url'], '/' .$context['theme_variant'], '/on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />';

What is the best way to fix this?
Thanks for the great mod!  :)

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Board Index Template Error
« Reply #1 on: September 10, 2010, 05:40:13 pm »
Find
 $board['new']
Change to
 @$board['new']
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Wickedgood

  • Member
  • *
  • Posts: 32
    • View Profile
Re: Board Index Template Error
« Reply #2 on: September 10, 2010, 08:20:28 pm »
Thanks!

Seems to have fixed the issue.  ;D

Offline vkot

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Re: Board Index Template Error
« Reply #3 on: September 15, 2010, 01:38:38 am »
I have the same error, but from a different file...
Code: [Select]
http://xxx.xx/index.php?
8: Undefined index: new
File: /xxx/cache/lang_classifieds_greek_default.php (main sub template - eval?)
Line: 250

Line 250 of that file contains just a (correct) language string, for the $txt['class_error_editauction_listing']

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Board Index Template Error
« Reply #4 on: September 16, 2010, 03:46:21 pm »
I would try that same edit in the boardindex file vkot you are seeing the eval error file but not the true file with error.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline vkot

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Re: Board Index Template Error
« Reply #5 on: February 26, 2012, 01:38:34 pm »
Find
 $board['new']
Change to
 @$board['new']

I thought this would have been fixed by now, after 1½ year. You forgot?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Board Index Template Error
« Reply #6 on: February 26, 2012, 01:44:52 pm »
Changed for next update.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
38 Replies
41902 Views
Last post July 26, 2007, 01:48:58 pm
by v.jenner
2 Replies
5858 Views
Last post July 12, 2007, 03:58:51 am
by bullguy
4 Replies
7694 Views
Last post September 08, 2010, 03:06:44 am
by Molly
3 Replies
4053 Views
Last post October 30, 2008, 07:42:55 pm
by SMFHacks
1 Replies
4995 Views
Last post February 21, 2011, 07:25:49 pm
by SMFHacks

+- 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