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

Reply
 
Thread Tools
Skip a Forums New Posts - Add "Mark Forum Read" to New Posts search Details »»
Skip a Forums New Posts - Add "Mark Forum Read" to New Posts search
Version: 1.00, by Greebo Greebo is offline
Developer Last Online: Jan 2011 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-31-2005 Last Update: Never Installs: 4
Template Edits
Code Changes  
No support by the author.

Skip a Single Forums New Posts
Add "Mark Forum Read" to New Posts search

When doing a New Posts search (and only on a New Posts search), this hack adds a "Mark This Forum Read" link to the forum column. Users can click this link to mark a single forum read from the New Posts search results, thus "skipping" that forum from the new posts search.

When the link is clicked, the selected forum is marked read and the user is redirected back to a new New Posts search.

Negatives: If forum has a time limit on searches, the user will get the message about having to wait to conduct a search if they didn't wait that long before clicking the mark read link.

Version 1.0
vBulletin Compatibility: 3.5.0

Required changes: 1 Template Edit, 1 Code File Edit

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-01-2005, 01:03 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice, great idea!
Reply With Quote
  #3  
Old 11-01-2005, 01:10 PM
Greebo Greebo is offline
 
Join Date: Dec 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, but its not really my idea. In the 3.0.x series, I used this hack:
https://vborg.vbsupport.ru/showthread.php?t=67154

That hack included the same thing. But 3.5.0 makes that hack no longer necessary. I just liked the behavior and converted it to the 3.5.0 engine.
Reply With Quote
  #4  
Old 11-01-2005, 04:26 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one!
Reply With Quote
  #5  
Old 11-01-2005, 09:45 PM
yessir's Avatar
yessir yessir is offline
 
Join Date: Jul 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome mod idea.

I'll hold out for a product and work around the search timeout feature. On many boards search times are limited. My board is one of these (and for good reason).
Reply With Quote
  #6  
Old 11-02-2005, 01:02 PM
Greebo Greebo is offline
 
Join Date: Dec 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't hold out too long - the most appropriate hook for a plugin is forumdisplay_complete, and while that might work, it means the entire forumdisplay file will get processed before the redirect code is fired, where my code modification means the forum is marked read and the user is sent right back to the search, just as quick as possible.

I'll submit a hook request but.. don't hold yer breath.
Reply With Quote
  #7  
Old 11-02-2005, 02:08 PM
SpanishHarlem SpanishHarlem is offline
 
Join Date: Feb 2005
Location: Ontario, Canada
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank's. My member's will love this hack. With so many forum's they don't like to read all.
Reply With Quote
  #8  
Old 11-05-2005, 03:17 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*** Untested ***

To avoid the fileedits:

redirect_generic
PHP Code:
global $recursecheck_hdr;
if (!empty(
$_REQUEST['returnToSearch']) AND !$recursecheck_hdr);
{
    
$recursecheck_hdr true;
    
$vbulletin->url 'search.php?' $vbulletin->session->vars['sessionurl'] . 'do=getnew';
    eval(
print_standard_redirect('markread_single'));


header_redirect
PHP Code:
global $recursecheck;
if (!empty(
$_REQUEST['returnToSearch']) AND !$recursecheck);
{
    
$recursecheck true;
    
exec_header_redirect('search.php?' $vbulletin->session->vars['sessionurl'] . 'do=getnew');    

Reply With Quote
  #9  
Old 01-11-2006, 12:55 PM
Greebo Greebo is offline
 
Join Date: Dec 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, I tried those mods, Andreas, but they ended up hanging the forum. I don't have time atm to debug it so I'm sticking with me file edits for now.
Reply With Quote
  #10  
Old 06-28-2006, 04:46 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this idea - LOVE IT!

However it only works in IE and not Firefox... When I try in firefox(mark as read) it returns with an empty list after the first one. When I tested this in IE it works flawlessly by refreshing the list with the next thread in line.

Any ideas?
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:45 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.04216 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete