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

Author Topic: Boards Icon  (Read 1181 times)

0 Members and 1 Guest are viewing this topic.

Offline mickjav

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Database Dreams
Boards Icon
« on: September 18, 2021, 08:38:34 am »
Noticed That the boards Icon always shows as new items is there a way to change this.

https://www.databasedreams.co.uk/charts/index.php?action=forum

thanks mick

Home of Chart Tracker Elite, Apollo & DJ 2020, Coming soon The Librarian.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Boards Icon
« Reply #1 on: September 18, 2021, 12:45:37 pm »
Open themes/default/boardindex.template.php
Find
Code: [Select]
// Loop though each Classifieds Category

foreach ($context['classifieds_boards'] as $board)
{
echo '
<tr class="windowbg2">
<td class="icon windowbg" ' , !empty($board['subcats_linktree']) ? 'rowspan="2"' : '' , '><a href="', $scripturl, '?action=classifieds;cat=', $board['ID_CAT'], '">';

// If the board is new, show a strong indicator.

echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant'], '/on2.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />';



Change to
Code: [Select]
// Loop though each Classifieds Category

foreach ($context['classifieds_boards'] as $board)
{
echo '
<tr class="windowbg2">
<td class="icon windowbg" ' , !empty($board['subcats_linktree']) ? 'rowspan="2"' : '' , '><a href="', $scripturl, '?action=classifieds;cat=', $board['ID_CAT'], '">';

// If the board is new, show a strong indicator.

echo '
<img src="', $settings['images_url'], '/' .$context['theme_variant'], '/on.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />';


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 mickjav

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Database Dreams
Re: Boards Icon
« Reply #2 on: September 18, 2021, 01:28:17 pm »
Sorry didn't work Should there be a switch between the off and on image, I'm probably missing it lol

thanks mick

Home of Chart Tracker Elite, Apollo & DJ 2020, Coming soon The Librarian.

Offline mickjav

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Database Dreams
Re: Boards Icon
« Reply #3 on: September 18, 2021, 01:36:18 pm »
I might be able to addapt this from the same template.

Code: [Select]
if ($board['new'] || $board['children_new'])
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'on', $board['new'] ? '' : '2', '.png" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" />';
// Is it a redirection board?
elseif ($board['is_redirect'])
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'redirect.png" alt="*" title="*" />';
// No new posts at all! The agony!!
else
echo '
<img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'off.png" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

Home of Chart Tracker Elite, Apollo & DJ 2020, Coming soon The Librarian.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Boards Icon
« Reply #4 on: September 18, 2021, 02:04:23 pm »
I would try off.png instead of on.png in my above code.
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 mickjav

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Database Dreams
Re: Boards Icon
« Reply #5 on: September 18, 2021, 02:11:00 pm »
lol did think of doing that, but wanted to see first thanks

Home of Chart Tracker Elite, Apollo & DJ 2020, Coming soon The Librarian.

Offline mickjav

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Database Dreams
Re: Boards Icon
« Reply #6 on: September 18, 2021, 02:13:43 pm »
Worked a treat thanks

Home of Chart Tracker Elite, Apollo & DJ 2020, Coming soon The Librarian.

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
7174 Views
Last post May 28, 2006, 04:10:41 am
by gamesmad
3 Replies
8782 Views
Last post October 08, 2006, 12:11:23 pm
by SMFHacks
7 Replies
6979 Views
Last post October 20, 2010, 12:13:37 am
by SMFHacks
1 Replies
4134 Views
Last post February 01, 2011, 12:42:55 pm
by SMFHacks
3 Replies
2044 Views
Last post October 16, 2018, 03:08:00 pm
by SMFHacks

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