1 (edited by bactisme 2010-09-30 06:09)

Topic: Print icons in front of topics

Hello,

I release a very dirty extensions, dirty because the code was written quickly without any quality matters in mind.

The extentions can be used to add icons in front of topics in the list of topics page.

I would like to offer it as a base for futher extensions development. Just hope that it can be usefull for somebody. I will continue to update it in the futur.

Thank you very much,

You can download it here: http://forum.frandroid.com/forum/viewtopic.php?id=27668

README.txt wrote:

Baptiste Michaud
bactisme@frandroid.com

Licences
--------
GPL Licence, based on pun_tags

Icons from famfamfam, Creative Commons Attribution 2.5 License, More icons on
http://www.famfamfam.com/lab/icons/silk/

INSTALLATION
------------

1 . Open db.sql replace PUMBB_PREFIX_ by your database prefix;
2 . Execute the sql file on your db via phpmyadmin for example
3 . Move cat-menu to your punbb 'img' folder
4 . move pun_catid to extentions folder
5 . Line 95 in file viewforum.php,

find the lines:
> $query = array(
>   'SELECT' => 't.id, t.poster, t.subject, t.posted, t.first_post_id, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to',

and chand it to:
>   'SELECT' => 't.id, t.poster, t.subject, t.posted, t.first_post_id, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, pun_catid',

6 . Activate extention in adminstration console

ISSUES
------
1 . There is no administration interface for the moment (maybe later), you have to
use phpmyadmin.
2 . Bugs on order field ?
3. Sorry to the punbb team, i did't realized that 'pun_*' names was extentions from the punbb's team

Baptiste M

Re: Print icons in front of topics

Thanks, congrats on having one of the largest busiest PunBB 1.3.x boards I've ever seen....

http://keydogbb.info/img/frandroid.png

Re: Print icons in front of topics

Yeah,
sadly we start to feel the limit of this wonderfull tool which is phpmyadmin.

Stats are
New posts per weeks : 13701
New topic per weeks : 781

Per months:
Posts : 63160
Topics : 3584

Re: Print icons in front of topics

Impressive big_smile

BTW:
Using Temporary Tables to Speed Up MySQL
http://www.linuxplanet.com/linuxplanet/ … ls/6889/1/

Would something like that not help?
Or is it fundamental problem of MySQL ? And what exactely are you seeing?

5

Re: Print icons in front of topics

Does this work with Daris's Portal?
I was hoping to get something like this:
http://img265.imageshack.us/img265/306/screenunb.th.jpg
So it shows the icons to the different forums.

I'm glad someone's come out with something like this though, well done :]

Re: Print icons in front of topics

kiejr wrote:

Does this work with Daris's Portal?

did you try now?

7

Re: Print icons in front of topics

Ah, I've given it a go.
Followed all the instructions, and it still doesn't seem to be showing up the pictures for me.
Just to make sure, the cat-menu folder is to be put inside the img folder?

8

Re: Print icons in front of topics

Ah, I got it to work. You choose the picture in the post you make.