MyXoops Forum

Forum - All Posts - myXOOPS German Support

Forum Index


Board-Index » All Posts (Goffy)

BottomBottom



Goffy

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

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: 768
Since: 14.10.2004
#22

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: 768
Since: 14.10.2004
#23

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: 768
Since: 14.10.2004
#24

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: 768
Since: 14.10.2004
#25

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: 768
Since: 14.10.2004
#26

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: 768
Since: 14.10.2004
#27

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: 768
Since: 14.10.2004
#28

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


Goffy

Co-Administrator
Gepostet am:10.03.2021 22:06
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 768
Since: 14.10.2004
#29

Aw: MyAlbum-P für Xoops 2.5.11

hi 1) Breadcrumbs erstellen
$xoBreadcrumbs = [];
//Link hinzufügen
$xoBreadcrumbs[] = ['title' => 'Mein Linktitel 1''link' => '/modules/mymodule/index.php'];
// Element ohne Link hinzufügen
$xoBreadcrumbs[] = ['title' => 'Mein Linktitelc 2'];
2) Breadcrumbs dem Template zuweisen
if (count($xoBreadcrumbs) > 1) {
    
$GLOBALS['xoopsTpl']->assign('xoBreadcrumbs'$xoBreadcrumbs);
}
3) Template die Ausgabe hinzufügen
<ol class='breadcrumb'>
    <
li class='breadcrumb-item'><a href='<{xoAppUrl index.php}>' title='home'><class="glyphicon glyphicon-home"></i></a></li>
    <{if 
$xoBreadcrumbs|default:''}>
        <{foreach 
item=itm from=$xoBreadcrumbs name=bcloop}>
        <
li class='breadcrumb-item'>
            <{if 
$itm.link|default:''}>
                <
a href='<{$itm.link}>' title='<{$itm.title}>'><{$itm.title}></a>
            <{else}>
                <{
$itm.title}>
            <{/if}>
        </
li>
        <{/foreach}>
    <{/if}>
</
ol>
:)
EDV = Epoche der Verzweiflung


Goffy

Co-Administrator
Gepostet am:26.02.2021 19:24
Goffy
Goffy Offline (Show more)
Co-Administrator
Posts: 768
Since: 14.10.2004
#30

Aw: Wenn du beim Übersetzen mithelfen möchtest.....

très bien, parlez-vous français? moi aussi, un peu ;)
EDV = Epoche der Verzweiflung



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



Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
sonstige Module wgSimpleAcc 0 261 02.02.2023 19:05
Goffy Gehe zum letzten Beitrag
Die Installation und Administration von XOOPS 2.5.X [Anfrage] mainfile.php 13 1661 16.12.2022 13:48
Goffy Gehe zum letzten Beitrag
Module für Kalender, Kontakte und Formulare Neue Version von wgEvents 0 883 29.08.2022 17:11
Goffy Gehe zum letzten Beitrag
sonstige Module wgFaker 0 853 29.08.2022 15:09
Goffy Gehe zum letzten Beitrag