Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by ethank ethank is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-02-2001 Last Update: Never Installs: 25
 
No support by the author.

Hack: Persistent Mark Forum Read
Version of VB: 2.2.5
Current version: 1.3
Description: This hack replaces the bahavior of vBulletin's "Mark Forum Read" and "Mark All Forums Read" with a system that uses a database to track when forums are set read. By eliminating the use of cookies for this feature, a user can come onto your boards, read a bit, mark forums read as they go through and logout. The next time they come into the forums, the status of which forums they've read and which they haven't, as well as new posts since the last time they read is preserved.

This functions a lot like EZBoard and Chatspace's Webboard.

Included in this hack are three search routines: searing the entire forum for new messages, an individual forum and a section of the hierarchy (parent + children)

Also: Mark All Forums Read, Mark Individual Forum Read and Mark Hierarchy Section (Parent + Children) Read

Note: The install is not all pretty yet and requires a degree of knowledge of MySQL (to add a table) and PHP (as it requires heavy modifications to core files). It is recommended that you backup everything before using this.

After installation, behavior might be a bit odd until a default "markread" record is created for users. This is created when they first login if one does not exist.

This hack has been tweaked to now not add more than two queries to your index page. It will add load on sub-forum pages currently if you have a lot of nested forums. This will be fixed in the next release.

Instructions:

Follow the instructions in the included text file TO THE LETTER. If you run into problems, post here so we can work through them and improve the instructions. Look for a better install utility soon.

I recommend doing the text editing using a DIFF utility to see where you made changes, it honestly helps.

Place the images in your vbulletin image folder. I included PSD files for them if you want to change colors.

Show Your Support

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

Comments
  #82  
Old 06-28-2002, 05:43 AM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do not yet. I will be doing the upgrade next week once I get moved
into my apartment. I also did some fixes I have to update the
instructions with.
Reply With Quote
  #83  
Old 07-01-2002, 04:35 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it working.

I am not using parent and children forums, so I used the same // do light bulb code for index.php as you are using in fourmdisplay.php and it all seems to be functioning correctly.

Thanks for staying on top of this one, Ethan. My members are thrilled with the functionality!

Reply With Quote
  #84  
Old 07-02-2002, 02:45 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't wait for the update, ethank. Good job all around!
Reply With Quote
  #85  
Old 07-03-2002, 03:41 PM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've settled into my new apartment now, so I'm getting back into the swing of things on my forum.....right as July 4th rolls around

But I'm making progress. Will do the 2.2.6 upgrade then modify the docs.
Reply With Quote
  #86  
Old 07-03-2002, 04:14 PM
Cynthia Blue's Avatar
Cynthia Blue Cynthia Blue is offline
 
Join Date: Dec 2001
Location: Utah
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm installing this hack to my newly upgraded board.. just got 2.2.6

Question, in forumdisplay.php where it says to find:

Quote:
Find:
// display threads
$limitlower=($pagenumber-1)*$perpage+1;
$limitupper=($pagenumber)*$perpage;
My file doesn't say that. Instead it says:

Quote:
// display threads
$limitothers="";
if (!$getperms[canviewothers]) {
$limitothers="AND postuserid='$bbuserinfo[userid]' AND '$bbuserinfo[userid]'<>0";
}
Since I'm a newb and not good at coding this stuff, what should I do?

Thanks.
Reply With Quote
  #87  
Old 07-03-2002, 08:27 PM
Cynthia Blue's Avatar
Cynthia Blue Cynthia Blue is offline
 
Join Date: Dec 2001
Location: Utah
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok nevermind that question I guessed and got it right. Hack seems to be working fine so far.

I do have a question, though. I had applied the Mark Forum Read redirection hack... so when you are inside a forum and you mark it read, it will redirect you to the main page, and not keep you in the same forum after it's read.

https://vborg.vbsupport.ru/showthrea...mark+and+forum

Now, it seems, that hack leads to the member.php file instead of the forumdisplay.php file... and so that hack has been nulled. How would I go about applying that hack to the member.php file, or would that even be the right place?

Thanks.
Reply With Quote
  #88  
Old 07-03-2002, 08:39 PM
Cynthia Blue's Avatar
Cynthia Blue Cynthia Blue is offline
 
Join Date: Dec 2001
Location: Utah
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok.. actually, it's not quite working right, either. I don't have child forums, I have different categories. When you click one forum in a category as read, it marks all the forums in that category as read.

This is my site: http://www.ilsikhaucil.com

This is the code that is in the template next to each individual forum... in the forumhome_forumbit_level2_post template:
Quote:
<a href="member.php?s=$session[sessionhash]&action=markforumread&forumid=$forum[forumid]"><img src="{imagesfolder}/mark_read.gif" border=0 title="[Mark This Forum Read]"></a>
help... thanks.
Reply With Quote
  #89  
Old 07-05-2002, 12:21 PM
Cynthia Blue's Avatar
Cynthia Blue Cynthia Blue is offline
 
Join Date: Dec 2001
Location: Utah
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured my problems out on my own... had to fiddle with some of the code, but it seems to be working okay now.
Reply With Quote
  #90  
Old 07-07-2002, 08:53 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I put it on 2.2.6 today. It works great. It's worth the effort.
Reply With Quote
  #91  
Old 07-11-2002, 02:43 AM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FWC
I put it on 2.2.6 today. It works great. It's worth the effort.
So did I I need to make better instructions for the optimized one.
Reply With Quote
Reply

Thread Tools

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 10:38 AM.


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.05443 seconds
  • Memory Usage 2,301KB
  • 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
  • (4)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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