Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DPHAZE

Pages: [1]
1
In my tests keywords are saved fine, are you sure you downloaded v4.15.1 and not 4.14.1?

Anyhow I did discover a bug related to keywords. It also affects the default images.php from v1.7.8-1.7.9 package:
when used newline as keyword separator it saves keywords correctly separated by comma into images table, but in wordlist table it saves them as one keyword with newlines.
This has been fixed in v4.15.2


Thanks a lot,

now it works.

Cheers!

EDIT

No, hold the horses...

it works with one single image only. if i try to update a bunch of images at once, the keywords are not updated.

thats really strange, isn't it? V@no, do you have any idea what's going wrong?




3
Discussion & Troubleshooting / Re: CSS Datei optimieren bzw. säubern
« on: December 03, 2010, 09:37:50 PM »
Conditional Comments...
(das Pendant für {Filter} wäre z.B. bei den Geckos {Opacity}).

Hi,

danke das hatte ich inzwischen auch herausgefunden, mir ging es darum die Meldungen im FF nicht mehr in der
Fehlerkonsole zu haben aber beim FF wohl normal. Es gibt also nicht die Möglichkeit direkt innerhalb von css werte
außer dem IE direkt zuzuweisen?


Guß Jens

Nun, du kannst auch innerhalb eines Stylesheets den IE von bestimmten Anweisungen ausschliessen (das sind automatisch die Anweisungen, welche er nicht kennt) oder best. Anweisungen nur für den IE angeben.
Letzteres führt jedoch erneut zu Fehlermeldungen in den Konsolen anderer Browser, die diese Anweisungen nicht interpretieren können.
Du kannst im Umkehrschluss die standardkonformen Browser in einem "Multistylesheet" nicht vom lesen best. Anweisungen ausschliessen. Soll heißen, jeglicher Gecko/Webkit wird dir immer einen Fehler in die Konsole schreiben, weil du das Lesen einzelner und nicht für sie bestimmte Anweisungen eben NICHT explizit für diese Browser ausschliessen kannst.

Nehmen wir das Beispiel von oben. Sobald du in deinem Stylesheet die Anweisung {filter} setzt wirft dir der Firefox, Safari, Chrome und wie sie alle heissen einen Fehler raus, da es nicht möglich ist ihn/sie davor zu bewahren, diese Anweisung lesen und interpretieren zu wollen. Der IE führt die Anweisung jedoch brav (mehr oder minder) aus, da sie ausschliesslich für ihn da ist.

4
Discussion & Troubleshooting / Re: CSS Datei optimieren bzw. säubern
« on: December 03, 2010, 08:30:37 PM »

[...]

@bergblume

Weißt du wie ich css tags nur für einen bestimmten Browser definiere? Also z.b. filter was nur im ie
funktioniert kann man das so machen das dies auch nur der ie erhält?


Gruß Jens



Hallo,

ich bin zwar nicht Bergblume, aber bzgl. deines IE Problems würde ich dir vorschlagen, einfach über Conditional Comments dem IE seine Anweisungen aufzudrücken. Ist die stabilste Lösung bei komplexen Stylesheets und kommt ohne CSS-Hacks aus.
Wenn das zu viel Arbeit macht, brauchst du dir um Anweisungen wie {filter:..;}, so ja in deiner konkreten Frage, keine Sorge machen. Diese Anweisung ist von Natur aus MS IE spezifisch und wird generell von anderen Browsern ignoriert (das Pendant für {Filter} wäre z.B. bei den Geckos {Opacity}).

5
Discussion & Troubleshooting / Re: CSS Datei optimieren bzw. säubern
« on: December 03, 2010, 05:16:46 PM »
kurze frage... meine style.css datei ist mittlerweile ziemlich "aufgedunsen" und es werden nicht mehr alle elemente dort benötigt.
wie kann ich nun die css am besten bereinigen und evtl. automatisch auf die nur noch benötigten elemente verkleinern?

