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

Pages: 1 2 [3] 4 5 6 7 ... 11
31
Es ist lediglich ein kleiner nicht beachteter Aspekt in der Programierung  8)

32
Discussion & Troubleshooting / SQL Abfrage
« on: January 15, 2008, 06:27:32 AM »
Hallo Jungs,

ich stehe etwas auf dem Schauch.
Was mache ich bloß falsch?

Ich frage in der SQl zusätlich cat_video aus dem categories_table (der erstellt und gefüllt mit nullen und einsen ist) mit ab:

<code>
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name, c.cat_video".get_user_table_field(", u.", "user_name")."
        FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
        LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
        WHERE i.image_active = 1 AND i.cat_id = $cat_id AND c.cat_id = i.cat_id
        ORDER BY ".$config['image_order']." ".$config['image_sort'].", image_id ".$config['image_sort']."
        LIMIT $offset, $perpage";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

if (!$num_rows)  {
  $thumbnails = "";
  $msg = $lang['no_images'];
}
if ($cat_video == 1)  {

</code>

Allerdings kann ich die Vergleichsfuntion darunter dann nicht nutzen.
Was mache ich bei der Abfrage falsch?

Gruß
Daniel

33
Mods & Plugins (Releases & Support) / Re: [MOD] Votes saved in DB
« on: January 08, 2008, 06:22:37 PM »
Du kannst für jede einzelne Kategorie angeben wer voten darf... ACP -> Kategorien bearbeiten

34
very nice design!

35
Chit Chat / Re: PHP EDITOR
« on: January 07, 2008, 03:09:00 PM »
Es gibt einen PHPDesigner???? ....   8O   
Unglaublich...  :?

36
Ja sieht gut aus.
Das Logo ist ein wenig Pfad...design da mal was schönes...so aus Postkarten vielleicht  :wink:

37
nobby du bist aber auch ein GUTER  :roll: :wink: :thumbup: :thumbup:

38
oh sorry, nobby your right

this is the right thread: http://www.4homepages.de/forum/index.php?topic=15821.0

39
Discussion & Troubleshooting / Re: Wie kann man Thumbnaildatei entfernen?
« on: January 02, 2008, 07:59:24 PM »
du solltest prüfen ob du mehr als 2mb hochladen darfst ---check mal deine phpinfo

40
Discussion & Troubleshooting / Re: Wie kann man Thumbnaildatei entfernen?
« on: January 02, 2008, 07:49:09 PM »
ivan du bist ja ein teufelskerl....lieb und nett ...und super  :D

42
Discussion & Troubleshooting / Re: problem with attechment
« on: January 02, 2008, 07:45:32 PM »
perhaps:

http://www.4homepages.de/forum/index.php?topic=6840.0

we need a url to your 4images gallery

43
Mods & Plugins (Releases & Support) / Re: [MOD] Votes saved in DB
« on: January 01, 2008, 03:07:48 PM »
 :?:

Wie müßte bloß die sql-Abrafe lauten wenn man nur die neuen Votes aus dem VOTED_TABLE errechnen und in den images_table damit updaten wollen würde...

How can i use only new new votes (just from voted_table) to inset this in the image_table

 :?:


a happy new year  :wink:

44
Mods & Plugins (Releases & Support) / Re: [MOD] Votes saved in DB
« on: December 31, 2007, 04:54:58 PM »
David... i think in admin/users.php

and delete the user...not the images  :wink:

       $sql = "DELETE FROM ".VOTED_TABLE."
          WHERE user_id = $user_id";
       $site_db->query($sql);

45
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: December 18, 2007, 07:52:13 PM »
Dieses

onkeypress="if(window.event.keyCode==13){ this.form.submit(); }" onchange="document.images.icons.src='{template_url}/avatars/'+document.creator.user_avatar.options[document.creator.user_avatar.selectedIndex].value;

Was soll den das machen?
Soll das das jeweils angeklickte Bild zeigen?

Pages: 1 2 [3] 4 5 6 7 ... 11