Advertisement:

Author Topic: Different board Icons  (Read 266336 times)

Offline homeslice

  • Jr. Member
  • **
  • Posts: 183
  • Gender: Male
  • Usin' braincells as dippin' sauce
    • Wordabuse
Re: Different board Icons
« Reply #40 on: January 20, 2005, 01:46:52 PM »
you're not getting what im asking, im not saying that, I got the gif files right, I dont know where im suppose to put the code for each forum,

like this ?

Code: [Select]
// If the board is new, show a strong indicator.
   if ($board['new'])
   echo '<img src="', $settings['images_url'], '/on', $board['13'], 'on13.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['13'], 'on213.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['13'], 'off13.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

  echo '</td>

than if I want the next board what do I do, type it all again,

like this?

Code: [Select]
// If the board is new, show a strong indicator.
   if ($board['new'])
   echo '<img src="', $settings['images_url'], '/on', $board['14'], 'on14.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['14'], 'on214.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['14'], 'off14.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

  echo '</td>

see I get what u mean about the red x's and all, I jus dont know where to put each code, I have to type a bunch of paragraphs like that for 24 forums ???

http://battle.ne1.net

Wordabuse Hip-Hop Forums!


Offline Mystica

  • SMF Friend
  • Full Member
  • *
  • Posts: 458
  • Gender: Female
  • don't look at me as if I'm different
    • Mysti's World
Re: Different board Icons
« Reply #41 on: January 20, 2005, 01:55:49 PM »

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>

just use this code!
~ there's nothing wrong with me, this is how I'm supposed to be ~

Offline homeslice

  • Jr. Member
  • **
  • Posts: 183
  • Gender: Male
  • Usin' braincells as dippin' sauce
    • Wordabuse
Re: Different board Icons
« Reply #42 on: January 20, 2005, 02:17:14 PM »
thats the default code mystica im looking for the code to have multiple ones, not just one set of on and off, I need that code customized, an example

http://battle.ne1.net

Wordabuse Hip-Hop Forums!


Offline Mystica

  • SMF Friend
  • Full Member
  • *
  • Posts: 458
  • Gender: Female
  • don't look at me as if I'm different
    • Mysti's World
Re: Different board Icons
« Reply #43 on: January 20, 2005, 02:57:31 PM »
that IS the code for the different board icons for each board! no need to modify the code, that's what everyone is trying to explain to you!
the forum will use $board['id'] to add the board id automatically in the image url! you just need that code and all the different images, that's it!
~ there's nothing wrong with me, this is how I'm supposed to be ~

Offline homeslice

  • Jr. Member
  • **
  • Posts: 183
  • Gender: Male
  • Usin' braincells as dippin' sauce
    • Wordabuse
Re: Different board Icons
« Reply #44 on: January 20, 2005, 03:05:43 PM »
could u show me an example please, with 2 or 3 forums and not just one

why is everyone getting mad at me and not explaining it like I asked

http://battle.ne1.net

Wordabuse Hip-Hop Forums!


Offline Mystica

  • SMF Friend
  • Full Member
  • *
  • Posts: 458
  • Gender: Female
  • don't look at me as if I'm different
    • Mysti's World
Re: Different board Icons
« Reply #45 on: January 20, 2005, 03:09:08 PM »
it doesn't matter if you have 1, 5 or 200 boards, you just need the code (like it was posted) once. just try it out, it does work!
~ there's nothing wrong with me, this is how I'm supposed to be ~

Offline homeslice

  • Jr. Member
  • **
  • Posts: 183
  • Gender: Male
  • Usin' braincells as dippin' sauce
    • Wordabuse
