MyXoops Forum

Forum - All Posts - myXOOPS German Support

Forum Index


Board-Index » All Posts (Goffy)

BottomBottom



Goffy

Co-Administrator
Gepostet am:07.04.2021 14:29
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 774
Since: 14.10.2004
#21

Aw: wggallery mit xoops 2.5.11 beta

welche PHP Version verwendest du?
EDV = Epoche der Verzweiflung


Goffy

Co-Administrator
Gepostet am:05.04.2021 10:18
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 774
Since: 14.10.2004
#22

Aw: wggallery mit xoops 2.5.11 beta

Hi

ich hab die wgGallery bereits auf mehreren Seiten laufen und mir ist kein Problem wegen Upload bekannt.

Tritt das Problem nur bei einem bestimmten Bild auf?
Ist es immer das dritte, unabhängig davon welche Bilder du hochladen möchtest?
Tritt das Problem nur beim Upload mit Handy auf oder auch auf anderen Geäten (Laptop usw.)
Verwendest du ein Bootstrap-Theme?
EDV = Epoche der Verzweiflung


Goffy

Co-Administrator
Gepostet am:01.04.2021 21:07
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 774
Since: 14.10.2004
#23

Aw: Erbitte 2 Sachen

Hi

ich habe dir mal den gesamten Ordner class/xoopseditor gezippt
https://www.myxoops.org/uploads/files/xoopseditor.7z
EDV = Epoche der Verzweiflung


Goffy

Co-Administrator
Gepostet am:01.04.2021 13:03
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 774
Since: 14.10.2004
#24

Aw: Erbitte 2 Sachen

hi

hier auf myxoops verwenden wir nur die Editoren, die in der Standardversion von XOOPS 2.5.11 enthalten sind.

oder hast du was anderes gemeint?
EDV = Epoche der Verzweiflung


Goffy

Co-Administrator
Gepostet am:14.03.2021 10:54
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 774
Since: 14.10.2004
#25

Aw: MyAlbum-P für Xoops 2.5.11

schick mir deine, damit ich sehe was du schon alles drin hast
EDV = Epoche der Verzweiflung


Goffy

Co-Administrator
Gepostet am:13.03.2021 18:13
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 774
Since: 14.10.2004
#26

Aw: MyAlbum-P für Xoops 2.5.11

hi

schickst du mir das Modul mal per Mail?
EDV = Epoche der Verzweiflung


Goffy

Co-Administrator
Gepostet am:13.03.2021 08:00
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 774
Since: 14.10.2004
#27

Aw: MyAlbum-P für Xoops 2.5.11

hast du den helper an dein Modul angepasst?
$helper        XoopsModulesWggalleryHelper::getInstance();


du hast ja auch das wggallery installiert aber dort keine cid und pid
EDV = Epoche der Verzweiflung


Goffy

Co-Administrator
Gepostet am:12.03.2021 12:21
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 774
Since: 14.10.2004
#28

Aw: MyAlbum-P für Xoops 2.5.11

so ungefähr

/**
 * Get all parents of a category
 * @param $albPid
 * @return string
 */
function getParentsOfCategory($albId)
{
    
$parentsAll = [];
    
/** @var XoopsModulesWggalleryHelper $helper */
    
$helper        XoopsModulesWggalleryHelper::getInstance();
    
$albumsHandler $helper->getHandler('Albums');
    
$crAlbums      = new CriteriaCompo();
    
$crAlbums->add(new Criteria('cid'$albId));
    
$albumsCount $albumsHandler->getCount($crAlbums);
    
$albumsAll   $albumsHandler->getAll($crAlbums);
    
// Table view albums
    
if ($albumsCount 0) {
        foreach (
array_keys($albumsAll) as $i) {
            
$parentsAll[] = ['cid' => $albumsAll[$i]->getVar('cid'), 'title' => $albumsAll[$i]->getVar('title'), 'pid' => $albumsAll[$i]->getVar('pid')];
            
$parent     getParentsOfCategory($albumsAll[$i]->getVar('pid'));
            if (
$parent) {
                
$parentsAll[] = $parent;
            }
        }
    }

    return 
$parentsAll;
}


wirst du aber teilweise noch anpassen müssen ;)
EDV = Epoche der Verzweiflung


Goffy

Co-Administrator
Gepostet am:12.03.2021 09:48
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 774
Since: 14.10.2004
#29

Aw: MyAlbum-P für Xoops 2.5.11

hi

Eine Elternkategorie bekomme ich ja evtlnoch hinDen Rest bisher nicht

rekursive Schleife ;)
pid von aktuell (Namen und Pfad auslesen )
pid von pid (Namen und Pfad auslesen)
pid von pid (Namen und Pfad auslesen)
solange bis pid=0

Namen und Pfade in umgekehrter Reihenfolge in Breadcrumb-Array reingeben
EDV = Epoche der Verzweiflung


Goffy

Co-Administrator
Gepostet am:11.03.2021 22:23
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 774
Since: 14.10.2004
#30

Aw: MyAlbum-P für Xoops 2.5.11

Hi
Zitat:
Na das wird ja was

super

den Modulnamen solltest du über
$GLOBALS['xoopsModule']->getVar('name');

erhalten

wegen Namen der aktuellen Kategorie:
da musst du mal die Variablen checken, die du auf der Seite verwendest, ob da die übergeordnete Kategorie irgendwo drin ist.
ansonsten müsstest du die Parent-Id zur aktuellen Kategorie abfragen
EDV = Epoche der Verzweiflung



TopTop
« 1 2 (3) 4 5 6 ... 57 »



Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag