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
16
Thanx very much for sharing this!
Works perfectly, both with Firefox 3.6 and IE 8.

17
Mods & Plugins (Releases & Support) / Re: [PROGRAM] 4images Mobile Server
« on: January 27, 2010, 08:19:05 AM »
http://forum.uniformserver.com/index.php?s=&showtopic=179&view=findpost&p=1229

the variable mentioned in that post located in registry:
Code: [Select]
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersionIf you don't have it there, then create a new "string" with name SystemRoot, double click on it and enter value: C:\WINDOWS (assuming your windows is installed on C:\ drive)

The variable "SystemRoot" with value "C:\WINDOWS" (wich is correct) already exists, alas.

18
Mods & Plugins (Releases & Support) / Re: [PROGRAM] 4images Mobile Server
« on: January 26, 2010, 10:33:55 AM »
can you quote the exact message or even better if you show a screenshot...

Well, I gave the exact message in my initial post http://www.4homepages.de/forum/index.php?topic=18352.msg144661#msg144661.
But after all I'm pretty sure, that this is a very special and unusual problem occuring just on my local machine and related to my system. I'm running my local installation of 4images under xampp now, so for me there is no neccessarity to search for this very special reason why 4images mobile server suddenly doesn't run any more.
Thanks again for your kind help.

19
Mods & Plugins (Releases & Support) / Re: [PROGRAM] 4images Mobile Server
« on: January 25, 2010, 01:16:02 PM »
Well, XAMPP and 4images are running together on my local machine and I can go back to develop ...
So goodbye 4images Mobile Server! We had pretty good times and I really don't know why you left me or what I did wrong. But as we say in germany: "Lass'n zischen, kriegst 'nen frischen!"

Thank you all for your suggestions!

20
Mods & Plugins (Releases & Support) / Re: [PROGRAM] 4images Mobile Server
« on: January 22, 2010, 07:23:55 PM »
I think I switch to XAMPP, hoping that this will work.

... so on your PC runs XAMPP ...  a instance of Apache and MySQL ... !
... first deactivate via "XAMPP - Program Service Monitor" (or in any other way) the webserver and database of XAMPP on your PC ...
... only after that you can start a successful "4imagesMS - Installation" ...

Sorry, perhabs I was unclear. XAMPP is not running actual, I will give it a trial. I definitely can't see any webserver or databaseserver running on my local machine, I checked it several times.

21
Mods & Plugins (Releases & Support) / Re: [PROGRAM] 4images Mobile Server
« on: January 22, 2010, 06:29:10 PM »
@dp

... maybe this hint can help ...
... http://www.4homepages.de/forum/index.php?topic=18352.msg100128#msg100128 ...

Thanks for the tip - but what do you mean with "program service monitor" (sorry for the stupid question).
In my task mananger there is no running process of apache etc.

22
Mods & Plugins (Releases & Support) / Re: [PROGRAM] 4images Mobile Server
« on: January 22, 2010, 05:43:09 PM »
very hard to say what could be a problem....any plans update xp to sp3?
also in xp system logs could be some additional info

Indeed I had an error message in the system log (some dll-problem), still reported since my last successfull start of 4ms. Updating to SP3 solved this Problem - unfortunately not the problem with 4ms. The busy-drive-message still remains and localhost is not reanimated.

I think I switch to XAMPP, hoping that this will work.

23
Mods & Plugins (Releases & Support) / Re: [PROGRAM] 4images Mobile Server
« on: January 21, 2010, 04:27:14 PM »
Sorry for the delay, I was too busy during the last days ...

Are you running 4MS as administrator?
What XP version you are using?
Did you try redownload the package and see if it works when fresh?

Yes, I'm running 4ms as Administrator.
I'm using XP Professional SP2, Version 2002.
Yes, I tried to start a complete fresh package - no succes. And it doesn't matter what drive letter I use in all the batch-files, its allways busy.

This seems to me as a Windows-Problem, allthough I really don't know, what changes are done in my system during the 4 or 5 weeks since 4ms worked properly last time. I didn't install ANY software and don't know about any Microsoft auto-update.


