1 (edited by KANekT 2010-03-03 07:02)

Topic: [Release] Topic description

Topic description
Allows users to write a description for the topic

http://s002.radikal.ru/i198/1001/c4/db2ee5e8fb00t.jpg

http://s001.radikal.ru/i194/1001/f7/317e1da86fbet.jpg

URL:
SVN http://kanekt-punbb.googlecode.com/svn/topic_desc/
ZIP http://kanekt-punbb.googlecode.com/file … _0.5.0.zip

Re: [Release] Topic description

Hey KANekT

I just installed this extension on a board.
When I wrote a new Topic I can enter a description.

But where does that description show? Who can see it? Where?

Re: [Release] Topic description

http://www.picamatic.com/show/2010/01/12/09/50/6353741_bigthumb.JPG

Re: [Release] Topic description

Location of that image is forbidden, i.e. not showing

Re: [Release] Topic description

http://i072.radikal.ru/1001/28/d5e46face8b0t.jpg

Re: [Release] Topic description

Can you (or anyone) test it in oxygen. Not working my side.
Thx.

Re: [Release] Topic description

http://s55.radikal.ru/i150/1001/37/5bc651cc826ft.jpg

Re: [Release] Topic description

http://s002.radikal.ru/i198/1001/c4/db2ee5e8fb00t.jpg

http://s001.radikal.ru/i194/1001/f7/317e1da86fbet.jpg

Re: [Release] Topic description

Thx got it to work in a 1.3.4 here aswell now
But in another 1.3.4 board (but with Cobalt Style):

Notice: Undefined index: topic_desc in /home/[...]/viewforum.php(315) : eval()'d code on line 10

It doesn't work in 1.3.2 according to my tests... just FYI.

10

Re: [Release] Topic description

I tested only 1.3.4
extension not depend on the style.

I think possible bug, but when it happens I do not know.

11

Re: [Release] Topic description

maybe it will help

        <hook id="vf_row_pre_item_subject_merge"><![CDATA[
        if (isset($cur_topic['topic_desc']))
        {
            $forum_page['item_body']['subject']['topic_desc'] = '<p><small>'.forum_htmlencode($cur_topic['topic_desc']).'</small></p>';
        }
        ]]></hook>

12

Re: [Release] Topic description

Should I check my other ext installed to see if they're using any of the below hooks ?
Or is the description data somehow not being put in the db?

<version>0.2.0</version>
<description>Topic Description</description>

1 <hook id="po_pre_post_contents" priority = "2">
2 <hook id="po_end_validation, mr_confirm_split_posts_form_submitted"><![CDATA[
3 <hook id="po_pre_add_topic"><![CDATA[
4 <hook id="fn_add_topic_qr_add_topic"><![CDATA[
5 <hook id="ed_qr_get_post_info"><![CDATA[
6 <hook id="ed_pre_message_box" priority = "2"><![CDATA[
7 <hook id="ed_qr_update_subject"><![CDATA[
8 <hook id="vf_qr_get_topics"><![CDATA[

13

Re: [Release] Topic description

I did the update extension.
Bugs should be fixed

http://kanekt-punbb.googlecode.com/file … _0.3.0.zip

14

Re: [Release] Topic description

Didn't help....

15

Re: [Release] Topic description

KeyDog wrote:

Didn't help....

при каких условиях происходит ошибка? (url or картинка)
версия форума?

16

Re: [Release] Topic description

Under what conditions is a mistake? (url or picture)
version of the forum?

17

Re: [Release] Topic description

It just doesn't show the topic description. It looks like any other normal topic (without description)
I can enter the topic description but it doesn't show afterwards.
No errors are reported anywhere.

18

Re: [Release] Topic description

this forum works http://punbb-e.keydogbb.info/index.php

or don't work in Cobalt Style ?

19

Re: [Release] Topic description

http://punbb-exp.keydogbb.info/viewforum.php?id=1

That one doesn't work.
Neither did another I tried.

The E board has worked since this post smile
http://punbb.informer.com/forums/post/133265/#p133265

20

Re: [Release] Topic description

punbb-exp - 1.3.4 ?

pliz
define('FORUM_SHOW_QUERIES', 1);
in this forum

21

Re: [Release] Topic description

It's on, changed it in config.php

22

Re: [Release] Topic description

You forum

0.00071    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 FROM xxx_topics AS t WHERE t.id IN (16,15,14,13,2,1)
0.00073    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, t.topic_desc FROM xxx_topics AS t WHERE t.id IN (16,15,14,13,2,1)

my forum

0.00025    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, t.topic_desc FROM n_topics AS t WHERE t.forum_id=14 ORDER BY t.sticky DESC, t.last_post DESC LIMIT 0, 30

code viewtopic.php (93-100)

// Fetch list of topics
$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',
    'FROM'        => 'topics AS t',
    'WHERE'        => 't.forum_id='.$id,
    'ORDER BY'    => 't.sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 't.posted' : 't.last_post').' DESC',
    'LIMIT'        => $forum_page['start_from'].', '.$forum_user['disp_topics']
);

I think something has changed in the code viewtopic.php line 93-100

23

Re: [Release] Topic description

must be that board then that is problem  (running with 1.3.4 experimental by pun)

just got your ext working on another test board with version 0.3.0 [edit: anyone know why the "by KeyDog" is on the very left in that last post - it's ugly..., where to change?]
so we can say that it works on 1.3.4

thanks again for your help

24

Re: [Release] Topic description

need to change the style *.css

Yesterday 12:11:59 - little characters

http://punbb-b.keydogbb.info/index.php - same

Re: [Release] Topic description

this would be great if you could make the description appear when a user mouseover the topic link. I don't want the description to take up any vertical space you see.

Can this be done?
smile