Advertisement:

Author Topic: Different board Icons  (Read 220828 times)

Offline memo

  • Semi-Newbie
  • *
  • Posts: 40
Different board Icons
« on: March 15, 2004, 08:29:55 AM »
Mod Available cbi (Custom Board Icons)

Original Post

Hi everybody

In yabbse we had discussions about different Icons for every board. Is in smf also something planned?
look here to see what i mean:

http://www.yabbse.org/community/index.php?thread=26086/0
« Last Edit: February 09, 2007, 05:10:53 PM by SleePy »

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Different board Icons
« Reply #1 on: March 15, 2004, 01:10:07 PM »
This is easily accomplished.  You can use the BoardIndex template to have a separate on.gif or off.gif for every $board['id'].  Where you want to look is after this comment:

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

Before each .gif, just add ', $board['id'], ' and then make onID.gif's for every board.

-[Unknown]

Offline Cypher7

  • Sophist Member
  • *****
  • Posts: 1,246
  • Gender: Male
  • PMPN8EZ
    • Dublin Airport Tae Kwon Do
Re: Different board Icons
« Reply #2 on: May 12, 2004, 07:07:49 AM »
hey, sorry to be digging up older threads,

Quote
Before each .gif, just add ', $board['id'], ' and then make onID.gif's for every board.

Ive been trying to do this, and due to my very limited knowledge of scripting I can't manage it. If someone could elaberate a bit more or post a sample bit of script as to point me in the right direction that would be great...

where do I add in the ', $board['id'], ' to

Code: [Select]
// If the board is new, show a strong indicator.
   if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// This board doesn't have new posts, but its children do.
   elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all!  The agony!!
   else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

  echo '</td>

!?

Thanks for the help!


Offline Ben_S

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,677
  • xxx
Re: Different board Icons
« Reply #3 on: May 12, 2004, 08:30:08 AM »
Code: [Select]
// If the board is new, show a strong indicator.
   if ($board['new'])
echo '<img src="', $settings['images_url'], '/on', $board['id'], '.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// This board doesn't have new posts, but its children do.
   elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2', $board['id'], '.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
// No new posts at all!  The agony!!
   else
echo '<img src="', $settings['images_url'], '/off', $board['id'], '.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

  echo '</td>
Liverpool FC Forum with 9 million+ posts.

Offline Cypher7

  • Sophist Member
  • *****
  • Posts: 1,246
  • Gender: Male
  • PMPN8EZ
    • Dublin Airport Tae Kwon Do
Re: Different board Icons
« Reply #4 on: May 12, 2004, 09:00:34 AM »
Great stuff! I see how it works now... the penny has dropped! I'm learning, I'm learning!!  ;D


thanks for that  :)

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: Different board Icons
« Reply #5 on: May 12, 2004, 09:07:18 AM »
u want make as my forum ?

http://www.forumzone.host.sk/index.php


tell me
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline Cypher7

  • Sophist Member
  • *****
  • Posts: 1,246
  • Gender: Male
  • PMPN8EZ
    • Dublin Airport Tae Kwon Do
Re: Different board Icons
« Reply #6 on: May 12, 2004, 09:51:39 AM »
Hi edi67!

yes that is what I am trying to achieve! Thanks to the help above though I'm just about there!

Just a matter of putting it live now...! me thinks maintenance mode might be required for a min!  ::)

Offline Cypher7

  • Sophist Member
  • *****
  • Posts: 1,246
  • Gender: Male
  • PMPN8EZ
    • Dublin Airport Tae Kwon Do
Re: Different board Icons
« Reply #7 on: May 13, 2004, 09:22:38 AM »
ok thats done... working fine... thanks for the help!

I just can't figure out how to make Child Boards have different icons...?  Is it possible?  :-\

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Different board Icons
« Reply #8 on: May 13, 2004, 11:19:28 AM »
Do the same thing, but in MessageIndex.template.php.

-[Unknown]

Offline Cypher7

  • Sophist Member
  • *****
  • Posts: 1,246
  • Gender: Male
  • PMPN8EZ
    • Dublin Airport Tae Kwon Do
Re: Different board Icons
« Reply #9 on: May 13, 2004, 11:38:26 AM »
genius...!

thanks a million [?]...  now I got some work to do!  :)

Offline dracomiconia2

  • Newbie
  • *
  • Posts: 8
Re: Different board Icons
« Reply #10 on: June 16, 2004, 10:16:13 AM »
Me too

