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

Pages: [1] 2 3 4
1
Hi why the Id is important?
Mostly the Id's are autoincremented by mysql. If oyu want to reset you can clear the table. If you do a manual rewrite what will be possible than the next uploaded image for example get the old last id +1. So if you fix it manually withour resetting the db you can make id 100 = id 1 and id 101 = id 2 and so on. But later maybe you have ids from 1-10 and before you got 100-110  the next uploaded picture gets 111 again;)

2
Feedback & Suggestions / Re: 4images 1.7.11 - Feedback
« on: July 28, 2012, 01:01:15 PM »
Ja eig. ist der Schritt überflüssig. Diese Datei wird nur zur Installation benötigt. Da ich aber davon ausgehe das deine Galerie bereits existiert und somit installiert ist brauchst du es nicht mehr.

3
Feedback & Suggestions / Re: 4images 1.7.11 - Feedback
« on: July 21, 2012, 03:06:38 PM »
Hallo,

Na klar gern geschehen. Bei mir hat das updaten damit reibungslos funktioniert. Ich denke wenn jeder aus unserer 4Images Gemeinschaft mal nen paar Codeschnipsel beisteuert ist jeder glücklich :wink:

4
Feedback & Suggestions / Re: 4images 1.7.11 - Feedback
« on: July 18, 2012, 07:43:26 PM »
Hier für alle die manuell updaten wollen (von 1.7.10 auf 1.7.11):

details.php
suche nach:
$meta_keywords  = !empty($image_row['image_keywords']) ? implode(", "explode(","$image_row['image_keywords'])) : "";

ersetze mit:
$meta_keywords  = !empty($image_row['image_keywords']) ? strip_tags(implode(", "explode(","$image_row['image_keywords']))) : "";

rss.php
suche nach:
function format_rss_html($text) {
  
$text format_text(trim($text), 101);

  return 
$text;
}


ersetze mit:
function format_rss_html($text) {
  
$text format_text(trim($text), 201);

  return 
$text;
}


admin/categories.php
suche nach:
$cat_parent_id = (isset($HTTP_GET_VARS['cat_parent_id'])) ? $HTTP_GET_VARS['cat_parent_id'] : 0;

ersetze mit:
$cat_parent_id = (isset($HTTP_GET_VARS['cat_parent_id'])) ? intval($HTTP_GET_VARS['cat_parent_id']) : 0;

admin/index.php
suche nach:
if ($redirect != "") {
  
show_admin_header("<meta http-equiv=\"Refresh\" content=\"0; URL=".$site_sess->url($redirect)."\">");
  echo 
"<p><a href=\"".$site_sess->url($redirect)."\">".$lang['admin_login_redirect']."</a></p>";
  
show_admin_footer();
  exit;
}


ersetze mit:
if ($redirect != "") {
  if (
strpos($redirect'://') === false) {
    
show_admin_header("<meta http-equiv=\"Refresh\" content=\"0; URL=".$site_sess->url($redirect)."\">");
    echo 
"<p><a href=\"".$site_sess->url($redirect)."\">".$lang['admin_login_redirect']."</a></p>";
    
show_admin_footer();
  } else {
      
redirect('home.php');
  }
  exit;
}


