Seite 1 von 2

[3.3] Galerie mit Bilderwettbewerb

Verfasst: 26.10.2020 01:30
von QuadkinderRheinMain
Hi und guten Abend,

Ich würde jetzt ungern sagen das ich am verzweifeln bin,.....aber ich bin es.

SuFu bringt nur halbe Sachen,....wie dieses hier:
viewtopic.php?f=149&t=244652&p=1404764& ... e#p1404764
Na super,....Dateien anpassen dann geht's??? Welche Datei,...wie genau?
Habe versucht diese Galerie Extensions zu installieren, lauter Fehlermeldungen.

Etwas anderes wie das hier oben Beschriebene habe ich leider durch die SuFu nicht gefunden.

Also, steinigt mich, ich kann mir nicht vorstellen das ich der einzige bin der hier nachfragt.

Gibt es eine Galerie? Am besten mit Wettbewerb wo die User Bilder bewerten können und nach einer voreingestellten Zeit der Gewinner fest steht?

Ich weiß das es so etwas mal gab, aber leider bei einem Forenanbieter der dicht gemacht hat.

Danke und Gute Nacht.

Re: [3.3] Galerie mit Bilderwettbewerb

Verfasst: 28.10.2020 14:37
von 69bruno
Na ja, was es mal bei einem anderen Forenanbieter gegeben hat sollte nicht das Maß sein. Insbesondere nicht, wenn der dicht gemacht hat :D .

Weniger frustriert als Du frage ich hier aber auch mal nach wie die Anpassungen der .yml aussehen müssten.
Ich habe anderswo oft von einer phpBBGallery in Version 3.2.x gelesen, finde aber keine download-Möglichkeit dazu. Also würde ich gerne die .yml-Dateien anpassen und die Vorgängerversion installieren.

Re: [3.3] Galerie mit Bilderwettbewerb

Verfasst: 28.10.2020 15:19
von franki
phpbbgallery\acpcleanup\config\services.yml

Code: Alles auswählen

parameters:
    tables.phpbbgallery.albums: %core.table_prefix%gallery_albums
    tables.phpbbgallery.images: %core.table_prefix%gallery_images

services:
    phpbbgallery.acpcleanup.cleanup:
        class: phpbbgallery\acpcleanup\cleanup
        arguments:
            - '@dbal.conn'
            - '@phpbbgallery.core.file.tool'
            - '@user'
            - '@language'
            - '@phpbbgallery.core.block'
            - '@phpbbgallery.core.album'
            - '@phpbbgallery.core.comment'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.log'
            - '@phpbbgallery.core.moderate'
            - '%tables.phpbbgallery.albums%'
            - '%tables.phpbbgallery.images%'
phpbbgallery\core\config\routing.yml

Code: Alles auswählen

###############################
#### Gallery index routes #####
###############################
phpbbgallery_core_index:
    path: /gallery
    defaults: { _controller: phpbbgallery.core.controller.index:base }
phpbbgallery_core_index_slash:
    path: /gallery/
    defaults: { _controller: phpbbgallery.core.controller.index:base }
phpbbgallery_core_personal:
    path: /gallery/users
    defaults: { _controller: phpbbgallery.core.controller.index:personal, page: 1 }
phpbbgallery_core_personal_page:
    path: /gallery/users/{page}
    defaults: { _controller: phpbbgallery.core.controller.index:personal }
    requirements:
        page: \d+

##################################
#### Album controller routes #####
##################################
phpbbgallery_core_album:
    path: /gallery/album/{album_id}
    defaults: { _controller: phpbbgallery.core.controller.album:base, page: 1 }
    requirements:
        album_id: \d+

phpbbgallery_core_album_page:
    path: /gallery/album/{album_id}/page/{page}
    defaults: { _controller: phpbbgallery.core.controller.album:base }
    requirements:
        album_id: \d+
        page: \d+
phpbbgallery_core_album_upload:
    path: /gallery/album/{album_id}/upload
    defaults: { _controller: phpbbgallery.core.controller.upload:main }
    requirements:
        album_id: \d+
phpbbgallery_core_album_watch:
    path: /gallery/album/{album_id}/watch
    defaults: { _controller: phpbbgallery.core.controller.album:watch }
    requirements:
        album_id: \d+

##################################
#### Image controller routes #####
##################################
phpbbgallery_core_image:
    path: /gallery/image/{image_id}
    defaults: { _controller: phpbbgallery.core.controller.image:base, page: 1 }
    requirements:
        image_id: \d+
phpbbgallery_core_image_page:
    path: /gallery/image/{image_id}/{page}
    defaults: { _controller: phpbbgallery.core.controller.image:base }
    requirements:
        image_id: \d+
        page: \d+
