vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Reputation Comments (and Posts) Since Your Last Visit. (https://vborg.vbsupport.ru/showthread.php?t=91146)

Paul M 11-20-2005 04:24 PM

Quote:

Originally Posted by Matt_270581
Then I import the new XML file will it try to rebuild the index? or will it just check and skip that part?

It will try again. It actually deletes any existing index and re-adds a new one.

To prevent it you will need to edit the xml and remove these lines ;

PHP Code:

$db->query_write("ALTER TABLE " TABLE_PREFIX "post DROP INDEX dateline");
$db->query_write("ALTER TABLE " TABLE_PREFIX "post ADD INDEX dateline (dateline)");
$db->query_write("ALTER TABLE " TABLE_PREFIX "user ADD lastrepcheck INT(10) UNSIGNED NOT NULL");
$db->query_write("UPDATE " TABLE_PREFIX "user SET lastrepcheck = lastvisit"); 


Matt_270581 11-22-2005 04:33 AM

Cheers Paul. Will give it a go and let you know how I go. Keep up the good work :)

Matt_270581 11-22-2005 05:57 AM

Worked well when forum was offline. 425 secs to Alter the posts table :)

Imported the new Modified XML file and it worked like a dream.

Cheers.

Mark.B 12-15-2005 03:54 PM

Only thing I've found with this on my test board is that if doing a getnew or getdaily search, if the search returns no results, the hack doesn't appear. It's fine if there ARE results though.

Paul M 12-15-2005 04:25 PM

Yes - I blame vB for that ;) - the variables values are not carried over into the error page, I expect a global statement in the right place would cure it.

Mark.B 12-15-2005 04:35 PM

Quote:

Originally Posted by Paul M
Yes - I blame vB for that ;) - the variables values are not carried over into the error page, I expect a global statement in the right place would cure it.

Thanks Paul.

You mentioned in the original post being able to switch off the new posts bit and just have the rep...I'd quite like to do this as, certainly on my main board (which is still on 3.0.10 while I work on a test board for upgrading), I have always found the new posts thing a bit too intensive on the server.

However, I'm still new to the whole plugin thing, where do I turn that bit off, or would I need to edit the code out of the XML file and re-import it?

Paul M 12-15-2005 04:50 PM

In the plugin manager, just untick the "active" box for the relevant plugin and click save.

ryuji 01-12-2006 06:02 AM

great mod, makes it much easier to keep tabs on what has happened without looking at the dates/times of all the threads(and still miss some)

apollooooooo 01-12-2006 12:05 PM

thanks just what i have been looking for cheers

jilly 01-13-2006 03:38 AM

I would like to see a modification where that message shows up only if they HAVE rec;'d new reputation - if nothing new has been given, then no message would appear.


All times are GMT. The time now is 02:48 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01294 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete