Jump to content

(NB41) Topic Cover


newbie LAC

Recommended Posts

Posted

Hi @newbie LAC is it possible to access the topic cover image thumb? If so, What's the variable?

Imagine i want to make a custom block for tetrieving latest topics, with the cover thumbnail. What would be the correct syntax like this:

"$topic->image_thumb" 

Another question: will you update it for the IPS 4.2?

Thanks

Posted
Just now, xtech said:

Hi @newbie LAC is it possible to access the topic cover image thumb? If so, What's the variable?

Imagine i want to make a custom block for tetrieving latest topics, with the cover thumbnail. What would be the correct syntax like this:

"$topic->image_thumb" 

Hello,

Inbuilt covers hasn't thumbs. Only full images.

7 minutes ago, xtech said:

Another question: will you update it for the IPS 4.2?

Yes.

Posted

Thank you for your prompt answer. I am looking to buy this, but having a "light version" of the topic image would be great for those purposes.

Anyway, is it possible to access at least the image in a block plugin? How could one do it?

Posted
1 minute ago, xtech said:

Anyway, is it possible to access at least the image in a block plugin? How could one do it?

{{if $topic->mapped('cover_photo')}}
	<img src='{file="$topic->mapped('cover_photo')" extension="nbtopiccover_TopicCover"}'>
{{endif}}

$topic should be an object of \IPS\forums\Topic

Posted
3 hours ago, xtech said:

Thank you for your prompt answer. I am looking to buy this, but having a "light version" of the topic image would be great for those purposes.

Anyway, is it possible to access at least the image in a block plugin? How could one do it?

Not to hijack this topic but you want Topic Thumbnail by @onlyME

Posted

I'm looking into buying this plugin.  (Thanks for developing it!).  Some questions / feature requests:

  • Disable on mobile view
  • Set height
  • Allow per-topic setting to "collapse" topic cover by each user / allow per-user setting in Account Settings to "collapse" all topic covers  
  • Default topic cover per category 
Posted

demo would be nice

7 hours ago, Joel R said:

I'm looking into buying this plugin.  (Thanks for developing it!).  Some questions / feature requests:

  • Disable on mobile view
  • Set height
  • Allow per-topic setting to "collapse" topic cover by each user / allow per-user setting in Account Settings to "collapse" all topic covers  
  • Default topic cover per category 

vouch, would buy if this is added

Posted

Hello,

17 hours ago, Joel R said:
  • Disable on mobile view
  • Set height
  • Allow per-topic setting to "collapse" topic cover by each user / allow per-user setting in Account Settings to "collapse" all topic covers  
  • Default topic cover per category 

1. It's by default. The block has css class ipsResponsive_hidePhone

2. I thought to add a setting. But added css rule 200px. You can edit app css file or add your properties in custom.css.

3. I think about it.

4. I thought about it. Add setting to set global image or per forum.

16 hours ago, InsideEdge said:

@newbie LAC

Could the same idea for this app be developed as a header image per forum?

Maybe.

16 hours ago, Kjell Iver Johansen said:

Agree - and I would suggest an option to add a link - so when you click the image you go to external page.

Inbuilt cover photos hasn't option to set link.

13 hours ago, N4H said:
  • Do you have a link to a demo site running the plugin?  
  • When no topic cover is uploaded what does the header of the page look like?

1. No. Ask @gerard001 https://invisionpower.com/forums/topic/432286-thread-cover/

2. Nothing if the user hasn't permissions to manage cover.

Black block if the user has permissions to manage cover.

tc_black.jpg

10 hours ago, sonimik1 said:

supports gif?

Yes.

 

Posted

Hello,

13 hours ago, BABOO2016 said:

I tried {$topic->title} but didn't work..

It's correct code.

13 hours ago, BABOO2016 said:

How do I do that?

Open template nbTopicCover. Find 

{{if $coverPhoto->file or $coverPhoto->editable}}

Add after 

{{$coverPhoto->overlay = $topic->title;}}

You can use html

Example 

{{$coverPhoto->overlay = "<div class='ipsType_veryLarge'>{$topic->title}</div>";}}

Result

tcover.jpg

Posted
13 hours ago, BABOO2016 said:

I've just noticed the title appears even when there is no topic cover. How do I fix that to show title only when cover photo exists?

{{if $coverPhoto->file}}
	{{$coverPhoto->overlay = "<div class='ipsType_veryLarge'>{$topic->title}</div>";}}
{{endif}}

 

  • 4 weeks later...
Posted

Greetings.

It's been working perfect so far, but today I realized that the upper right overlaid option has disappeared from the main topic view.  I can add a picture when I edit the first post, but I can't reposition or remove it from the main topic view.

2 days ago I installed a custom modification that, in theory, is not related. Plus the modification does not work with the forums where Topic Cover is installed. 

Any thoughts of what could have happened here? 

Posted
34 minutes ago, gabs007 said:

Greetings.

It's been working perfect so far, but today I realized that the upper right overlaid option has disappeared from the main topic view.  I can add a picture when I edit the first post, but I can't reposition or remove it from the main topic view.

2 days ago I installed a custom modification that, in theory, is not related. Plus the modification does not work with the forums where Topic Cover is installed. 

Any thoughts of what could have happened here? 

Hello,

If you give me acp (and fpt for debugging) access I'll look into that.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...