phpbbgallery_core_image_delete:
    path: /gallery/image/{image_id}/delete
    defaults: { _controller: phpbbgallery.core.controller.image:delete }
    requirements:
        image_id: \d+
phpbbgallery_core_image_edit:
    path: /gallery/image/{image_id}/edit
    defaults: { _controller: phpbbgallery.core.controller.image:edit }
    requirements:
        image_id: \d+
phpbbgallery_core_image_report:
    path: /gallery/image/{image_id}/report
    defaults: { _controller: phpbbgallery.core.controller.image:report }
    requirements:
        image_id: \d+
phpbbgallery_core_comment_add:
    path: /gallery/comment/{image_id}/add/{comment_id}
    defaults: { _controller: phpbbgallery.core.controller.comment:add }
    requirements:
        image_id: \d+
        comment_id: \d+
phpbbgallery_core_comment_edit:
    path: /gallery/comment/{image_id}/edit/{comment_id}
    defaults: { _controller: phpbbgallery.core.controller.comment:edit }
    requirements:
        image_id: \d+
        comment_id: \d+
phpbbgallery_core_comment_delete:
    path: /gallery/comment/{image_id}/delete/{comment_id}
    defaults: { _controller: phpbbgallery.core.controller.comment:delete }
    requirements:
        image_id: \d+
        comment_id: \d+
phpbbgallery_core_image_rate:
    path: /gallery/comment/{image_id}/rate
    defaults: { _controller: phpbbgallery.core.controller.comment:rate }
    requirements:
        image_id: \d+

############################
#### Image file routes #####
############################
phpbbgallery_core_image_file_source:
    path: /gallery/image/{image_id}/source
    defaults: { _controller: phpbbgallery.core.controller.file:source }
    requirements:
        image_id: \d+
phpbbgallery_core_image_file_medium:
    path: /gallery/image/{image_id}/medium
    defaults: { _controller: phpbbgallery.core.controller.file:medium }
    requirements:
        image_id: \d+
phpbbgallery_core_image_file_mini:
    path: /gallery/image/{image_id}/mini
    defaults: { _controller: phpbbgallery.core.controller.file:mini }
    requirements:
        image_id: \d+

###################################
#### Moderate overview routes #####
###################################
phpbbgallery_core_moderate:
    path: /gallery/moderate
    defaults: { _controller: phpbbgallery.core.controller.moderate:base, album_id: 0 }
phpbbgallery_core_moderate_queue_approve:
    path: /gallery/moderate/approve
    defaults: { _controller: phpbbgallery.core.controller.moderate:queue_approve, page: 1, album_id: 0 }
phpbbgallery_core_moderate_queue_approve_page:
    path: /gallery/moderate/approve/{page}
    defaults: { _controller: phpbbgallery.core.controller.moderate:queue_approve, album_id: 0}
    requirements:
        page: \d+
phpbbgallery_core_moderate_action_log:
    path: /gallery/moderate/actions
    defaults: { _controller: phpbbgallery.core.controller.moderate:action_log, page: 1, album_id: 0 }
phpbbgallery_core_moderate_action_log_page:
    path: /gallery/moderate/actions/{page}
    defaults: { _controller: phpbbgallery.core.controller.moderate:action_log, album_id: 0}
    requirements:
        page: \d+
phpbbgallery_core_moderate_reports:
    path: /gallery/moderate/reports
    defaults: { _controller: phpbbgallery.core.controller.moderate:reports, page: 1, album_id: 0, status: 1 }
phpbbgallery_core_moderate_reports_page:
    path: /gallery/moderate/reports/{page}
    defaults: { _controller: phpbbgallery.core.controller.moderate:reports, album_id: 0, status: 1}
    requirements:
        page: \d+
phpbbgallery_core_moderate_reports_closed:
    path: /gallery/moderate/reports_closed
    defaults: { _controller: phpbbgallery.core.controller.moderate:reports, page: 1, album_id: 0, status: 0 }
phpbbgallery_core_moderate_reports_closed_page:
    path: /gallery/moderate/reports_closed/{page}
    defaults: { _controller: phpbbgallery.core.controller.moderate:reports, album_id: 0, status: 0}
    requirements:
        page: \d+

################################
#### Moderate album routes #####
################################
phpbbgallery_core_moderate_album:
    path: /gallery/moderate/album/{album_id}
    defaults: { _controller: phpbbgallery.core.controller.moderate:base }
    requirements:
        album_id: \d+
phpbbgallery_core_moderate_queue_approve_album:
    path: /gallery/moderate/album/{album_id}/approve
    defaults: { _controller: phpbbgallery.core.controller.moderate:queue_approve, page: 1 }
    requirements:
        album_id: \d+
phpbbgallery_core_moderate_queue_approve_album_page:
    path: /gallery/moderate/album/{album_id}/approve/{page}
    defaults: { _controller: phpbbgallery.core.controller.moderate:queue_approve}
    requirements:
        album_id: \d+
        page: \d+
phpbbgallery_core_moderate_action_log_album:
    path: /gallery/moderate/album/{album_id}/actions
    defaults: { _controller: phpbbgallery.core.controller.moderate:action_log, page: 1 }
    requirements:
        album_id: \d+
phpbbgallery_core_moderate_action_log_album_page:
    path: /gallery/moderate/album/{album_id}/actions/{page}
    defaults: { _controller: phpbbgallery.core.controller.moderate:action_log}
    requirements:
        album_id: \d+
        page: \d+
phpbbgallery_core_moderate_reports_album:
    path: /gallery/moderate/album/{album_id}/reports
    defaults: { _controller: phpbbgallery.core.controller.moderate:reports, page: 1, status: 1 }
    requirements:
        album_id: \d+
phpbbgallery_core_moderate_reports_album_page:
    path: /gallery/moderate/album/{album_id}/reports/{page}
    defaults: { _controller: phpbbgallery.core.controller.moderate:reports, status: 1}
    requirements:
        album_id: \d+
        page: \d+
phpbbgallery_core_moderate_reports_closed_album:
    path: /gallery/moderate/album/{album_id}/reports_closed
    defaults: { _controller: phpbbgallery.core.controller.moderate:reports, page: 1, status: 0 }
    requirements:
        album_id: \d+
phpbbgallery_core_moderate_reports_closed_album_page:
    path: /gallery/moderate/album/{album_id}/reports_closed/{page}
    defaults: { _controller: phpbbgallery.core.controller.moderate:reports, status: 0}
    requirements:
        album_id: \d+
        page: \d+
phpbbgallery_core_moderate_view:
    path: /gallery/moderate/album/{album_id}/overview
    defaults: { _controller: phpbbgallery.core.controller.moderate:album_overview, page: 1 }
    requirements:
        album_id: \d+
phpbbgallery_core_moderate_view_page:
    path: /gallery/moderate/album/{album_id}/overview/{page}
    defaults: { _controller: phpbbgallery.core.controller.moderate:album_overview }
    requirements:
        album_id: \d+
        page: \d+

################################
#### Moderate image routes #####
################################
phpbbgallery_core_moderate_image:
    path: /gallery/moderate/image/{image_id}
    defaults: { _controller: phpbbgallery.core.controller.moderate:image }
    requirements:
        image_id: \d+
phpbbgallery_core_moderate_image_approve:
    path: /gallery/moderate/image/{image_id}/approve
    defaults: { _controller: phpbbgallery.core.controller.moderate:approve }
    requirements:
        image_id: \d+
phpbbgallery_core_moderate_image_unapprove:
    path: /gallery/moderate/image/{image_id}/unapprove
    defaults: { _controller: phpbbgallery.core.controller.moderate:unapprove }
    requirements:
        image_id: \d+
phpbbgallery_core_moderate_image_move:
    path: /gallery/moderate/image/{image_id}/move
    defaults: { _controller: phpbbgallery.core.controller.moderate:move }
    requirements:
        image_id: \d+
phpbbgallery_core_moderate_image_lock:
    path: /gallery/moderate/image/{image_id}/lock
    defaults: { _controller: phpbbgallery.core.controller.moderate:lock }
    requirements:
        image_id: \d+

########################
#### Search routes #####
########################
phpbbgallery_core_search_random:
    path: /gallery/search/random
    defaults: { _controller: phpbbgallery.core.controller.search:random }
phpbbgallery_core_search_recent:
    path: /gallery/search/recent
    defaults: { _controller: phpbbgallery.core.controller.search:recent, page: 1 }
phpbbgallery_core_search_recent_page:
    path: /gallery/search/recent/{page}
    defaults: { _controller: phpbbgallery.core.controller.search:recent }
    requirements:
        page: \d+
phpbbgallery_core_search_commented:
    path: /gallery/search/commented
    defaults: { _controller: phpbbgallery.core.controller.search:recent_comments, page: 1 }
phpbbgallery_core_search_commented_page:
    path: /gallery/search/commented/{page}
    defaults: { _controller: phpbbgallery.core.controller.search:recent_comments }
    requirements:
        page: \d+
phpbbgallery_core_search_egosearch:
    path: /gallery/search/self
    defaults: { _controller: phpbbgallery.core.controller.search:ego_search, page: 1 }
phpbbgallery_core_search_egosearch_page:
    path: /gallery/search/self/{page}
    defaults: { _controller: phpbbgallery.core.controller.search:ego_search }
    requirements:
        page: \d+
