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 - dp

Pages: [1] 2 3
Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: November 16, 2012, 09:01:54 AM »
my server is crashing after adding this mood. somehow stop responding with 100% server load. I notticed that also images that visible only to admin is showing in similat images.

Hi relu,

do your images have proper keywords or descriptions? The mod as it is uses keywords. If there are none, the main loop will not terminate.

I'm using this mod with a database of nearly 8000 images and extensive metadata without problems. Maybe your gallery is much bigger? I can't guarantee the reliability of this mod for any number of images ...

Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: February 29, 2012, 07:57:01 AM »
and your similar images, didnt work for me, i have no english folder in lang folder, maybe problem is this?

main.php in folder lang/english just contains the variable for the heading "similar images". If it's not declared and set, only this output should miss, image thumbs should still be there.

Can you describe more detailed your problem?

Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: February 28, 2012, 03:58:07 PM »
i just tried v@tno's code but didnt work :(

All I can say is, v@tno's mods a pretty good and reliable and I'm using this particular one at my own galery - without problems. Working at 4images core files and modifying them to my needs have been my first experiences in coding php and I had to learn a lot, mostly by trial and error. If you are not familiar with php, this will be the hard way.

Post your problems at the given thread, v@tno for sure will give you kind assistance.

Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: February 28, 2012, 02:09:20 PM »
i think i need a easier trick to do this.

Well, you defenitly need to perform a database query on the current category and display the result in the propriate way. The only thing that's easier as v@tno's mod is, to look for a programmer and pay for its work.

Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: February 28, 2012, 07:34:23 AM »
I need an easier trick;

i need a trick(at left sidebar) which shows 5 or 10 random images from current category.

any ideas?

You can use V@tno's Mod Random pictures and fit it to your needs:

Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: December 08, 2011, 01:08:51 PM »
Can you tell how to replace  keyword tag with category tag?

I'm sorry, but this mod performes a special database query on description or keywords. To show all images of a single category, you don't need any mod, just use the normal 4images template tags in your template.

Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: December 08, 2011, 09:13:43 AM »
So i try to add category instead keywords but could not figure it out. Anyone know how to do this?

This dosn't make sense, I think. Based on categories all images of the same category are similar. Self-evident, isn't it? To do so, you simply can use the categories template tags.

Mod similar images does not complex analysis of image description or keywords, it just uses php-own string comparison. So the results strongly depends on the quality of your metadata. If you don't use controlled vocabulary and consistent structure or systematic, results will be unsatisfying. For my experience only less galery operators pay attention to metadata, but metadata are the key to any information processing. To get proper results with this mod, set up your image description and keywords with controlled vocabulary and consistent structure first. This can be very time-expensive, but there's no other way.

Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: June 08, 2011, 08:51:00 AM »
Thanks for such a nice MOD.  8)

one request, can we control the number of rows and columns, not from ACP bcoz that changes the whole gallery i want to change number of rows and column for the similar images only..
In my case i've 4 rows with no columns in categories page, but in details page i want to show the similar images in 2 rows and 3 columns.

To achive this you have to replace the $config['...']-variables with simple values and change the total numbers of displayed images.

So in details.php and only in the MOD's code find:
<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">
and replace e.g. with:
<table width='50%' border='0' cellpadding='2' cellspacing='4'>
This has to be done at 3 different places. Note: the values given are just examples, you are hard-coding html, adapt it to your needs.

if ($count == $config['image_cells']) {
Replace with:
if ($count == 2) {

$leftover = ($config['image_cells'] - $count);
Replace with:
$leftover = ($count);
2 is the number of rows.

if ($i_ids 4$i_ids 4;
set the maximum of displayed images. 2 rows and 3 colums will have 2x3=6 images. For your example change it to:
if ($i_ids 6$i_ids 6;

Good luck!

Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: May 13, 2011, 03:53:20 PM »
coole sache... kleine frage bzgl. erweiterung.. ich habe meine bilder geo-getagged... kann ich mir auch die nächstgelegenen Bilder (laut GPS koordinaten) in einem definierten Umkreis anzeigen lassen? (oder zumindest es so definieren, dass automatisch die fünf nächstgelegenen angezeigt werden?

Das würde ich so machen:
- Abfrage der Felder mit den Koordinaten und ggf. Aufteilung in Länge und Breite
- Schleife, in der diese Koordinaten schrittweise vergrößert/verkleinert werden, und Vergleich mit den Koordniaten der übrigen Datensätze
- Schleife solange durchlaufen bis mindestens 5 weitere Datensätze identifiziert wurden
- Ausgabe der Bilder

Im wesentlichen kann der Aufbau meines Mods dabei so belassen werden.

Nun frag mich aber bitte nicht, ob ich das mal eben programmieren kann  :wink: - dazu habe ich momentan absolut keine Zeit. Wenn du es aber selbst umsetzen solltest, poste doch dein Ergebnis hier im Forum, ggf. auch als eigenes Mod.

Geht natürlich viel einfacher, vorausgesetzt, die Koordinaten für Länge und Breite befinden sich in getrennten Feldern. Dann braucht man die Tabelle nur nacheinander nach Längen- und Breiten-Koordinate sortieren und die jeweils nächsten Werte in beiden Richtungen identifizieren.

Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: May 09, 2011, 11:28:40 AM »
habe mir das jetzt mal angesehen und auch eingebaut. Leider ohne Erflolg.
Da wir keine keywords  (Schlüsselwörter) zulassen.
Ist es auch möglich anhand der Bildberschreibung?

Nichts einfacher als das! Ist nämlich im Mod schon vorbereitend angelegt ...

              similar_text $image_keywordssubstr($image_row_allimages['image_keywords'], 050), $percent );
//              similar_text ( $image_description, substr($image_row_allimages['image_description'], 0, 50), $percent );

//              similar_text ( $image_keywords, substr($image_row_allimages['image_keywords'], 0, 50), $percent );
similar_text $image_descriptionsubstr($image_row_allimages['image_description'], 050), $percent );

Ich hab mir die Nacht um die Ohren geschlagen ...


Gelöst, jetzt läuft es DANKE

Hallo elvis,

ich fände es schön, wenn du die Lösung ebenfalls hier posten könntest, Danke!


in standard installation of 4images users must login to be able to see the detail image by clicking a thumb. Does anybody know how I can configure 4images to prompt the details link for thumbnails at unregistered users, too? I would really like to present my detail images to every user, either logged in or not.

Thanks very much for your suggestions!

Sorry, this was caused by a database error. After deleting all entries in the images table and rebuild it via ACP, all thumbs are prompted with link to detail image now.

Hello Player73,

I got a similar effect in my installation: using the mod "check new images in all categories" it's not possible to check more than 30 images at once, neither using extended version. Using extended version or more than 30 images, metadata of the images grabbed from IPTC will be swaped and confused.

I suggest your whitescreen-problem is due to servers insufficient memory limit. When a php-script tries to exceed the ressource configured by the memory limit, it just stops. Simply run phpinfo() from your ACP and look for the entry "memory_limit". If it's 16M or less, I'm pretty sure that this is the reason. The only thing you can do is to ask your hoster for more ressources or upgrade your hosting package.

Hey DP,

Just read your post. Was thinking about adding this MOD. We anticipate our community having upwards of 10,000 - 15,000 images within a couple of years BUT the keywords will be around 70 -90.

Do you think the server memory limits of 32MB would operate properly with these fewer keywords? In other words, my question is what tips the scales, the number of keywords or the total number of images?

Thanks for any advice you can give.


Hi Brian,

sorry for the delay.
My server is running with 32M, so there is no different to your environment. The memory limit exceeds by the function which erases keyword duplicates. This can be caused by both, number of images and number of keywords per image, imho. In your case I would give it a trial, it's not much work at all. If you try, post your experience here, please.

Mods & Plugins (Releases & Support) / Re: [MOD] similar images
« on: May 05, 2010, 04:42:24 PM »
Works great.  Although the generated images are all saying they are from (Guest) and not the submitter.  How do I fix this or remove that info panel to show just the thumb.

The Mod uses the template-file "thumbnail_bit.html" to display the thumbs and their metadata. In this file there is a templatekey {user_name_link} which is registered by the function "show_image()" in include/functions.php. Sorry, but I got no idea, why this template_key has the wrong value.

You can simply take out the templatekey {user_name_link} from thumbnail_bit.html, but this will affect all thumbs in your gallery! A simple solution would be, to copy your thumbnail_bit.html to e.g. thumbnail_bit_similarimages.html and parse this template.

After copying thumbnail_bit.html to thumbnail_bit_similarimages.html find in details.php
Code: [Select]
    $similar_images .= $site_template->parse_template("thumbnail_bit");and change it to
Code: [Select]
    $similar_images .= $site_template->parse_template("thumbnail_bit_similarimages");
Now you got two different templates to display your thumbs and you are free to design them seperately.
Hope this helps!

Pages: [1] 2 3