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

Pages: [1]
1
Programming / Re: Problems with restoring MYSQL database
« on: May 31, 2009, 10:22:27 AM »
Seems fine to me.
Missing overhead is not a problem at all, since it is just overhead, leftover space when dates are deleted. You haven't deleted anything in the new database.

What method did you use? Mysqldump?
Other changed values could result from different settings in the database system.

2
The data type for binary data is blob. http://dev.mysql.com/doc/refman/5.4/en/blob.html
An alternative would be, to have the image in yuor file system, and put a reference to this in the database.

3
Code: [Select]
$sql = "UPDATE ".USERS_TABLE."
            SET  user_name='$user_name',
Are you shure there are no qutation marks missing? Like
Code: [Select]
SET user_name='".$user_name."',Edit: Ups, sorry they are not missing. My bad.

Have a look at your query with
Code: [Select]
echo $sql;.
What does mysql say? For debugging purposes put a
Code: [Select]
if (!$result) {
    echo "Database error:".$site_db->error."<br />";
}
after the query.

4
Du kannst ruhig Deutsch schreiben :wink:
Ich dachte, in einem internationalen Forum sei englisch bevorzugt. Aber na gut. Dann halt deutsch.

Quote
Er nimmt das Datum, Uhrzeit, wo du das Bild geladen hast! Datum und Zeit wird aus der Server-Time ausgelesen, die dein Hoster eingestellt hat!
{image_date} wird richtig aufgelöst. Darum geht es mir nicht. Es geht mir um {lang_date}. In der Templatedatei details.html wird es aufgelöst zu "Datum:". Steht es in thumbnail_bit.html wird es im Ergebnis einfach weggelassen.

Edit: Z.B. in http://swyrtr.de/wbGalerie/categories.php?cat_id=4, wenn Du in den Code schaust, steht bei jedem Thumbnail vor dem Datum ein <b></b>. Da sollte ebendieses ersetzte "Datum:" hinein. Ich könnte es sicherlich per Hand hineinschreiben, aber wenn mir 4images die Möglichkeit der Sprachunabhängigkeit schon bietet, wollte ich die nutzen.

5
Hello,
I've a problem using lang_date in the thumbnail_bit.html file. When it is in details.html it correctly resolves from eg.
Code: [Select]
<td valign="top" class="row1"><b>{lang_date}</b></td>to
Code: [Select]
<td valign="top" class="row1"><b>Datum:</b></td>.

But in thumbnail_bit.html when I write
Code: [Select]
<b>{lang_date}</b> {image_date}<br />I get
Code: [Select]
<b></b> 04.04.2009 16:55<br />So lang_date is not resolved at all.

What am I doing wrong?

6
Thanks for your answer.

Well, I think then I just have to ask the users to notify me, if an image should be moved.

7
Hello all,

is there a opportunity to allow users to change the category of their images after uploading? Something like a category_dropdown in the member_editimage.html template.
How do I get this to work?

I'm using 4images 1.7.6.

Thanks,
  Hans

Ps.: Sorry if this has been asked before, the search function gives me lots of results, but AFAIKS nothing relevant.

Pages: [1]