phpbbgallery_core_search_toprated:
    path: /gallery/search/toprated
    defaults: { _controller: phpbbgallery.core.controller.search:toprated, page: 1 }
phpbbgallery_core_search_toprated_page:
    path: /gallery/search/toprated/{page}
    defaults: { _controller: phpbbgallery.core.controller.search:toprated }
    requirements:
        page: \d+
phpbbgallery_core_search:
    path: /gallery/search
    defaults: { _controller: phpbbgallery.core.controller.search:base, page: 1 }
phpbbgallery_core_search_page:
    path: /gallery/search/{page}
    defaults: { _controller: phpbbgallery.core.controller.search:base }
    requirements:
        page: \d+
phpbbgallery\core\config\services.yml

Code: Alles auswählen

imports:
    - { resource: tables.yml }
    - { resource: services_controller.yml }
    - { resource: services_files.yml }
    - { resource: services_notification_types.yml }


services:
    phpbbgallery.core.album:
        class: phpbbgallery\core\album\album
        arguments:
            - '@dbal.conn'
            - '@user'
            - '@language'
            - '@profilefields.manager'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.cache'
            - '@phpbbgallery.core.block'
            - '@phpbbgallery.core.config'
            - '%tables.phpbbgallery.albums%'
            - '%tables.phpbbgallery.images%'
            - '%tables.phpbbgallery.watch%'
            - '%tables.phpbbgallery.contests%'
    phpbbgallery.core.album.display:
        class: phpbbgallery\core\album\display
        arguments:
            - '@auth'
            - '@config'
            - '@controller.helper'
            - '@dbal.conn'
            - '@pagination'
            - '@request'
            - '@template'
            - '@user'
            - '@language'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.user'
            - '@phpbbgallery.core.misc'
            - '%core.root_path%'
            - '%core.php_ext%'
            - '%tables.phpbbgallery.albums%'
            - '%tables.phpbbgallery.contests%'
            - '%tables.phpbbgallery.tracking%'
            - '%tables.phpbbgallery.moderators%'
    phpbbgallery.core.album.loader:
        class: phpbbgallery\core\album\loader
        arguments:
            - '@dbal.conn'
            - '@user'
            - '@phpbbgallery.core.contest'
            - '%tables.phpbbgallery.albums%'
    phpbbgallery.core.album.manage:
        class: phpbbgallery\core\album\manage
        arguments:
            - '@user'
            - '@language'
            - '@request'
            - '@dbal.conn'
            - '@dispatcher'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.album'
            - '@phpbbgallery.core.album.display'
            - '@phpbbgallery.core.image'
            - '@phpbbgallery.core.cache'
            - '@phpbbgallery.core.user'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.contest'
            - '@phpbbgallery.core.report'
            - '@phpbbgallery.core.log'
            - '@phpbbgallery.core.notification'
            - '%tables.phpbbgallery.albums%'
            - '%tables.phpbbgallery.images%'
            - '%tables.phpbbgallery.comments%'
            - '%tables.phpbbgallery.permissions%'
            - '%tables.phpbbgallery.moderators%'
            - '%tables.phpbbgallery.contests%'
    phpbbgallery.core.misc:
        class: phpbbgallery\core\misc
        arguments:
            - '@dbal.conn'
            - '@user'
            - '@language'
            - '@config'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.user'
            - '@phpbbgallery.core.url'
            - '%tables.phpbbgallery.tracking%'
    phpbbgallery.core.auth:
        class: phpbbgallery\core\auth\auth
        arguments:
            - '@phpbbgallery.core.cache'
            - '@dbal.conn'
            - '@phpbbgallery.core.user'
            - '@user'
            - '@auth'
            - '%tables.phpbbgallery.permissions%'
            - '%tables.phpbbgallery.roles%'
            - '%tables.phpbbgallery.users%'
            - '%tables.phpbbgallery.albums%'
    phpbbgallery.core.auth.level:
        class: phpbbgallery\core\auth\level
        arguments:
            - '@phpbbgallery.core.auth'
            - '@config'
            - '@template'
            - '@user'
            - '@language'
    phpbbgallery.core.cache:
        class: phpbbgallery\core\cache
        arguments:
            - '@cache'
            - '@dbal.conn'
            - '%tables.phpbbgallery.albums%'
            - '%tables.phpbbgallery.images%'
    phpbbgallery.core.file.tool:
        class: phpbbgallery\core\file\file
        arguments:
            - '@request'
            - '@phpbbgallery.core.url'
            - '@phpbbgallery.core.config'
            - '2'
    phpbbgallery.core.image:
        class: phpbbgallery\core\image\image
        arguments:
            - '@dbal.conn'
            - '@user'
            - '@language'
            - '@template'
            - '@dispatcher'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.album'
            - '@phpbbgallery.core.config'
            - '@controller.helper'
            - '@phpbbgallery.core.url'
            - '@phpbbgallery.core.log'
            - '@phpbbgallery.core.notification.helper'
            - '@phpbbgallery.core.report'
            - '@phpbbgallery.core.cache'
            - '@phpbbgallery.core.user'
            - '@phpbbgallery.core.contest'
            - '@phpbbgallery.core.file.tool'
            - '%tables.phpbbgallery.images%'
    phpbbgallery.core.user:
        class: phpbbgallery\core\user
        arguments:
            - '@dbal.conn'
            - '@dispatcher'
            - '@user'
            - '@profilefields.manager'
            - '@config'
            - '@auth'
            - '%tables.phpbbgallery.users%'
            - '%core.root_path%'
            - '%core.php_ext%'
    phpbbgallery.core.config:
        class: phpbbgallery\core\config
        arguments:
            - '@config'
    phpbbgallery.core.report:
        class: phpbbgallery\core\report
        arguments:
            - '@phpbbgallery.core.log'
            - '@phpbbgallery.core.auth'
            - '@user'
            - '@language'
            - '@dbal.conn'
            - '@user_loader'
            - '@phpbbgallery.core.album'
            - '@template'
            - '@controller.helper'
            - '@phpbbgallery.core.config'
            - '@pagination'
            - '@phpbbgallery.core.notification.helper'
            - '%tables.phpbbgallery.images%'
            - '%tables.phpbbgallery.reports%'
    phpbbgallery.core.comment:
        class: phpbbgallery\core\comment
        arguments:
            - '@user'
            - '@dbal.conn'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.block'
            - '%tables.phpbbgallery.comments%'
            - '%tables.phpbbgallery.images%'
    phpbbgallery.core.url:
        class: phpbbgallery\core\url
        arguments:
            - '@template'
            - '@request'
            - '@config'
            - '%core.root_path%'
            - '%core.php_ext%'
    phpbbgallery.core.moderate:
        class: phpbbgallery\core\moderate
        arguments:
            - '@dbal.conn'
            - '@template'
            - '@controller.helper'
            - '@user'
            - '@language'
            - '@user_loader'
            - '@phpbbgallery.core.album'
            - '@phpbbgallery.core.auth'
            - '@pagination'
            - '@phpbbgallery.core.comment'
            - '@phpbbgallery.core.report'
            - '@phpbbgallery.core.image'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.notification'
            - '@phpbbgallery.core.rating'
            - '%tables.phpbbgallery.images%'
    phpbbgallery.core.search:
        class: phpbbgallery\core\search
        arguments:
            - '@dbal.conn'
            - '@template'
            - '@user'
            - '@language'
            - '@controller.helper'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.album'
            - '@phpbbgallery.core.image'
            - '@pagination'
            - '@user_loader'
            - '%tables.phpbbgallery.images%'
            - '%tables.phpbbgallery.albums%'
            - '%tables.phpbbgallery.comments%'
    phpbbgallery.core.notification:
        class: phpbbgallery\core\notification
        arguments:
            - '@dbal.conn'
            - '@user'
            - '%tables.phpbbgallery.watch%'
    phpbbgallery.core.notification.helper:
        class: phpbbgallery\core\notification\helper
        arguments:
            - '@config'
            - '@dbal.conn'
            - '@request'
            - '@template'
            - '@user'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.album.loader'
            - '@controller.helper'
            - '@phpbbgallery.core.url'
            - '@service_container'
            - '%core.root_path%'
            - '%core.php_ext%'
            - '%tables.phpbbgallery.watch%'
    phpbbgallery.core.log:
        class: phpbbgallery\core\log
        arguments:
            - '@dbal.conn'
            - '@user'
            - '@language'
            - '@user_loader'
            - '@template'
            - '@controller.helper'
            - '@pagination'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.config'
            - '%tables.phpbbgallery.log%'
            - '%tables.phpbbgallery.images%'
    phpbbgallery.core.block:
        class: phpbbgallery\core\block
    phpbbgallery.core.contest:
        class: phpbbgallery\core\contest
        arguments:
            - '@dbal.conn'
            - '@phpbbgallery.core.config'
            - '%tables.phpbbgallery.images%'
            - '%tables.phpbbgallery.contests%'
    phpbbgallery.core.upload:
        class: phpbbgallery\core\upload
        arguments:
            - '@user'
            - '@language'
            - '@dbal.conn'
            - '@dispatcher'
            - '@request'
            - '@files.upload'
            - '@phpbbgallery.core.image'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.url'
            - '@phpbbgallery.core.block'
            - '@phpbbgallery.core.file.tool'
            - '%tables.phpbbgallery.images%'
            - '%core.root_path%'
            - '%core.php_ext%'
    phpbbgallery.core.rating:
        class: phpbbgallery\core\rating
        arguments:
            - '@dbal.conn'
            - '@template'
            - '@user'
            - '@language'
            - '@request'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.auth'
            - '%tables.phpbbgallery.images%'
            - '%tables.phpbbgallery.albums%'
            - '%tables.phpbbgallery.rates%'