Re: Different board Icons
« Reply #46 on: January 20, 2005, 03:48:40 PM »
I did try and all I get is errors, why dont u just show me an example  >:(

http://battle.ne1.net

Wordabuse Hip-Hop Forums!


Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: Different board Icons
« Reply #47 on: January 20, 2005, 04:18:09 PM »
Errors? It doesn't help that you don't tell us what they say. Example of what? Forums using this? Several mentioned in this topic. Of the code? Lots of it here as well. Go back to the first page and re-read what was written, find what you didn't understand, figure it out and there you go. It's been explained in very good detail, the only way it can get easier is with a packaged mod or someone doing it for you. You should change your attitude as well, that'll help a lot too.
« Last Edit: January 20, 2005, 04:20:31 PM by Anguz »
Cristián Lávaque http://cristianlavaque.com

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Different board Icons
« Reply #48 on: January 20, 2005, 04:31:03 PM »
I'm getting annoyed because you ask:

How do I do this?

I answer:

Do X?

You say:

I tried to do Y, it didn't work.

I say:

Because you did Y.  Do X.

You say:

Okay, I know X is wrong so I did Y.

I say:

Do X.  Y is wrong.  Y will give you errors.

You say:

Okay, Y didn't work again.

You're not listening.  I give up.

Edit: if this was a comedy, it would be very very funny, but it's not and frankly it seems to me you're not even trying to read what we've posted, because everything you're posting is based on the first assumption you've made, as if none of the things we've said have even registered.

-[Unknown]
« Last Edit: January 20, 2005, 04:36:16 PM by [Unknown] »

Offline homeslice

  • Jr. Member
  • **
  • Posts: 183
  • Gender: Male
  • Usin' braincells as dippin' sauce
    • Wordabuse
Re: Different board Icons
« Reply #49 on: January 21, 2005, 01:48:14 AM »
Ok look all Im asking for is an example of the code with more than one gif so I can see how to do it, why do u sit there and say X & Y stuff trying to make me feel stupid, its actually pissing me off, this is suppose to be a board for support right ? All Im saying is you keep showing me the code with only one set of on & off gifs, There has to be 24 different ones for my board so that doesnt make sense at all, and now u say u giving up, fine, if u cant show me that than forget it,

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>

If this code works for more than one show me an example rather than just showing it to me with one gif per on & off, show me 2 or 3 so I can see how to do it

thats all I asked..........................

http://battle.ne1.net

Wordabuse Hip-Hop Forums!


Offline homeslice

  • Jr. Member
  • **
  • Posts: 183
  • Gender: Male
  • Usin' braincells as dippin' sauce
    • Wordabuse
Re: Different board Icons
« Reply #50 on: January 21, 2005, 01:50:56 AM »
Maybe I am not explaining myself well enough
echo '<img src="', $settings['images_url'], '/on', $board['id'], 'on13.gif", on15.gif, on16.gif alt="', $txt[333], '" title

do I put all the things like that or how is it done ?


http://battle.ne1.net

Wordabuse Hip-Hop Forums!


Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Different board Icons
« Reply #51 on: January 21, 2005, 01:55:21 AM »
No.  The code posted, for the third time, is all you need.  No changes.  Just paste it in, exactly as posted.  Without a single number added.  Not one letter.

You're not stupid, you're just ignoring parts of what I'm posting.  I've seen people do it at my schools in the past.  I don't know why, but they ignore it... and it annoys me here, because it's right up there for you to read at any time.  But, I'm not calling you stupid - I've seen some of the smartest people do it.  I don't think I'll ever understand it, though.

Change it not at all.  If you have problems, please post exactly what they are, and give a link showing the problem.

BabylonKing uses this.  He probably uses the exact code posted above.  He has not added any id numbers.  He has not changed the code.  He did not edit it.  Here is his URL:

http://www.babylonking.net/forum/

-[Unknown]

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: Different board Icons
« Reply #52 on: January 21, 2005, 04:09:20 AM »
$board['id'] has the actual IDs of all the boards stored in it. SMF takes care of getting them, the IDs, one by one for you. You just need to post that code. You may need to clear up the concept of variable and array in programming, cause it seems that's the bit of knowledge you're missing here. HIH.
Cristián Lávaque http://cristianlavaque.com

Offline homeslice

  • Jr. Member
  • **
  • Posts: 183
  • Gender: Male
  • Usin' braincells as dippin' sauce
    • Wordabuse
Re: Different board Icons
« Reply #53 on: January 21, 2005, 11:32:19 PM »
Errors:

Quote
Template Parse Error!
There was a problem loading the /Themes/colorclassic/BoardIndex.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.


 :(

http://battle.ne1.net

Wordabuse Hip-Hop Forums!


Offline homeslice

  • Jr. Member
  • **
  • Posts: 183
  • Gender: Male
  • Usin' braincells as dippin' sauce
    • Wordabuse
Re: Different board Icons
« Reply #54 on: January 22, 2005, 12:04:48 AM »
Aight cool, I finally understood after Anguz explained that the code is for the userid so u dont have to type it a bunch of times, thanks Unknown and everyone else for ur help


http://battle.ne1.net

Wordabuse Hip-Hop Forums!


Offline helenbpd

  • Jr. Member
  • **
  • Posts: 181
    • The Nook at BPDCentral
Re: Different board Icons
« Reply #55 on: January 22, 2005, 12:11:21 AM »
Homeslice,

That error means there's a typo of some kind in there.  If you click on 'try accessing this file directly' it will tell you where it is (which line of the code).  Probably a quicker way is to just go back to the clean default template and try re-pasting the block of code in there. 

You don't change a thing in the code they've given you. Not a THING.  You don't have to - the board does all the image switching using that one little piece that goes $board['id'].  It HAS to say only $board['id'] - not $board['3'] or anything else.  You do not change the names of the .gifs in the actual code.  Nothing.

YOU only do 2 things:

1.  Copy exactly the piece of code they've typed up top in this thread exactly where they've said to put it in your template.  Don't even change one period or comma.  Exactly as they've typed it.  It's quite short.

2. Name your images for each board with the numbers of that board and upload them.
The names of the default images are:
on.gif
on2.gif
off.gif

Your special images for Board 1 need the names:
on1.gif
on21.gif
off1.gif

Board 2 needs:
on2.gif
on22.gif
off2.gif

Board 3 needs:
on3.gif
on23.gif
off3.gif

etc.  So if you have 20 boards, you'll have a whole list of 60 gifs to upload to the images file.

You can do it.

Offline helenbpd

  • Jr. Member
  • **
  • Posts: 181
    • The Nook at BPDCentral
Re: Different board Icons
« Reply #56 on: January 22, 2005, 12:12:05 AM »
Whups, you got it.  Knew you could.  ;)

Offline homeslice

  • Jr. Member
  • **
  • Posts: 183
  • Gender: Male
  • Usin' braincells as dippin' sauce
    • Wordabuse
Re: Different board Icons
« Reply #57 on: January 22, 2005, 12:26:27 AM »
Hey Helen thats the kinda response I needed 2/3 days ago, but thanks much! Thats some good info for someone else who might not understand and read the post, thats exactly what I wanted to know

http://battle.ne1.net

Wordabuse Hip-Hop Forums!


Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: Different board Icons
« Reply #58 on: January 22, 2005, 12:30:15 AM »
I just noticed that the icons don't show up in your boardindex, although they're in the source code. The table is a bit messed, I'm guessing probably from trying the code here, meant for the default theme, in your modified one. Very nice layout you have there, but then the code for the template is a bit different. Could you find in your theme the part that deals with the on, on2 and off images and post it here? I'll try to tell you what to do to make it work.
Cristián Lávaque http://cristianlavaque.com

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Different board Icons
« Reply #59 on: February 23, 2005, 03:09:59 PM »
Love this idea, but if you really have over 20 boards, won't you hit a problem?

Specifically, on21.gif will be used for sub-forums of #1, and for forum #21.