XF2 Add-on AndyB - Featured posts 2.3 - Xenforo Add-Ons

virgilio183

Well-known member
Pro
Master
Diamond
Elite
Joined
May 16, 2021
Messages
25,009
Reaction score
29,026
Points
113
NullCash
564,929
pic001.jpg
Displays a random post every 10 minutes.

The post is selected from a forum defined in the Options page. The first post of the thread is selected at random and will be displyed in the forum list or other widget location.

(Example of Featured posts)
c88d075120463.jpg
(Example of Options page)
345addc44e4f4.jpg
Features:

  • Cron Entry will rotate posts every 10 minutes.
  • All phrases start with featuredposts_ for your convenience.
Installation:
  1. Download Andy-FeaturedPosts-1.6.zip and unzip it.
  2. Copy the src/addons/Andy/FeaturedPosts directory to your server.
  3. From the Admin Control Panel Install the add-on.
Creating the widget:
  1. Admin Control Panel -> Appearance -> Widgets
  2. Widget definition = Featured posts
  3. Widget key = featured_posts
  4. Title = (leave blank)
  5. Display in positions = Forum list: Above nodes
  6. Click Save.
User group permissions:
Normally the following two groups are set to Yes:

Registered
Unregistered / Unconfirmed

Optional CSS:
If you would like to limit the size of images and media, you can add the following code to the andy_featuredposts.less templat


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

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


Compatible XF Versions 2.0 , 2.1 , 2.2
 

Attachments

  • AndyB Featured Posts 2.3.zip
    43 KB · Views: 0
Top