#######################
#### Define event #####
#######################

    phpbbgallery.core.listener:
        class: phpbbgallery\core\event\main_listener
        arguments:
            - '@controller.helper'
            - '@template'
            - '@user'
            - '@language'
            - '@phpbbgallery.core.search'
            - '@phpbbgallery.core.config'
            - '@dbal.conn'
            - '%tables.phpbbgallery.albums%'
            - '%tables.phpbbgallery.users%'
            - '%core.php_ext%'
        tags:
            - { name: event.listener }
phpbbgallery\core\config\services_controller.yml

Code: Alles auswählen

#############################
#### Define controllers #####
#############################
services:
    phpbbgallery.core.controller.upload:
        class: phpbbgallery\core\controller\upload
        arguments:
            - '@request'
            - '@dbal.conn'
            - '@user'
            - '@language'
            - '@template'
            - '@config'
            - '@service_container'
            - '@phpbbgallery.core.album'
            - '@phpbbgallery.core.misc'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.album.display'
            - '@controller.helper'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.user'
            - '@phpbbgallery.core.image'
            - '@phpbbgallery.core.notification'
            - '@phpbbgallery.core.notification.helper'
            - '@phpbbgallery.core.url'
            - '@phpbbgallery.core.upload'
            - '@phpbbgallery.core.block'
            - '@phpbbgallery.core.contest'
            - '%tables.phpbbgallery.images%'
            - '%core.root_path%'
    phpbbgallery.core.controller.album:
        class: phpbbgallery\core\controller\album
        arguments:
            - '@config'
            - '@controller.helper'
            - '@dbal.conn'
            - '@pagination'
            - '@template'
            - '@user'
            - '@language'
            - '@phpbbgallery.core.album.display'
            - '@phpbbgallery.core.album.loader'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.auth.level'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.notification.helper'
            - '@phpbbgallery.core.url'
            - '@phpbbgallery.core.image'
            - '@request'
            - '@phpbbgallery.core.contest'
            - '%tables.phpbbgallery.images%'
    phpbbgallery.core.controller.file:
        class: phpbbgallery\core\controller\file
        arguments:
            - '@config'
            - '@dbal.conn'
            - '@user'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.user'
            - '@phpbbgallery.core.file.tool'
            - '@request'
            - '%phpbbgallery.core.file.source%'
            - '%phpbbgallery.core.file.medium%'
            - '%phpbbgallery.core.file.mini%'
            - '%phpbbgallery.core.file.watermark%'
            - '%tables.phpbbgallery.albums%'
            - '%tables.phpbbgallery.images%'
    phpbbgallery.core.controller.image:
        class: phpbbgallery\core\controller\image
        arguments:
            - '@request'
            - '@auth'
            - '@config'
            - '@controller.helper'
            - '@dbal.conn'
            - '@dispatcher'
            - '@pagination'
            - '@template'
            - '@user'
            - '@profilefields.manager'
            - '@language'
            - '@phpbbgallery.core.album.display'
            - '@phpbbgallery.core.album.loader'
            - '@phpbbgallery.core.album'
            - '@phpbbgallery.core.image'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.user'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.auth.level'
            - '@phpbbgallery.core.url'
            - '@phpbbgallery.core.misc'
            - '@phpbbgallery.core.comment'
            - '@phpbbgallery.core.report'
            - '@phpbbgallery.core.notification.helper'
            - '@phpbbgallery.core.log'
            - '@phpbbgallery.core.moderate'
            - '@phpbbgallery.core.rating'
            - '@phpbbgallery.core.block'
            - '@service_container'
            - '%tables.phpbbgallery.albums%'
            - '%tables.phpbbgallery.images%'
            - '%tables.phpbbgallery.users%'
            - '%tables.phpbbgallery.comments%'
            - '%core.root_path%'
            - '%core.php_ext%'
    phpbbgallery.core.controller.index:
        class: phpbbgallery\core\controller\index
        arguments:
            - '@auth'
            - '@config'
            - '@dbal.conn'
            - '@request'
            - '@template'
            - '@user'
            - '@language'
            - '@controller.helper'
            - '@phpbbgallery.core.album.display'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.search'
            - '@pagination'
            - '@phpbbgallery.core.user'
            - '@phpbbgallery.core.image'
            - '%core.root_path%'
            - '%core.php_ext%'
    phpbbgallery.core.controller.search:
        class: phpbbgallery\core\controller\search
        arguments:
            - '@auth'
            - '@config'
            - '@dbal.conn'
            - '@pagination'
            - '@request'
            - '@template'
            - '@user'
            - '@language'
            - '@controller.helper'
            - '@phpbbgallery.core.album.display'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.album'
            - '@phpbbgallery.core.image'
            - '@phpbbgallery.core.url'
            - '@phpbbgallery.core.search'
            - '%tables.phpbbgallery.images%'
            - '%tables.phpbbgallery.albums%'
            - '%tables.phpbbgallery.comments%'
            - '%core.root_path%'
            - '%core.php_ext%'
    phpbbgallery.core.controller.comment:
        class: phpbbgallery\core\controller\comment
        arguments:
            - '@dbal.conn'
            - '@user'
            - '@language'
            - '@auth'
            - '@config'
            - '@template'
            - '@request'
            - '@controller.helper'
            - '@phpbbgallery.core.image'
            - '@phpbbgallery.core.album.loader'
            - '@phpbbgallery.core.album'
            - '@phpbbgallery.core.album.display'
            - '@phpbbgallery.core.url'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.config'
            - '@phpbbgallery.core.misc'
            - '@phpbbgallery.core.comment'
            - '@phpbbgallery.core.user'
            - '@phpbbgallery.core.log'
            - '@phpbbgallery.core.notification.helper'
            - '@phpbbgallery.core.notification'
            - '@phpbbgallery.core.rating'
            - '@service_container'
            - '%tables.phpbbgallery.comments%'
            - '%core.root_path%'
            - '%core.php_ext%'
    phpbbgallery.core.controller.moderate:
        class: phpbbgallery\core\controller\moderate
        arguments:
            - '@config'
            - '@request'
            - '@template'
            - '@user'
            - '@language'
            - '@controller.helper'
            - '@phpbbgallery.core.album.display'
            - '@phpbbgallery.core.moderate'
            - '@phpbbgallery.core.auth'
            - '@phpbbgallery.core.misc'
            - '@phpbbgallery.core.album'
            - '@phpbbgallery.core.image'
            - '@phpbbgallery.core.notification.helper'
            - '@phpbbgallery.core.url'
            - '@phpbbgallery.core.log'
            - '@phpbbgallery.core.report'
            - '@user_loader'
            - '%core.root_path%'
            - '%core.php_ext%'
