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.9 R25 is now available!


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 2 3 [4] 5 6 ... 10
31
Modules / Re: accordion 2.7.6 Template in Einstellungen nicht wählbar
« Last post by sternchen8875 on December 03, 2025, 09:52:32 AM »
Entweder in deinem Template oder in der /templates/view.twig - je nachdem, was du benutzt, muß der raw-Filter eingefügt werden (hier rot markiert)

Quote
{% for item in ITEMLIST %}
        <span class="accordion-title {{ item.status_on_page load }}{{ acc_method }}">{{ item.question|raw }}</span>
        <div class="accordion-content">{{ item.answer|raw }} <br>
        </div>
    {% endfor %}

Ursache ist der etwas striktere Modus im Twig-Loader. Ich sehe aber, da gibt es auch im Backend noch ein paar Stellen, z.b. in der Übersicht / Beschreibung

32
Modules / Re: accordion 2.7.6 Template in Einstellungen nicht wählbar
« Last post by ruebenwurzel on December 03, 2025, 09:38:19 AM »
Hab gerade die 2.7.9 installiert. Da habe ich jettzt das Problem, dass html-Code in den Antworttexten als Text angezeigt wird.
33
Modules / Re: accordion 2.7.6 Template in Einstellungen nicht wählbar
« Last post by ruebenwurzel on December 03, 2025, 09:29:42 AM »
Perfekt, Danke  (Y)
34
Modules / Re: accordion 2.7.6 Template in Einstellungen nicht wählbar
« Last post by sternchen8875 on December 03, 2025, 02:08:00 AM »
japp, geht auf meine Kappe

Datei /modules/accordion/cmd/Modifysettings.inc.php

da fehlt eine Zeile   :oops:

hinter diese Zeilen 80ff

Code: [Select]
$oBEFunctions                                   = new Accordion();
$aTwigdata['setting']                           = $oBEFunctions->getAccordionSettings($section_id);
$aTwigdata['lang']                              = $oTrans->getLangArray();

füge diese Zeile ein

Code: [Select]
$aTwigdata['TemplateList']                      = $oBEFunctions->getAllTemplatesArray($section_id);
neue Version lade ich später hoch
35
Modules / accordion 2.7.6 Template in Einstellungen nicht wählbar
« Last post by ruebenwurzel on December 02, 2025, 12:59:11 PM »
Hallo,

habe eben versucht eine neu Accordion Section in eine Seite einzubauen. Nach Aktivierung des Template Editors habe ich mein Template erstellt. Unter "Wähle ein Frontend-Template" ist es nicht zu sehen, kann deshalb auch nicht aktiviert werden. Musste die Template ID dann in der Datenbank manuell eintragen.

Kann das jemand nachvollziehen oder ist das ein lokales Problem meiner Installation?

Gruß
Matthias

WB 2.23.9 R25; PHP 8.4
36
General Help & Support / Re: Wish list: "Remember me" at login...
« Last post by sternchen8875 on November 28, 2025, 09:53:23 AM »
 (Y)
37
General Help & Support / Re: Wish list: "Remember me" at login...
« Last post by crnogorac081 on November 27, 2025, 04:34:34 PM »
I agree, if there Is need at some point to put this featured back on , there should be info box at checkbox to Point to vulnerabilitirs (example: this will save your login to this computers, dont check if you Are using publici computers etc..)
38
General Help & Support / Re: Wish list: "Remember me" at login...
« Last post by sternchen8875 on November 27, 2025, 12:17:58 PM »
Quote from: crnogorac081 on November 27, 2025, 10:04:57 AM
I understand Uwe's concern, but how I see it, it is up to user weather he will check Remember me or no, of course noone will check remember me in internet cafe computer, and will check on home or office computer.

german
ein kleiner, aber feiner Unterschied...
wenn ich (als Privatperson) für mich, Freunde, Familie oder Kunden am WB etwas ändere, kann ich tun, was immer ich will, solang ich GPL beachte
Bin ich aber verantwortlich für das CMS, muß ich mit einkalkulieren, das User nicht über die Kenntnisse verfügen, die du und ich haben. Ich muß damit rechnen, das ein(e) User(in) nicht weiß, was Remember-me bedeutet und vielleicht auch nicht versteht, was es bewirkt.

Was ich oben schrieb, war meine persönliche, private Meinung. Ich brauche diese Funktion nicht und auch niemand in meinem Bekannten- oder Kundenkreis. Wenn aber das Fehlen solch einer Funktion dazu führt, das Menschen, egal welchen Alters, sich von einem für sie bestimmten Produkt abwenden, weil es ihnen zu kompliziert ist, dann kann ich das natürlich nachvollziehen und möchte da auch gerne helfen.

