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)

tlwwolfseye 10-02-2009 01:30 PM

Please check my Posting in this thread:

https://vborg.vbsupport.ru/showthrea...11#post1893711

Either that or this Mod creates a Script, linking to a Site called "COOLCHASER.COM". Can someone please confirm that one of those 2 Scripts do that ?

Mr. W 10-03-2009 03:31 PM

_____It seems to work under 3.8.4 . However, at first it didn't. Here's what I did:

_____When I first installed it, I didn't see the link, despite being the Super Administrator. However, I can't speak for most people but I had added myself to additional user groups for the sake of adding additional rank images to myself. Unfortunately, those additional user groups didn't have the permission to view "Who Downloaded?" so I didn't see the link.

_____So then I went to each of those additional user groups and added the permission to see the "Who Downloaded?" link. Therefore it would seem that if a user is going to be able to see the link, he needs to only belong to user groups that have that permission. If he belongs to even one user group that doesn't, he won't be able to see it.

_____Therefore, if possible I have a few suggestions for the next version. They are:

1) Super Administrators (not regular Administrators) can always see the link no matter what.

2) Let there be an option or a way to have the permissions work the way they seem to work elsewhere in VBulletin. That is, if a user belongs to a user group that has a "Yes" permission, that will override any other user groups he's in, that has a "No" permission.

Note:

_____I should note that I do prefer the other method, where one "No" permission will over ride any "Yes" permissions. However, that is not the way the rest of VBulletin seems to work.

_____Here's an example: Suppose you have a Super Moderator, and then you add him to the Registered Users group as an additional user group. If you do so, that Super Moderator wouldn't lose any permissions at all. In fact, he might gain a permission or two if there happens to be anything Registered Users can do, that Super Mods ordinarily can't. Yet he'd still be able to do all of the Super Mod stuff. This is despite the fact that there are many things that Super Mods can do, that ordinary Registered Users can't. This is because "Yes" overrides "No."

_____However, with this modification, it seems that "No" overrides "Yes." I had to point out this particular bit of confusion, since it might be the cause of problems that others have been experiencing.

NAZIA 12-02-2009 12:00 AM

1 Attachment(s)
Bug found in this plugin, for VB 3.8.2

Attachment 107046


After installing this plugin. The Attachment showing in usercp are unavailable...

Attachment 107047

I also checked using default template...
May you fix this error.:confused:

christon26 12-18-2009 02:18 AM

Quote:

Originally Posted by NAZIA (Post 1923761)
Bug found in this plugin, for VB 3.8.2

Attachment 107046


After installing this plugin. The Attachment showing in usercp are unavailable...

Attachment 107047

I also checked using default template...
May you fix this error.:confused:

I also have this bug on 3.8.4, any chance of a fix? Cos otherwise it works brilliantly LOL

christon26 12-18-2009 06:52 AM

After much looking through both the vb templates and the product xml upload, I deleted this section under the WD: Global_Start section (approx line 206 of the xml file) and my attachments list in UserCP showed up again:

PHP Code:

    if (isset($vbulletin->templatecache['modifyattachmentsbit']))
    {
        
$find_string compile_template('<phrase 1="$post[counter]">$vbphrase[x_downloads]</phrase>');
        
$add_string compile_template('<if condition="$post[\'counter\'] > 0"> - <a href="#" onclick="whodownloaded($post[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if>');
        
$vbulletin->templatecache['modifyattachmentsbit'] = str_replace($find_string$find_string $add_string$vbulletin->templatecache['headinclude']);
    } 

Unfortunately I am not knowledgeable enough to know exactly where the conflict is...only that there is one lol I assume the above section is intended to show maybe the link to the who downloaded popup list...but again I don't know lol

All I know is deleting that section takes away the bug and so far doesn't appear to damage anything LOL

christon26 12-18-2009 07:20 AM

Ok, until the developer of this mod comes back with a fix...anyone having the issue of the attachments list disappearing in the UserCP and still wants the who downloaded link to appear where it was apparently intended to be inserted lol ...

In product-psi_whodownloaded.xml at approx line 206 find and delete:

PHP Code:

    if (isset($vbulletin->templatecache['modifyattachmentsbit']))
    {
        
$find_string compile_template('<phrase 1="$post[counter]">$vbphrase[x_downloads]</phrase>');
        
$add_string compile_template('<if condition="$post[\'counter\'] > 0"> - <a href="#" onclick="whodownloaded($post[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if>');
        
$vbulletin->templatecache['modifyattachmentsbit'] = str_replace($find_string$find_string $add_string$vbulletin->templatecache['headinclude']);
    } 

Save and upload through the Add/Import Products with Allow Overwrite set to yes

Then to have the link appear in the attachments list, in vb admin go to Style Manager>>All Style Options>>Modify User Option Templates>>modifyattachmentsbit

Find:

PHP Code:

        <div class="smallfont">$post[size], <phrase 1="$post[counter]">$vbphrase[x_downloads]</phrase

Add after:

PHP Code:

<if condition="$post['counter'] > 0"> - <a href="#" onclick="whodownloaded($post[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if> 

I think possibly there was a conflict with the headinclude part as I saw that was repeated over and over again in the source code where the attachments list *should* have been with this bug...hope this helps a few ppl :)

I should note that I use 3.8.4 and this works for me to fix the issue for now, any other version try at own risk....make sure to backup first though LOL

winlya 12-30-2009 11:53 PM

hey, Psionic Vision
I love this hack. Any update for vb 4.0 ?

dede1 02-23-2010 05:56 AM

Hello,

update for vb 4.0 ?

KURTZ 06-01-2010 11:33 AM

Quote:

Originally Posted by winlya (Post 1942998)
hey, Psionic Vision
I love this hack. Any update for vb 4.0 ?

+1 :)

mohammadxxx 11-04-2010 07:18 AM

1 Attachment(s)
hi

I've installed this hack, but a link to see the number of downloaders will not seen !!??

You Can View My Problem On Attach Picture .


All times are GMT. The time now is 05:13 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.01230 seconds
  • Memory Usage 1,764KB
  • 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
  • (4)bbcode_php_printable
  • (2)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