vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Top Posters List (https://vborg.vbsupport.ru/showthread.php?t=168895)

sockwater 05-14-2008 06:31 PM

Paul, it looks like the index that is added on installation is not removed when uninstalling.

Paul M 05-14-2008 06:33 PM

Correct. There is no need to remove it, and its possible it may be used by other mods.

sockwater 05-14-2008 06:56 PM

Quote:

Originally Posted by Paul M (Post 1519647)
Correct. There is no need to remove it, and its possible it may be used by other mods.

Every additional index that must be maintained makes inserting and deleting on that table more server-intensive.

IMO, if a product creates something, it should remove it upon uninstallation. However, if the user has another mod installed that also uses the index, it would be detrimental to remove it.

Perhaps there should be a way to track which mods create/use which indexes, so that they can be removed when the last mod that was using them is removed. Here's a brainstorm: Have a way to specify (in a product XML file) the non-vB-default indexes that a mod needs, containing the table, columns and index type. Then upon installation of a mod, vB would automatically create any indexes that don't exist and that the mod needs. When uninstalling, vB would check if the indexes that that mod used are not being used by any other mod, and uninstall them.

Indexes could be treated that way, as opposed to adding tables/columns, since the index is a shared item, and a new table/column for a mod is not a shared item.

lazytown 05-15-2008 09:52 PM

Paul,

Another great mod converts to 3.7 -- thank you! However, I'm having a problem with the column headings.

I'm now running 3.7 gold and I previously had installed topposters for 365 (which was working). I installed the 3.7.002 version of topposters and it auto-uninstalled the previous version. Index was created fine. However, the display of topposters is somewhat messed up now. The column headings are wrong. Attached is a screenshot. I did try to reinstall it, but the problem remains.

FYI: I have it set to display topposters for the last 1, 7, 30, and 'all time' days.

Thanks
-vissa

lazytown 05-15-2008 10:01 PM

I found the problem. I had to revert the 'topposters' template. Even when I completely uninstalled and re-installed, the old template remained.

-vissa

Paul M 05-16-2008 11:03 AM

It must have been a very old template, pre "product" days i would guess so didnt get zapped when you uninstalled the product.

beansbaxter 05-18-2008 06:10 PM

When I was running this on 3.6, I had no problems. It wont work on 3.7 - crashes.

karrerax 05-18-2008 08:05 PM

Perfect Installed

Paul M 05-18-2008 09:00 PM

Quote:

Originally Posted by beansbaxter (Post 1523865)
When I was running this on 3.6, I had no problems. It wont work on 3.7 - crashes.

Crashes ??

|Jordan| 05-20-2008 01:22 AM

YOU ARE A GOD!

I was looking for something that did this.

<3 <3 <3 Paul

Is it possible to make it only display users that have a specific custom field in their username on (in this case a radio button)?


All times are GMT. The time now is 08:03 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.01160 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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