suche nach:
if ($action == "frames") {
  if (
$goto != "") {
    
$framesrc $site_sess->url($goto);
  }
  else {
    
$framesrc $site_sess->url("home.php");
  }


ersetze mit:
if ($action == "frames") {
  if (
$goto != "" && strpos($goto'://') === false) {
    
$framesrc $site_sess->url($goto);
  }
  else {
    
$framesrc $site_sess->url("home.php");
  }


admin/users.php
suche nach:
else {
    
$activation 0;
  }


ersetzen mit:
else {
    if (
$config['account_activation'] == && $user_row['user_level'] == USER_AWAITING) {
        
$activation 1;
    } else {
        
$activation 0;
    }
  }


data/database/default/mysql_default.sql
einfach die Datei aus dem neuen Archiv kopieren.

includes/db_mysql.php
suche nach:
  function Db($db_host$db_user$db_password ""$db_name ""$db_pconnect 0) {
    
$connect_handle = ($db_pconnect) ? "mysql_pconnect" "mysql_connect";
    if (!
$this->connection = @$connect_handle($db_host$db_user$db_password)) {
      
$this->error("Could not connect to the database server ($db_host$db_user)."1);
    }
    if (
$db_name != "") {
      if (!@
mysql_select_db($db_name)) {
        @
mysql_close($this->connection);
        
$this->error("Could not select database ($db_name)."1);
      }
    }
    return 
$this->connection;
  }


ersetze mit:
function Db($db_host$db_user$db_password ""$db_name ""$db_pconnect 0) {
    
$connect_handle = ($db_pconnect) ? "mysql_pconnect" "mysql_connect";
    if (!
$this->connection = @$connect_handle($db_host$db_user$db_password)) {
      
$this->error("Could not connect to the database server ($db_host$db_user)."1);
    }
    if (
$db_name != "") {
      if (!@
mysql_select_db($db_name)) {
        @
mysql_close($this->connection);
        
$this->error("Could not select database ($db_name)."1);
      }
    }
    return 
$this->connection;
  }

  function 
escape($value) {
    return 
mysql_real_escape_string($value$this->connection);
  }


includes/functions.php
suche nach:
function check_email($email) {
  return (
preg_match('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_`{|}~]+@([-0-9A-Z]+\.)+([0-9A-Z]){2,4}$/i'$email)) ? 0;
}


ersetze mit:
function check_email($email) {
  return (
preg_match('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_`{|}~]+@([-0-9A-Z]+\.)+([0-9A-Z]){2,}$/i'$email)) ? 0;
}


includes/search_utils.php
suche nach:
$word_cache = array();
    foreach (
$split_words as $word) {
      
$word_cache[$word] = 1;
      
$allwords_sql .= ($allwords_sql != "") ? ", '".$word."'" "'".$word."'";
    }


ersetze mit:
$word_cache = array();
    foreach (
$split_words as $word) {
      
$word_cache[$word] = 1;
      
$allwords_sql .= ($allwords_sql != "") ? ", '".addslashes($word)."'" "'".addslashes($word)."'";
    }


suche nach:
$sql "INSERT INTO ".WORDMATCH_TABLE." (image_id, word_id".$match_insert_key_sql.")
              SELECT DISTINCT 
$image_id, word_id".$match_insert_val_sql."
                FROM "
.WORDLIST_TABLE."
                WHERE word_text = '
$key'";
      
$site_db->query($sql);


ersetze mit:
      $sql "INSERT INTO ".WORDMATCH_TABLE." (image_id, word_id".$match_insert_key_sql.")
              SELECT DISTINCT 
$image_id, word_id".$match_insert_val_sql."
                FROM "
.WORDLIST_TABLE."
                WHERE word_text = '" 
addslashes($key) . "'";
      
$site_db->query($sql);


includes/sessions.php
suche nach:
if (secure_compare($this->read_cookie_data("userpass"), md5($this->user_info['user_password'])) && $this->user_info['user_level'] > USER_AWAITING) {
        
$this->set_cookie_data("userpass"$this->user_info['user_password']);
      }


ersetze mit:
if (secure_compare($this->read_cookie_data("userpass"), md5($this->user_info['user_password'])) && $this->user_info['user_level'] > USER_AWAITING) {
        
$this->set_cookie_data("userpass"md5($this->user_info['user_password']));
      }


Wer will kann noch in der constants.php die Version anpassen, um die Updatemeldung im Adminbereich auszublenden.

So das war es;) Viel Spaß beim updaten.

5
Feedback & Suggestions / Re: 4images 1.7.11 - Feedback
« on: July 17, 2012, 02:43:46 AM »
Vielen Dank. Ich hoffe ich komme die Tage mal dazu die Änderungen herrauszufiltern und hier zu veröffentlichen.

6
Feedback & Suggestions / Re: 4images 1.7.11 - Feedback
« on: July 15, 2012, 03:08:15 PM »
Hat denn jmd. noch eine unmodifizierte 1.7.10 ? Dann würde ich mich mal mit Winmerge rannsetzen und die veränderten Stellen ausfindig machen.

Vielen Dank.


7
Feedback & Suggestions / Re: 4images 1.7.11 - Feedback
« on: July 13, 2012, 07:01:56 PM »
Ja genau...Deswegen wäre eine detailierte Erklärung echt super.

8
Feedback & Suggestions / Re: 4images 1.7.11 - Feedback
« on: July 10, 2012, 11:46:34 PM »
Hi, I want to say thanks again for that great script.
I want to ask do you plan to publish a manual update instruction, like in the other versionupdates. It would be very nice if you can post a step by step update instruction.

Thanks so much :)

Regards
Crazymodder

9
Mods & Plugins (Requests & Discussions) / Re: Server Load increasing
« on: November 18, 2011, 01:49:05 PM »
Hi,
Maybe your hardware is to small for your gallery. I have also gallerys with such numbers of images and they wirthout any problems. The first step to reduce query is to deactivate the random picture.
Do you have your own server?
If yes try to run the tuning-primer script and follow the instructions there;)

Regards
Crazymodder

10
Cool thanks:)

11
Wow i really like your ideas. To make 4images more comfortable for users. Very very nice.
I really would like to see how this mod works.
And i'm also very tense how your theme looks if it's finished:)

Regards
Crazymodder

12
Nice Template but I think there are some Error from the orginal template you use...For example at the commentbox on mouse over you will get the old design.

13
Hey very nice mod.
Is there a way to show Image since last visit also for guests? I think the Date is saved in a cookie?
If I remove the
if USER the date isn't correct for guest for users everythink works fine:)

EDIT:
The Date in Cookie is set correctly. Can't I use the function from 4images? Or did I need to read out the cookie with a seperator php snipet?

Did someone have an solution?

Thanks
Crazymodder

14
So you only need 2 detail sites next to each other?
I think that should ne possible with 4images. I'm in stressy times at the moment but next weekend I have more time. But maybe an other people is faster than me:)

15
Also zwar bietet die neue Version jetzt zwar die sichere Methode aber in meiner alten Datanbank stehen ja noch alte hashwerte von den Benutzern die sich zuvor (alte Version) registriert haben. Gibt es eine Möglichkeit diese Passwörter zu aktualisieren oder müsste sich dafür jeder User einloggen und sein Passwort über das Kontrollcenter ändern?

mfg.
Crazymodder

Pages: [1] 2 3 4