24
Mods & Plugins (Releases & Support) / [MOD] similar images
« on: January 19, 2010, 03:59:32 PM »
This Mod displays thumbs of images similar to the choosen one on the details page. Similarity is recognized by text-comparison of image keywords (or image description, if one likes better). From the whole set of similar picture a randomized subset is selected to be displayed. You can configure this number of displayed thumbs.

Note
This Mod uses metadata of the images to find similar pics. It just takes e.g. the keywords of the image displayed on the details page and performes a text-comparison via php function "similar_text()". That means, if your metadata does not properly describe your images in a consist and structural way, the result will not be satisfyingly.

You must fit some variables of this mod to your gallerys image data. The best way to to this is still to vary variables value and look at the results.
For example:
similar_text() calculates similarity of two strings by setting a defined variable at 0 to 100, where 0 means no and 100 complete similarity.
Therefor in this Mod "$percent_limit = 80; " is the value that devides similar images from non-similar. Descending the value results more similar images and vice versa.

In this Mod I use only a part of 50 letters of the compared metadata. This is because in my database the first keywords contains the most relevant information. So if one image has 20 keywords and a real similar image only 5, text-comparison will result a low similarity. If I use only the first keywords for comparison, comparison will fit much better.
Vary the number of letters in the substr()-function or remove this function to use the whole metadata.

Acknowledgment
This Mod is based on Mod Random pictures by V@tno
http://www.4homepages.de/forum/index.php?topic=4259.msg17513#msg17513

Files affected
[change] details.php
[change] lang/english/main.php
[change] lang/yourlanguage/main.php
[change] templates/default/details.html

open details.php, locate
//-----------------------------------------------------
//--- Show Image --------------------------------------
//-----------------------------------------------------


insert before
//------------------------------------
//------- MOD Similar Images
//------------------------------------
$image_keywords  substr($image_row['image_keywords'], 050); //keywords of actual image
$image_description  $image_row['image_description'];          //description of actual image
$image_id_self  $image_row['image_id'];                       //id of actual image
$i_ids 0;
$i_ids_max 4;                                                 //max number of thumbs displayed
$image_ids "";
$percent_limit 80;                                            //limit of similarity; vary to fit to your database!
$percent_minimum 40;                                          //minimum of similarity; vary to fit to your database!

//-- select all images and identify similar images
//-- write a string $image_ids with the set of id's, comma seperated
//-- if there are no similar images, descend $percent_limit and try once more
$sql "SELECT image_id, image_name, image_description, image_keywords, image_active
        FROM "
.IMAGES_TABLE."
        WHERE image_active = 1"
;
$result_allimages $site_db->query($sql);

while ((
$i_ids == 0) && ($percent_limit $percent_minimum)) {
        while (
$image_row_allimages $site_db->fetch_array($result_allimages)){
              
similar_text $image_keywordssubstr($image_row_allimages['image_keywords'], 050), $percent );
//              similar_text ( $image_description, substr($image_row_allimages['image_description'], 0, 50), $percent );
              
if (($percent $percent_limit) && ($image_row_allimages['image_id'] != $image_id_self)) {
                 
$i_ids $i_ids 1;
                 
$image_ids .= $image_row_allimages['image_id'] . ", ";
              }
        }
        
$percent_limit $percent_limit 5;
}

//-- remove the last comma in $image_ids
if (strlen($image_ids) > 0) {
  
$image_ids substr($image_ids0strlen($image_ids)-2);
}
//-- set $i_ids to its maximum, for correct mysql statement below
if ($i_ids 4$i_ids $i_ids_max;

//-- build table with thumbs of similar images (only if there are some, of course)
if ($i_ids == 0) {
  
$similar_images "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  
$similar_images .= "</td></tr></table>";
}
else  {

//---- select similar images, there id's are in the set $image_ids now
//---- randomized and limited
$sql "SELECT *
        FROM "
.IMAGES_TABLE."
        WHERE image_id IN (" 
$image_ids ")
        ORDER BY RAND()
        LIMIT "
.$i_ids;
$result_similarimages $site_db->query($sql);
$num_rows_similarimages $site_db->get_numrows($result_similarimages);

//---- build table and table-cells
if (!$num_rows_similarimages)  {
  
$similar_images "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  
$similar_images .= "</td></tr></table>";
}
else  {
  
$similar_images "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
  
$count 0;
  
$bgcounter 0;
  while (
$image_row_similarimages $site_db->fetch_array($result_similarimages)){
    if (
$count == 0) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
$similar_images .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    
$similar_images .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

    
show_image($image_row_similarimages);
    
$similar_images .= $site_template->parse_template("thumbnail_bit");
    
$similar_images .= "\n</td>\n";
    
$count++;
    if (
$count == $config['image_cells']) {
      
$similar_images .= "</tr>\n";
      
$count 0;
    }
  }

  if (
$count 0)  {
    
$leftover = ($config['image_cells'] - $count);
    if (
$leftover >= 1) {
      for (
$f 0$f $leftover$f++) {
        
$similar_images .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      
$similar_images .= "</tr>\n";
    }
  }
  
$similar_images .= "</table>\n";
}
}

//-- register template-keys
$site_template->register_vars(array(
    
"similar_images"        => $similar_images,
    
"lang_similar_images"   => $lang['lang_similar_images']
    ));
unset(
$similar_images);
//------- End similar images---------
//------------------------------------


open lang/english/main.php
insert at the bottom (before ?>)
//-----------------------------------------------------
//--- MOD similar pictures dp
//-----------------------------------------------------
$lang['lang_similar_images'] = "similar images";


open lang/yourlanguage/main.php
insert at the bottom (before ?>)
//-----------------------------------------------------
//--- MOD similar pictures dp
//-----------------------------------------------------
$lang['lang_similar_images'] = "translation of "similar images"";


open templates/default/details.html
place {lang_similar_images} and {similar_images} were ever you want to display the table of thumbs with similar images


25
...

 perhaps   http://www.4homepages.de/forum/index.php?topic=18352.msg120826#msg120826

Thanks for your reply!

Well, I'm running XP and as I wrote, there is no drive w nor changing of the drive letter does anything.
The strange thing is, that I ran MS frequently for month while developing my gallery and now after a pause of 3 weeks, I face this problem.

26
Hi,

after running MS without any problems for a long time, today starting failed with errormessage in the command window

"The disk w is busy. Use start.bat [disk letter] or stop.bat to stop 4SAS"

There is no disk w on my local machine and I get analog errors when I change the disk letter in start.bat to another one. Also stopping MS or restarting the computer don't solve the problem. I also can't see any MS-process left open in the windows task manager.

Thanks very much for any suggestion!

27
This Mod works fine up to 5700 Images and nearly 800 keywords in my database. But when I add some more pictures, the function get_keyword_list() in functions.php exceeds the memory limit of 32 M of my server and the searchform could not be displayed anymore.

Responsible was this line

 
Code: [Select]
$array1 = array_unique($array); // Remove duplicate values from the array
This line is essential, of course. So imho this mod is for small galleries only.

28
Greetings , Im using 1.76 and in step one it says to find this
Code: [Select]
$org_search_keywords = $search_keywords;

if (isset($HTTP_POST_VARS['search_user']) || isset($HTTP_GET_VARS['search_user'])) {

however  I have a different code in mine:
Code: [Select]
$org_search_keywords = $search_keywords;
$org_search_user = $search_user;

if (isset($HTTP_GET_VARS['search_terms']) || isset($HTTP_POST_VARS['search_terms'])) {
I would love to use this mod if someone can make it work for 1.7.6

I'm running this Mod succesfully with v 1.7.7.
Don't mind about the diffenrent code you pointed out. Just place the mod's code after it.

29
Mods & Plugins (Releases & Support) / Re: [PROGRAM] 4images Mobile Server
« on: October 16, 2009, 09:51:14 AM »
Using SMTP-Settings of my provider succeeded! Thanks very much for youre answer!

30
Hi,

the Mobile Server is a great Application to test any customization before going online, so thanks very much for sharing this!

When I try to register a new user, sendig of the verification-mail failed with error-message

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in W:\www\4images\includes\email.php on line 171

Which settings are nescessary to get mailing to work? Or do I need to setup a local mailserver, too?

Thanks for any suggestions.

Pages: 1 [2] 3