View Full Version : Showing Latest Posts on FORUMHOME
scottkoz20
03-01-2018, 01:46 PM
I'm not sure if this exists or if it even possible, but is there a mod that exists that will show the last X number of posts on the forumhome?
I have a sidebar block that does this now, but I would love to have this as a part of the forumhome
OR
Allowing the activity stream to be apart of the ForumHome
MarkFL
03-01-2018, 07:04 PM
That would be easy enough to do, just depends on exactly what you want.
scottkoz20
03-01-2018, 10:29 PM
well - my vision for this would be similar to what you built had for your featured threads mod... allowing from 5-20 of the latest post to show in the forumhome at the top of the page before the first forum section that would have
-- Timestamp
-- Username
-- Title
-- Forum posted in
I do like in the activity stream that it can dynamic tell when there are new posts
There would be some forums I'd like to exclude from this, but not a need
MarkFL
03-02-2018, 12:20 AM
What if a thread has more than 1 new post in it...do you want that thread to show only once, but link to the oldest new post?
scottkoz20
03-02-2018, 01:04 AM
What if a thread has more than 1 new post in it...do you want that thread to show only once, but link to the oldest new post?
yes - I would not want to have the same post on the list multiple times
romaine
03-03-2018, 02:38 AM
I'm not sure if this exists or if it even possible, but is there a mod that exists that will show the last X number of posts on the forumhome?
I have a sidebar block that does this now, but I would love to have this as a part of the forumhome
OR
Allowing the activity stream to be apart of the ForumHome
You may interested in this mod https://vborg.vbsupport.ru/showthread.php?t=235841
and there are more similar mods like this on vBulletin, just using search function on this forum.
MarkFL
03-03-2018, 03:32 AM
I'm going to begin on this soon...likely tomorrow.
scottkoz20
03-03-2018, 03:08 PM
You may interested in this mod https://vborg.vbsupport.ru/showthread.php?t=235841
and there are more similar mods like this on vBulletin, just using search function on this forum.
the issue that I see with this mod is that it has more information than I would want to have on the page at this point.
Stratis
03-03-2018, 06:43 PM
You can try this one
https://vborg.vbsupport.ru/showthread.php?t=232811 :)
scottkoz20
03-04-2018, 02:40 PM
ill have to review this - thanks Stratis
MarkFL
03-06-2018, 04:08 AM
I have attached a "first draft" of the product. Please give this a try and let me know of any changes you would like. :)
scottkoz20
03-06-2018, 01:50 PM
I have attached a "first draft" of the product. Please give this a try and let me know of any changes you would like. :)
hey Mark -
When I enable this, my Forumhome triggers this SQL error - the rest of the forum is fine.
Database error in vBulletin 4.2.2:
Invalid SQL:
SELECT post.*, thread.title, thread.forumid, thread.prefixid, thread.iconid, thread.postuserid, thread.dateline AS t_dateline, thread.pollid, thread.sticky, user.*, icon.iconpath, icon.title AS icon_title
FROM post AS post
INNER JOIN thread AS thread
ON thread.threadid = post.threadid
INNER JOIN user AS user
ON user.userid = post.userid
LEFT JOIN icon AS icon
ON icon.iconid = thread.iconid
LEFT JOIN phrase AS phrase
ON phrase.varname = CONCAT('prefix_', thread.prefixid, '_title_rich')
WHERE post.visible = 1
ORDER BY post.dateline DESC;
MySQL Error : Incorrect key file for table '/tmp/#sql_24f2_2.MYI'; try to repair it
Error Number : 126
Request Date : Tuesday, March 6th 2018 @ 09:42:49 AM
Error Date : Tuesday, March 6th 2018 @ 09:43:55 AM
Script : http://www.sportscardforum.com/forum.php
Referrer : https://www.sportscardforum.com/admincp/index.php?do=head
IP Address : 74.77.177.253
Username : scottkoz20
Classname : vB_Database_MySQLi
MySQL Version : 5.6.38
I have it off at the moment - I need to rebuild my dev site this week as I blew it up (had to try this live :erm: )
MarkFL
03-06-2018, 02:18 PM
Ah, I didn't take into account running this query on a large database. I have put a limit on the query...try this updated version please. :)
scottkoz20
03-06-2018, 02:32 PM
same error
Database error in vBulletin 4.2.2:
Invalid SQL:
SELECT post.*, thread.title, thread.forumid, thread.prefixid, thread.iconid, thread.postuserid, thread.dateline AS t_dateline, thread.pollid, thread.sticky, user.*, icon.iconpath, icon.title AS icon_title
FROM post AS post
INNER JOIN thread AS thread
ON thread.threadid = post.threadid
INNER JOIN user AS user
ON user.userid = post.userid
LEFT JOIN icon AS icon
ON icon.iconid = thread.iconid
LEFT JOIN phrase AS phrase
ON phrase.varname = CONCAT('prefix_', thread.prefixid, '_title_rich')
WHERE post.visible = 1
ORDER BY post.dateline DESC
LIMIT 10;
MySQL Error : Incorrect key file for table '/tmp/#sql_24f2_2.MYI'; try to repair it
Error Number : 126
Request Date : Tuesday, March 6th 2018 @ 10:23:52 AM
Error Date : Tuesday, March 6th 2018 @ 10:25:35 AM
Script : http://www.sportscardforum.com/forum.php
Referrer : https://www.sportscardforum.com/admincp/index.php?do=head
IP Address : 74.77.177.253
Username : scottkoz20
Classname : vB_Database_MySQLi
MySQL Version : 5.6.38
--------------- Added 1520354018 at 1520354018 ---------------
i wonder if the issue is on my /tmp directory
MarkFL
03-06-2018, 02:37 PM
Hmm...I have never encountered that error before, and doing a search led me to believe it was due to a disk space issue on your server as a result of a query on all your posts. So, I figured limiting the query would cure it.
Looks like OP needs to run a repair & optimize query against his database.
scottkoz20
03-06-2018, 02:58 PM
Hmm...I have never encountered that error before, and doing a search led me to believe it was due to a disk space issue on your server as a result of a query on all your posts. So, I figured limiting the query would cure it.
is it possible to limit the query to the last day (24 hours)
In the meantime, I am working on table optimization and checking space issue on /tmp on my server
MarkFL
03-06-2018, 03:39 PM
is it possible to limit the query to the last day (24 hours)
In the meantime, I am working on table optimization and checking space issue on /tmp on my server
I've added an optional "Hours Limit" setting that will allow you to select posts made only during the last x hours.
CAG CheechDogg
03-06-2018, 04:30 PM
Where exactly is this supposed to display and what does it look like ? lol ...
MarkFL
03-06-2018, 04:42 PM
Where exactly is this supposed to display and what does it look like ? lol ...
It displays on the index script (home) as well as other selected scripts, a block containing links to the most recent posts. Here's a screenshot from my local dev site:
https://vborg.vbsupport.ru/attachment.php?attachmentid=156974&stc=1&d=1520361685
CAG CheechDogg
03-06-2018, 04:57 PM
Weird ... for me it only shows the tittle
scottkoz20
03-06-2018, 05:04 PM
Mark -
Well, I got past the SQL errors (the time seemed to help as optimization is still going :rolleyes: )
However, I get no posts when I enable the modification
MarkFL
03-06-2018, 05:08 PM
Scott, it looks like you have the block collapsed?
CAG CheechDogg
03-06-2018, 05:09 PM
Mark -
Well, I got past the SQL errors (the time seemed to help as optimization is still going :rolleyes: )
However, I get no posts when I enable the modification
Exactly what I got too ...
--------------- Added 1520363400 at 1520363400 ---------------
Scott, it looks like you have the block collapsed?
I don't have it collapsed myself and it still doesn't show
MarkFL
03-06-2018, 05:12 PM
Exactly what I got too ...
--------------- Added 1520363400 at 1520363400 ---------------
I don't have it collapsed myself and it still doesn't show
Can I get a link to your site, so I can inspect the DOM?
scottkoz20
03-06-2018, 05:13 PM
does the samething as what CAG is seeing -
I'll PM you with my site info
CAG CheechDogg
03-06-2018, 05:16 PM
Here it is ..
https://www.cagclan.com/community/forum.php
scottkoz20
03-06-2018, 05:30 PM
Ok Mark - what did you do?
MarkFL
03-06-2018, 05:34 PM
I had a variable used from another addon, which wasn't aan issue for me, but was for everyone else.
Scott, I have updated your site with the latest update, and for everyone else, I attach it here.
CAG CheechDogg
03-06-2018, 05:40 PM
Good stuff Mark .. as always good stuff !!
scottkoz20
03-06-2018, 05:48 PM
this is really cool... simple yet slick
thank you very much
MarkFL
03-06-2018, 05:51 PM
this is really cool... simple yet slick
thank you very much
Glad to help out, and it you think of any features you'd like to add, feel free to let me know. One thing might be an option to truncate long forum names, and include the forum description in the tooltip.
CAG CheechDogg
03-06-2018, 06:04 PM
Mark ... why do I have a scroll bar on mine? can I set the height or have the height be set automatically depending on the amount of threads to be shown?
scottkoz20
03-06-2018, 06:12 PM
Glad to help out, and it you think of any features you'd like to add, feel free to let me know. One thing might be an option to truncate long forum names, and include the forum description in the tooltip.
For me, I think having the Thread Started isn't fully needed for my site - I would probably move the posttime in the first column and just the member that posted the thread. This would leave more room for the longer names on the forums and thread Topic.
I'm not sure if number of replies would be needed for me, but I think some folks might want to see this.
MarkFL
03-06-2018, 06:12 PM
In the settings, if your "Default/Minimum Rows" is 1 more than the "Number Of Posts" then there won't be a scrollbar, because the column headers count as 1 row. I gave a default height so that you could show a large number of posts without having a tall block displayed.
--------------- Added 1520367361 at 1520367361 ---------------
For me, I think having the Thread Started isn't fully needed for my site - I would probably move the posttime in the first column and just the member that posted the thread. This would leave more room for the longer names on the forums and thread Topic.
I'm not sure if number of replies would be needed for me, but I think some folks might want to see this.
I will add a setting tonight that will allow you to choose which columns you want in the display. :)
CAG CheechDogg
03-06-2018, 06:47 PM
How can I edit the height or just make it auto depending on the amount of posts Mark?
MarkFL
03-06-2018, 06:52 PM
How can I edit the height or just make it auto depending on the amount of posts Mark?
If you want it to just show all the posts, set "Default/Minimum Rows" to 1 more than the "Number Of Posts."
MarkFL
03-07-2018, 01:32 AM
I have attached the latest update, which allows all but the last column to be optional, and allows for the selection of the styles in which the product is active.
scottkoz20
03-07-2018, 10:55 AM
i will test this out later this morning after I get done with the real job :D
--------------- Added 1520449168 at 1520449168 ---------------
hey mark - i was having server issues this morning/ early afternoon - I am going to hold off testing this until stable
MarkFL
03-07-2018, 07:09 PM
I have removed an unneeded query, and attached the latest update.
scottkoz20
03-07-2018, 10:16 PM
I have removed an unneeded query, and attached the latest update.
hey Mark - added this and the block is no longer showing
MarkFL
03-07-2018, 10:29 PM
hey Mark - added this and the block is no longer showing
I just went to your site to take a look, and it appears to be showing for me. :)
scottkoz20
03-07-2018, 10:43 PM
hmmm - i see it in Firefox... will clear cookies/cache in Chrome
MarkFL
03-07-2018, 10:49 PM
I see it on Chrome too. :)
scottkoz20
03-07-2018, 11:00 PM
ok - this is odd
when I am on my account - I don't see it. When I log out or log into my non-admin test account, I can see it
see the screenshots
happens in Chrome and Firefox
MarkFL
03-08-2018, 12:12 AM
I have no idea why that would be.
MarkFL
03-08-2018, 02:04 AM
I think I found the culprit, and while your site is now updated, here is the latest attached.
scottkoz20
03-08-2018, 10:53 AM
thanks Mark - i appreciate this greatly.
MarkFL
03-09-2018, 01:43 AM
Okay, one more update (likely the last, unless more features are requested), which includes the option to display the block at the top (like it's always been) or at the bottom, directly above the footer. Also, I added 2 StyleVars to control the color and font of the forum/thread links.
MarkFL
03-09-2018, 05:58 AM
My apologies, but one more update where the query is altered to retrieve posts only from selected forums, rather than having them filtered out afterwards. This still leaves posts that a user has no permission to view to be filtered after the query, but I couldn't figure out how to do that within the query.
RichieBoy67
03-09-2018, 11:22 AM
reminds me of the latest threads mod we had on 3.6! I loved that. Very simple and just displayed threads. Some people placed it in the header and some in the footer. Everyone used to love that mod!
--------------- Added 1520601793 at 1520601793 ---------------
Okay, one more update (likely the last, unless more features are requested), which includes the option to display the block at the top (like it's always been) or at the bottom, directly above the footer. Also, I added 2 StyleVars to control the color and font of the forum/thread links.
Very kind of you Mark!
MarkFL
03-09-2018, 05:33 PM
Another update...haha...this time I removed the potential issue caused by editing the phrases pertaining to the column headings. Now if you edit those phrases, you will no longer need to re-select the desired columns and save the settings.
scottkoz20
03-11-2018, 10:38 PM
hey Mark -
I got this error tonight
Fatal error: Maximum execution time of 30 seconds exceeded in /home/scfadmin/public_html/includes/class_bootstrap.php(430) : eval()'d code on line 189
as soon as I disable your mod, no issues
:(
this was only on the FORUMHOME as this is the only spot where the mod was tied to
MarkFL
03-11-2018, 11:11 PM
If you're getting that error because of a query retrieving a couple dozen posts, I would say you still have some server issues going on, especially given that this error presumably just started showing up after you've been running the product for several days.
In other news, I have a HUGE update to this product coming soon. :)
scottkoz20
03-12-2018, 04:45 PM
what does not make sense to me is that when I re-enable this, its almost like a buffer is cleared and the mods starts to work again on my site
looking forward to the next update
MarkFL
03-13-2018, 03:12 AM
I've published the update at the following sites:
MHB - Recent Posts Block (https://mathhelpboards.com/vbulletin-products-61/recent-posts-block-23767.html#post106268)
TAZ - Recent Posts Block (https://theadminzone.com/threads/recent-posts-block.147020/)
CAG CheechDogg
03-13-2018, 04:47 AM
I've published the update at the following sites:
MHB - Recent Posts Block (https://mathhelpboards.com/vbulletin-products-61/recent-posts-block-23767.html#post106268)
TAZ - Recent Posts Block (https://theadminzone.com/threads/recent-posts-block.147020/)
Well that sucks .. oh well ...
At least make the images showing what the mods look like ... you require people to register to even view that ...
MarkFL
03-13-2018, 05:14 AM
Well that sucks .. oh well ...
At least make the images showing what the mods look like ... you require people to register to even view that ...
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/attachment.php?attachmentid=156996&stc=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/attachment.php?attachmentid=156997&stc=1&d=1520921538
StyleVars
https://vborg.vbsupport.ru/attachment.php?attachmentid=156998&stc=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:
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".
You MUST enable the product in the settings before it will function.
Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.
https://vborg.vbsupport.ru/attachment.php?attachmentid=156995&stc=1&d=1520921538
Stratis
03-13-2018, 06:09 AM
Many other things sucks...
Thanks Mark for another time, where ever you go i am with you... thanks for the effort you give to us every time.
You are a goodwill person.
And a few more thanks, thanks for other people that have forgotten to give you.
Have a nice day.
CAG CheechDogg
03-13-2018, 06:23 AM
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.
Yes I am ... sorry if I came off as rude ... should of used a better choice of words for my suggestion
MarkFL
03-13-2018, 06:26 AM
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
Here it is ..
https://www.cagclan.com/community/forum.phpI 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 1521300286 at 1521300286 ---------------
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/attachment.php?attachmentid=156996&stc=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/attachment.php?attachmentid=156997&stc=1&d=1520921538
StyleVars
https://vborg.vbsupport.ru/attachment.php?attachmentid=156998&stc=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:
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".
You MUST enable the product in the settings before it will function.
Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.
https://vborg.vbsupport.ru/attachment.php?attachmentid=156995&stc=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
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 1530159831 at 1530159831 ---------------
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
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:
<div id="recentposts_block" style="margin-left: 10%; margin-right: 10%;" class="wgo_block">
--------------- Added 1530162500 at 1530162500 ---------------
NM - saw it was in stylevars. Very nice.
--------------- Added 1530159831 at 1530159831 ---------------
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
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:
BGObsession
06-28-2018, 03:52 AM
WTH??? This has me stumped....
--------------- Added 1530165419 at 1530165419 ---------------
Not only as to why the hover text is the correct recent post, but clicking on it does not take one to the post - but that it sounds like it's working for you but not for me??? I tried changing browsers but it's the same for me on all of them...
You sure you're getting the most recent post? It's having the same problem for me even when I access from my iphone...
MarkFL
06-28-2018, 04:35 AM
Now when I try it it doesn't work on your site for some reason. So, in the plugin titled "Display Recent Posts Block" locate the code:
$threads .= '<td>' . $thread . '<a class="rpb_links' . $t_style . '" href="' . fetch_seo_url('thread', $tpost) . '&p=' . $tpost['postid'] . '#post'. $tpost['postid'] . '" title="' . $tname . $t_preview . '">' . $t_title . '</a></td></tr>';
And replace it with:
$threads .= '<td>' . $thread . '<a class="rpb_links' . $t_style . '" href="' . fetch_seo_url('thread', $tpost) . '?p=' . $tpost['postid'] . '&viewfull=1#post'. $tpost['postid'] . '" title="' . $tname . $t_preview . '">' . $t_title . '</a></td></tr>';
Let me know if that works for you, please. :)
BGObsession
06-28-2018, 11:02 AM
Damn you are good Mark :) That fixed it - thanks so much!
MarkFL
06-28-2018, 11:23 AM
Damn you are good Mark :) That fixed it - thanks so much!
Thanks for letting me know it worked. :)
BGObsession
06-29-2018, 12:58 PM
Hey Mark,
Have you given any thought to doing a 'Latest Threads' version of this - where it presents a list of the 10 or 20 most recently active threads (basically the same idea, but no thread is listed more than once - a library of the top conversations going on)?
I like the recent posts tool a lot. But as far as having a list of current topics presented when someone goes to my forum page, that would be even more valuable...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.