Support » Plugin: bbp style pack » Styling of recent topics widget

  • Resolved Chuckie

    (@ajtruckle)


    Please look at the attached page (you do not need an account).

    I already had a “latest Forum Activity” in the footer but I thought as an alternative I would show it in the side bar.

    But i have two issues that i am not sure about for styling:

    1/ The gap between the items in your widget is more than those in the rest of the sidebar, including your widget in the footer.

    2/ The styles of the text colours in the sidebar is not matching the footer version and I assumed it would.

    Please advise. Thanks!

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • I might have fixed some of it:

    .widget_display_topics ul {
    	margin: 10px 0px 10px 0px  !important;
    	padding: 0px 10px 0px 10px !important;
    }

    Hopefully this does not break the widget elsewhere on the site.

    So this is my code now:

    .widget_display_topics ul {
    	margin: 10px 0px 10px 0px  !important;
    	padding: 0px 10px 0px 10px !important;
    }
    
    .bsp-la-reply-topic-title {
    	color: #e7d8a3 !important;
    }
    
    .bsp-la-forum-title {
    	color: #a03c28 !important;
    }
    
    .bsp-la-text, .bsp-activity-freshness {
    	color: #fff !important;
    }

    How do we ensure it is only applied to this recent activity widget?

    The other issue with this is that when you hover over the topic sometimes it shows a tooltip with a snippet of the content. How do we stop the tooltip?

    Plugin Author Robin W

    (@robin-w)

    sorry, doesn’t show anything when I hover on the latest activity on your site

    If I log in though, some of them do. For example:

    https://www.dropbox.com/s/i38lixk80qd1tzv/tooltip-hover.png?dl=0

    The one in question is like this:

    <a class="bsp-la-reply-topic-title " href="https://www.publictalksoftware.co.uk/support-forums/topic/sync-foreign-language-group-with-calendars/#post-xxxxx" title="Hi @xxxxx
    I have just updated the beta on D…">Sync Foreign Language Group with Calendars</a>

    It has the title attribute. Most of the others do not have this title attribute.

    Also, is it possible to allow us to set a custom class for the widget? It is just so that I can use it as like a id or master tag for styling and won’t affect anything else on the site?

    I have worked out some of this.

    In your code that creates the recent topics widget it is including a title attribute with an extract of the latest “reply”. If a topic does not have a reply it does not have a “title” attribute.

    Line 215 in your widgets code:

    echo '<a class="bsp-la-reply-topic-title " href="' . esc_url( bbp_get_reply_url( $reply ) ) . '" title="' . esc_attr( bbp_get_reply_excerpt( $reply, 50 ) ) . '">' . bbp_get_reply_topic_title( $reply ) . '</a>';

    It is adding the title attribute for replies.

    Can this please be configurable for this widget? Either:

    – No title attribute
    – X char of the reply (if there is one) – you current behaviour
    – A custom string “Go to topic” or “Read topic”

    Thoughts?

    Andrew

    Clarified idea:

    – No title attribute
    – X char of the reply (if there is one) – you current behaviour
    – A custom string “Go to topic” or “Read topic”
    – A custom string “Go to latest reply” or “Read latest reply”

    ?

    Plugin Author Robin W

    (@robin-w)

    now there’s a challenge for you

    all the code you need is in there you just need to copy/paste and rename – so try and get it to work, and I’ll release if you do 🙂

    so to put it in settings is in the function form on line 342

    then to save the settings is in update line 295

    and finally add a parse ability in 426 for the default setting

    then you can style the output in then main function.

    would take me an hour to write and another to test – time I don’t have 🙂

    I might look at some point for you. Not tonight. 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.