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.

laycomp 08-24-2005 01:10 PM

Because of large attachment db file we'll first need to take measures in case we run into problems but I'll let you know ...I hope to be able to install some time next week. Thank you.

Mr Blunt 08-24-2005 01:30 PM

Quote:

Originally Posted by laycomp
Because of large attachment db file we'll first need to take measures in case we run into problems but I'll let you know ...I hope to be able to install some time next week. Thank you.

Because of...??
Rule #1 of vbulletin is:
ALWAYS make a backup of a database before modifying it.
...No matter how small or large the site is.
.....ALWAYS!!!
:D
As long as you have a backup, reverting to it is simple.
Simple as that.


But I STILL do not recommend attempting this on a live site yet.
At this point, in my estimation, you should be testing with a test site.
This doesn't go for "my hack" ... it goes for vbulletin in general.


If you MUST play with a live site, then I STRONGLY recommend waiting until vbulletin RC3 comes out .... and my subsequent release which will follow it .... so you will be able to read my product's onscreen installation messages!!! Currently this is NOT POSSIBLE but Mike from Jelsoft was kind enough to address this issue and I'll need to see his new fix before I can recode my display messages.

laycomp 08-25-2005 03:56 AM

hehe... you are right about that!

thanks for the "backup" "backup" and "backup" tips

I'd still like to try, this way it'll get me ready for rc3 and your release.

Anyone else trying this? I don't see many comments from you other folks here.

Allan 10-16-2005 07:47 PM

work with 3.5 Gold ?

Mr Blunt 10-16-2005 09:38 PM

Far as I know ... Yes .... but hold off.
I will release next version within the next 7 days.
I promise!!

Here's just a few things you can look forward to
  • Brand new AdminCP Nav Catagory with a few hotlinks.
  • Brand new Admin Search capabilities.
  • Brand new editing /deleting capabilities for each stored download.
  • Shows total stats for your search.
  • Sort by any column (ascending or descending).
  • Pick number of matches to show per page.
  • Go to 1st, previous, next, or last page with one click.
  • Hover userid and fileid numbers to see the stored username and filename.
  • Click download's id number to edit that entry.
  • Checkbox column for mass deleting.
  • Ability to import at your own discretion at any time you wish (not that this is a good thing since it's only meant to be a one time shot).
Take note that ALL of that refers to the admin side.
I don't think I've changed the normal interface (in forum posts).

Far as I can tell ... it all works.
But it still needs tweaking.

And I hate releasing too many "different versions" because unfortunately I usually change way too much inbetween versions ... so people give up on trying to follow my code when I release too many versions .... therefore I'm trying hard to not let that happen to this and/or any other products of mine.


All I can say is I learned a buttload in the last couple months and all of my hacks are in the process of being updated (whodownloaded is top priority for me).

Allan 10-16-2005 09:44 PM

cool ;)

Thank you and courage

Mr Blunt 10-16-2005 09:50 PM

Allan,

Can you post the last language pack for this?
I'd really like to see one if that is possible.

I think I've doubled the phrases and I'd like to make it as easy for you folks as I can.

Allan 10-17-2005 11:33 AM

I did not translate the current version (rc2), to speak to you about what version ?, gold ?

Mr Blunt 10-18-2005 07:30 PM

Quote:

Originally Posted by Allan
I did not translate the current version (rc2), to speak to you about what version ?, gold ?

Currently all my phrases are inside my product XML and install with my product.
I only know English, so that's all you will ever get from me.

If you want the next version to "not do this", you have to tell me how you want my files formatted.

Do you want the phrases inside the product AND a seperate language pack?
Do you want them in ONLY a language pack?
Do you want them ONLY in the product XML?

I only asked for a past example because I learn best by examples.

I'm asking because I read a request here at vb.org somewhere (in which Allan posted he wanted to see this happen) that asked authors give a seperate language pack with their products, but it wasn't clear if they should be completely left out of the product.xml file.

If I understand the product system correctly (that means please correct me if I'm wrong), I think I "need" to have my phrases inside the product.xml so they install in the "master language" ... in which case a seperate English language pack would be redundant and even confusing since english forums wouldn't need the file.

Help??

Allan 10-18-2005 08:20 PM

ONLY a language pack :)

Mr Blunt 10-18-2005 08:34 PM

Then save me time and show me an example of a product that does this. Either a modified old version of mine ... or some completely different "simple" product ... I don't care which.

Please take into account that I DO NOT want my fellow native english speakers to be forced into installing this "seperate pack" themselves .... meaning the "example" must show me how the product installation script accomplishes this task automatically (assuming the user uploaded the XML of course).

Either post it, link it, or send it to my email.
mr_blunt@sbcglobal.net

Mr Blunt 10-23-2005 04:22 PM

sigh....

I have what "should be" a finished product but I can't even test it.

I've been in a fight with my hosting company for the last 24 hours and can't even test it.

I've been awake for the last 36 hours and I won't be able to go to sleep until after game 2 of the world series as company is coming over soon.

My schedule for Monday is booked solid.

The last version I tested with worked great. I made some more subtle untested changes in the last day though. I'd rather not release still, but if someone has a deadline ..... SAY SO and I will accomidate you and post what I've got right now which will "probably" work.

So you see what I mean, here's a couple of the last screenshots I saved.
I minimally tested each of the different types of search criteria with no hitches so far.

I'm very sorry this project is taking me so long but I see light at the end of the tunnel.

P.S. - I still haven't had time to do any searching about the language pack thing so I can now guarantee it will NOT be in this next version and will have to wait.

ombossman 10-31-2005 02:49 PM

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 635

what is problem i use vb 3.5.0 version

Mr Blunt 11-01-2005 09:17 AM

It's inexcusable to break promises, but that's the way it went.

It was a choice between THAT.
... or fix all my serious bugs (which should all be dead now).
... or release bad software (which I HATE to do).
... for something which I haven't made a dime off of as of yet (would be nice but I know how it goes).

It's not often I get to spend October celebrating my White Sox and their awesome season MUCH LESS do I get to enjoy a week of celebrations after they win it all. I was even one of those 1.7 million people who attended that tickertape parade through downtown Chicago!! Somehow I magically landed 100 foot from the stage at Wacker & LaSalle.

... Something I'll never forget for the rest of my life!!
... What would you have done, LOL!!

Oh well ... This product is pretty much done.
Might need a couple small tweaks, but nothing major.
Sorry it took so long, but hopefully it's worth it.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!! Please post results !!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Allan 11-01-2005 09:51 AM

I occupy myself of the French translation ;)

ombossman 11-01-2005 09:58 AM

Quote:

Originally Posted by Mr Blunt
It's inexcusable to break promises, but that's the way it went.

It was a choice between THAT.
... or fix all my serious bugs (which should all be dead now).
... or release bad software (which I HATE to do).
... for something which I haven't made a dime off of as of yet (would be nice but I know how it goes).

It's not often I get to spend October celebrating my White Sox and their awesome season MUCH LESS do I get to enjoy a week of celebrations after they win it all. I was even one of those 1.7 million people who attended that tickertape parade through downtown Chicago!! Somehow I magically landed 100 foot from the stage at Wacker & LaSalle.

... Something I'll never forget for the rest of my life!!
... What would you have done, LOL!!

Oh well ... This product is pretty much done.
Might need a couple small tweaks, but nothing major.
Sorry it took so long, but hopefully it's worth it.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!! Please post results !!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

thanks for interesed today imported whodownloaded_ip-v110[vb350] working well but another question style_blunts_whodl_ip.xml howto uplaod or where upload i dont know

Mr Blunt 11-01-2005 10:17 AM

Quote:

Originally Posted by Allan
I occupy myself of the French translation ;)

Thank You Allan!!

You (and/or anyone) can still save me a ton of time if you can show me how you would set up the "whole zip file" (any/all files) to be more language compatible.

One problem area is messages that get used during installation.

Another problem area is messages that get used in Admin File during table deletion (kill) since that happens after product's phrases are deleted.

And then there's still the question of where, when, and how to install all the phrases which I believe NEED to get installed into the "Master Language" before we can overlap those phrases with "customized language packs"??

And then I suppose I need a kind soul from the "right to left" language world to tell me if I have any serious mistakes in the display department (I did try to do a few things to help them already).


One (new or existing) example that addresses all/any of these issues/questions would teach me real quick if anyone can help point me to it.

Mr Blunt 11-01-2005 10:43 AM

Quote:

Originally Posted by ombossman
thanks for interesed today imported whodownloaded_ip-v110[vb350] working well but another question style_blunts_whodl_ip.xml howto uplaod or where upload i dont know

Open AdminCP
Click Styles & Templates
Click Download / Upload Styles

- Now the important part -
Scroll down to the "Browse" button and find Style File.
Pick the Parent Style in the "Merge Into Style" dropdown box!!
(sidenote: DO NOT OVERWRITE THE "MASTER STYLE")
Scroll to bottom and Click Import.

If you have multiple parent styles, you have to do this for each parent.
You do NOT have to merge this into any "CHILD" styles of those parent styles.
(That's the point having a parent style).


BUT ... Most of you should manually edit templates instead of the above since I'm sure most of you run a bunch of other products which might also edit these same templates!!

If you want to do that ...

Open AdminCP
Click Styles & Templates
Click Style Manager
Click the EXPAND (<< >>) arrow next to parent style
Click the EXPAND (<< >>) arrow inside the subwindow
Find appropriate template and Double Click it.
Find & add the code for the button to each of those 4 templates as listed in first post.
Don't forget to click save after editing each template.


Let me know how it goes!!

belinea 11-05-2005 03:35 PM

The "Blunt's Whodownloaded_IP Quick Search Engine" is AMAZING

Mr Blunt 11-05-2005 07:35 PM

Thank you Belinea.

If anyone notices anything wrong or anything weird or any strange behavior, please speak up because I've finally stopped tweaking this hack ... and my forum is going through a slow period (meaning my members aren't downloading anything) ... so if anything is wrong I will need to be made aware of it so I can look into fixing it.

Can I finally remove the Beta Tag???
I really wish some kind soul would double check my work.

ombossman 11-09-2005 12:46 PM

this hack 3.5.1 working ?

Mr Blunt 11-09-2005 04:04 PM

Quote:

Originally Posted by ombossman
this hack 3.5.1 working ?

Good question.
My real forum and test forum are both using 3.5.1
But I don't have much traffic so it's hard for me to notice.

Far as I can tell, whodownloaded_ip-v110 should work for 3.5.1 and 3.5.0 and probably even 350rc4 and 350rc3 which is when the product system was introduced I think.

v110 was built upon vbulletin 350, so I'm almost certain it's good for that.
After I upgraded to vb351, I ran through all my tests once more (which included uninstalling, installing, and importing a few times) and I found no errors or strange behaviour.

Trouble is I'm only one man.
This is a large script.
I'm human.
Therefore I expect there to still be a mistake or 3.
But if they exist, I can't find them!!!

This is why I am begging for a little help now.
I really need someone to double check me.
The script needs a fresh set of eyes to look at it.

ombossman 11-10-2005 12:50 PM

[QUOTE=Mr Blunt]Good question.

Thanks for reply and explain because i upload my forum have some bugs

Mr Blunt 11-10-2005 01:06 PM

Chances are good that I can help you if you can be a little more specific about what type of problems your having.

If you think the problems are due to my script, continue posting details right here so everyone can read it and learn from it.

If you think the problems are due to something else, PM me with some details and I'll try to help or at least try to guide you in a direction.

ombossman 11-11-2005 09:07 AM

Quote:

Originally Posted by Mr Blunt
Chances are good that I can help you if you can be a little more specific about what type of problems your having.

If you think the problems are due to my script, continue posting details right here so everyone can read it and learn from it.

If you think the problems are due to something else, PM me with some details and I'll try to help or at least try to guide you in a direction.

thanks for interested check your pm box i send my site details
tnx adwance sorry my bad english

Jiggles 11-11-2005 09:10 AM

Nice

Mr Blunt 11-11-2005 03:02 PM

Thanks Jiggles!!

And 2 pm's back at you, ombossman!!
(My first guess was incorrect, so read second one)

Looks like you just need to delete one old bitfield file (includes/xml/bitfield_profileviews.xml) which is still associated with a product you previously uninstalled from your server. That is the cause of your database errors when editing usergroups.

ombossman 11-14-2005 07:46 AM

Quote:

Originally Posted by Mr Blunt
Thanks Jiggles!!

And 2 pm's back at you, ombossman!!
(My first guess was incorrect, so read second one)

Looks like you just need to delete one old bitfield file (includes/xml/bitfield_profileviews.xml) which is still associated with a product you previously uninstalled from your server. That is the cause of your database errors when editing usergroups.


thanks adwance my problem solve 1000+million tnx again realy trust man

mhammed 12-08-2005 09:29 PM

when in import product i have this

Warning: Invalid argument supplied for foreach() in /admincp/plugin.php(1239) : eval()'d code on line 17

any idea?

Mr Blunt 12-09-2005 03:41 AM

Quote:

Originally Posted by mhammed
when in import product i have this


Warning: Invalid argument supplied for foreach() in /admincp/plugin.php(1239) : eval()'d code on line 17

any idea?

It's failing on line 17 of install code 1.0.6
This is where it adds values to each of the new usergroup permission's fields.

Only thing that I can think of is that maybe you don't have permission to "alter database tables" in SQL, meaning the column isn't getting created. You should be able to check this if you can log into phpmyadmin.

If your not the main administrator who installed the forum, please ask him to verify that you have permission to alter tables AND please ask him to try installing the product for you.

If you are the only administrator, and you can't solve this, then PM me with login details for your Forum's AdminCP and your Server's Control Panel (like phpmyadmin).


If you figure out what the problem was, please reply so I'll know the source of that problem in the future.


All times are GMT. The time now is 04:37 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.01422 seconds
  • Memory Usage 1,873KB
  • 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
  • (12)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
  • (40)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