phpbbgallery\core\config\services_files.yml

Code: Alles auswählen

########################################
#### Define file Types             #####
########################################
services:
    phpbbgallery.core.files.type.multiform:
        class: phpbbgallery\core\file\types\multiform
        shared: false
        arguments:
            - '@files.factory'
            - '@language'
            - '@php_ini'
            - '@plupload'
            - '@request'
phpbbgallery\core\config\services_notification_types.yml

Code: Alles auswählen

####################################
#### Define notification types #####
####################################
services:
    phpbbgallery.core.notification.image_for_approval:
        class: phpbbgallery\core\notification\events\phpbbgallery_image_for_approval
        shared: false # scope MUST be prototype for this to work!
        parent: notification.type.base
        calls:
            - [set_user_loader, ['@user_loader']]
            - [set_config, ['@config']]
        tags:
            - { name: notification.type }
    phpbbgallery.core.notification.image_approved:
        class: phpbbgallery\core\notification\events\phpbbgallery_image_approved
        shared: false # scope MUST be prototype for this to work!
        parent: notification.type.base
        calls:
            - [set_user_loader, ['@user_loader']]
            - [set_config, ['@config']]
        tags:
            - { name: notification.type }
    phpbbgallery.core.notification.image_not_approved:
            class: phpbbgallery\core\notification\events\phpbbgallery_image_not_approved
            shared: false # scope MUST be prototype for this to work!
            parent: notification.type.base
            calls:
                - [set_user_loader, ['@user_loader']]
                - [set_config, ['@config']]
            tags:
                - { name: notification.type }
    phpbbgallery.core.notification.new_comment:
        class: phpbbgallery\core\notification\events\phpbbgallery_new_comment
        shared: false # scope MUST be prototype for this to work!
        parent: notification.type.base
        calls:
            - [set_user_loader, ['@user_loader']]
            - [set_config, ['@config']]
        tags:
            - { name: notification.type }
    phpbbgallery.core.notification.new_image:
        class: phpbbgallery\core\notification\events\phpbbgallery_new_image
        shared: false # scope MUST be prototype for this to work!
        parent: notification.type.base
        calls:
            - [set_user_loader, ['@user_loader']]
            - [set_config, ['@config']]
        tags:
            - { name: notification.type }
    phpbbgallery.core.notification.new_report:
        class: phpbbgallery\core\notification\events\phpbbgallery_new_report
        shared: false # scope MUST be prototype for this to work!
        parent: notification.type.base
        calls:
            - [set_user_loader, ['@user_loader']]
            - [set_config, ['@config']]
        tags:
            - { name: notification.type }
