Skip to content

Technical Plugin Gallery

Daniel Neto edited this page Oct 29, 2026 · 1 revision

Technical: Gallery plugin

Supplies the gallery homepage, sections and navigation.

Audience: developers, advanced administrators and AI-assisted diagnosis. Plugin catalog.

Source baseline

  • Review date: 2026-10-29. Method: static source analysis; runtime/provider behavior was not exercised.
  • Code ownership: AVideo Streamer repository.
  • Reported version: 1.0.
  • Source revision: 7d48f2dfc0289236718a3f9fba7c5ffecff4a37f.
  • Entry class file: Gallery.php.

Confirm the installed plugin version independently of the Streamer version. Configuration defaults below are not a dump of this installation's saved settings.

Dependencies

Plugin Required by declaration Source reason
PlayLists Optional Optional program/playlist sections on the gallery
Live Optional Optional live-stream sections on the gallery
YouPHPFlix2 Optional Optional Flix-mode layout alternative
VideoTags Optional Optional video tags shown on channel sections

Literal runtime plugin references: Live, PlayLists. These calls do not mean every referenced plugin is mandatory.

Hook integration

Override Implementation
getTags() Gallery.php:25
getHeadCode() Gallery.php:55
navBarProfileButtons() Gallery.php:204
navBarButtons() Gallery.php:214
getHelp() Gallery.php:224
getFirstPage() Gallery.php:232
getFooterCode() Gallery.php:240
getPluginMenu() Gallery.php:306

Configuration assignments

These are direct assignments inside getEmptyDataObject(), not evaluated effective defaults. Stored plugins.object_data, globals, structured values and conditional branches may alter runtime behavior. Private/default credential values are omitted.

Field Literal default or expression type Literal source label/help Evidence
MainContainerFluid true — source
hidePrivateVideos false — source
BigVideo true — source
showLivesAboveBigVideo false — source
BigVideoLive Computed/structured; inspect source Big Video Live source
BigVideoLiveOnFirstPageOnly true Big Video Live on First Page Only source
BigVideoLiveForLoggedUsersOnly false Big Video Live will appear only if the user is logged source
useSuggestedVideosAsCarouselInBigVideo true — source
GifOnBigVideo true — source
Description false — source
CategoryDescription false — source
Shorts true — source
ShortsCustomTitle "" — source
ShortsRowCount 12 — source
ShortsOrder 1 — source
Suggested true — source
SuggestedCustomTitle "" — source
SuggestedRowCount 12 — source
SuggestedOrder 1 — source
PlayLists true — source
PlayListsRowCount 12 — source
PlayListsOrder 2 — source
Trending true — source
TrendingCustomTitle "" — source
TrendingRowCount 12 — source
TrendingOrder 2 — source
DateAdded true — source
DateAddedCustomTitle "" — source
DateAddedRowCount 12 — source
DateAddedOrder 3 — source
PrivateContent true — source
PrivateContentCustomTitle "" — source
PrivateContentRowCount 12 — source
PrivateContentOrder 4 — source
MostWatched true — source
MostWatchedCustomTitle "" — source
MostWatchedRowCount 12 — source
MostWatchedOrder 4 — source
MostPopular true — source
MostPopularCustomTitle "" — source
MostPopularRowCount 12 — source
MostPopularOrder 5 — source
SortByName false — source
SortByNameCustomTitle "" — source
SortByNameRowCount 12 — source
SortByNameOrder 6 — source
SubscribedChannels true — source
SubscribedChannelsRowCount 12 — source
SubscribedChannelsOrder 7 — source
SubscribedTags true — source
SubscribedTagsRowCount 12 — source
SubscribedTagsOrder 7 — source
Categories true — source
CategoriesCustomTitle "" — source
CategoriesRowCount 12 — source
CategoriesDisplayCount 2 — source
CategoriesOrder 7 — source
CategoriesShowOnlySuggested false — source
sortReverseable false — source
SubCategorys false Show Subcategories: When you are in the categories page, show the subcategories link at the top source
showTags true — source
showCategoryTag true — source
showCategoryLiveRow false — source
searchOnChannels true — source
searchOnChannelsRowCount 12 — source
playVideoOnFullscreen false — source
playVideoOnFullscreenOnIframe false — source
playVideoOnBrowserFullscreen false — source
filterUserChannel false — source
screenColsLarge 6 — source
screenColsMedium 3 — source
screenColsSmall 2 — source
screenColsXSmall 1 — source
allowSwitchTheme true Show Switch theme button source

Files and request surface

This inventory distinguishes implementation files from an API specification. Includes, templates, callbacks and CLI workers are not interchangeable HTTP endpoints. Request-field names below are direct source references, not a complete schema or permission declaration.

