Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

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

Version: Unknown Rating:
Released: 05-04-2001 Last Update: Never Installs: 0
 
No support by the author.

Here's the hack I worked on this week, in rough and not too pretty form. I'll be beautifying it soon.

You can download an rtf with all the code changes listed at http://murmurs.com/codechanges.rtf. Also in that file is the table creation statement.

Attached is a zip of all the changed files. Comments are included, but not consistant yet.

You can see this in action at http://tony.murmurs.com. Only two forums, but still.

I'll pretty up the code this weekend and make better install instructions.

This is way beta, so if there are any problems just post. Don't put this on a production board yet

Ethan

Show Your Support

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

Comments
  #52  
Old 10-27-2001, 03:15 PM
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 tubedogg
Don't be so sure...a database version of this may be just what I need (this cookie thing hasn't been working too well for me thus far).
Ahh...so it is still using cookies!

Well then...ONWARD WITH THE PROGRAM! I shall merge the other version of this code with mine, polish it up, format a very nice document on how to install it and release it this weekend.

2.? looks might cool though, outside of forum read

Ethan
Reply With Quote
  #53  
Old 10-27-2001, 03:55 PM
SWFans.net's Avatar
SWFans.net SWFans.net is offline
 
Join Date: Oct 2001
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to say that one of the parts of ethank's hack that I appreciate, is the ability to have the mark individual forum read link on the forum index as well as within the specific forum.

I have always been a fan of redundancy and having options in more than one place.
Reply With Quote
  #54  
Old 10-27-2001, 05:57 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I too am getting the "mark all forums read" as a result of trying to mark them individually.

I see where SW posted that he was able to redo the session.php mods, but I am a bit confused.

From that file, we have (around line 342)
PHP Code:
 $bbuserinfo['lastvisit']=$bbuserinfo['lastactivity']; 
And from line ~352, there is
PHP Code:
$bbuserinfo['lastvisit']=$bbuserinfo['lastvisit']; 
First, the instructions call to make the mods at the second instance of $bbuserinfo['lastvisit']=$bbuserinfo['lastactivity']; but I can only find the one case.

Secondly, there is an additional piece that is to be made at the $bbuserinfo['lastvisit']=$bbuserinfo['lastvisit']; but doesn't say which one - the one that Ethan added in the first group or the one that was there to begin with?

The remaining code (between 342 and 352) before modifications is
PHP Code:
 } else {
    if (!isset(
$bypass)) {
      if (
$noshutdownfunc) {
        
$DB_site->query("UPDATE user SET lastactivity=".time()." WHERE userid='$bbuserinfo[userid]'");
      } else {
        
$shutdownqueries[]="UPDATE user SET lastactivity=".time()." WHERE userid='$bbuserinfo[userid]'";
        
// This update will be done in the doshutdownfunction automatically, but the old method was doing screwy things!!
      

Where do these additions go in relation to that?
Reply With Quote
  #55  
Old 10-27-2001, 10:12 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind - I figured it out. Ethan - you need to update the instructions and clear up the sessions.php instructions to reflect one change instead of two.

We are testing this now - it appears to be working like a champ!
Reply With Quote
  #56  
Old 10-28-2001, 02:44 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by tubedogg
Don't be so sure...a database version of this may be just what I need (this cookie thing hasn't been working too well for me thus far).
The cookie version has been a little flaky for me too, Tube. I think I'll go with Ethan's version once the new vB is out and the hack is done.
Reply With Quote
  #57  
Old 10-28-2001, 03:35 PM
Trillian Trillian is offline
 
Join Date: Oct 2001
Location: Indonesia
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Weeeeeee! Can't wait to install this!

Thanks for taking the time to document it
Reply With Quote
  #58  
Old 10-28-2001, 11:57 PM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I updated the file to clarify sessions.php instructions and removed the updateLocation() code.

If anyone has any code/query improvements, just holler!

I tried to merge in the other one, but I figured this one works and why do more hacking than necessary? So anyhow....

Ethan
Reply With Quote
  #59  
Old 10-29-2001, 01:14 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ethan - my hat is off to ya! I will be moving this into production today.

Here are some additional notes for the optional template section - changing the column header and the wording of the redirect screen.

in forumdisplay/forumdisplay_forumslist and
Forumhome/forumhome

Replace Moderator with Functions (or whatever tag you choose)

in redirection/redirect_markread

Replace with:
The forum(s) you have selected have been marked as read and the new post indicators will now be off.
Reply With Quote
  #60  
Old 10-29-2001, 02:32 PM
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 Christine
Ethan - my hat is off to ya! I will be moving this into production today.

Here are some additional notes for the optional template section - changing the column header and the wording of the redirect screen.

in forumdisplay/forumdisplay_forumslist and
Forumhome/forumhome

Replace Moderator with Functions (or whatever tag you choose)

in redirection/redirect_markread

Replace with:
The forum(s) you have selected have been marked as read and the new post indicators will now be off.
Thanks. I'll add those and HTML-ize the instructions, as well as put an install script together. Anyone have the source for a good install script, like the one Kier uses?

Do tell me how it works in production and if you see any code tweaks that can be done. I'm working on a blogger hack right now, so my coding time is all difused

Ethan
Reply With Quote
  #61  
Old 10-29-2001, 03:57 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, it should be interesting. I just checked and I have just under 400 users on line right now so I will wait for it to slow down a bit and load it up. I will let you know.

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 05:13 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.04659 seconds
  • Memory Usage 2,316KB
  • 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
  • (3)bbcode_php
  • (3)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