Offline Vinoth

  • Full Member
  • ***
  • Posts: 569
  • Gender: Male
  • Hackers Are Not Crackers
Re: Different board Icons
« Reply #11 on: July 18, 2004, 05:22:01 PM »
THanx found this late
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Offline haup9

  • Semi-Newbie
  • *
  • Posts: 17
  • Gender: Male
  • I love fish!!!
    • Fish2Friends
Re: Different board Icons
« Reply #12 on: September 29, 2004, 10:21:38 PM »
I'm sorry for digging up such an old thread but I need a bit of help with this.

I found where the code goes.....no problem there. But how will it know which icon to use for which board? Do I need to name each .gif the board Id number? Do I still put the .gif in the images directory?

I'm so new to this stuff it is still very confusing to me. If someone could walk me through this step by step that would be a great help. Thanks for any help you can give me.
[nofollow]

Offline babylonking

  • SMF Friend
  • Full Member
  • *
  • Posts: 664
  • Gender: Male
  • Proudly Canadian
    • Assyrian Chaldean Online Community
Re: Different board Icons
« Reply #13 on: September 29, 2004, 10:43:59 PM »
u want make as my forum ?

http://www.forumzone.host.sk/index.php


tell me

You are using my forum skin icons without a permission from BBK  ::)

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: Different board Icons
« Reply #14 on: September 30, 2004, 10:51:19 AM »
how ??
im sorry for this but i sent already 2 pm in this forum and one in BBK forum for tell u this i liked very much this icons and i gave them for my forum

nothing u read ??
sorry but i not wanted take them without ask u i was thinking u already read my PM  :o
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline babylonking

  • SMF Friend
  • Full Member
  • *
  • Posts: 664
  • Gender: Male
  • Proudly Canadian
    • Assyrian Chaldean Online Community
Re: Different board Icons
« Reply #15 on: September 30, 2004, 07:28:13 PM »
how ??
im sorry for this but i sent already 2 pm in this forum and one in BBK forum for tell u this i liked very much this icons and i gave them for my forum

nothing u read ??
sorry but i not wanted take them without ask u i was thinking u already read my PM  :o

I didn't receive any PM's from you  ::)

Anyway you can keep them but please don't use any other buttons from bbk forum cuz i designed them only for my forum skin  :)

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: Different board Icons
« Reply #16 on: September 30, 2004, 09:27:07 PM »
how ??
im sorry for this but i sent already 2 pm in this forum and one in BBK forum for tell u this i liked very much this icons and i gave them for my forum

nothing u read ??
sorry but i not wanted take them without ask u i was thinking u already read my PM :o

Just asking for them doesn't mean you can take them. Get a reply okaying it first. It's common sense, at least to me it is...

I didn't receive any PM's from you ::)

Anyway you can keep them but please don't use any other buttons from bbk forum cuz i designed them only for my forum skin :)

Now you had a reply. :)
Cristián Lávaque http://cristianlavaque.com

Offline haup9

  • Semi-Newbie
  • *
  • Posts: 17
  • Gender: Male
  • I love fish!!!
    • Fish2Friends
Re: Different board Icons
« Reply #17 on: September 30, 2004, 10:50:44 PM »
Now you had a reply. :)

Can I get one too?  ;D

I'm sorry for digging up such an old thread but I need a bit of help with this.

I found where the code goes.....no problem there. But how will it know which icon to use for which board? Do I need to name each .gif the board Id number? Do I still put the .gif in the images directory?

I'm so new to this stuff it is still very confusing to me. If someone could walk me through this step by step that would be a great help. Thanks for any help you can give me.

Thanks!!
[nofollow]

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Different board Icons
« Reply #18 on: October 01, 2004, 12:09:44 AM »
See the link to this board, SMF Coding Discussion?

http://www.simplemachines.org/community/index.php?board=60.0

Notice the 60 there?  That's this board's number.  That's how you know ;).

-[Unknown]

Offline Amacythe

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,060
  • Gender: Female
Re: Different board Icons
« Reply #19 on: October 01, 2004, 12:29:18 AM »
Now you had a reply. :)

Can I get one too? ;D

I'm sorry for digging up such an old thread but I need a bit of help with this.

I found where the code goes.....no problem there. But how will it know which icon to use for which board? Do I need to name each .gif the board Id number? Do I still put the .gif in the images directory?

I'm so new to this stuff it is still very confusing to me. If someone could walk me through this step by step that would be a great help. Thanks for any help you can give me.

Thanks!!

I guess not :P

Try starting a new topic if no one replies by the time you see this.