SMF integration - file uploads SMF integration - file uploads
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

SMF integration - file uploads

Started by Owdy, March 09, 2005, 04:25:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Owdy

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 :

Nibbler

You need to set permissions on the albums too.

Owdy

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


Nibbler

It's in album properties. Check the manual.


Nibbler

They are normal. If you don't understand the notices disable them in config.



Nibbler

Read it more carefully. Visitors means any user, registed or anonymous, who visits the album.