WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • Recent Posts

Recent Posts

Pages: 1 ... 4 5 [6] 7 8 ... 10
51
Modules / Re: colorbox macht nicht was sie soll
« Last post by sternchen8875 on March 16, 2025, 11:36:03 AM »
Quote
X_X

der typische Chio ;-)
Der Code stammt aus dieser Zeile 49 der index.php des fruesteg-Templates und soll die Stelle Zeigen, an der später das Suchen-Icon auftaucht, Hab die X-X entfernt
Code: [Select]
$topmenu = str_replace('</ul>X_X',$topmenu_extra.'</ul>', $topmenu.'X_X' );
zur Colorbox
notwendig ist dieser Link zur colorbox im <head>-Bereich des benutzten Frontend-Templates, der Aufruf muß zwingend nach dem Aufruf von jquery erfolgen

Code: [Select]
<script src="<?php echo TEMPLATE_DIR; ?>/colorbox/jquery.colorbox.js" type="text/javascript"></script>
weiter gehts unten
dieser Code muß vor den schließenden </body>-Tag - das war es dann auch schon
Code: [Select]
<script>
        $(document).ready(function(){
                //Examples of how to assign the Colorbox event to elements
                $(".group1").colorbox({rel:'group1'});
                $(".group2").colorbox({rel:'group2', transition:"fade"});
                $(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
                $(".group4").colorbox({rel:'group4', slideshow:true,loop:true,
                                 slideshowSpeed:6000,
                                 slideshowAuto:true,
                                 transition:"elastic",
                                 opacity: "0.7",
                                 maxWidth:"90%",
                                 maxHeight:"90%",
                                 previous:"zur&uuml;ck",
                                 next:"vor",
                                 close:"schlie&szlig;en",
                                 current: "Bild {current} von {total}",
                                 slideshowStart: "Diashow starten",
                                 slideshowStop: "Diashow anhalten"});

        });
</script>

Der Aufruf eines Bildes dann im Quelltext so

Code: [Select]
<a class="group4" href="http://deineURL/media/high-bay-408222_1920.jpg">
<img alt="" class="img-responsive" height="100" src="http://deineURL/media/high-bay-408222_1920.jpg" style="" width="150"></a>


P.S.: Admin-Kommentar: Beispiel-Code geändert, er zeigte vorher ein weiteres Script, das für das Beispiel nicht relevant ist und ggf verwirren könnte.
52
Modules / Re: colorbox macht nicht was sie soll
« Last post by xandi on March 16, 2025, 10:20:30 AM »
Danke dir. Daran habe ich nicht gedacht.

Ich habe heute morgen das template geändert, da in der Navigation Desktop oder responsive (Handy) unterhalb zwei merkwürdige "X_X" zu sehen sind. (Hier wäre eine Lösungsidee auch nicht schlecht, da ich das template ganz gut finde).

Dann funktioniert aber auch deine Colorbox Lösung nicht mehr. Es liegt daran dass, wie du schreibst, die Fehlerkorrektur ins Template geschrieben hast. Jetzt habe ich das "Fruesteg" template geladen und die Colorbox funktioniert. Allerdings tauchen auch die x'e wieder auf.

Gibt es denn auch eine allgemein funktionierende Lösung?

Ich habe in meinen, auch betrieblichen WB Seiten, die "alte" Colorbox eingebunden. Ich habe Angst was passiert, wenn ich das mal ändern muss.
53
Modules / Re: colorbox macht nicht was sie soll
« Last post by sternchen8875 on March 16, 2025, 01:01:31 AM »
Hab dir das mal repariert  ;-)
(warum gibst du mir die Zugangsdaten, wenn du dann nicht fragst?)

Deine Colorbox war von 2012. Sie basierte auf einer alten Lösung, mittels einer head.js Dateien nachzuladen. Da funktioniert der Code nicht mehr und die head.js gibt es ja auch nicht mehr.
Integriert hab ich auf die Schnelle mal eine Lösung von einer meiner Seiten. Die Colorboxscripte liegen dafür im benutzten Frontendtemplate und sind in der index.php des Templates eingebunden. Das CSS dazu dann im der benutzten template.css, damit nicht unnötig viel Dateien geladen werden.

Angesprochen werden die Links zu den Bilders über 4 mögliche Klassen, (group1, group2, group3 und group4). group4 wäre dabei dann der Standard-Wert, mit dem, wenn mehrere Bilder mit der Linkklasse group4 vorhanden sind, auch eine Slideshow gestartet wird mit allen Bildern dieser aktuellen Seite, die die Link-Klasse "group4" haben