Als Developer frage ich, ist das eine Sache, die man direkt wieder in das CMS integrieren sollte. Wenn JA,
wird es ähnlich werden wie bei dir. Ich kann es halt direkt in den Core integrieren, das macht es einfacher.

Ist aber nichts, was in drei Tagen fertig ist, denn das hieße: eine neue WB-Version mit allem drum und dran.
Ich habe mich mit CodeALot unterhalten, kenn diese spezielle Problematik in seinem Projekt und hab nun ein Snippet erstellt mit gleichen Anforderungen in Verbindung mit einem Droplet, der Kopie der LoginBox mit geänderten Links usw. Das macht, so finde ich, die Integration leichter

Google translate
A small but important difference...

If I (as a private individual) make changes to the workbook for myself, friends, family, or clients, I can do whatever I want as long as I comply with the GPL.

However, if I'm responsible for the CMS, I have to factor in that users don't have the same level of knowledge as you and me. I have to expect that a user might not know what "Remember-me" means and perhaps not understand its function.

What I wrote above was my personal opinion. I don't need this feature, and neither does anyone in my circle of acquaintances or clients. But if the absence of such a feature leads people of all ages to turn away from a product intended for them because it's too complicated, then I can certainly understand that and would like to help.

As a developer, I'm asking if this is something that should be directly integrated back into the CMS. If so,

it will be similar to your situation. I can integrate it directly into the core, which makes things easier.

But it's not something that can be finished in three days, because that would mean a new WB version with all the bells and whistles.

I talked to CodeALot, I'm familiar with this specific issue in his project, and I've now created a snippet with the same requirements, combined with a droplet, a copy of the login box with modified links, etc. I think that makes the integration easier.
39
General Help & Support / Re: Wish list: "Remember me" at login...
« Last post by crnogorac081 on November 27, 2025, 10:04:57 AM »
This is just a plain example how to make it, im not saying we should or no, or there is or no any better way. This is just a quick suggestion from chatgtp.

I understand Uwe's concern, but how I see it, it is up to user weather he will check Remember me or no, of course noone will check remember me in internet cafe computer, and will check on home or office computer.
40
General Help & Support / Re: Wish list: "Remember me" at login...
« Last post by crnogorac081 on November 26, 2025, 08:09:27 PM »
Managing and Viewing All Remember-Me Tokens (Admin Tools)

This post explains how to extend the RememberMe system so an administrator or user can:

✔ View all login tokens 
✔ See IP address of each session 
✔ See device/browser (user agent) 
✔ See location (optional) 
✔ Delete individual tokens
1. Add Methods to RememberMe.php

A) List all tokens for a user:
Code: [Select]
public function getTokensByUser($user_id)
{
    $stmt = $this->db->prepare("
        SELECT id, selector, hashed_validator, expires, ip, user_agent
        FROM wb_user_tokens
        WHERE user_id = ?
        ORDER BY expires DESC
    ");
    $stmt->execute([$user_id]);
    return $stmt->fetchAll(PDO::FETCH_ASSOC);
}

B) Delete a single token:
Code: [Select]
public function deleteToken($token_id)
{
    $stmt = $this->db->prepare("DELETE FROM wb_user_tokens WHERE id = ?");
    $stmt->execute([$token_id]);
}

C) Optional: Convert IP to Location (Country Lookup):
Code: [Select]
public function getLocationFromIP($ip)
{
    $json = @file_get_contents("https://ipapi.co/{$ip}/json/");
    if ($json === false) {
        return "Unknown";
    }
    $data = json_decode($json, true);
    return $data['country_name'] ?? 'Unknown';
}



2. Example Admin Panel: List All Tokens

Code: [Select]
$tokens = $remember->getTokensByUser($user_id);

foreach ($tokens as $token) {
    echo "Token ID: " . $token['id'] . "<br>";
    echo "Selector: " . $token['selector'] . "<br>";
    echo "IP: " . $token['ip'] . "<br>";
    echo "Location: " . $remember->getLocationFromIP($token['ip']) . "<br>";
    echo "User Agent: " . $token['user_agent'] . "<br>";
    echo "Expires: " . date('Y-m-d H:i:s', $token['expires']) . "<br>";
    echo "<a href='delete_token.php?id={$token['id']}'>Delete Token</a>";
    echo "<hr>";
}



3. Delete Token Script (delete_token.php)

Code: [Select]
require 'RememberMe.php';
$remember = new RememberMe($db);

if (!empty($_GET['id'])) {
    $remember->deleteToken($_GET['id']);
}

header("Location: tokens_list.php");
exit;



Done!

Pages: 1 2 3 [4] 5 6 ... 10
  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2