vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Whodownloaded_IP with Dates (https://vborg.vbsupport.ru/showthread.php?t=93167)

Mr Blunt 08-20-2005 07:01 PM

Quote:

Originally Posted by belinea
GREAT RELEASE !!!!!!

But I?m missing a feature. I want to hide the "Who Downlaoded" buttons for normal users. Only admins schould see the button.

Your right!!
That was not intended.
I meant to hide it.

Let's see if any other bugs in the next couple days (instead of rapid consecutive releases).


In the meantime....
I'll give you the fix....
Edit the "Enable Viewing" plugin and replace the whole thing with this:
PHP Code:

$show['blunts_whodl_canusernames'] = ($vbulletin->options['blunts_whodl_popisactive'] AND ($permissions['bluntswhodlpermissions'] & $vbulletin->bf_ugp['bluntswhodlpermissions']['canusernames'])) ? 0;
$show['blunts_whodl_candatelines'] = ($vbulletin->options['blunts_whodl_popisactive'] AND ($permissions['bluntswhodlpermissions'] & $vbulletin->bf_ugp['bluntswhodlpermissions']['candatelines'])) ? 0;
$show['blunts_whodl_canuploaders'] = ($vbulletin->options['blunts_whodl_popisactive'] AND ($permissions['bluntswhodlpermissions'] & $vbulletin->bf_ugp['bluntswhodlpermissions']['canuploaders']) AND $vbulletin->userinfo['userid']) ? 0;
$show['blunts_whodl_canipaddress'] = ($vbulletin->options['blunts_whodl_popisactive'] AND ($permissions['bluntswhodlpermissions'] & $vbulletin->bf_ugp['bluntswhodlpermissions']['canipaddress'])) ? 0;
$show['blunts_whodl_canaltips']    = ($vbulletin->options['blunts_whodl_popisactive'] AND ($permissions['bluntswhodlpermissions'] & $vbulletin->bf_ugp['bluntswhodlpermissions']['canaltips'])) ? 0;
$show['blunts_whodl_width']        = ($show['blunts_whodl_canusernames']) ? ((($show['blunts_whodl_canipaddress'] OR $show['blunts_whodl_canaltips']) AND $vbulletin->options['blunts_whodl_poplarge']) ? $vbulletin->options['blunts_whodl_poplarge'] : $vbulletin->options['blunts_whodl_popsmall']) : 0

The last line is the only different one ;)
If viewing usernames is disabled for a usergroup, they won't see the button.

belinea 08-20-2005 10:57 PM

Quote:

Originally Posted by Mr Blunt
The last line is the only different one ;)
If viewing usernames is disabled for a usergroup, they won't see the button.

GREAT, work?s fine.

"WhoDownloaded with IP" is my personal Hack-Of-The-Year.

Roxie 08-21-2005 04:16 PM

I'm getting an error

Code:

Database error in vBulletin 3.5.0 Release Candidate 2:

Invalid SQL:
UPDATE vb3_usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        `title` = 'Moderators',
        `description` = '',
        `usertitle` = 'Moderator',
        `opentag` = '<font color=\"#CC0000\"><b>',
        `closetag` = '</font></b>',
        `passwordexpires` = '0',
        `passwordhistory` = '0',
        `forumpermissions` = '1048575',
        `attachlimit` = '0',
        `pmquota` = '500',
        `pmpermissions` = '3',
        `pmsendmax` = '20',
        `calendarpermissions` = '63',
        `wolpermissions` = '29',
        `adminpermissions` = '0',
        `genericpermissions` = '205256703',
        `genericoptions` = '31',
        `profilepicmaxwidth` = '100',
        `profilepicmaxheight` = '100',
        `profilepicmaxsize` = '65535',
        `avatarmaxwidth` = '100',
        `avatarmaxheight` = '100',
        `avatarmaxsize` = '20000',
        `ecdownloadpermissions` = '1',
        `supportpermissions` = '0',
        `bluntswhodlpermissions` = '7'
WHERE usergroupid=7;

MySQL Error  : Unknown column 'supportpermissions' in 'field list'
Error Number : 1054
Date        : Sunday, August 21st 2005 @ 01:14:57 PM
Script      : http://XXXXXXXXXXXXXX
Referrer    : http://XXXXXXXXXXXXXXXXXXXXXXXXx
IP Address  : XXXXXXXXXXX
Username    : XX
Classname    : vb_database


Roxie 08-21-2005 04:18 PM

Sorry, I meant to say I get that error when trying to save usergroup settings.

Mr Blunt 08-21-2005 06:09 PM

upload the bitfields file to your server's /includes/xml/

Roxie 08-21-2005 08:55 PM

That was already done. Any other ideas? Thanks. :)

Mr Blunt 08-22-2005 01:58 AM

I'm sorry Roxie,
I should have looked at your error closer the first time.

Take a look at the bottom of it ... I'll requote the relevant part of the error.
Quote:

`supportpermissions` = '0',
`bluntswhodlpermissions` = '7'
WHERE usergroupid=7;

MySQL Error : Unknown column 'supportpermissions' in 'field list'
Error Number : 1054
Date : Sunday, August 21st 2005 @ 01:14:57 PM
Script : http://XXXXXXXXXXXXXX
Referrer : http://XXXXXXXXXXXXXXXXXXXXXXXXx
IP Address : XXXXXXXXXXX
Username : XX
Classname : vb_database
Answer:
My hack pertains to the 'bluntswhodlpermissions' database column, not the other one above it which is the root of your trouble named supportpermissions.

I pulled a search and found a hack that uses that column.
https://vborg.vbsupport.ru/showthread.php?t=94023

I'll take a guess that you either need to upload HIS bitfield file to the server's XML folder or you need to reinstall HIS software from scratch if that database column doesn't exist. His installation script code DOES (at least attempt to) add that column the "first time" you install his 0.4 version.

If uploading their bitfield file isn't the trouble, try asking that hack's thread.
If they can't fix you up, then definately come back and I will.
;)

Roxie 08-22-2005 03:27 AM

Thanks so much! All is well now. :)

laycomp 08-24-2005 01:26 AM

[QUOTE=Mr Blunt]Made some real huge breakthroughs in my knowledge base.

:banana:

v-1.0.7 - August 20th, 2005:
  1. Added code to seek/transfer data from old whodownloaded hacks to new table.

Mr Blunt, does this option include the transfer of data from Commish's old hack? or is this option not yet available?

Mr Blunt 08-24-2005 05:05 AM

That feature "IS" the transfer of data from Commish's old hack.
And it's not an option because .... I just do it ... automatically.

Don't expect any stops during the install.
I seek the data, and if found, I transfer it.
...No matter how much data that may be.

Let me know how long it takes to tranfer your data please, laycomp.


All times are GMT. The time now is 04:58 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.01213 seconds
  • Memory Usage 1,763KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (3)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