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

Pages: 1 2 [3] 4 5 6 7
31
Mods & Plugins (Releases & Support) / Re: [MOD] Exif V.1.7.6
« on: May 30, 2010, 03:56:18 PM »
1. The headings are not being picked up correctly in the EXIF block... plus the columns are shifted be one line ... see attached image.

Ok, this problem is fixed by making some code entries (step 3 and 4... for some reason $lang variable was not being picked up when uppercase characters were present) in lowercase and modifying the code in functions.php like so (step 2):

Code: [Select]
if ($detailed_view && $image_info[2] == 2){
       global $site_db,$lang;

$sql = "SELECT image_make, image_model, image_datetimeoriginal, image_isospeedratings, image_exposuretime, image_fnumber, image_focallength, image_exposurebiasvalue, image_aperturevalue, image_maxaperturevalue,
                 image_meteringmode, image_flash, image_exposureprogram, image_exposuremode, image_whitebalance, image_gpslatitude, image_gpslatituderef, image_gpslongitude, image_gpslongituderef, image_gpsaltitude,
                 image_gpstrack
                 FROM ".IMAGES_TABLE."
                 WHERE image_id = '$image_id'";

$result = $site_db->query($sql);

$row = mysql_fetch_object($result);   

$bgcounter = 0;
         
 foreach ($row as $key => $val) {             

if ($val != "") {

$key = str_replace('image_','',$key);

          if (($key != "gpslongituderef") &&  ($key != "gpslatituderef")) {
          if ($key == "gpslongitude") {
$GPSLongtude = substr (strrchr($val, "("), 1);
$GPSLongtude = substr ($GPSLongtude,0, strlen($GPSLongtude)-1);
}
          if ($key == "gpslatitude") {
$GPSLatitude = substr (strrchr($val, "("), 1);
$GPSLatitude = substr ($GPSLatitude,0, strlen($GPSLatitude)-1);


        $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
            $site_template->register_vars(array(
               "exif_value" => format_text($val, 1),
               "exif_name" => $lang['exif_'.$key],
   "row_bg_number" => $row_bg_number
            ));
            $exif_info2 .= $site_template->parse_template("exif_bit");
           } // GPS
          } //end val
        }  // end foreach
     } // Exif aus DB
 }
}
//################################# End Exif aus DB #################################################################

32
Mods & Plugins (Requests & Discussions) / Cyrillic filenames
« on: May 20, 2010, 06:30:31 AM »
Gents,

I have a problem with my 4images site... I run version 1.7.7 and a lot of my users are trying to upload files named either with Cyrillic names or (probably) containing spaces....

I have a huge number of MODs installed already so downgrading or anything like that is not an option.

Is there a MOD that actually checks the file names? or is there a mod that renames files automatically after the upload (I really would like this one)? or is there a fix that allows 4images to work with non-latin filenames?

My system hangs when trying to either resize (I have an autoresize module installed) or annotate... (no matter if I use GD or ImageMagic)... database entries are added, but the image is not showing properly...

Any hits would be greatly appreciated!

33
Mods & Plugins (Releases & Support) / Re: [MOD] Exif V.1.7.6
« on: March 24, 2010, 02:40:29 PM »
Hi!

in your example the field name is not right.
the fieldname are original, without "image_"
I miss the field "make" at the top

mfg Andi

Thanks Rembrandt for your answer.

My problem is that this part of the code does not work for some reason:

Code: [Select]
             "exif_name" => $lang['exif_'.$key],
if I just do

Code: [Select]
             "exif_name" => $key,
Then all is fine but in english language... and even the shifting is gone.... but if I keep the original code the same situation as indicated in my previous post attachment....

 :? :? :?

34
Mods & Plugins (Releases & Support) / Re: [MOD] Exif V.1.7.6
« on: March 23, 2010, 07:05:02 PM »
Guys!

Thanks for a great mod.

I am trying to get away from ImageMagic since one image out of 100 hangs my server.... nobody knows why.
It works fine with GD... but the EXIF is gone then... and it's important for me.

So I have decided to install this MOD on my 1.7.7 .... and have a few problems with it:

1. The headings are not being picked up correctly in the EXIF block... plus the columns are shifted be one line ... see attached image.
2. I am using the auto resize mod as well and I thought if I put the EXIF mod code before the auto-resizer in member.php, it would pick up the info and save it in the database... but it does not... it only works with ImageMagic and not working with GD...... what am I missing?

