[Suggestion] Featured posts add-on, maximum height


anon666

Member
Hi, there.
I really like the Featured posts add-on, but I find it takes up too much space. In the options you can choose the maximum number of characters, but in the posts that start with an image or a video, it is shown in full size, occupying a large part of the "Forums" page.

Couldn't you make a modification to the code to specify the maximum height?

Thank you.
 

Andy

Administrator
Staff member
You can add this to the andy_featuredposts.less template:

Code:
.bbImage {
    max-width: 200px;
}

.bbMediaWrapper, .bbMediaJustifier {
    width: 200px;
}
 

anon666

Member
Is it correct to add "max-height" to".featuredposts-message"?

CSS:
.featuredposts-message {
    padding: 20px 0px 0px 0px;
    max-height: 300px;
}
 

Andy

Administrator
Staff member
Is it correct to add "max-height" to".featuredposts-message"?

CSS:
.featuredposts-message {
    padding: 20px 0px 0px 0px;
    max-height: 300px;
}

I would not try to limit the height this way, looks bad when things are cut off that way.
 

anon666

Member
The images still take up a lot of space in height. I've tried that, and it seems to work:

CSS:
.bbImage {
    display: none;
}

.bbMediaWrapper, .bbMediaJustifier {
    display: none;
}
 

anon666

Member
It has no effect on videos. The html code of the videos, generated by the "s9e media" add-on is:

HTML:
<span data-s9e-mediaembed="youtube" style="display:inline-block;width:100%;max-width:640px">
....
</span>

style="display:inline-block;width:100%;max-width:640px" has priority over all other css tags

I have chosen to remove these lines from the add-on template "andy_featuredposts":

HTML:
<div class="featuredposts-message">
    {{ bb_code(snippet($post.message, {$xf.options.featuredPostsLimit}), 'post', $post) }}
</div>

And so nothing of the content of the post is shown (within the default style, in my case 'Shades of Blues')
 
Similar threads
Thread starter Title Forum Replies Date
Gator [Suggestion] Add "Featured Thread(s)" Widget General 0
S Suggestion for Auto Move (what I need) General 1
B Suggestion for First post email General 1
S Suggestion: More RM statistics General 3
Tourmeister Suggestion for "Thread poster review" General 1
M [suggestion] conversation search plus General 5
R Suggestion: Ability to Change default sort for XFRM General 6
X Suggestion new Add-on to Send Email General 0
X [suggestion] Ad manager 1.4 General 4
Robru [suggestion] add-ons for XF2.1 General 1
X Suggestion Add Template to threads General 0
N [Suggestion] Tag manager (in ACP) General 5
X new suggestion for a new add-on General 6
X suggestion for New content limit 1.2 General 4
X Suggestion for an addon General 8
Mellow Suggestion for RSVP General 9
A Suggestion Weekly digest General 3
Mellow Suggestion for Calendar General 2
N Suggestion for duplicate user add-on General 1
A Suggestion for an addon General 6
Dave Stromberger [Suggestion] Fix ALL CAPS posts General 3
BassMan [Calendar][suggestion] Today button General 2
kensonplays [Suggestion] Calendar/Countdown Sync General 10
BassMan [suggestion] Bookmark General 0
S Add-on Suggestion: Alert admin if a link is added to an existing post by a new member General 1
BassMan [suggestion] Email Subscription General 1
S Suggestion: Time Limit On Editting Thread Titles General 5
BassMan [suggestion] Periodically sending confirmation emails General 16
M Suggestion for Forum Moderators Resource General 1
T Suggestion: Most users online General 3
E Suggestion: Trader: add trader profile to "Message user info elements" General 10
BassMan Weekly Digest [suggestion] General 21
BassMan Quick Search suggestion General 4
pilou suggestion add-ons : Sticky Thread Order General 2
P Add-on suggestion - Thread of the day General 5
T Change date suggestion General 5
S Addon Suggestion: Add member X to member Y's ignore list General 4
Andy Featured thumbs renamed to Featured images General 0
W Featured Posts Server Logged Errors General 8
D Featured Post Error? General 1
T Featured Thumbs / Header Thumbs General 7
S Featured posts 1.2 General 2
T Featured Posts and Cron entry General 1
Andy Remove Profile posts XenForo Configuration 2
J Latest posts live - suppressing refresh bars General 4
Tourmeister Find your own posts in a thread? General 10
Tourmeister Update YouTube embeds in old vB posts? General 13
X Latest posts live 1.1 General 0
moshbit ad below post repeats on deleted posts General 4
davey Latest Posts Widget General 3

Similar threads

Top