phpbbgallery\core\config\tables.yml

Code: Alles auswählen

parameters:
    phpbbgallery.core.file.source: '%core.root_path%files/phpbbgallery/core/source/'
    phpbbgallery.core.file.medium: '%core.root_path%files/phpbbgallery/core/medium/'
    phpbbgallery.core.file.mini: '%core.root_path%files/phpbbgallery/core/mini/'
    phpbbgallery.core.file.watermark: '%core.root_path%ext/phpbbgallery/core/images/watermark.png'

    tables.phpbbgallery.albums: '%core.table_prefix%gallery_albums'
    tables.phpbbgallery.contests: '%core.table_prefix%gallery_contests'
    tables.phpbbgallery.images: '%core.table_prefix%gallery_images'
    tables.phpbbgallery.moderators: '%core.table_prefix%gallery_modscache'
    tables.phpbbgallery.permissions: '%core.table_prefix%gallery_permissions'
    tables.phpbbgallery.roles: '%core.table_prefix%gallery_roles'
    tables.phpbbgallery.tracking: '%core.table_prefix%gallery_albums_track'
    tables.phpbbgallery.users: '%core.table_prefix%gallery_users'
    tables.phpbbgallery.comments: '%core.table_prefix%gallery_comments'
    tables.phpbbgallery.reports: '%core.table_prefix%gallery_reports'
    tables.phpbbgallery.rates: '%core.table_prefix%gallery_rates'
    tables.phpbbgallery.log: '%core.table_prefix%gallery_log'
    tables.phpbbgallery.watch: '%core.table_prefix%gallery_watch'

