Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Forum Sideblock - Recent Posts (with BBCodes parsed) Details »
Forum Sideblock - Recent Posts (with BBCodes parsed)
Mod Version: 1.3, by MarkFL (Moderator) MarkFL is offline
Developer Last Online: Mar 2017 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (2 votes - 5.00 average) Installs: 9
Released: 24 Feb 2016 Last Update: 06 Jan 2017 Downloads: 54
Supported DB Changes Uses Plugins Auto-Template Re-usable Code Translations  

Overview:

This product, upon installation, creates a new forum block that will display the most recent posts (the entire content in a scrollable block) with BBCodes parsed, and gives you settings to control several aspects of this new forum block. The settings are divided into 3 main groups:

Forum Block Settings:

Maximum Height Of Forum Block: This allows you to set a maximum height for the total inner block content containing all of the posts. A vertical scrollbars is added as needed. The default value is 450.

Block Title: This allows you to set the displayed title of the forum block, without having to edit the forum block itself. It is recommended that you do not edit the title of the forum block in the Forum Block Manager because the uninstall code depends on the title being its original value in order to remove it. You may include the number of posts shown and the value of a defined phrase to be in the block title. For example, if I want the title of the block to be "MHB's 5 Most Recent Posts" (and I have chosen to display all of the most recent posts) then I would enter in this setting:

MHB's [POSTS] [PHRASE]

where "[POSTS]" will be replaced by the number of posts being displayed, and [PHRASE] will be replaced by either $vbphrase['markfl_recentposts_title'], which is set to "Most Recent Posts" or $vbphrase['markfl_recentpostsperthread_title'], which is set to "Most Recent Posts/Thread".

The default is "[POSTS] [PHRASE]".

Block Title CSS: This setting allows you to apply additional CSS to the forum block title. For example, if you wish for the title to be 25% larger and in red, you would enter:

font-size: 125%; color red

The default is blank.

If you wish to change any other aspect of the forum block (other than the title), then use the "Forum Block Manager" to do so.

Posts Settings:

Posts To Display: This setting allows you to decide whether all of the most recent posts (the number of which you set) will be displayed, or only the most recent post per thread. The default is "Only Most Recent Post Per Thread". If you change this setting once you have the product running, then I recommend you clear the system cache each time you change it.

Number Of Posts To Display: This allows you to decide how many posts will be displayed in the forum block, chosen as per the setting above. The default is 5 posts.

Maximum Height Of Posts: This allows you to set the maximum height (in px) of the post content block before a vertical scrollbar is introduced. The default is 120 px.

Thread Title Settings:

Maximum Thread Title Length: This allows you to set the maximum number of characters from the thread title that will be displayed.

Display Thread Icons?: Allows you to set whether thread icons will be displayed.

Display Thread Prefixes?: Allows you to set whether thread prefixes will be displayed.

Thread Title CSS: Allows you to apply additional CSS to the thread titles.

Each post consists of a header containing the post author's avatar on the left (links to their profile), and a link to the post within its thread (with a tooltip stating which forum the thread is in) with the date/time of the post beneath the link. Both the tooltip and the timestamp use phrasing. Below this header is the block containing the entire post content, with BBCodes parsed.



Updates:

Version 1.01:
  • Attempt to address reported db error.

Version 1.02:
  • Fixed error where height of block was hard-coded.

Version 1.1:
  • Combined queries.
  • Custom templates used to render output.
  • All CSS stored in template.
  • Fixed error causing block not to be removed upon uninstall.

Note: To update to version 1.1, please uninstall any previous versions first and remove any forum blocks left behind, and then install version 1.1.

Version 1.2:
  • All templates cached.

Version 1.3:
  • Block PHP restored.

Compatibility:

Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:
  • Download and extract the attached .zip file.
  • Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  • Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  • Click "Import."
  • Configure the settings to your liking. Each setting has a detailed explanation of its use.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	markfl_rpfb_forumblock.png
Views:	385
Size:	29.1 KB
ID:	154239   Click image for larger version

Name:	markfl_rpfb_acp.jpg
Views:	360
Size:	133.7 KB
ID:	154240  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 25 Feb 2016, 00:27
kerrghann's Avatar
kerrghann kerrghann is offline
 
Join Date: Jul 2012
Real name: Markis
Attempted to use it. Ran into an error almost immediately upon attempted install.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
A Place to create; a place to innovate~
Reply With Quote
  #3  
Old 25 Feb 2016, 00:33
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Originally Posted by kerrghann View Post
Attempted to use it. Ran into an error almost immediately upon attempted install.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Same here.
Reply With Quote
  #4  
Old 25 Feb 2016, 01:02
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Real name: Kris
3rd Time Is Not The Charm


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #5  
Old 25 Feb 2016, 02:41
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I have attempted to address the reported db error, with version 1.01. Because I experienced no such issue, I can't say if it will work for those reporting an error.
__________________
Reply With Quote
  #6  
Old 25 Feb 2016, 02:50
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Originally Posted by MarkFL View Post
I have attempted to address the reported db error, with version 1.01. Because I experienced no such issue, I can't say if it will work for those reporting an error.
Success here.
Reply With Quote
  #7  
Old 25 Feb 2016, 02:58
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
You MUST enable the product in the settings before it will function.
There's no option to enable or disable in the new settings. It starts working immediately.
Reply With Quote
  #8  
Old 25 Feb 2016, 03:05
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by Max Taxable View Post
There's no option to enable or disable in the new settings. It starts working immediately.
Yeah, I use a template for publishing products, and I neglected to edit that out. I will do so now...
__________________
Reply With Quote
  #9  
Old 25 Feb 2016, 03:07
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Also for Chrome and Firefox (But not IE) this causes really SLOW load times for the page the sidebar is on, if the block is not cached. Set the cache to the block to 0 to try this out. Default for the block is 60 minutes, and i noticed the hitch on first load, then again when i emptied the block cache. Then i set the block cache to 0 and I get the long load time, every time now.

Testing now with WPT so get details of what is the bottleneck.
Reply With Quote
  #10  
Old 25 Feb 2016, 03:09
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Annnnnd also i cannot get this block to be any taller, no matter what i do in settings.
Reply With Quote
  #11  
Old 25 Feb 2016, 03:11
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Here's the waterfall with this Mod enabled. I get a BIG hangup in first byte, the page source code modeling takes forever with this Mod on for FF and Chrome.

http://www.webpagetest.org/result/16...6DS/1/details/
Reply With Quote
  #12  
Old 25 Feb 2016, 03:18
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by Max Taxable View Post
Annnnnd also i cannot get this block to be any taller, no matter what i do in settings.
Try it in your default style, maybe you have some CSS somewhere that's interfering.
__________________
Reply With Quote
  #13  
Old 25 Feb 2016, 03:21
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Originally Posted by MarkFL View Post
Try it in your default style, maybe you have some CSS somewhere that's interfering.
Yep I'd done that. No love No Joy.
Reply With Quote
  #14  
Old 25 Feb 2016, 03:35
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by Max Taxable View Post
Yep I'd done that. No love No Joy.
I found the culprit...so you won't have to uninstall and re-install, go to your "Forum Blocks Manager" and edit the content as follows:

Locate the line:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And within the if block, replace the line of code there with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I will update the product as well.
__________________
Reply With Quote
  #15  
Old 25 Feb 2016, 03:36
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
I have the sidebar block this Mod generates, off for now until issues get resolved. Mod has potential and is a good idea but clearly needs a little more work.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 14:16.

Layout Options | Width: Wide Color: