vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Statistics Modifications - Who Downloaded This Attachment (https://vborg.vbsupport.ru/showthread.php?t=217271)

akanevsky 06-27-2009 07:34 PM

Quote:

Originally Posted by Paul M (Post 1838521)
Fair enough, didnt know that - why not just put "*" more obvious then.

I don't think that was allowed in 3.5.x, and I want to keep my hacks backwards-compatible when possible.

Quote:

Originally Posted by Paul M (Post 1838521)
Strange tho - why are you running the database install/update code everytime ?

Making a sequential installation with new steps added on top of the first one using the vBulletin framework for doing such is confusing and therefore prone to errors. So I just install new tables on the "if not exists" condition (which does not add too much server load given that a hack is only installed once in a very long time), and then add "on top" modifications every time myself by using is_newer_version(), which I believe is the same thing that vBulletin uses to determine which piece of installation code to execute. So I'm just doing the same thing a little differently than what's designated by vBulletin framework. ;)

BigDog56 06-27-2009 09:04 PM

No error now, but where do I find who has downloaded the attachment in the thread?

Sunka 06-28-2009 12:48 AM

Quote:

Originally Posted by BigDog56 (Post 1838590)
No error now, but where do I find who has downloaded the attachment in the thread?

Installed...
That is bored me too.
All permissions is correct (Admin, supM and Mods - can view) but nothing.
Then I find...You have to just click on Update (on the bottom) in Usergroup options for each usergroup for who you choose to can view :D

Sunka 06-28-2009 12:53 AM

And one question...for what reason there is Save & Exit option (when you look at list who downloaaded)???
What happend with just pure Exit (or Close page)?????

akanevsky 06-28-2009 12:59 AM

Quote:

Originally Posted by BigDog56 (Post 1838590)
No error now, but where do I find who has downloaded the attachment in the thread?

Please edit and save one usergroup to rebuild permissions.

Quote:

Originally Posted by Sunka (Post 1838616)
Installed...
That is bored me too.
All permissions is correct (Admin, supM and Mods - can view) but nothing.
Then I find...You have to just click on Update (on the bottom) in Usergroup options for each usergroup for who you choose to can view :D

Yeah, just save one usergroup to rebuild data cache. I forgot to include the code for that in the installation snippet.

Quote:

Originally Posted by Sunka (Post 1838617)
And one question...for what reason there is Save & Exit option (when you look at list who downloaaded)???
What happend with just pure Exit (or Close page)?????

Well, I made it be "Exit & Download", I think it was because I ported this hack from another one and that's how they have designed it. However, I don't remember exactly, it was a long time ago. Do you think this should be changed to a plain "close page"?

Sunka 06-28-2009 02:06 AM

Quote:

Originally Posted by Psionic Vision (Post 1838620)
Well, I made it be "Exit & Download", I think it was because I ported this hack from another one and that's how they have designed it. However, I don't remember exactly, it was a long time ago. Do you think this should be changed to a plain "close page"?

If my opinion is important to you, then YES!
If I (Admin, Mod or Smod) want to download attachment, I will do it before on main screen. This MOD is to see who downloaded attachment, so it is in my opinion not good to have only options to exit and automaticlly save (download) attachment.

Just pure old good EXIT (or CLOSE).

Thanks for reading my opinion (and asking for it) :up:

junaid 06-28-2009 03:09 AM

when usergroups update database error

Paul M 06-28-2009 08:54 AM

Quote:

Originally Posted by Psionic Vision (Post 1838562)
Making a sequential installation with new steps added on top of the first one using the vBulletin framework for doing such is confusing and therefore prone to errors. So I just install new tables on the "if not exists" condition (which does not add too much server load given that a hack is only installed once in a very long time), and then add "on top" modifications every time myself by using is_newer_version(), which I believe is the same thing that vBulletin uses to determine which piece of installation code to execute. So I'm just doing the same thing a little differently than what's designated by vBulletin framework. ;)

JFYI, this query will be run every time as its not inside any of your custom version checks

PHP Code:

// add fields to other tables
$db->query_write("
    ALTER TABLE `" 
TABLE_PREFIX "usergroup`
    ADD `psiwd_options` int(10) unsigned NOT NULL DEFAULT '0'
"
); 


akanevsky 06-28-2009 02:19 PM

Quote:

Originally Posted by junaid (Post 1838670)
when usergroups update database error

Uninstall the install version 1.1.1.

Quote:

Originally Posted by Paul M (Post 1838738)
JFYI, this query will be run every time as its not inside any of your custom version checks

PHP Code:

// add fields to other tables
$db->query_write("
    ALTER TABLE `" 
TABLE_PREFIX "usergroup`
    ADD `psiwd_options` int(10) unsigned NOT NULL DEFAULT '0'
"
); 


That's fine, it does not add multiple fields because it is not possible. :)

BigDog56 06-28-2009 04:36 PM

Seems to be working ok. Thank you.


All times are GMT. The time now is 02:59 PM.

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.01097 seconds
  • Memory Usage 1,751KB
  • 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_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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