vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Showing Latest Posts on FORUMHOME (https://vborg.vbsupport.ru/showthread.php?t=326167)

MarkFL 03-13-2018 06:26 AM

Quote:

Originally Posted by CAG CheechDogg (Post 2593443)
Yes I am ... sorry if I came off as rude ... should of used a better choice of words for my suggestion

I didn't read your post as rude at all, I just figured I had made an error in recollection of your being a member at TAZ. Either way, no worries...I know you to be a good person here.

I really should have just published here in this thread to begin with. :)

scottkoz20 03-13-2018 06:07 PM

will re-install this tonight Mark. Thanks for the update

RichieBoy67 03-17-2018 02:21 PM

Quote:

Originally Posted by CAG CheechDogg (Post 2593330)

I love the marquee! That is the one Mark did? I love how you have it placed! I think I am going to try that!

Will it just show latest or most recent threads from all the forums?

--------------- Added [DATE]1521300286[/DATE] at [TIME]1521300286[/TIME] ---------------

Quote:

Originally Posted by MarkFL (Post 2593440)
Aren't you a member at TAZ? I thought everyone who has posted in this thread was a member at one or both of the two sites.

I'll publish it here:

Overview:

This product is designed to allow you to display links to the most recent posts. You can choose from which forums the posts are selected, with user permissions being respected, that is, if a user does not have permission to view the posts in a selected forum, then links to those posts will not be displayed for that user. You can select in which styles the block will be displayed as well.

https://vborg.vbsupport.ru/attachmen...1&d=1520921538

Product Settings
Enable Product? - This allows you to enable/disable the product.

Default/Minimum Rows - When a page containing the Recent Posts Block is initially loaded, this will determine the number of data rows that will be shown in the table. It will also serve as the minimum data rows to which the table can be resized by the user. The block may be manually resized by dragging the lower right corner of the block, or by clicking the header bar to toggle between maximum and minimum height.

Number Of Posts - This determines the maximum number of posts a user will see in the block. Unless a positive value is entered either here or in "Hours Limit," this product will be effectively disabled.

Hours Limit - This will allow you to give a time limit on how long ago, in hours, a post was made in order to be displayed. Unless a positive value is entered either here or in "Number Of Posts," this product will be effectively disabled.

Maximum Characters In Forum Titles - This allows you to set the maximum number of characters that will be displayed in forum titles, so you can keep the column from taking up too much room. For any forum title that gets truncated, the full name will be shown in the mouseover tooltip (which will also include the forum description).

Maximum Characters In Thread Titles - This allows you to set the maximum number of characters that will be displayed in thread titles, so you can keep the column from taking up too much room. For any thread title that gets truncated, the full name will be shown in the mouseover tooltip (which will also include a preview of the post content).

Table Columns - This allows you to select which options post/thread information you wish to serve as columns in the table. Your choices are (with the corresponding phrase name in parentheses):
  • Thread Timestamp (markfl_rpb_threadstarted) - The date/time the thread was started.
  • Thread Author (markfl_rpb_threadauthor) - The username of the thread starter (OP).
  • Replies/Views (markfl_rpb_replies) - The number of replies and views for the thread.
  • Posters (markfl_rpb_postercount) - The number of users who have posted in the thread.
  • Rating (markfl_rpb_rating) - The overall rating given to the thread by your users.
  • Post Author (markfl_rpb_postauthor) - The user who posted the post to which the link points.
  • Post Timestamp (markfl_rpb_posttime) - The date/time the post was submitted.
  • Forum (markfl_rpb_forum) - The forum in which the thread resides.

All usernames are shown in usergroup HTML markup, and link to profile pages. The column "Thread/Post Link" (markfl_rpb_threadlink) is not optional, as it shows a link to the post. If a user has not read that post, then the link will be bold, otherwise it will have a normal font weight.

Prefixes/Icons - This allows you to select which icons to display before the thread titles and whether to include thread prefixes. Your choices include:
  • Sticky (markfl_rpb_sticky) - Will display the sticky thread icon, or the super sticky icon if you have my "Additional Thread Tools" product installed.
  • Poll (markfl_rpb_poll) - Will display the poll icon for threads that incude a poll.
  • Icon (markfl_rpb_icon) - Will display the thread icon chosen by the thread author.
  • Prefix (markfl_rpb_prefix) - Will display the thread prefix if one has been assigned.

Active Styles - This will display all installed styles and allow you to select on which you wish for the product to be active. Unless at least one style is selected, this product will be effectively disabled.

Active Forums - This will allow you to select from which forums the posts will be selected from the database. Child forums are included in all forums selected.