danke, bergblume

Hallo,

Funktionierende automatische Lösungen gibt es dafür meines Wissens nicht. Du kannst aber durchaus Firebug einsetzen, um überflüssige Selektoren und Klassen in deinem css zu finden.
Löschen und dein css aufräumen musst du aber nach wie vor von Hand.

Bis dann....

6
Hallo zusammen,

eine kurze Anmerkung von mir.
Da es nicht unbedingt die sauberste Lösung ist, einem <img>-Tag eine Style-Anweisung mit auf den Weg zu geben, würde ich folgende Änderung vorschlagen:

finde folgende Zeile in der functions.php
$thumb "<img  src=\"".$file_src."\" style=\"border:0px;width:$thumb_width; height:$thumb_height;\"  alt=\"".format_text($image_name2)."\" />";

und ersetze durch
$thumb "<img src=\"".$file_src."\" width=\"".$thumb_width."\" height=\"".$thumb_height."\" alt=\"".format_text($image_name2)."\" />";

das ganze zweimal, wenn ich das in dem Mod richtig sehe, der nebenbei bemerkt wirklich 'ne gute Idee ist. Die imgs sollten jetzt über den entsprechenden Faktor unter $max = ... sauber skaliert werden. Im Quelltext sieht es dann auch gleich schöner aus und ist vor allem valider Code.
Achja, die Border-Anweisung sollte besser in einem externen stylesheet als {border:none;} gesetzt werden. Generell, schreibt bitte bitte bitte eure Style-Anweisungen in einem css. ich flehe euch an.;)


Bis dann...

7
..., dann wird im Unterkategorie-Drop-Drown die zugehörige Hauptkat. nicht ausgelesen.Soll heißen, das Drop-Down bleibt bis zu einer manuellen Änderung immer auf dem Eintrag Hauptkategorie stehen.....
also wie jetzt?
abgesehn davon das ich den fehler soweit ich ihn verstanden habe nicht nachvollziehen kann.

Bspl:
ich habe eine hauptkategorie, lege ich darin eine subcategorie an, so wird in der subcategorie im dropdownmenü nicht die übergeordnete hauptkategorie angezeigt.

habe ich das jetzt richtig verstanden?


EDIT: meinen 2000ten beitrag habe ich mir auch anders vorgestellt  :mrgreen:

Genau. Das hast du richtig verstanden. Die zugehörige Hauptkat. wird nicht automatisch im SubKat Drop Down eingestellt/angezeigt.
Ist kein schlimmer Fehler kann aber durchaus zu unerwünschten Ergebnissen führen, wenn man nicht aufpasst.

------------------------------------------------------
@x23piracy

So schlimm wie bei dir, ist es dann bei mir doch nicht. Wenn ich die Hauptkat. manuell wähle, dann wird alles korrekt gespeichert.





8
Hey,

ich habe exakt das gleiche Problem, ebenfalls bei einer "ungemoddeten" und neu installierten v1.7.9.

Wenn ich eine Unterkategorie zu einer bestehenden Hauptkategorie hinzufügen möchte, dann wird im Unterkategorie-Drop-Drown die zugehörige Hauptkat. nicht ausgelesen.
Soll heißen, das Drop-Down bleibt bis zu einer manuellen Änderung immer auf dem Eintrag Hauptkategorie stehen.
Das automatische auslesen der cat_parent_id scheint nicht zu funktionieren. Nach manuellem Einstellen der entsprechenden Hauptkat. funktioniert die Datenübergabe jedoch reibungslos.

Der Fehler scheint aber nicht in der admin/categories.php zu liegen. Oder anders gesagt, ich habe dort keinen gefunden.

Tja, und nun?

Edit:

Um die Unschuld der admin/categories.php zu verifizieren, hab ich eben die admin/categories.php v1.7.9 in eine alte v1.7.7 Installation kopiert. Ergebnis ist/war, dass die v1.7.7 mit der admin/categories.php v1.7.9 tadellos funktioniert. Alles läuft so wie es soll. Ergo kann man eine fehlerhafte admin/categories.php ausschließen. Richtig? Oder wie?


