The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Show Image Post in Sub-forum

View previous topic View next topic Go down

Solved Show Image Post in Sub-forum

Post by Herry Sudrajat on 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:


my results:



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

Herry Sudrajat
Forumember

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

http://www.dkvdaily.com/

Back to top Go down

Solved Re: Show Image Post in Sub-forum

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



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


SLGray
Administrator
Administrator

Male Posts : 35606
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Show Image Post in Sub-forum

Post by Luffy on 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






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: Show Image Post in Sub-forum

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

@SLGray wrote:

@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

Herry Sudrajat
Forumember

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

http://www.dkvdaily.com/

Back to top Go down

Solved Re: Show Image Post in Sub-forum

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

What do you mean by sub-forum?


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


SLGray
Administrator
Administrator

Male Posts : 35606
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Show Image Post in Sub-forum

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

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

Topic list box what i mean Very Happy

Herry Sudrajat
Forumember

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

http://www.dkvdaily.com/

Back to top Go down

Solved Re: Show Image Post in Sub-forum

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

That is not call a sub-forum.

So you want images in your topics to appear here:


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


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


SLGray
Administrator
Administrator

Male Posts : 35606
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Show Image Post in Sub-forum

Post by Herry Sudrajat on 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:


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

great! thanks @SLGray salut
- topic solved -

Herry Sudrajat
Forumember

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

http://www.dkvdaily.com/

Back to top Go down

Solved Re: Show Image Post in Sub-forum

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

You're welcome.

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


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


SLGray
Administrator
Administrator

Male Posts : 35606
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum