Page 1 of 1

Where phpbb2 find "folder_img" is "the_name.gif"

Posted: Thu Jul 03, 2008 10:37 am
by seth_gravijah
Hi, I want to custom the display of the forum folder images depending the season, but not by changing theme manually.

- For the "season" part, getMonth() is my friend, no problem here.

- For the images part, I started searching in the index_body.tpl which gave me the "FORUM_FOLDER_IMG" string.
I've browsed various files and found in some (index.php, viewforum.php) that this string was lead by "$folder_image", and this one by $images['whatever']. And from that point I'm stuck, I can't find where the system figure out that $images['whatever'] is equal to whatever.gif

(W/o that, pretty tough to add a month conditionnal function on that whatever.gif :D )

Any one know where the images filenames are stored within the system ?

Re: Where phpbb2 find "folder_img" is "the_name.gif"

Posted: Thu Jul 03, 2008 10:53 am
by Paul
you are using phpBB2? This forum is meant for phpBB3 only :).

Re: Where phpbb2 find "folder_img" is "the_name.gif"

Posted: Thu Jul 03, 2008 11:16 am
by Brf
phpbb2 uses the stylename.cfg file to define the images.

Re: Where phpbb2 find "folder_img" is "the_name.gif"

Posted: Thu Jul 03, 2008 12:22 pm
by seth_gravijah
Paul wrote:you are using phpBB2? This forum is meant for phpBB3 only :).
As stated in the message title, yes. Did I really posted it in the 3.x forum ? :shock: Oops ! I suppose you moved it here then, thx ! I guess it's usually no good to do several things at the same time :?
Brf wrote:phpbb2 uses the stylename.cfg file to define the images.
:oops: Sorry I didn't find it on my own !
Thx !