9
Hello V@no,

the v4.15.1 is the latest that has support for new way of keywords handling introduced in 4images 1.7.8 (is that what you had question about?)

But it doesn't work anymore with a fresh installation of v1.7.9.

The wordlist_table and the wordmatch_table aren't updated.

Is there a chance so fix that? Because without your awesome mod it's nearly impossible to work seriously with 4images.

Thanks in advance

Cheers!

10
Hello there,

just a short question related to this great mod.
is there any solution to limit the number of the shown images (1 or 2 images) from each sub-cat? ( i.e. show only the latest image from a sub-cat)

if so, that would be a great possibility to show a "preview-like-image" as a reference for each sub-cat content.

thanks in advance and cheers

11
Hello there,

i've got a short question.

The author of this mod said in his first posting, that there are 14 files (incl. the sessions.php) to change.
But further down the how-to of this mod there is no hint what's to change exactly in the sessions.php.
Is that a mistake by the author or is there no need to change something?

Anyone familiar with this fact?

Thanks for your help.

-------- in deusch----------------------

Hallo,

kurze Frage.
Im Eingangspost dieser Mod schreibt der Autor, dass 14 Dateien inkl. der sessions.php zu ändern seien.
Jedoch läst sich im weiteren Verlauf des How-To zu dieser Mod kein Hinweis darauf finden, was genau in der sessions.php zu ändern ist.
Ist das ein Fehler des Autors oder muss letztendlich in der sessions.php nichts geändert werden?

Kennt sich zufällig jemand damit aus?

Vielen Dank für Eure Hilfe.

12
Mods & Plugins (Requests & Discussions) / How to include a 2nd Lightbox?
« on: August 09, 2010, 04:44:32 PM »
Hello everybody,

first of all i want to say how brilliant that gallery is. very, very useful.

but i was wondering, if it's possible to include a 2nd or 3rd lightbox. So i searched the hole forum, to find a solution and i found some mods like the "Multi Lightboxes 1.03 "-Mod.
But that pretty nice Mod is not what i'm looking for, because it relates to registered members.

I try to explain my idea.
I want to include a 2nd lightbox (public) to give our guests the possibility to request certain images apart from the usage of the "normal" lightbox.
that means, every user/guest of our gallery should be able to assort different images to put these images in a "request-box" to start a request or assort some images to put it in the basic lightbox to create a album or whatever they do ;).

Like for instance: a) the user/guest wants to put imageXY.jpg to the lightbox, so he can download it or assort a album.  
                        b) additionally the same user/guest wants to put imageYZ.jpg to the request box, so he can start to request a hole bunch of images at one action - without the dependence of the images in the basic lightbox.
                            The "request-box" should give him the possibility to assort different images. Not the ones in the basic lightbox. this is the important fact.
                            (at this point i have to say, that i already found the "email list of images"- Mod, but this one depends on the basically included lightbox).

So, my approach to include that function were the following steps:

1. i included a new table in my sql with the certain keys etc. (nearly the same like the basic lightboxes table) and named it "request" (request_id, user_id, request_lastaction, request_images_ids and the related keys).
2. i duplicated and modified the lightbox.php and renamed the copy to request.php. i coded a new request.html and request_thumbnail_bit.html, so that the files fits to my wishes and integrated the files in my templates folder.
3. after that step, i modified the files constants.php, functions.php and page_header.php to include my new request-files to the system's needs. until that step, all was/is quite nice.
4. now i modified the sessions.php in the following steps:
   a) i copied the "if ($user_id != GUEST) etc...." - Part, which is enclosed in the "function load_user_info($user_id = GUEST)" and relates to the lightbox-sessions-stuff.
   b) I pasted the hole string inside below the original code and above the "if (empty($user_info[$user_table_fields['user_id']]"-String.
   c) i modified the pasted string, so it fits to my new sql request_table.
   d) after that, i commented out the original lightbox related code and tested/checked my "new request-box". yes, it is working. nice.

