Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-08-2016, 02:15 AM
mrwillt mrwillt is offline
 
Join Date: Jan 2016
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to show 'new posts'

Hey guys. In vb4 there was a button for showing new posts which listed all the unread posts with a small snippet of what was said. The latest activity seems to try and achieve this but just not as well as vb4. Has anyone had any success trying to recreate this feature as it was one of the most heavily used areas of our site.
Reply With Quote
  #2  
Old 05-08-2016, 06:28 AM
IggyP IggyP is offline
 
Join Date: May 2012
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

never did sort exactly what the problem was, but omitting "photo" from searches seem to help at least...for some reason that seem to keep the search string more true in my experience..
Reply With Quote
  #3  
Old 05-08-2016, 11:57 AM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The best thing I've seen is a true chronological listing of the newest posts similar to the vb4 activity stream but not the unread only. I have a post here explaining how to do it.
Reply With Quote
  #4  
Old 05-09-2016, 02:02 PM
twistsol's Avatar
twistsol twistsol is offline
 
Join Date: Apr 2015
Location: Cottage Grove, MN
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I did for this was to create a custom search page that searches all forums, blogs, and articles. In the JSON search criteria I included "unread_only":1

This works, but requires that you enable database marking for read posts in the admincp. It does not work, therefore for users who are not logged in.
Reply With Quote
Благодарность от:
Replicant
  #5  
Old 05-09-2016, 02:09 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by twistsol View Post
What I did for this was to create a custom search page that searches all forums, blogs, and articles. In the JSON search criteria I included "unread_only":1

This works, but requires that you enable database marking for read posts in the admincp. It does not work, therefore for users who are not logged in.
Works like a charm.
Reply With Quote
  #6  
Old 05-16-2016, 05:10 AM
mrwillt mrwillt is offline
 
Join Date: Jan 2016
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by twistsol View Post
What I did for this was to create a custom search page that searches all forums, blogs, and articles. In the JSON search criteria I included "unread_only":1

This works, but requires that you enable database marking for read posts in the admincp. It does not work, therefore for users who are not logged in.
Can you please paste the search criteria you use?

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

The way *I THink* works is this:

search?searchJSON={"last_visit":1,"type":["vBForum_Link","vBForum_Photo","vBForum_Poll","vBF orum_Text"],"channel":["2"],"sort":{"created":"desc"},"view":"","exclude_type ":["vBForum_PrivateMessage"]}&btnSubmit=&humanverify[input]=&humanverify[hash]=&humanverify[input]=&humanverify[hash]=

It looks good in the activity stream - seems to be showing everything as the latest. If you want to use this yourself you'd need to urlencode it
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 04:00 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.04052 seconds
  • Memory Usage 2,211KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (1)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete