Welcome, Guest. Please Login or Register.
April 23, 2024, 01:26:12 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  give each board there own image??? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: give each board there own image???  (Read 884 times)
jeremy420
Noobie
*
Posts: 19


I'm a llama!

give each board there own image???
« on: April 24, 2003, 02:46:18 AM »
Reply with quote

how do you go about giving each board there own image? instead of having the same icon for all boards

i think its the

off.gif

please help

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


llama me?!

WWW
Re:give each board there own image???
« Reply #1 on: April 24, 2003, 04:54:21 PM »
Reply with quote

hmm... it shouldn't be too hard...

I think you can add, in the template, a condition where when $board=putboardnumberhere, then $boardimg=putboardimgurlhere

I'm new to php, so if I said something terrible, pls correct me

if the idea is correct, you can probably create a function and put all the conditions in it, where you'll imput the board number and it'll output the img's name

...

thinking a bit more, you could name your pictures after your board's numbers, like "1.jpg"... in the template you'd put something like
<img src="/boardpic/<?=$board?>.jpg">
that way you don't have add a condition to the function every time you want to change the pic for a board

I wouldn't know how to do this, but you should put a condition where if the board doesn't have a personalized picture, then a default one is used...
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:give each board there own image???
« Reply #2 on: April 24, 2003, 05:04:11 PM »
Reply with quote

using this same board personalization concept, the meta tags for each could be changed to fit each board and show up better in the search engine results... just an idea

although it could be done the dirty way, there could be a mod to change the meta tag info for each board in admin area, pretty much like changing the board descriptions that show in the forum's index page
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
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:give each board there own image???
« Reply #3 on: April 24, 2003, 06:26:25 PM »
Reply with quote

there used to be a mod for this (long long time ago ;D)
if u can find it, maybe u can request the mod writer to upgrade the mod
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:give each board there own image???
« Reply #4 on: April 24, 2003, 08:27:39 PM »
Reply with quote

hehe cool, thx spiff ;)

how would you write the condition so that if the img file doesn't exist, it'll use another one instead? it'd probably be hard to do it, I guess, since php is parsed before html asks for the files... any idea on how it could be done other than having an img for every board?
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:give each board there own image???
« Reply #5 on: April 24, 2003, 11:31:39 PM »
Reply with quote

hmm... I guess having a picture for each board in the folder is the simplest solution...

now, for those pages (like the index) that don't pass a board number with the url, it's like if $board didn't exist, right? so there's should be a condition where if !$board then $board=0 or something, where 0.jpg would be the default picture for those pages

would that work?
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:give each board there own image???
« Reply #6 on: April 25, 2003, 07:22:36 PM »
Reply with quote

other things could be changed for each board to personalize them... like styles...

maybe there could be a db table with some info for each board, to know if there's a personalized style or picture for each, that way if there's nothing mentioned, it uses the default one

well... I may try it on my board and if it works, I'll post what I did here

I'm pretty interested in this idea cause my forums are about a group of artists and there's a board for each one, with this I could really make each board suit each artist's image :)

another good use of this idea could be when you are hosting a friend's board at your own forums, that way he can make his look different from the others... in a case like this one, maybe the whole template could be modified :P
« Last Edit: April 25, 2003, 07:44:49 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
Behr
Noobie
*
Posts: 43


Re:give each board there own image???
« Reply #7 on: April 29, 2003, 12:02:50 AM »
Reply with quote

why not try custom templates mod. i remember i converted old dan's mod to 1.5.0. but if u r using 1.5.1 or 1.5.2 ... why not try this.

http://www.yabbse.org/community/index.php?board=158;action=display;threadid=15278

-Behr
Logged
Snowman30
Jr. Member
**
Posts: 67


ICQ - 10739583 WWW
Re:give each board there own image???
« Reply #8 on: May 01, 2003, 04:00:46 PM »
Reply with quote

Is there a way just to be able to just change the board index images? I want to have a different image for board on a forum?

Can this be done?
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  give each board there own image??? « 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.043 seconds with 21 queries.