Tags Whose Content Is Hidden In Thread Previews - When a user hovers over a thread title, a preview of the post content is shown, and this allows for you to decide which BBCodes will have their content hidden in the preview. It will be replaced with the text in the phrase markfl_rpb_hiddencontent within parentheses, which by default is "Hidden Content."

Additional Scripts - By default, this product displays on the home page ("index" script), but if you wish to add scripts on which the block will be displayed, you may enter the comma-delimited list of such scripts. If you wish for the block to appear on all pages then enter an asterisk (*).

Excluded Scripts - If you have entered an asterisk in the "Additional Scripts" setting, you may choose to exclude particular scripts here, by entering them in a comma-delimited list.

Show Block To Guests? - This allows you to decide whether to display the block to guests (those not registered and logged on).

Block Placement - This allows you to decide whether you want the block to be shown directly below the navbar/breadcrumbs or directly above the footer.
Phrases

https://vborg.vbsupport.ru/attachmen...1&d=1520921538

StyleVars

https://vborg.vbsupport.ru/attachmen...1&d=1520921538

Compatibility:

Tested and working on vB 4.2.5 and may work on earlier 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:
  1. Download and extract the attached .zip file.
  2. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  3. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  4. Click "Import".
  5. You MUST enable the product in the settings before it will function.
  6. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

https://vborg.vbsupport.ru/attachmen...1&d=1520921538

Outstanding Mark!

BGObsession 06-27-2018 03:13 PM

Very nice work Mark as always!

Where can I change the color of the links again? I don't see that option? Mine are a hideous bright blue right now :)

MarkFL 06-27-2018 03:21 PM

Quote:

Originally Posted by BGObsession (Post 2595279)
Very nice work Mark as always!

Where can I change the color of the links again? I don't see that option? Mine are a hideous bright blue right now :)

You will find that in your stylevars, in a section titled "MarkFL_RecentPostsBlock." :)

BGObsession 06-27-2018 03:30 PM

NM - saw it was in stylevars. Very nice.

--------------- Added [DATE]1530159831[/DATE] at [TIME]1530159831[/TIME] ---------------

Hey Mark,
I was expecting that when the link was clicked, it would take me to the most recent post - but it takes me to the very first post of the thread. Any option to change that?

Btw - I hate the 'auto-combining' of replies within a thread...

BGObsession 06-28-2018 02:47 AM

1 Attachment(s)
Also - I'm only using 4 columns of info as I think those are the only one's that my members would care about... but that results in a large block of blank area (see attached image). Is it possible to *tweak* the code so that the module auto-sizes so it's just large enough to accomodate the included text and is centered (see second image). Or if that's not possible, what would I need to do to resize the width of the module to better accomodate just the 4 columns and have it centered?

MarkFL 06-28-2018 03:05 AM

You could edit the "markfl_recentpostsblock" template and add some inline CSS. For example, you could edit the first line to say:

HTML Code:

<div id="recentposts_block" style="margin-left: 10%; margin-right: 10%;" class="wgo_block">
--------------- Added [DATE]1530162500[/DATE] at [TIME]1530162500[/TIME] ---------------

Quote:

Originally Posted by BGObsession (Post 2595281)
NM - saw it was in stylevars. Very nice.

--------------- Added [DATE]1530159831[/DATE] at [TIME]1530159831[/TIME] ---------------

Hey Mark,
I was expecting that when the link was clicked, it would take me to the most recent post - but it takes me to the very first post of the thread. Any option to change that?

Btw - I hate the 'auto-combining' of replies within a thread...

Yes, I had no idea you had posted this. Anyway, the links take you to specific posts being referenced within the thread...at least they do for me.

BGObsession 06-28-2018 03:21 AM

Thanks for the css code, will give that a try.

Yeah - weird. When I click the post links, they simply take me to the first page of the thread, not the recent post that resulted in them getting pulled/listed in the module???

I can see the most recent post on hovering over the link, but the actual url does not take me to that post (or even the page containing that post - takes me to the first page of the thread).

Mark - if you don't mind, check out what I'm referencing

https://www.bgobsession.com/forum.php?home=1

MarkFL 06-28-2018 03:44 AM

Quote:

Originally Posted by BGObsession (Post 2595293)
Thanks for the css code, will give that a try.

Yeah - weird. When I click the post links, they simply take me to the first page of the thread, not the recent post that resulted in them getting pulled/listed in the module???

I can see the most recent post on hovering over the link, but the actual url does not take me to that post (or even the page containing that post - takes me to the first page of the thread).

Mark - if you don't mind, check out what I'm referencing

https://www.bgobsession.com/forum.php?home=1

The first link I tried took me to the last post, the post referenced in the link. :confused:


All times are GMT. The time now is 08:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01233 seconds
  • Memory Usage 1,786KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete