Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[BetoPho] Trending Threads Details »»
[BetoPho] Trending Threads
Version: 1.0.0, by BetoPho BetoPho is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Statistics Modifications - Version: 4.2.5 Rating:
Released: 07-18-2019 Last Update: Never Installs: 5
Supported Uses Plugins Auto-Templates
 

[Important Note: This product won't work properly (or won't work at all) on PHP version below 7.0.0!]
*product PHP version requirement has been added so this can only be installed on server with PHP version at least 7.0.0.


This is something I want to contribute to make the board more useful while leaving room for future enhancements. Having seen the similar one on many other platforms but not sure why vBulletin doesn't have one (until vBulletin 5 that they implemented it I guess).

Product Information
Providing simple 'trending' block for fetching popular threads that are defined by some conditional settings.

Main Features
  • Easy configuration to generate 'trending' blocks around the forum.
  • Ability to set the number of threads' replies within a timeframe for the threads to be determined as 'trending'.
  • Ability to include usergroups/forums to get the threads for trending calculation, avoiding spammy posts and test forums' threads to be calculated.
  • Multiple block locations supported: Forum Homepage, Forum Display page, Thread page, first/last postbit, after the X number of posts in each thread.
  • Using CSS3, adapted to default forum template, editable CSS.
  • Lightweight, translation ready.
  • Simple installation: Install - Configure the conditions - Set the places to show - Done.

Future Versions Planning
  • Adding more conditions support, eg. X views on 24 hours.
  • Expanding integration with other conten types, eg. Post, Poll, Album, etc.
  • Expanding support for vBulletin Forum Block system (sidebar blocks).
  • Allowing multiple blocks creation with different settings for each one.
  • Support for vBulletin 3.
  • Making it fully responsive, that will be supported with a full responsive style that I will be releasing here soon for free.
  • Why not PHP5.6? Most of the codes here are optimized for modern PHP version, and it should be that way, so I suggest switching to at least PHP 7.0.0, which vBulletin 4.2.5 works pretty well on it.
  • You name it.

Details
  • Files upload: none
  • Plugins: 11
  • Templates: 2 (1 template, 1 CSS template)
  • Phrases: 2

Instructions
  1. Import the product XML file using Product section.
  2. Go to Options > [BetoPho] Trending Threads.
  3. Configure and start using.

Let me know if you have any questions or suggestions.
Thank you

Changelog
1.0.0 - Jul 19 2019
  • Initial Release

Download Now

File Type: xml product-btp_trending_v1.0.0.xml (22.6 KB, 43 views)

Screenshots

File Type: png btp_trending_screenshot_001.png (46.5 KB, 0 views)
File Type: jpg btp_trending_screenshot_002.jpg (102.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
furnival, Hostboard, oneill, z3r0

Comments
  #2  
Old 07-19-2019, 09:12 AM
jokergameth jokergameth is offline
 
Join Date: Jul 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for sharing
Reply With Quote
  #3  
Old 07-19-2019, 07:20 PM
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Location: Libya
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for creating this long waited product.

I have a question, as the screen shot displayed you compared the thread by posts that made in the last x (criteria), so I wonder if this product check all threads for this criteria or only threads that created in that criteria period? you know some times a very old thread suddenly get a lot of replys in one day, so it is logically must be a trend in that day.

Another note: could you please explain the sorting algorithm here? because the screen shot shows threads with different cont of replys without logical sort!!

Feature suggest:
I wish you add another trending dealing with tags not only threads, for me I using a product here to use hashtags and convert them to tags, so I hope there is a way to display trending hashtags/tags.

Thanks again.
Reply With Quote
  #4  
Old 07-20-2019, 06:21 AM
BetoPho BetoPho is offline
 
Join Date: Nov 2014
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I have a question, as the screen shot displayed you compared the thread by posts that made in the last x (criteria), so I wonder if this product check all threads for this criteria or only threads that created in that criteria period? you know some times a very old thread suddenly get a lot of replys in one day, so it is logically must be a trend in that day.
The product will check for all the posts posted in a timeframe, so, yes, if an old thread suddenly gets a lot of posts, it will be in the trending list too.

I will add another condition in the next update that allow admin to specify the timeframe for the thread too (currently it's only for posts of the thread), so you have the choice to capture old threads or not.

Quote:
Another note: could you please explain the sorting algorithm here? because the screen shot shows threads with different cont of replys without logical sort!!
I planned to let admins choose the sorting that they wanted, but haven't implemented it yet due to other planning for additional conditions (eg. X views in last X) and additional content types. It will be added in the next update.

Quote:
Feature suggest:
I wish you add another trending dealing with tags not only threads, for me I using a product here to use hashtags and convert them to tags, so I hope there is a way to display trending hashtags/tags.
Thanks I will definitely put that in mind for hashtags/tags in the next release. Which product are you using for dealing with hashtags?
Reply With Quote
  #5  
Old 07-20-2019, 09:16 AM
iA1 iA1 is offline
 
Join Date: Jul 2018
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and tested, but as SilverBoy mentioned, there was an old thread which had several replies in the past and only 1 post yesterday. I choose the criteria as 5 posts within 1 day and that particular thread was also listed in trending threads. It shouldn't have been there because it had only 1 post within last 1 day.
Reply With Quote
  #6  
Old 07-20-2019, 03:38 PM
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Location: Libya
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BetoPho View Post
Thanks I will definitely put that in mind for hashtags/tags in the next release. Which product are you using for dealing with hashtags?
You welcome

Actually I have not yet decided on a specific option, for now there are 2 options available ..
First one is BirdOPrey5 product that you can find here
https://vbulletin.org/forum/showthread.php?t=271543

The second is DragonByte Pro product for this one
https://vbulletin.org/forum/showthread.php?t=242733

Best Regards.
Reply With Quote
  #7  
Old 07-20-2019, 07:26 PM
BetoPho BetoPho is offline
 
Join Date: Nov 2014
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iA1 View Post
Installed and tested, but as SilverBoy mentioned, there was an old thread which had several replies in the past and only 1 post yesterday. I choose the criteria as 5 posts within 1 day and that particular thread was also listed in trending threads. It shouldn't have been there because it had only 1 post within last 1 day.
Thanks for letting me know. As I mentioned in the previous comment, the next update will let you choose whether the old posts should be counted toward trending calculation. I will just let forum owners decide if such cases would be still marked as trending or just old thread digging and should be ignored

Quote:
Originally Posted by SilverBoy View Post
You welcome

Actually I have not yet decided on a specific option, for now there are 2 options available ..
First one is BirdOPrey5 product that you can find here
https://vbulletin.org/forum/showthread.php?t=271543

The second is DragonByte Pro product for this one
https://vbulletin.org/forum/showthread.php?t=242733

Best Regards.
Thanks! The above add-ons are great! However, I will be implementing my own tags/hashtags system along with user mention system that I think would be more fitting with newer coding standards and design as well. Hopefully I could make it around the next week .
Reply With Quote
  #8  
Old 07-20-2019, 07:56 PM
SilverBoy SilverBoy is offline
 
Join Date: Feb 2002
Location: Libya
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BetoPho View Post
Thanks! The above add-ons are great! However, I will be implementing my own tags/hashtags system along with user mention system that I think would be more fitting with newer coding standards and design as well. Hopefully I could make it around the next week .
Good news, I'll waiting for you.
Reply With Quote
  #9  
Old 04-28-2020, 01:15 PM
furnival furnival is offline
 
Join Date: Mar 2008
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for sharing this. It looks like a great 1st version of this mod but I am worried that it has to do a lot of database queries each time it loads. In a future version could you add a cache so that it only does the calculations once every 5 minutes via a scheduled task, please?

I would also be interested in any alternative to DBTech's "Advanced User Tagging" mod, which is badly coded, as you mentioned. I'd be happy to pay for a mod like that and I'm not the only one. That mod is the curse of my forum, it slows the whole thing down, and is always showing up in the slow queries log.
Reply With Quote
Reply


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


All times are GMT. The time now is 02:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06602 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (4)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (3)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete