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

Pages: [1]
1
HowTo use ImageMagick (guess it's an bug fix)
-----------------------------------------------------------------
Some people (including myself as well)  reported that the ImageMagick module doesn't work for this mod! Well, I searched in the internet and found an additional ImageMagick command to overlay two images. http://www.imagemagick.org/Usage/annotating/#wmark_image

Instead of using the ImageMagick program called "convert" we'll use the program "composite"!

For me it worked fine! Hope one someone's else page as well!  :wink:

PS:
Set the path to ImageMagick in the ControlPanel like :
/usr/bin/

At the moment this fix doesn't support image positioning by pixels! You can just set the position with the horizontal and vertical alignment like:
Vertical:     middle
Horizontal:  left
Position of the watermark image: In the west of the orig. image

Search for:
Code: [Select]
}
else {
   $ann_box = @getimagesize($ann_embed_image);
   $ann_text_width=$ann_box[0]; $ann_text_height=$ann_box[1];

   switch ($horisontal) {
      case "left"         : $h_offset = $ann_left_offset; break;
      case "center"       : $h_offset = (($isz[0]/2) - ($ann_text_width/2)); break;
      case "right"      : $h_offset = ($isz[0] - $ann_text_width - $ann_right_offset); break;
   }

   switch ($vertical) {
      case "top"         : $v_offset = $ann_top_offset; break;
      case "middle"       : $v_offset = (($isz[1]/2) - ($ann_text_height/2)); break;
      case "bottom"      : $v_offset = $isz[1] - $ann_text_height - $ann_bottom_offset; break;
   }

Add directly under:
Code: [Select]
if ($ann_tool == "im"){
    if ($horisontal == "left" && $vertical == "top"){
      $watermarkImagePos = "NorthWest";
    }
    if ($horisontal == "left" && $vertical == "middle"){
      $watermarkImagePos = "West";
    }
    if ($horisontal == "left" && $vertical == "bottom"){
      $watermarkImagePos = "SouthWest";
    }

    if ($horisontal == "center" && $vertical == "top"){
      $watermarkImagePos = "North";
    }
    if ($horisontal == "center" && $vertical == "middle"){
      $watermarkImagePos = "Center";
    }
    if ($horisontal == "center" && $vertical == "bottom"){
      $watermarkImagePos = "South";
    }

    if ($horisontal == "right" && $vertical == "top"){
      $watermarkImagePos = "NorthEast";
    }
    if ($horisontal == "right" && $vertical == "middle"){
      $watermarkImagePos = "East";
    }
    if ($horisontal == "right" && $vertical == "bottom"){
      $watermarkImagePos = "SouthEast";
    }
  }


Search for:
Code: [Select]

if ($ann_tool == "im") {

if ($use_image) {


Replace the $command line, which is directly under the search result, with the following $command
Code: [Select]
$command = $convert_options['convert_path']."/composite -dissolve  $annotation_embed_image_opacity% -gravity $watermarkImagePos \"$ann_embed_image\" \"$ann_src\" \"$ann_dest\"";

2
Mods & Plugins (Releases & Support) / Re: [MOD] Search Statistics v1.2
« on: November 29, 2006, 02:48:11 PM »
see the above mentioned questions  :wink:

Need this mod to build an 4image tag cloud script

3
Bug Fixes & Patches / Re: [1.7] PHP5 compatible
« on: November 22, 2006, 01:39:33 PM »
Du musst alle FROM statements welche anschliessen mit einem LEFT JOIN verbunden werden mit runden Klammern umrunden. Das duerfte dann deine Seite kompatibel zu php5 machen  :wink: Hoert sich jetzt nach viel Arbeit an, ist es aber mit den enstprechenden Programmen gar nicht. Probiers mal diesem Programm (Find.exe). Gebe den Suchbegriff LEFT JOIN ein und waehle den zu durchsuchenden Ordner (4images). Danach oeffnest du jede Seite aus den Suchergebnissen welche das besagte LEFT JOIN enthalten, und fuegst die Klammern um den FROM Befehl.

Find.exe
http://www.uploading.com/de/files/OJHI91GH/Find.exe.html


Hier ein Beispiel, wie du danach im Code vorgehen musst :
Code: [Select]
  $sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords
          FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
          LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)

Fuege die runden Klammern nur um den FROM Befehl hinzu (Musst auch keine Abstaende wie hier im Beispiel verwenden):
Code: [Select]
  $sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords
          FROM    (    ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c    )   
          LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)

Das wars...glaube ich jedenfalls. Ich meinte das dies jedoch nur fuer den Support mit Mysql5 noetig ist.. versuchs mal...


4
Installation, Update & Configuration / Re: DropDownList in upload_form
« on: November 21, 2006, 12:50:20 PM »
Look at this example here to "organise" your dropdown box
A group can be made with the help of the <optgroup> tag


Code: [Select]
<select name="subject">
    <optgroup label="First Group">
          <option>Option 1</option>
          <option>Option 2</option>
          <option>Option 3</option>
    </optgroup>

   <option disabled="disabled" value="">This is an option tag which can`t be selected</option>

    <optgroup label="Another Group">
          <option>Option 1</option>
          <option>Option 2</option>
          <option>Option 3</option>
    </optgroup>

  <option>this is just an normal option tag</option>
</select>

5
Mods & Plugins (Releases & Support) / Re: [MOD] Search Statistics v1.2
« on: October 31, 2006, 08:27:29 PM »
It would be nice to get this mod! Cause the download link from Vanos site is down.
Could someone please share it?

Thx for your help

6
Wow. It works like a charm. Thanks!!

I just adapted it a little bit to get it work with the memberlist MOD.
There is actually just one problem which occurs.
How can I show  special characters in this Ajax drop down Box?

For example: German umlauts like
ö  ü   ä

Those are now shown by a question mark sign



7
Mods & Plugins (Releases & Support) / Re: [MOD] Multi-Lightboxes v1.03.1
« on: September 25, 2006, 08:57:01 AM »
I just realized that there is a big problem caused by this mod.
What is happening when some adds a picture and an admin or someone else deletes it? It is still in the lightbox. But it is not shown, well. That’s OK. But there is still the image_id in the database entry.  In my opinion a very bad solution just to ignore the missing data.
So, I’m asking you (especially vano). Would it be possible to the delete the missing data out of the database?
You could integrate it to the delete function in the admin and user panel, or a daily cleanup? I don’t know.  :?:

Anyway thanks for your great work

8
nebenbei:
Kann man den Mod mit dem Memberlist-Mod http://www.4homepages.de/forum/index.php?topic=1954.0 verbinden,
so daß wenn man auf die Anzahl der vom User geschriebenen Kommentare klickt, nur dessen Kommentare (aber nicht alle) angezeigt werden??

(Wär doch mal was  :wink:)

Bis dann
ron

Actually there is already a mod. Well it`s not familiar with this Mod (all Comments), but it`s exactly the thing which you need.

See:
http://www.4homepages.de/forum/index.php?topic=4131.0

Well and then you need to add/edit the following code in the Memberlist.php

Open memberlist.php
Search for:
Code: [Select]
$total_user_comments = $user_row['user_comments'];
Replace this with this code
Code: [Select]
 
$user_comments_link = $site_sess->url(ROOT_PATH."member.php?action=showcomments&user_id=".$user_row['user_id']);
total_user_comments = "<a href=\"".$user_comments_link."\">".$user_row['user_comments']."</a>";

Hope it works  :?



9
Mods & Plugins (Requests & Discussions) / Image numbering
« on: August 11, 2006, 09:46:24 AM »
Hy all,

Is it possible to modify the code so that you are able to see on which position a image is?

For example:
You have a categorie with 10 images and you click on the 3th pic. It shows on the detail page "Image 3 of 10"

It`s really tricky I guess, because the lightbox(and multilightbox) and the search page are also affected from such a mod.

Thanks for your help,
Patrick

10
Mods & Plugins (Releases & Support) / Re: [MOD] Slideshow II
« on: May 30, 2006, 10:59:24 PM »
Thanks for this excellent mod!
It works like a charm. I guess that's one of the best documented mod which I've ever seen. Wow! Even with a update script.
Well, there is actually just one thing to improve this mod. Something which has been able the include in the old version. A Lighbox slideshow (also for the multi lightbox mod). What do you think about that, is that possible or i it already done and I am just to stupid to find it  :roll:

Thansk again to all 4images "modder's"

Pages: [1]