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)
-   -   PM Attachments 3.5 (https://vborg.vbsupport.ru/showthread.php?t=95477)

FleaBag 10-27-2005 11:32 PM

Any idea if this is working with 3.5.0 Gold?

.Tim 10-27-2005 11:48 PM

Works for me:

https://vborg.vbsupport.ru/showpost....4&postcount=37

cbr929rrerion 10-28-2005 12:58 AM

Almost did not get it to work but I did.. Great tool !

Anyway to make the image show up in the private message rather than being a link..

?

davidw 10-28-2005 12:21 PM

I've not been able to get it to work yet. I've set it up 3 times already and I'm just going to wait until its "official" before I reattempt it.

General_ 10-28-2005 05:18 PM

It work's fine. Great Work!

Here is the German Translation for German Users... I postet it here, because of Kentaurus rules... :nervous:

redlabour 10-28-2005 08:07 PM

Quote:

Originally Posted by General_
It work's fine. Great Work!

Here is the German Translation for German Users... I postet it here, because of Kentaurus rules... :nervous:


Perfect Thanks @General_ and BluPhoenix ! ;)

But i get this at online.php if a User is attaching a File !

Kuimera 10-29-2005 07:48 AM

I get this when i click "Manage Attachments"

Code:

Invalid Post specified. If you followed a valid link, please notify the administrator
This the code i have, I cant find the $_pmt = 1;

Code:

$extraattachmentinfo = $db->query_first("
        SELECT userid,itemid,usedin
        FROM " . TABLE_PREFIX . "attachment AS attachment
        WHERE attachmentid = " . $vbulletin->GPC['attachmentid'] . ""
        );

if ($extraattachmentinfo['usedin'] == 'pmtextid')
{
        $pmUsers = $db->query_first("SELECT toUserArray FROM ".TABLE_PREFIX."pmtext WHERE pmtextid='".$extraattachmentinfo['itemid']."'");
        $toUserArray = unserialize($pmUsers['toUserArray']);       

        if ($toUserArray[$vbulletin->userinfo['userid']] != $vbulletin->userinfo['username'] && $extraattachmentinfo['userid'] != $vbulletin->userinfo['userid'])
        {
                print_no_permission();
        }

        // bad thing to do, modify the main array with an int so the & operations will be true, any suggestions to improve this? (no file mods allowed!!)
        $vbulletin->userinfo['permissions'] = $vbulletin->bf_ugp_forumpermissions['canview'] + $vbulletin->bf_ugp_forumpermissions['canviewthreads'] + $vbulletin->bf_ugp_forumpermissions['cangetattachment'] + $vbulletin->bf_ugp_forumpermissions['canviewothers'];

        $imodcache = array();
        $imodcache[0] = array("".$vbulletin->userinfo['userid']."" => 1, 'permissions' => $vbulletin->bf_misc_moderatorpermissions["canmoderateposts"]);
 
      }


VBUsers 10-29-2005 10:01 AM

ok i fixed my issue but now i try to load a regular small image and it takes too long. it doesnt load it can you please tell me why? i followed the steps thanks

Kuimera 10-30-2005 06:07 PM

*bump*

VBUsers 10-30-2005 06:44 PM

Quote:

Originally Posted by Kuimera
I get this when i click "Manage Attachments"

Code:

Invalid Post specified. If you followed a valid link, please notify the administrator
This the code i have, I cant find the $_pmt = 1;

Code:

$extraattachmentinfo = $db->query_first("
        SELECT userid,itemid,usedin
        FROM " . TABLE_PREFIX . "attachment AS attachment
        WHERE attachmentid = " . $vbulletin->GPC['attachmentid'] . ""
        );

if ($extraattachmentinfo['usedin'] == 'pmtextid')
{
        $pmUsers = $db->query_first("SELECT toUserArray FROM ".TABLE_PREFIX."pmtext WHERE pmtextid='".$extraattachmentinfo['itemid']."'");
        $toUserArray = unserialize($pmUsers['toUserArray']);       

        if ($toUserArray[$vbulletin->userinfo['userid']] != $vbulletin->userinfo['username'] && $extraattachmentinfo['userid'] != $vbulletin->userinfo['userid'])
        {
                print_no_permission();
        }

        // bad thing to do, modify the main array with an int so the & operations will be true, any suggestions to improve this? (no file mods allowed!!)
        $vbulletin->userinfo['permissions'] = $vbulletin->bf_ugp_forumpermissions['canview'] + $vbulletin->bf_ugp_forumpermissions['canviewthreads'] + $vbulletin->bf_ugp_forumpermissions['cangetattachment'] + $vbulletin->bf_ugp_forumpermissions['canviewothers'];

        $imodcache = array();
        $imodcache[0] = array("".$vbulletin->userinfo['userid']."" => 1, 'permissions' => $vbulletin->bf_misc_moderatorpermissions["canmoderateposts"]);
 
      }


the code your looking for is at the top of the template you need to look in
about 5 or 6th line i think


All times are GMT. The time now is 12:39 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.01256 seconds
  • Memory Usage 1,747KB
  • 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_code_printable
  • (2)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