File Source role Direct request fields observed
Gallery.php plugin entry class catName
buttonChannelToGallery.php PHP page/include/worker; inspect caller —
channelToGallery.json.php JSON entry point; inspect caller and guard add, users_id
fullscreen.js browser/worker JavaScript; verify loader —
functions.php PHP page/include/worker; inspect caller catName, current, disableAddTo, infiniteScrollRowCount, page, rowCount, search, searchPhrase, showOnly, sort
script.js browser/worker JavaScript; verify loader —
tools/sortChannelsBySubscribers.php PHP page/include/worker; inspect caller —
view/BigVideo.php PHP page/include/worker; inspect caller catName, rowCount, showOnly
view/BigVideoLive.php PHP page/include/worker; inspect caller catName, showOnly, tags_id
view/Category.php PHP page/include/worker; inspect caller catName, getBackURL, limitOnceToOne, rowCount, sort
view/footer.php PHP page/include/worker; inspect caller —
view/liveHTMLRows.php PHP page/include/worker; inspect caller —
view/mainArea.php PHP page/include/worker; inspect caller catName, search, showOnly
view/mainAreaCategory.php PHP page/include/worker; inspect caller catName, current, doNotShowCatChilds, page, showOnly, sort
view/mainAreaChannels.php PHP page/include/worker; inspect caller disableAddTo
view/mainAreaLive.php PHP page/include/worker; inspect caller —
view/mainAreaLiveRow.php PHP page/include/worker; inspect caller catName
view/mainAreaTags.php PHP page/include/worker; inspect caller disableAddTo, sort, tags_id
view/modeGallery.php PHP page/include/worker; inspect caller catName
view/modeGalleryCategory.php PHP page/include/worker; inspect caller current, rowCount, sort, tags_id, tagsid
view/modeGalleryCategoryInclude.php PHP page/include/worker; inspect caller catName, sort
view/modeGalleryCategoryLive.php PHP page/include/worker; inspect caller —
view/saveSort.json.php JSON entry point; inspect caller and guard isChecked, name, sections
view/sections.js browser/worker JavaScript; verify loader —
view/sections.php PHP page/include/worker; inspect caller —
view/themeSwitcher.php PHP page/include/worker; inspect caller —
view/topLogic.php PHP page/include/worker; inspect caller catName, type
view/videoDropDownMenu.php PHP page/include/worker; inspect caller —

Data and migrations

No CREATE TABLE names were extracted from available plugin SQL. The plugin can still use core tables, PHP-created schema or another component's data. Apply installation/update behavior through the owning plugin; this reference is not a script for running historical migrations manually.

Main-file named symbols

Visibility and implementation semantics must be checked in source. Nonempty string defaults are represented as . This is a symbol reference, not a stable public API promise.

Function or method Source
getPluginDependencies() 11
getTags() 25
getDescription() 35
getName() 40
getUUID() 45
getPluginVersion() 50
getHeadCode() 55
getEmptyDataObject() 80
navBarProfileButtons() 204
navBarButtons() 214
getHelp() 224
getFirstPage() 232
getFooterCode() 240
getThemes() 264
getSectionsOrder() 284
getPluginMenu() 306
getAddChannelToGalleryButton($users_id) 312
setAddChannelToGallery($users_id, $add) 321
isChannelToGallery($users_id) 345
getVideoDropdownMenu($videos_id) 354
getContaierClass($addClass = '') 362
API_get_firstPage($parameters) 435

Supporting PHP declarations

These symbols are grouped by source file; inspect the class declaration and visibility before calling them.

functions.php

Named symbol Source
showThis($who) 3
createGallery($title, $sort, $rowCount, $getName, $mostWord, $lessWord, $orderString, $defaultSort = '<string>', $ignoreGroup = false, $icon = '<string>', $infinityScroll = false) 14
getShowOnlyURL($showOnly) 123
createOrderInfo($getName, $mostWord, $lessWord, $orderString) 144
createGallerySection($videos, $showChannel = true, $ignoreAds = false, $screenColsLarge = 0, $screenColsMedium = 0, $screenColsSmall = 0, $screenColsXSmall = 0, $galeryDetails = true) 176
getLabelTags($video) 260
getGalleryColsCSSClass($screenColsLarge = 0, $screenColsMedium = 0, $screenColsSmall = 0, $screenColsXSmall = 0) 285
createGallerySectionVideo($video, $showChannel = true, $screenColsLarge = 0, $screenColsMedium = 0, $screenColsSmall = 0, $screenColsXSmall = 0, $galeryDetails = true, $zindex = 1000) 312
createGalleryLiveSection($videos) 488
createGalleryLiveSectionVideo($video, $zindex, $screenColsLarge = 0, $screenColsMedium = 0, $screenColsSmall = 0, $screenColsXSmall = 0) 537
createChannelItem($users_id, $photoURL = "'<string>'", $rowCount = 12) 609
clearSearch() 655
reloadSearch() 664
getTrendingVideos($rowCount = 12, $screenColsLarge = 0, $screenColsMedium = 0, $screenColsSmall = 0, $screenColsXSmall = 0) 671
canPrintCategoryTitle($title) 687

view/mainArea.php

Named symbol Source
sectionExists($sections, $name) 70

view/mainAreaCategory.php

Named symbol Source
createCategorySection($videos) 66

Diagnostics and validation

  1. Check the installed/enabled version and the dependencies/settings above.
  2. Identify the actual failing page, request, callback or worker and correlate its timestamp with the AVideo log.
  3. Follow the linked method and caller. Check business-state changes and output artifacts as well as HTTP status.
  4. Reproduce the relevant workflow in a test environment. External provider, Encoder, live-server, storage, payment and authenticated flows require their real integrations.

Related test filenames (name matches only; not executed by generation):

Shared diagnostic workflow. This page is not a security audit or a claim of end-to-end validation.

Clone this wiki locally