The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Show Image Post in Sub-forum

    Herry Sudrajat
    Herry Sudrajat
    Forumember


    Male Posts : 57
    Reputation : 48
    Language : Indonesian, English
    Location : ID

    Solved Show Image Post in Sub-forum

    Post by Herry Sudrajat September 5th 2016, 10:06 pm

    Hello Hello

    I want to show image post of the topic in sub-forum, i need this feature so that the forum members can post their artwork. but, i have some problem with this...

    design plan will look like this:
    Show Image Post in Sub-forum Screen12

    my results:

    Show Image Post in Sub-forum Screen13

    i'm trying code:

    Code:
    $(function(){
     Â         var isPunbb = '';
     Â         if ($('.pun').length) var isPunbb = 'class="pun"';
     Â         $('h2.topic-title a').after('&nbsp;<span id="imgtopicshow"></span>');

     Â         $('span#imgtopicshow').show(function() {
     Â           $('.tlbstats').prepend('<div id="topicimg-container" '+isPunbb+'><div id="imgtopicbox"></div></div>');

     Â           $('#imgtopicbox').load($(this).siblings('h2.topic-title a').attr('href')+' .entry-content img:not(img[src*="/smiles/"]):eq(0)');
     Â         });
     Â       });

    anybody help me, please? bye
    @Ange Tuteur


    Last edited by Herry Sudrajat on September 6th 2016, 8:03 pm; edited 1 time in total
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Show Image Post in Sub-forum

    Post by SLGray September 5th 2016, 10:14 pm

    Show Image Post in Sub-forum Untitl10



    Show Image Post in Sub-forum Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Show Image Post in Sub-forum

    Post by TheCrow September 5th 2016, 10:15 pm

    Hello @Herry Sudrajat,

    So you want the image to be grabbed out of the topics? Because there is a ready tutorial if you want to use the descriptions. How to do it is posted here: http://www.punbb.biz/t336-javascript-using-description-to-work-like-image-in-topiclist-punbb-phpbb2



    Show Image Post in Sub-forum Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Herry Sudrajat
    Herry Sudrajat
    Forumember


    Male Posts : 57
    Reputation : 48
    Language : Indonesian, English
    Location : ID

    Solved Re: Show Image Post in Sub-forum

    Post by Herry Sudrajat September 5th 2016, 10:22 pm

    SLGray wrote:Show Image Post in Sub-forum Untitl10

    Luffy wrote:Hello @Herry Sudrajat,

    So you want the image to be grabbed out of the topics? Because there is a ready tutorial if you want to use the descriptions. How to do it is posted here: http://www.punbb.biz/t336-javascript-using-description-to-work-like-image-in-topiclist-punbb-phpbb2

    no no no, i don't want to use the topic description. i want to load image from topic and placing in sub forum Smile
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Show Image Post in Sub-forum

    Post by SLGray September 5th 2016, 10:46 pm

    What do you mean by sub-forum?



    Show Image Post in Sub-forum Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Herry Sudrajat
    Herry Sudrajat
    Forumember


    Male Posts : 57
    Reputation : 48
    Language : Indonesian, English
    Location : ID

    Solved Re: Show Image Post in Sub-forum

    Post by Herry Sudrajat September 6th 2016, 5:12 am

    SLGray wrote:What do you mean by sub-forum?

    Topic list box what i mean Very Happy
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Show Image Post in Sub-forum

    Post by SLGray September 6th 2016, 6:50 am

    That is not call a sub-forum.

    So you want images in your topics to appear here:
    Show Image Post in Sub-forum Untitl10

    https://help.forumotion.com/t141644-application-topic-thumbnail



    Show Image Post in Sub-forum Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Herry Sudrajat
    Herry Sudrajat
    Forumember


    Male Posts : 57
    Reputation : 48
    Language : Indonesian, English
    Location : ID

    Solved Re: Show Image Post in Sub-forum

    Post by Herry Sudrajat September 6th 2016, 8:02 pm

    SLGray wrote:That is not call a sub-forum.

    So you want images in your topics to appear here:
    Show Image Post in Sub-forum Untitl10

    https://help.forumotion.com/t141644-application-topic-thumbnail

    great! thanks @SLGray salut
    - topic solved -
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Show Image Post in Sub-forum

    Post by SLGray September 6th 2016, 10:08 pm

    You're welcome.

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules



    Show Image Post in Sub-forum Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is November 11th 2024, 8:38 pm