Skip to:
Content
Pages
Categories
Search
Top
Bottom

News as Widget

  • @scotm

    Participant

    Since the Recent Blog Posts is a widget in the Buddypress theme, and the News function acts pretty much the same, can anyone tell me if News could be configured as a widget? Failing that, I’m trying to get the Latest Blog Posts widget to show the entire post versus the title excerpt. Either solution would be good for my application.

    Cheers

Viewing 11 replies - 1 through 11 (of 11 total)
  • @scotm

    Participant

    I’ll try this again. :)

    Anyone know how I might limit the Sitewide Activity widget in the Buddypress Home Theme to show only blog posts? I’ve looked in the bp-activity-widgets.php but can’t figure it out.

    Cheers

    @burtadsit

    Participant

    In /mu-plugins/bp-blogs/bp-blogs-widgets.php line 47 is: <?php $counter++; ?>

    Comment that out and you’ll get the excerpt for all the posts instead of just the first one.

    @nicolagreco

    Participant

    if you don’t want to hack the code, copy and paste the widget’s code in another file called mywidgets.php and put it in /mu-plugin and do the burtadsit’s changes and change plugin’s name in the actions and in the function’s name, if you’re a good developer you can understand what i’ve just said if you aren’t, forget and hack the main code

    @scotm

    Participant

    Thanks for the input. I chose burtadsit’s suggestion and it works fine, but I realize now that I need the News page as a widget or some other solution. Here’s my situation:

    1. I don’t want to have member blogs, only users posting to the main blog, so that means not installing bp-blogs in order to hide it across the site.

    2. I do need the recent blog posts to arrive on the buddypress-home theme, but without bp-blogs installed the widget isn’t available. So I’m thinking if I could get the News widgetized it would pull posts to the home page instead.

    3. I could install bp-blogs to simpley get the widget (what I have right now), but that means removing all instances of ‘blog’ throughout the site including buddypress member areas and that seems like a bad route to go.

    4. I have the Prologue post-form installed on the buddypress-home theme just above the three columns of widgets, thus eliminating any need for users to ever see the wpmu admin panel. This should allow me to keep all users as members vs. blog owners.

    Any suggestions would be greatly appreciated.

    Cheers

    @wardeh

    Participant

    Use the RSS Widget to display Recent Blog Posts or Recent Posts. Use the feed from the main blog. Then you don’t need bp-blogs and you still have the display of recent posts.

    I hope I’m understanding correctly.

    @scotm

    Participant

    wardeh

    I’d thought of that, but it doesn;t allow you to show the gravatars, plus the style is pretty barebones, but your idea is exactly the kind of thing I need.

    Cheers

    @nicolagreco

    Participant

    if i were you, i wont use widget in this case. i would create a loop to show last post

    (i use prologue theme too on one of my buddypress installation, and i highly hacked that theme!!)

    @scotm

    Participant

    nicolagreco

    Ok, you have to share now…

    @scotm

    Participant

    Burtadsit et al

    “In /mu-plugins/bp-blogs/bp-blogs-widgets.php line 47 is: <?php $counter++; ?>

    Comment that out and you’ll get the excerpt for all the posts instead of just the first one.”

    I’ve tried this in the latest release and it doesn’t work anymore. I’m trying to have more than one recent blog post listed in the Recent Blog Posts widget using BP Home Theme.

    Any ideas?

    @scotm

    Participant

    Update: My bad, I had commented out the wrong counter…works fine.

    @weblogian

    Participant

    I delete

    line 47 is: <?php $counter++; ?>

    In Line 42: Change->

    <div class=”item-content”><?php echo bp_create_excerpt($post->post_content) ?></div>

    TO

    <div class=”item-content”><?php echo bp_create_excerpt($post->post_excerpt) ?></div>

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘News as Widget’ is closed to new replies.
Skip to toolbar