Jump to content

Recent Topics (Attachments)


CnCNet

Recommended Posts

%7Boption%7D



File Name: Recent Topics (Attachments)

File Submitter: Grant B

File Submitted: 23 Aug 2013

File Category: User and Social Engagement

Supported Versions: IP.Board 3.4.x, IP.Content 2.3.x



Perfect for any IP Content powered Site wanting to feature a list of Recent Topics, with attachments.
%7Boption%7D

Introducing Recent Topics
Perfect for any IP Content powered Site wanting to feature a list of Recent Topics, with attachments.


%7Boption%7D

%7Boption%7D

%7Boption%7D

%7Boption%7D


Features:

  • Automatic topic generation with attachments as images.
  • Controllable width, and truncating settings for title and topic content.
  • Block can be inserted into IP Board forums sidebar.



Download includes:
  • Files to upload
  • Block to import into IP Content
  • Hook to import for settings
  • Documentation for support




Follow me on Twitter or Google+



here to download this file

Link to comment
Share on other sites

1.0.1 update released, new feature!
  • New update to allow full sized attachment images to be used. See screenshot attached for further details.
  • Image width/height settings added.
  • Thumbnail setting added.
Upgrading - IMPORTANT
DO NOT re-import without uninstalling the old hook and block first. EVERYTHING must be uninstalled.

Remove the hook by going to Manage hooks > and uninstalling.
Screenshots:
3z69.png' alt='' class='ipsImage' width=" alt="3z69.png">
lkmv.png' alt='' class='ipsImage' width=" alt="lkmv.png">
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

From memory without looking at the code, it pulls the first attachment image uploaded to the post. If there is no image, it will skip parsing it. I think there would be room to add that (if theres no image uploaded - use a placeholder) as a feature at somepoint.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...
  • 5 weeks later...

Possible bug found...

When there are 10 consecutive new topics without attachments in the feed, it totally breaks the page -- I get a white screen full of jibberish.

It's corrected and returns to normal when at least 1 topic with an attachment is added into the 10 most recent topics in the feed.

Link to comment
Share on other sites

Just to add to the above... The bug happens when 'minimum attachments' is set to 0. Setting 'minimum attachments' to 1 corrects the problem, but then only pulls topics with at least 1 attachment.

Hi, I can't seem to replicate with 1.0.2, could you PM me access to your settings and IP Content?

Many thanks,

Grant

Link to comment
Share on other sites

At this time it is unable to generate thumbnails from hotlinked images. It will only look for attached images, and if it cannot find one it will use a default thumbnail that you specify in the settings.

Link to comment
Share on other sites

Thanks. It looks like a nice thing to have, but most of my site members use the hot linking method to show images on the forum, so this won't work for me. If you ever develop it to the point where it will pull either image method and create a thumbnail for use in a block I'd definitely be interested.

Link to comment
Share on other sites

  • 3 weeks later...

Hello,

You will need to take the block key when you import the block, e.g {parse block="recent_topics"} and insert it into your skin template.

To do so:

Navigate to:

  1. Skin templates
  2. Find the Board Index group, and click boardIndexTemplate
  3. Now press CTRL + F (or CMD+F if Mac), and find <foreach loop="side_blocks:$side_blocks as $block">
  4. Now paste above this line, {parse block="recent_topics"}

If you have trouble or are unsure, I will be happy to help you if you send an account with login details.

Many thanks,

Grant

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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