coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: Owdy on March 09, 2005, 04:25:15 PM

Title: SMF integration - file uploads
Post by: Owdy on March 09, 2005, 04:25:15 PM
Integration works just fine, but only thing, users cant upload anything 'Sorry there is no album where you are allowed to upload files '. I have set permissions for every group to upload pictures. Any ideas?

QuoteUSER:
------------------
Array
(
    [ID] => c2cbd53f0e134e542936dff67985f08c
    [am] => 0
    [liv] => Array
        (
           
  • => 4
                [1] => 3
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [disk_max] => 1024
        [disk_min] => 1024
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 0
        [num_file_upload] => 5
        [num_URI_upload] => 3
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 1
        [has_admin_access] => 1
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [group_name] => Ylläpitäjä
        [upload_form_config] => 3
        [group_quota] => 1024
        [can_see_all_albums] => 1
        [group_id] => 1
        [groups] => Array
            (
               
  • => 1
                [1] => 4
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] =>
          SELECT variable, value
          FROM settings
        [2] =>
             SELECT mem.*, IFNULL(a.ID_ATTACH, 0) AS ID_ATTACH, a.filename, a.customAvatarDir
             FROM members AS mem
                LEFT JOIN attachments AS a ON (a.ID_MEMBER = 1)
             WHERE mem.ID_MEMBER = 1
             LIMIT 1
        [3] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg132_usergroups WHERE group_id in (1,4)
        [4] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [5] => DELETE FROM cpg132_banned WHERE expiry < 1110382532
        [6] => SELECT * FROM cpg132_banned WHERE ip_addr='194.251.240.117' OR ip_addr='194.251.240.117' OR user_id=1
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    Page generated in 0.078 seconds - 7 queries in 0.004 seconds - Album set :
Title: Re: SMF integration - file uploads
Post by: Nibbler on March 09, 2005, 04:32:44 PM
You need to set permissions on the albums too.
Title: Re: SMF integration - file uploads
Post by: Owdy on March 09, 2005, 04:33:27 PM
If i upload in admin mode:

QuoteNotice: Undefined offset: 2 in /www/asat/hoitajat/public_html/galleria/upload.php on line 250

Notice: Undefined offset: 3 in /www/asat/hoitajat/public_html/galleria/upload.php on line 256

Notice: Undefined offset: 4 in /www/asat/hoitajat/public_html/galleria/upload.php on line 256

url http://www.hoitajat.net/galleria/index.php
Title: Re: SMF integration - file uploads
Post by: Owdy on March 09, 2005, 04:34:35 PM
Quote from: Nibbler on March 09, 2005, 04:32:44 PM
You need to set permissions on the albums too.
Sorry beeing totally n00b, but where? I cant find that. It isnt in album list, not in conif... :(
Title: Re: SMF integration - file uploads
Post by: Nibbler on March 09, 2005, 04:37:24 PM
It's in album properties. Check the manual.
Title: Re: SMF integration - file uploads
Post by: Owdy on March 09, 2005, 05:52:50 PM
How about those Undefined offset: errors?
Title: Re: SMF integration - file uploads
Post by: Nibbler on March 09, 2005, 05:55:56 PM
They are normal. If you don't understand the notices disable them in config.
Title: Re: SMF integration - file uploads
Post by: Owdy on March 09, 2005, 06:02:58 PM
Normal error messages. Okay :D
Title: Re: SMF integration - file uploads
Post by: Owdy on March 09, 2005, 06:14:22 PM
Quote from: Nibbler on March 09, 2005, 04:37:24 PM
It's in album properties. Check the manual.
I'm sorry, but only thing i see there is Guest permissions. I want my forum users to upload images.
Title: Re: SMF integration - file uploads
Post by: Nibbler on March 09, 2005, 06:17:03 PM
Read it more carefully. Visitors means any user, registed or anonymous, who visits the album.
Title: Re: SMF integration - file uploads
Post by: Owdy on March 09, 2005, 06:18:04 PM
Aah, okay. Sorry.