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

Pages: [1] 2
1
Hi!

Ignore my last posts in this thread.

I forgot to add the rows for the additional image fields to the upload and multiupload templates. :oops: :oops:

Since i saw appear this additional rows in the admin area automatic i turned off my brain.

Egoplawi

2
@egyptsons

Hello,
I read the 5 page :) and do all the work by steps as you say but
I got this error when I try to upload
http://gallery.egyptsons.com/member.php?action=muploadform&numupload=2

Code: [Select]
Fatal error: Call to a member function on a non-object in /home/egyptson/public_html/gallery/includes/mu_modules/basic.php on line 82


Hi egyptsons!

Wellcome to my gallery as one of the first members.

I saw that your multi uploade form http://gallery.egyptsons.com/member.php?action=muploadform&numupload=2 now works without errors. No aditional image fields, but no errors.

Did you use my "solution" for this problem?

Would you like to upload some of your nice pictures to my gallery?
I created an off-topic category and i created also a subcategory for your pictures:
http://punksy.com/gallery/categories.php?cat_id=77&l=english

Greatings from Vienna!
Egoplawi

@thunderstrike

Quote

In includes/mu_modules/basic.php file,

find:


global $config, $cat_id, $additional_image_fields, $search_match_fields, $cat_id_backup;


replace:


global $site_db, $config, $cat_id, $additional_image_fields, $search_match_fields, $cat_id_backup;

Hi thunderstrike!

No Fatal error but still no aditional image fields in multi upload form.   ???

Egoplawi



3
Hallo!

habe gerade entdeckt, dass 4images, wenn es im Namen der Bilddatei einen Unterstrich findet, diesen durch ein Leerzeichen ersetzt und als Bildernamen verwendet. Mein Skript verwendet dann diesen Bildernamen um ein Keyword zu erzeugen.

Beispiel:

Dateiname: 444_333.jpg
Bildername: 444 333
Neues Keyword: 444 333

Wer das nicht will findet
Code: [Select]
$image_media_file = $row['image_media_file'];und fügt direkt darunter ein
Code: [Select]
$image_media_file = str_replace("_", " " ,$image_media_file);
Bis bald
Egoplawi

4
Hi Jacob!

If you uploade pictures by ftp and did not enter picturename and/or picturedescription the default picturename is the same as the name of the mediafile like "CIMG1234" and this is not a good keyword.

As soon you or someone else enter a picturename and/or picturedescription you can run my script again and get new keywords.

w.b.r.
Egoplawi

5
Hi Jacob!

If some users uploade pictures but do not enter keywords for this pictures the script generate keywords from the 'picture name' and 'picture description' fields.

w.b.r.
Egoplawi

6
Hallo!

Danke für die Infos. Das kann ich nachvollziehen. Schaue mir das ab morgen genauer an.

M.f.G.
Egoplawi

7
Hallo !

Warum ist das nicht SuMa tauglich?

Google mag meine Seite recht gerne: http://www.google.de/search?hl=de&q=+site%3Apunksy.com&btnG=Google-Suche&meta=

Wo siehst du dabei die Gefahr?

M.f.G.
Egoplawi

8
Hallo!

This is a modification of the code:
Code: [Select]
$domain = explode('.',sprintf($_SERVER['HTTP_HOST'])); 
$subdomain = strtolower($domain[count($domain)-3]); 
if ($subdomain != "www" and $subdomain != "")
{
$url = "http://punksy.com/gallery/search.php?search_user=".$subdomain; 
header("location: ".$url);
exit;
}

now it works also if there is no subdomain like punksy.com or if there subsub domains like blabla.attikota.punksy.com

Egoplawi

9
Hallo!

You speak about a FREE gallery software. You can wait or spend $749 for ImageFolio.  :?

Egoplawi

10
Hallo!

Insert this code

Code: [Select]
$domain = explode('.',sprintf($_SERVER['HTTP_HOST'])); 
$subdomain = strtolower($domain[0]); 
$subdomain = str_replace("http://", "", $subdomain); 
if ($subdomain != "www" and $subdomain != $domain[1])
{
$url = "http://your_domain.tld/path_to_your_gallery/search.php?search_user=".$subdomain; 
header("location: ".$url);
exit;
}

at the top of the file "index.php" of your 4images script.

Sample for user attikota:

http://attikota.punksy.com

will be redirected to

http://punksy.com/gallery/search.php?search_user=attikota

and all thumbs of his uploaded pictures are here.

Good luck
Egoplawi

11
Hallo!

D: Ich habe mir mal ein kleines Script geschrieben, welches das Feld "image_keywords" in der Datenbank mit Schlüsselwörtern füllt, falls der User keine eingetragen hat. Ich nehme dazu den Bildernamen, und die Beschreibung, falls diese vom User eingetragen wurden.

Erstelle eine Datei mit dem Namen "autokeywords.php"

Füge folgenden Code ein:

Code: [Select]
<?php



define
('ROOT_PATH''./gallery/');

include(
ROOT_PATH.'config.php');
include(
ROOT_PATH.'includes/db_mysql.php');
include(
ROOT_PATH.'includes/constants.php');

$site_db = new Db($db_host$db_user$db_password$db_name) OR die("Keine Verbindung zum Datenbankserver.");



$sql "SELECT image_id, image_name, image_description, image_keywords, image_media_file 
        FROM "
.IMAGES_TABLE.
        WHERE image_keywords=''"
;

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

while (
$row $site_db->fetch_array($result)){
  
$new_keywords "";
  
$image_id $row['image_id'];
  
$image_name $row['image_name'];
  
$image_description $row['image_description'];
  
$image_keywords $row['image_keywords'];
  
$image_media_file $row['image_media_file'];

  
$image_media_file_name explode(".",$image_media_file);
  
  if(
$image_name != $image_media_file_name[0])
  {
$new_keywords .= $image_name;
  if(
$image_description != "")
  {
$new_keywords .= " ".$image_description;}
  echo 
"Bild ID: ".$image_id."<br>\n";
  echo 
"Bildname: ".$image_name."<br>\n";
  echo 
"Beschreibung: ".$image_description."<br>\n";
  echo 
"Keywords: ".$new_keywords."<br>\n";
  echo 
"Filename: ".$image_media_file."<br>\n";
  echo 
"<br><hr>\n";
  
$sql "UPDATE ".IMAGES_TABLE." SET image_keywords = '$new_keywords' WHERE image_id = '$image_id'";
  
$result mysql_query($sql) OR die("Fehler beim Schreiben in Tabelle.");


  }


  }
  @
mysql_close($site_db); 

?>

Achtung: Das Script schreibt in die Datenbank! Unbedingt Backup der Datenbank anlegen!

Vieleicht findet sich ja jemand, der das Script verbessern kann. Möglicherweise als Plugin im Admin Bereich.
Das kriege ich leider nicht so einfach hin.


E: This script auto generate keywords if keywords field left emty by users. For keywords i use picture name and picture description.
This script write data to the database! Make backup of your database!


Schönen Tag
Egoplawi

12
Hello,
I read the 5 page :) and do all the work by steps as you say but
I got this error when I try to upload
http://gallery.egyptsons.com/member.php?action=muploadform&numupload=2

Code: [Select]
Fatal error: Call to a member function on a non-object in /home/egyptson/public_html/gallery/includes/mu_modules/basic.php on line 82



Hello!

I had the same error. The reason is if you add some aditional fields to your database (table 4images_images) the file \gallery\includes\mu_modules\basic.php do not work anymore. I dont know why. But you can deactivate this part of the file

Code: [Select]
/*load data for additional fields
  if (!empty($additional_image_fields))
  {
    $table_fields = $site_db->get_table_fields((($direct_upload) ? IMAGES_TABLE : IMAGES_TEMP_TABLE));
    foreach ($additional_image_fields as $key => $val)
    {
      if (isset($HTTP_POST_VARS[$key.$i]) && isset($table_fields[$key]))
      {
        $HTTP_POST_VARS[$key] = $HTTP_POST_VARS[$key.$i];
      }
    }
  }*/

until we know the reason.

Egoplawi

13
Hi host!

Thanx for this Mod! It works fine.

Visit a sampel here http://punksy.com/gallery/details.php?image_id=199

Egoplawi

14
Hallo!

Habe gerade diesen Mod installiert. Funktioniert einwandfrei. Vielen Dank!

Thanx for this mod. It works fine.

Egoplawi

15
Chit Chat / Re: PUNKSY.com ::: Non Profit Project
« on: June 09, 2007, 08:14:38 PM »
Möcht ja gerne zeigen, wie ich 4images einstze. (und natürlich ein paar Besucher gewinnen :wink:)

Ausgaben > Einnahmen = No Profit, aber trotzem viel Spass!

Lg
Egoplawi

Pages: [1] 2