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)

Dadoo 12-19-2010 09:13 PM

For those who still wants to use this product under vBulletin 3.8.6, i found a way :-)

For the record, these are my specs :

- vBulletin 3.8.6
- Who Downloaded This Attachment v1.1.1 for vBulletin 3.8.x
- Custom style

First of all, thanks to Christon26 for his original text (msg #36) i modified it in order to works with vB 3.8.6

Quote:

Originally Posted by christon26 (Post 1932749)

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 -> Your Style Options -> Modify User Option Templates -> postbit_attachment

Find :

PHP Code:

<phrase 1="$attachment[counter]">$vbphrase[x_views2]</phrase


After, add :


PHP Code:

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

You have to specify the usergroup you want to authorize to see the link appear.
Change 6 by any usergroup. If you want to add more than one group, add a comma after each ID.
Example : <if condition="is_member_of($bbuserinfo, 1, 2, 3, 4, 5, 6)

Close this template and open the template : modifyattachmentsbit

Find :

PHP Code:

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

After, add :

PHP Code:

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

Go to Usergroup manager -> Your usergroup -> Set Can View Who Downloaded permission on "NO", then go again in your usergroup but, this time, set to "YES"

That's it !

REMEMBER, this product only show downloads made AFTER installation of this product.

danyxxx 08-01-2011 03:01 PM

Fix this plugin for 3.8.6 patch level 1 to because doesn't work , nothing appear but I don't have any error :)
It's installed and it's active to but no difference in postbit at attachments :)
He doesn't work simple as that .
Thanks .

christon26 08-01-2011 07:31 PM

I still have this working perfectly with my small code change for the UserCP attachments list posted above on vBulletin version 3.8.7 Patch Level 2 :)

Lissa

christon26 08-01-2011 07:34 PM

Quote:

Originally Posted by danyxxx (Post 2227711)
Fix this plugin for 3.8.6 patch level 1 to because doesn't work , nothing appear but I don't have any error :)
It's installed and it's active to but no difference in postbit at attachments :)
He doesn't work simple as that .
Thanks .

You have to edit each usergroup to allow them to see the link and stats.

Under Attachment Permissions: Can View Who Downloaded [Yes/No]

Hope that helps

Lissa

1F42 10-24-2012 09:02 AM

Got this working thanks to the above posts, but for some strange reason it has disappeared from the options overnight??? I was going to remove some forum id's but now I can't, it still works but I can't edit it now.

Is it supposed to be in the settinggroup table as it is not there? I look at the product code next to see If I can fix but any help would be good.

hidden_ra 09-10-2013 07:39 PM

I installed the add my site.
but the addition of add-ons 'Who downloaded' Letter does not
What is the reason? Can you give me a hand

What is the reason for not working on my short, this plug-in?


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.01196 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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