1 (edited by Misery 2004-09-24 03:34)

Topic: [pBB: 1.1.5] Use category 'images' instead of text.

this Modification is to use images to show the category name instead of the default text.

Installation:

open index.php, find:

<?php echo pun_htmlspecialchars($cur_forum['cat_name']) ?>

replace with:

<img src="./img/category_<? echo pun_htmlspecialchars($cur_forum['cid']) ?>.jpg" />

Okay, now to use this, you will need to create images with name category_x.jpg and place them in your PUNBBDIR/img/ folder.

For an example, here is my forum:
http://moseisley.xoopiter.com/cantina/index.php

I didn't post version #, etc, because I don't think the coding will change much for this, so I won't really have to update it. It's really very simple... ;p

2

Re: [pBB: 1.1.5] Use category 'images' instead of text.

Very slow Misery, you must choose small image (file size)

If your people come crazy, you will not need to your mind any more.

Re: [pBB: 1.1.5] Use category 'images' instead of text.

Its loading normally... but if you have small images, then it will be quite faster as Zaher Says.

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

4

Re: [pBB: 1.1.5] Use category 'images' instead of text.

Tnx.

5

Re: [pBB: 1.1.5] Use category 'images' instead of text.

But, if you want to use images instead text on every single forum:
Find line 113 on index.php

<?php echo $icon ?>

And replace them do what is Misery tald.
P.S.
Sorry for my english.

Re: [pBB: 1.1.5] Use category 'images' instead of text.

Pablo wrote:

And replace them do what is Misery tald.

means...
A state of ill-being due to affliction or misfortune
A feeling of intense unhappiness

God wisely designed the human body so that we can neither pat our own backs nor kick ourselves too easily

Re: [pBB: 1.1.5] Use category 'images' instead of text.

err why are all your images different files but the same image so it has to load lots of times?

Re: [pBB: 1.1.5] Use category 'images' instead of text.

those are the forumicons i'm going to use, haven't decided which icons to use yet, so i made them all the same for now. board isn't out of dev yet tongue

Re: [pBB: 1.1.5] Use category 'images' instead of text.

ahh lol cos i was like huh why are they loading 1 at a time

10

Re: [pBB: 1.1.5] Use category 'images' instead of text.

Misery wrote:

those are the forumicons i'm going to use, haven't decided which icons to use yet, so i made them all the same for now. board isn't out of dev yet tongue


Hello,

Big thank's for your mod, it's exactly what i need, very cool smile
I testing for swicht from ipb to punbb and this mod was one of the 2 think's i absolute need
http://www.alsamania.net/forum/index.php?

but i take what Pablo say and is not workin as you can see here:
http://www.alsamania.net/labo/punbb/index.php

Can you post the right way for makin this with the forums icones please ?

11

Re: [pBB: 1.1.5] Use category 'images' instead of text.

hmmm, what happens if there new posts :S

*removed by Rickard*
^ 1337 php and mySQL sig
Like annoying people with visual basic? http://www.annoyingvb.com <-- the home for virus/spammers/trojans. ect source code!

12

Re: [pBB: 1.1.5] Use category 'images' instead of text.

You show the "new"post" icon at place forum icon wink

13

Re: [pBB: 1.1.5] Use category 'images' instead of text.

Chab, my mod changes the CAT icons, not the forum icons, as you can see @ my site, what I am talking about is 'the cantina', 'the holcron', the 'holocade'

etc; not the forumicons.

14 (edited by Chab 2004-10-04 00:02)

Re: [pBB: 1.1.5] Use category 'images' instead of text.

Thank's for reply misery
Yes i have understand your mod, but when i look at your forum icone name,
you have Off topic=icon_1, Help Me=icon_13, Sarlaac Pit=icon_12 etc...
Can you say me where i find the mod to make this ?
I find more info here: http://punbb.org/forums/viewtopic.php?id=3700 but not the indication where find the mod

Re: [pBB: 1.1.5] Use category 'images' instead of text.

read the first post ^^^