after all that steps were done, i wanted to test, if the both "boxes" are working together. so, i "reactivated" the commented lightbox-parts in the sessions.php.
but unfortunately only my new request-box works, the basic lightbox doesn't.
so ok, i commented out my new "request-parts" in the sessions.php. and the effect was, the original lightbox works.
ok, now i was able to isolate my probs. i tried different things to get these bloody boxes running. but finally all of my attempts failed. either the request-box works or the lightbox but never both together.

Now my question. ;)

Is anybody out there, who is able and willing to point out the problem or give me a hint to solve that. because i'm more in the front-end design business than in the php/back-end stuff. it makes me crazy. ;)

Below you can find my sessions.php modification:

Code: [Select]
......................................................................
//START ORIGINAL CODE
function load_user_info($user_id = GUEST) {
    global $site_db, $user_table_fields, $additional_user_fields;

    if ($user_id != GUEST) {
      $sql = "SELECT u.*, l.*
              FROM (".USERS_TABLE." u, ".LIGHTBOXES_TABLE." l)
              WHERE ".get_user_table_field("u.", "user_id")." = $user_id AND l.user_id = ".get_user_table_field("u.", "user_id");
      $user_info = $site_db->query_firstrow($sql);
      if (!$user_info) {
        $sql = "SELECT *
                FROM ".USERS_TABLE."
                WHERE ".get_user_table_field("", "user_id")." = $user_id";
        $user_info = $site_db->query_firstrow($sql);
        if ($user_info) {
          $lightbox_id = get_random_key(LIGHTBOXES_TABLE, "lightbox_id");
          $sql = "INSERT INTO ".LIGHTBOXES_TABLE."
                  (lightbox_id, user_id, lightbox_lastaction, lightbox_image_ids)
                  VALUES
                  ('$lightbox_id', ".$user_info[$user_table_fields['user_id']].", $this->current_time, '')";
          $site_db->query($sql);
          $user_info['lightbox_lastaction'] = $this->current_time;
          $user_info['lightbox_image_ids'] = "";
        }
      }
    }
//END ORIGINAL CODE

//START REQUEST CODE
    if ($user_id != GUEST) {
      $sql = "SELECT u.*, r.*
              FROM (".USERS_TABLE." u, ".REQUEST_TABLE." r)
              WHERE ".get_user_table_field("u.", "user_id")." = $user_id AND r.user_id = ".get_user_table_field("u.", "user_id");
      $user_info = $site_db->query_firstrow($sql);
      if (!$user_info) {
        $sql = "SELECT *
                FROM ".USERS_TABLE."
                WHERE ".get_user_table_field("", "user_id")." = $user_id";
        $user_info = $site_db->query_firstrow($sql);
        if ($user_info) {
          $request_id = get_random_key(REQUEST_TABLE, "request_id");
          $sql = "INSERT INTO ".REQUEST_TABLE."
                  (request_id, user_id, request_lastaction, request_image_ids)
                  VALUES
                  ('$request_id', ".$user_info[$user_table_fields['user_id']].", $this->current_time, '')";
          $site_db->query($sql);
          $user_info['request_lastaction'] = $this->current_time;
          $user_info['request_image_ids'] = "";
        }
      }
    }
//END REQUEST CODE
    if (empty($user_info[$user_table_fields['user_id']])) {
      $user_info = array();
      $user_info['user_id'] = GUEST;
      $user_info['user_level'] = GUEST;
      $user_info['user_lastaction'] = $this->current_time;.........and so on etc. pp...........

My gallery version is 1.7.7.

And i don't know if this is important to get assistance, but i owned the full "4images licence bundle".


I want to say thanks in advance and at least i hope all my written stuff above is reasonably well understandable.

cheers and i pray to the PHP-God












Pages: [1]