Thanks for any hints in advance.

35
I'll try, will it be possible that you send me a file. Zip or .rar your script by email?

Edit : His march, but I have an error when I change page it disconnects me

I connect via the website, I am redirected to the forum -> ok
I return to the site I'm Disconnected

My files are modded so much, that they will be no use for you.. sorry about that..

So I understand I works for you finally?
If you are kicked off after the site redirects you back to the 4images, try to clean all of your cookies in the browser and check if the user is being automatically inserted into the 4images_users table. If the user if inserted properly we'll look for another problem....

I attach only 2 files that have not been modified from my installation (phpBB.php and phpBB_sessions.php)... try to replace your files with mine (backup your files first!!)

36
Does it work with someone? For even on the demo it does not work (blank page)

Like I have written before in this subject, I did a step by step modification (did not use the attached version) and for me it works great.

If you still have the same error message, it means your path is still wrong and you need to keep trying to find the right path...

also if you get a blank page, try this solution http://www.4homepages.de/forum/index.php?topic=26013.msg143481#msg143481

37
try these lines in our config.php

Code: [Select]
define('PHPBB3_BRIDGE_ON', true);
define('PHPBB3_PATH', realpath(realpath(dirname(__FILE__)).'/../forum/').'/');
define('PHPBB3_URL', '/forum/');

38
Discussion & Troubleshooting / Re: email users in UTF-8
« on: February 08, 2010, 12:25:14 AM »
Thanks very much,

I have forgotten to put headers into a second statement after checking if from is empty... here is the correct function in case someone runs into the same problem

Code: [Select]
  function create_header() {
    global $config;
    $header = "";
    if (empty($this->from)) {

      $header .= 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/plain; charset=UTF-8' . "\r\n";
  $header .= sprintf("Return-Path: %s\r\n", $config['site_email']);
      $header .= sprintf("From: %s\r\n", $config['site_email']);
    }
    else {
  $header .= 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/plain; charset=UTF-8' . "\r\n";
      $header .= $this->from;

    }

    if (!empty($this->bcc) && !$this->use_smtp) {
      $bcc_list = "";
      foreach ($this->bcc as $key => $val) {
        $bcc_list .= (($bcc_list != "") ? ", " : "").$val;
      }
      $header .= sprintf("Bcc: %s\r\n", $bcc_list);
    }
    return $header;
  }

39
Discussion & Troubleshooting / Re: email users in UTF-8
« on: February 07, 2010, 08:00:45 PM »
They see an empty email?
perhaps it's something with mail.ru itself?

no... they actually see a message, but the encoding is not recognized... moreover, the switches inside the mail.ru interface can not decode the message.....  :? :? :?

Does the code look ok?

40
Discussion & Troubleshooting / email users in UTF-8
« on: February 07, 2010, 06:41:23 PM »
Hello everybody!

I have an issue that I can not resolve on my own (not enough knowledge)...

I need to send any outgoing e-mail from my 4images installation in UFT-8 format... I have modified the email.php as follows. (I use mail function of PHP and not SMTP)

Code: [Select]
....

$this->subject = iconv('windows-1251', 'UTF-8', $subject);

....

$header .= 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=UTF-8' . "\r\n";

.....

// in function prepare_text($message) {

    return iconv('windows-1251', 'UTF-8', $message);

...

function send_email() {
    if ($this->use_smtp) {
      return ($this->smtp_mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
    }
    else {
      //original line was - return (mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
 return (mail($this->to, '=?UTF-8?B?'.base64_encode($this->subject).'?=', $this->body, $this->create_header())) ? 1 : 0;
 
    }
  }


I hope there are pro-s out there who could help me out with this.... because in MS Oulook for example it works great, in AOL and Gmail.... but most of my users are on Mail.ru servers and those DO NOT display messages send using the above modifications correctly....

Any suggestions or hints would be greatly appreciated!
Aleksey

41
Not sure why, but i get a broken image as well... my system is based on 1.7.7 but hacked and modded heavily... BUT i did not touch the lightbox functions at all.... can anybody hint me about the error (I am not knowledgeable in JavaScript)...

login - tester
pw - tester

42
Mods & Plugins (Releases & Support) / Re: Signature image v2.23
« on: February 03, 2010, 02:01:18 AM »
weird... did all as instructed...

I get an error... but if I look in tmp folder and rename the signature.tmp file into png, it's a readable picture with all necessary info...

error I get is:

Code: [Select]
Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/yyy/signature.php:1) in /home/xxx/public_html/yyy/signature.php on line 355

Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/yyy/signature.php:1) in /home/xxx/public_html/yyy/signature.php on line 356

Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/yyy/signature.php:1) in /home/xxx/public_html/yyy/signature.php on line 357

Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/yyy/signature.php:1) in /home/xxx/public_html/yyy/signature.php on line 358

Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/yyy/signature.php:1) in /home/xxx/public_html/yyy/signature.php on line 359

Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/yyy/signature.php:1) in /home/xxx/public_html/yyy/signature.php on line 360
�PNG  ��� IHDR������c��M���� �IDATx�Ľw��q.ZU�t���� ,rH$�EI�DQ��E��(��$]+\��^���>�ײe �kYֻ��d+���f"�H���l��}N�?N���.�R

etc..

no additional errors are displayed if I login as admin...

EDIT...

sorry... not enough sleep lately....
i have saved the signature.php file in the wrong encoding... MUST save in ANSI... i.e. normal ISO-8859-1... so I have converted the file and it works...

ONE MORE EDIT:

Ok guys... I have modified the code to use Imagettftext() function... (for those russian friends out there  8)) the code attached presumes that you have a standard windows TAHOMA.TTF (watch the file name case) in the root of your 4images installation. Also a temp folder and signatures folder should be in your 4images root folder. Sorry that the info labels are in Russian... but I am sure you'll figure this out...

Enjoy  8)

43
it's enbled but nothing

please V@no 
 answer me to fix this , i changed the hosting but i still got this slow you can vist and see

well it's impossible that you see nothing... after you enable those settings, you will see exactly how much time each MySQL query takes... then find the one that takes longest and check the syntax... most probably you will find the error....

44
Mods & Plugins (Releases & Support) / Re: [Mod] Mini-Top
« on: January 23, 2010, 12:38:22 PM »
Das würde mich auch sehr interessieren. Hat jemand eine Idee und kann helfen?

hi there! no problem. I am willing to share my solution with the world!

I have reworked the entire mini-top mod...

attached is my version (place the files in the root of your 4images)

in your template home.html include the following code:
Code: [Select]
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_day}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_day}</td>
</tr>

</table><br/>
</td>

</tr>

<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_week}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_week}</td>
</tr>

</table><br/>
</td>
</tr>

<tr>
<td valign="top">
<table width="100%" valign="top" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_month}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_month}</td>
</tr>

</table><br/>
</td>
</tr>

<!--<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_mini_top_title}</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="row1">{mini_top_images}</td>
</tr>
</table><br/>
</td>
</tr>-->
</table>

of course the language variables have to be set as well....

maybe this is not the most elegant solution, but it works for me.... please note, the system removes duplications in each rating, so that for example in the mini-top of the day, no identical images will be shown...

now, if somebody will make a separate module to use this code but so that user can select a date and the code would show ratings for this date, that would be great )))

45
OK guys!

found a little bottleneck/bug:

if two or more users will be writing an answer (by clicking on "Post response" and making a hidden field <input type="hidden" name="response_to" value="{response_to}" /> not null) then only the latest answer will be posted...

a simple workaround is for two simultanious users only... if 3 people will click on "Post response" and then submit it, only two (presumably will be kept.. i did not test it with more than 2 users)...

Ok... here is the solution:

find SECOND instance of the following code in details.php:
Code: [Select]
 if ($response_to) {
and ADD AFTER

Code: [Select]
//check for response collission (only for 2 simultaneous users)
$sql = "SELECT user_name, comment_id, image_id, comment_response, response
FROM ".COMMENTS_TABLE."
WHERE image_id = $id AND comment_id = $response_to
LIMIT 1";
$row = $site_db->query_firstrow($sql);
if ($row['comment_response'] <> 0) {
$response_to = $row['comment_response'];
}
//end check for response collission

I hope somebody will be able to find a solution to fix this for a very busy site in terms of comments like mine....  :roll: :wink:

Pages: 1 2 [3] 4 5 6 7