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: 884

    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:
30 users online from in the past 30 minutes. 14 bots 15 guests 1 members: mccawphoto
7,617 views today 8,665 yesterday 14,010 peak. Most at once 63 today 48 yesterday 131 peak. Visited today: Dickinsonjohn9, shairah27, xiaotian, _ck_, engin1984, Augustine01, MichaelGomez, mccawphoto, KitchenDip
2,240 posts in 380 topics over 63 months by 425 of 1,992 members. Latest: shairah27, Augustine01, MichaelGomez