Search

bbPress Showcase » bbPress Chat

closed What function displays the attachment.

RSS

  1. enatom
    enatom

    junior member
    Joined: Aug '10
    Posts: 9

    offline

    Hi, CK, im halfway done hacking your plug-in. Iv added this function in your plugin file.
    function topic_thumb(){

    global $bbdb;
    $postid = $bbdb->get_var("SELECT post_id FROM bb_posts WHERE topic_id=4 AND post_position=1");
    $filename = $bbdb->get_var("SELECT filename FROM bb_attachments WHERE post_id=".$postid);

    echo "post :".$postid;
    echo " file :".$filename;
    }

    but instead of echoing the file name.. Id like to look at the function that displays the thumbnail, and see what i can take from it. What function displays the thumbnail?
    EDIT: This is not going anywhere I abondoned this project. but i have another question. ill post it in another thread becuase its differnet

    Posted 1 year ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    I'm going to ask you to stop posting here about this.

    You need to hire a coder, this is definitely beyond your current ability.

    The problem contains many aspects you have not fully thought out and problems that you won't know how to solve.

    Posted 1 year ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
34 users online from in the past 30 minutes. 15 bots 19 guests
2,030 views today 8,540 yesterday 16,043 peak. Most at once 43 today 50 yesterday 131 peak. Visited today: Gunnar07, wigbuy123, iplaytheme, guava, skat95, landc01
2,288 posts in 394 topics over 66 months by 430 of 2,168 members. Latest: wigbuy123, JeffreyCasivant, summerfortun