Hatte das vor Jahren mal hier ausgeführt
https://forum.WebsiteBaker.org/index.php/topic,30588.msg213371.html#msg213371
54
Modules / Re: colorbox macht nicht was sie soll
« Last post by dbs on March 15, 2025, 06:06:25 PM »
HI, dein colorbox script wird nicht geladen bzw. falsch.
In der console ist zu sehen:
Code: [Select]
https://www.kollenburg-main.de/function URL() { [native code]}/modules/colorbox/js/jquery.colorbox-min.js
https://www.kollenburg-main.de/function URL() { [native code]}/modules/colorbox/1/colorbox.css
Das wird nicht gefunden.
Eine Erklärung habe ich aber noch nicht warum das vermurkst wird.
55
Modules / colorbox macht nicht was sie soll
« Last post by xandi on March 15, 2025, 05:26:34 PM »
Hallo.

Ich baue gerade für meinen Verein eine neue Internetseite auf.

Bei anderen Installationen verwende ich gerne das Modul "colorbox" um kleine Bilder als Vergrößerung in einer Lightbox per klick anzuzeigen.

Hab das gemacht wie immer. Zwei verschieden große Bilder im Media Ordner, und das große über Eigenschaften/link ausgewählt. Als Klasse dann "colorbox".

Leider wird das große Bild nur als neue Seite angezeigt. Ich vermute nun dass noch irgendwas fehlt.

Es ist die neueste Version 2.13.6 mit PHP 8.3.

Woran könnte das liegen. Bei anderen Installationen funktioniert das immer.

Adresse: www.kollenburg-main.de
56
General Help & Support / Re: 2.13.6. permissions
« Last post by sternchen8875 on March 08, 2025, 12:09:36 AM »
Quote
with an exception if page is only many link section, the root patent Is 0

no, see my last answer, this was wrong, sorry.

The conditions once again
- If the level of the parent == 0, the Root_Parent of the new page is its page ID.
- If the level == 1, the Root_Parent == is the parent of the new page.
- If the level is not 0, the search continues via the pageTrail until the parent == 0.
- If no result is obtained, the Root_Parent remains at 0

The last two options are checked when editing the page properties and set to 0 if parent and level are also zero
The root_parent is required when creating menus, especially for menus in multilingual pages, to determine the starting point of a language branch


57
General Help & Support / Re: 2.13.6. permissions
« Last post by crnogorac081 on March 07, 2025, 09:59:14 AM »
So if I understood this correctly root parent is always a page ID number, with an exception if page is only many link section, the root patent Is 0
58
General Help & Support / Re: 2.13.6. permissions
« Last post by sternchen8875 on March 06, 2025, 03:30:46 PM »
A root_parent is primarily used to create the page and menu structure. It is always the topmost element in the root for the respective branch at level == 0

The technical part then becomes somewhat confusing
The database field root_parent has a default value of 0
If a page is created, this field is not used and remains (briefly) at zero. Subsequently, the root_parent is determined using the parent of the new page transmitted in the form. This is done by MySQL queries of level and parent.
- If the level of the parent == 0, the Root_Parent of the new page is its page ID.
- If the level == 1, the Root_Parent == is the parent of the new page.
- If the level is not 0, the search continues via the pageTrail until the parent == 0.
- If no result is obtained, the Root_Parent remains at 0

Quote
pages with page_type == menu-link has the root_parent == 0, because, it has no content, only a redirect

forget this, it was not correct   :oops:

Quote
could it be that page is created as menu_link, then deleted menu_link and replaced with wysiwyg...
If we assume normal practice, a page with a menu link section cannot have any other sections, but it would of course be possible to create a new page with a different section type and move the child page of the menu link to this new page. This happens to me quite often because I often forget to select the menu link

Quote
I thought its a bug, because I see there is content - look at the seccond page from top.

i cannot say: NO, THERE IS NO BUG
Within the WB page overview there is the SectionList here



This icon is deactivated in the overview for menu links. I would look here in the database, especially with the page ID in the sections table. If a page has a section == Menu-Link, no further sections may exist, Menu-Link is a pure redirection via header(Location), a further text output by another section would lead to a fatal error


59
General Help & Support / Re: 2.13.6. permissions
« Last post by crnogorac081 on March 06, 2025, 01:50:22 PM »
tnx, I thought its a bug, because I see there is content - look at the seccond page from top.



could it be that page is created as menu_link, then deleted menu_link and replaced with wysiwyg...

What is this page_root used for ?
60
Modules / Re: Guestbook problem after upgrade
« Last post by sternchen8875 on March 06, 2025, 01:12:46 PM »
a repaired version v2.10.7 is now online -> https://addon.WebsiteBaker.org/en/browse-add-ons/?id=0601F521

Thank you for your patience during testing   (Y)
Pages: 1 ... 4 5 [6] 7 8 ... 10
  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2