Welcome, Guest. Please Login or Register.
October 07, 2024, 02:22:56 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  To change each figure of boardindex? « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: To change each figure of boardindex?  (Read 21391 times)
anibal
Jr. Member
**
Posts: 83


Yo

WWW
To change each figure of boardindex?
« on: October 15, 2003, 12:08:19 AM »
Reply with quote

Hello, I want to know if there is mod to be able to change each figure of the forum that I have.

In the figure that I show next, they can observe it;).

Thanks

Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:To change each figure of boardindex?
« Reply #1 on: October 15, 2003, 12:24:25 AM »
Reply with quote

Look in your YaBBImages folder.  Those icons are on.gif and off.gif

Just replace them with different icons named on.gif and off.gif or edit them to be whatever you want.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
anibal
Jr. Member
**
Posts: 83


Yo

WWW
Re:To change each figure of boardindex?
« Reply #2 on: October 15, 2003, 12:56:25 AM »
Reply with quote

but serious 2 figures only, and what I want are to have a different figure for each forum. you understand to me?

:)
Logged
Abominator
Noobie
*
Posts: 15


WWW
Re:To change each figure of boardindex?
« Reply #3 on: October 16, 2003, 08:14:31 AM »
Reply with quote

I've wondered about that one too...
Logged
maime
Noobie
*
Posts: 34


Let there be no doubt about it...I am a flying pig

WWW
Re:To change each figure of boardindex?
« Reply #4 on: October 16, 2003, 09:13:45 AM »
Reply with quote

there is a mod for it i think its called different icons or so
yep it s http://www.yabbse.org/community/index.php?thread=8548
« Last Edit: October 16, 2003, 09:16:52 AM by maime » Logged
anibal
Jr. Member
**
Posts: 83


Yo

WWW
Re:To change each figure of boardindex?
« Reply #5 on: October 16, 2003, 10:02:06 AM »
Reply with quote

Thanks Maime ;)

Logged
anibal
Jr. Member
**
Posts: 83


Yo

WWW
Re:To change each figure of boardindex?
« Reply #6 on: October 19, 2003, 10:04:57 AM »
Reply with quote

I have realized that that mod is for category and I do not know if there will be for forums  ???

::)  
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:To change each figure of boardindex?
« Reply #7 on: October 19, 2003, 05:57:18 PM »
Reply with quote

you could do something dirty like this

in your lng file, look for

$img['new_off'] = '<img src="' . $imagesdir . '/off.gif" alt="' . $txt[334] . '" title="' . $txt[334] . '" border="0" />';
$img['new_on'] = '<img src="' . $imagesdir . '/on.gif" alt="' . $txt[333] . '" title="' . $txt[333] . '" border="0" />';


and change it to

$img['new_off'] = '<img src="' . $imagesdir . '/off' . $row_board['ID_BOARD'] . '.gif" alt="' . $txt[334] . '" title="' . $txt[334] . '" border="0" />';
$img['new_on'] = '<img src="' . $imagesdir . '/on' . $row_board['ID_BOARD'] . '.gif" alt="' . $txt[333] . '" title="' . $txt[333] . '" border="0" />';


then you'll have to have a set of "on" "off" gifs for each board, named with the board id number right after "on" or "off" and before ".gif"

this won't check if the there's a gif for a specific board or not and default to on.gif or off.gif if there isn't, so you'll have to have a set for each board, even if some are the same images...

I said it's dirty :P

disclaimer: haven't tried it, I just put it together in a few minutes... but I think you can improve it from there (if it works) :)
« Last Edit: October 19, 2003, 05:58:40 PM by Anguz » Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
edi67
Jr. Member
**
Posts: 97


I'm a llama!

Re:To change each figure of boardindex?
« Reply #8 on: November 05, 2003, 07:10:31 PM »
Reply with quote

i realy like u idea and i hope u can help me too in this i realy want insert different immagine for every section
thank
Logged

Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:To change each figure of boardindex?
« Reply #9 on: November 06, 2003, 02:58:32 AM »
Reply with quote

Quote from: edi67 on November 05, 2003, 07:10:31 PM
i realy like u idea and i hope u can help me too in this i realy want insert different immagine for every section
thank

looking at it again, it may not work, cause the image var is defined once, but you need it to change with each loop when generating the boardindex...

but if you think it over a bit, it shouldn't be too hard to do it in a workable way
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:To change each figure of boardindex?
« Reply #10 on: November 06, 2003, 03:08:08 AM »
Reply with quote

this'd be more probable to work... in Sources/BoardIndex.php look for

         // set it to off,  only turn it on if there are posts and they are new.
         $new = $img['new_off'];
         if ($latestPostTime != $txt[470] && $log1 == 0 && $log2 == 0 && $username != 'Guest')
            $new = $img['new_on'];


and right after it, add this

        $new = str_replace('.gif', $row_board['ID_BOARD'].'.gif', $new);

leave the images as they were

$img['new_off'] = '<img src="' . $imagesdir . '/off.gif" alt="' . $txt[334] . '" title="' . $txt[334] . '" border="0" />';
$img['new_on'] = '<img src="' . $imagesdir . '/on.gif" alt="' . $txt[333] . '" title="' . $txt[333] . '" border="0" />';


then you save your pairs of on/off GIFs with the board number they're for right before the extension, like this

on12.gif
off12.gif
on19.gif
off19.gif
on23.gif
off23.gif


you get the idea... try it and let me know if it worked :)
« Last Edit: November 06, 2003, 03:18:39 AM by Anguz » Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
edi67
Jr. Member
**
Posts: 97


I'm a llama!

Re:To change each figure of boardindex?
« Reply #11 on: November 06, 2003, 02:36:26 PM »
Reply with quote

i trying to make as u wrote and a lot of icons appear and some other not remaing the same.
but begin to work i hope that u can find the problem
Logged

edi67
Jr. Member
**
Posts: 97


I'm a llama!

Re:To change each figure of boardindex?
« Reply #12 on: November 06, 2003, 05:52:15 PM »
Reply with quote

well icons appear but not all and sometimes one icon that was ok return as before on/off
u can understand why ?
Logged

Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:To change each figure of boardindex?
« Reply #13 on: November 06, 2003, 06:21:30 PM »
Reply with quote

no, not sure why, and I can't test the code in my copy now cause i'm doing other changes

make sure you have the right numbers for the boards and that all the images are correctly named and in the correct folder in your server

and you need to have the images for every board, not just the ones you want different... even if you have to make several copies of the same one with different names

if you put a link to the board, I could probably narrow the problem a bit more
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
edi67
Jr. Member
**
Posts: 97


I'm a llama!

Re:To change each figure of boardindex?
« Reply #14 on: November 06, 2003, 08:31:22 PM »
Reply with quote

look my board:

http://www.ediboard.altervista.org/yabbse/index.php


i insert all icons for every section
Logged

Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  To change each figure of boardindex? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.149 seconds with 20 queries.