Re: [3.3] Galerie mit Bilderwettbewerb

Verfasst: 28.10.2020 16:11
von vfrblue
phpBB-Gallery aktuelle Version (phpBB 3.2.x):
https://github.com/satanasov/phpbbgallery
Nutzung auf eigenes Risiko.

Re: [3.3] Galerie mit Bilderwettbewerb

Verfasst: 28.10.2020 17:18
von 69bruno
vfrblue hat geschrieben: 28.10.2020 16:11 phpBB-Gallery aktuelle Version (phpBB 3.2.x):
https://github.com/satanasov/phpbbgallery
Nutzung auf eigenes Risiko.
Da war ich auch, aber ich bin wohl zu blöd, eine ZIP-Datei zu finden.

Re: [3.3] Galerie mit Bilderwettbewerb

Verfasst: 28.10.2020 17:21
von vfrblue
Oben rechts auf "Code" klicken und dann die "ZIP"-Datei herunter laden.

Re: [3.3] Galerie mit Bilderwettbewerb

Verfasst: 28.10.2020 17:36
von 69bruno
vfrblue hat geschrieben: 28.10.2020 17:21 Oben rechts auf "Code" klicken und dann die "ZIP"-Datei herunter laden.
:lol: Die Schaltfläche "Code" wird mir am Handy nicht angezeigt......
Hoch lebe der Laptop

Re: [3.3] Galerie mit Bilderwettbewerb

Verfasst: 02.11.2020 10:53
von 69bruno
franki hat geschrieben: 28.10.2020 15:19 phpbbgallery\acpcleanup\config\services.yml
phpbbgallery\core\config\routing.yml
phpbbgallery\core\config\services.yml
phpbbgallery\core\config\services_controller.yml
phpbbgallery\core\config\services_files.yml
phpbbgallery\core\config\services_notification_types.yml
phpbbgallery\core\config\tables.yml
Danke, aber welche Version wird damit angepasst ?
Die 1.2.0.10 hat die letztgenannten 4 Dateien nicht am angegeben Ort....

Re: [3.3] Galerie mit Bilderwettbewerb

Verfasst: 03.11.2020 13:40
von franki
Es geht um die "phpbbgallery 3.2.2"

Re: [3.3] Galerie mit Bilderwettbewerb

Verfasst: 03.11.2020 14:18
von 69bruno
Och nö.....
da steh ich im Wald.....

Ich dachte, die 3.2.2 wäre lauffähig für 3.3.1 und nur die 1.2.x müssten angepasst werden....
Da war ich ja mal wieder schnell von Begriff.

Danke für die Aufklärung, dann werde ich die 3.2.2 mal anpassen....