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

Pages: 1 2 3 [4] 5 6 7 8 ... 11
46
Discussion & Troubleshooting / User können keine Kommentare editieren
« on: February 24, 2006, 09:39:42 AM »
Bei mir funktioniert es schon seit einiger Zeit nicht(mehr) das User Kommentare editieren können, allerdings habe ich keine Ahnung an was das liegt :/

vielleicht kann ja mal jemand meine details.php ansehen und kommt drauf was es da haben kann http://www.hobby-fotografen.com/details.phps
Wenn ihr es Testen wollt dann könnt ihr euch auch einloggen - und zwar mir User: dosensteck Pass: test
Ein Kommentar wurde mit diesen Username abgegeben -> http://www.hobby-fotografen.com/img1229.htm und wie man sieht keine bearbeiten oder löschen funktion (wenn ihr euch einloggt)

Meine Comment_bit.html sieht so aus:
Code: [Select]
    <table border="0" cellpadding="4" cellspacing="0" width="500">
      <tr>
        <td class="head1" width="345"><b>{comment_user_name},</b> {comment_date}</td>
        <td class="head1" width="133" align="right">{comment_user_profile_button}</td>
      </tr>
      <tr>
        <td class="row4" colspan="2" width="488">{comment_text} </td>
      </tr>
      <tr>
        <td align="right" height="20" colspan="2" width="488">
{if admin_links}{admin_links}{endif admin_links} </td>
      </tr>
 
    </table>

Admins sehen auch den bearbeiten und löschen link.

47
Templates & Styles (Requests & Discussions) / Quadratische Thumbnails?
« on: February 17, 2006, 09:00:53 PM »
Wie kann man es anstellen das Thumbnails alle Quadratisch sind, allerdings ohne Verzerrung, sondern das der überschüssige Bereich einfach wegfällt? Also das der grösstmögliche Bereich gewählt wird?

Hae schon ein wenig gegoogelt, allerdings nichts Interessantes gefunden - vielleicht hat ja jemand einen Tipp?

48
Mods & Plugins (Releases & Support) / Re: [MOD] Votes saved in DB
« on: February 14, 2006, 12:04:09 AM »
ok, thx :/

49
Mods & Plugins (Releases & Support) / Re: [MOD] Votes saved in DB
« on: February 13, 2006, 10:40:49 AM »
hm, iam confused...

why i have in 4images_voted table a vote_date?

50
Mods & Plugins (Releases & Support) / Re: [MOD] Votes saved in DB
« on: February 13, 2006, 01:16:18 AM »
i have a problem with this mod... all vote_date entries are "0"  :?:

i need the vote date for a toplist - i will select all images they have rating x with x votes and order by last vote date.... but without vote_date ist impossible  :|

51
Mods & Plugins (Requests & Discussions) / S: [Mod] Comment Subscription
« on: February 08, 2006, 10:24:45 PM »
Vor dem Crash gab es diesen mod, ich hab ihn auch schon ein paarmal auf 4images seiten gesehen. allerdings bietet ihm niermand als download an...

Hat den Mod vielleicht noch jemand? In Suchmaschinen Cache seiten finde ich leider nichts :/


52
Mods & Plugins (Requests & Discussions) / Re: Pointrating?
« on: February 08, 2006, 01:34:56 AM »
Tausend Dank! Funktioniert einwandfrei und hab schon alles umgestellt.

Als kleines Dankeschön (anders kann ich leider nicht)
http://www.hobby-fotografen.com/
einfach auf die letzte news guggen, vielleicht fallen ja ein paar klicks ab :)

53
Mods & Plugins (Requests & Discussions) / Re: Pointrating?
« on: February 08, 2006, 12:49:21 AM »
Dazu mal nen kleines Skript,
dass du unter votes_update.php abspeicherst und einmal aufrufst.
Damit werden alle bisherigen Votes geupdatet,
d.h. nicht mehr der Durchschnitt ist gespeichert, sondern die Gesamtpunktezahl addiert zusammengerechnet.
Code: [Select]
<?php

define
('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');

$update_count;

$sql "SELECT  image_id, image_votes, image_rating
          FROM "
.IMAGES_TABLE."
          WHERE  image_votes != 0"
;

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

while(
$row $site_db->fetch_array($result)) {
     
$image_rating $result[image_rating] * $result[image_votes];
     
$sql "UPDATE ".IMAGES_TABLE."
              SET image_rating = '"
$image_rating."'
              WHERE  image_id = "
.$result[' image_id'];
      
$site_db->query($sql);
     
$update_count++;
}

echo 
"$update_count Datenstze erfolgreich updated";


?>

Danach das Skript löschen,
da sonst bei nochmaligen Aufruf die Daten verflscht werden.
Wenn noch bei keinem Bild gevoted wurde, wird auch nichts geupdated.


danke für deine bisherigen bemühungen, allerdings bekomme ich diesen fehler wenn ich das script aufrufe:

Parse error: parse error, unexpected T_VARIABLE in /www/htdocs/v156093/votes_update.php on line 18

54
Mods & Plugins (Requests & Discussions) / Re: Pointrating?
« on: February 07, 2006, 03:58:57 PM »
so, nachdem das jetzige votingsystem immer neviger wird (eine bewertung unter 5 und man hat fast keine chance mehr in die top 20 zu kommen) bin ich immer noch dran selbst herumzuprobieren

was ich bis jetzt habe:

Code: [Select]
    $sql = "SELECT image_id, image_votes, image_rating
            FROM
                4images_images";
    $result = mysql_query($sql) OR die(mysql_error());
    if(mysql_num_rows($result)) {
        while($row = mysql_fetch_assoc($result)) {
$image_id = $row['image_id'];
$votes = $row['image_votes'];
$rating = $row['image_id'];
           
$votes * $rating = $new_image_rating;

$sql = "UPDATE 4images_images
          SET image_rating = $new_image_rating
          WHERE image_id = $image_id";

        }
    }
 else {
        echo"nichts da";
    }

könnte es so funktionieren? hab zwar ein testsystem eingerichtet, das script läuft auch durch - so wirklich sehe ich aber nicht was es anstellt?
hab es jetzt ohne ".IMAGES_TABLE." usw. gemacht da ich 4 images darauf nicht installiert habe...

55
Mods & Plugins (Requests & Discussions) / Re: Pointrating?
« on: February 02, 2006, 05:25:47 PM »
Will nicht nervig sein, ist nur ein kleiner Push zur erinnerung ;)

56
Mods & Plugins (Requests & Discussions) / Re: Bild melden / report a pic
« on: January 29, 2006, 05:01:23 PM »
würde den mod auch gerne haben :)

dosensteck [at] chello.at

57
Mods & Plugins (Requests & Discussions) / Re: Pointrating?
« on: January 22, 2006, 11:41:18 AM »
... bei etwas mehr Zeit werde ich etwas davon hier reinstecken ... ggf. wird aber auch TheOracle noch tätig ...  :wink:

mawenzi

wäre super!

ich kanns leider nicht wirklich :/

lg


58
Mods & Plugins (Requests & Discussions) / Re: Pointrating?
« on: January 20, 2006, 06:41:29 PM »
THX for the help, i would only show how i will do this (the code was not tested).

I want to multiply votes and rating, for all images (my problem)... an update the image_rating with the result with new rating (shown in the code).

But im afraid to test it or do it - im not god in php and its not so easy for me :/

59
Mods & Plugins (Releases & Support) / Re: Small Credit "System" "MOD"
« on: January 19, 2006, 10:27:58 PM »
www.hobby-fotografen.com

hochgeladen wurden 90 bilder - die kommastellen zählen halt als ein upload :D

60
Mods & Plugins (Requests & Discussions) / Re: Pointrating?
« on: January 19, 2006, 10:15:16 PM »
Ich nochmal, vielleicht ein wenig nervig :D

Also ich hab mir jetzt gedanken gemacht, das mit dem kleinen script wäre natürlich die beste Lösung und diese versuche ich jetzt auch hinzubekommen...

Aber jetzt stellt sich mir die frage

Code: [Select]
  $sql = "SELECT  image_id, image_votes, image_rating 
WHERE image_id = $image_id
          FROM ".IMAGES_TABLE.";

$votes = $row['image_votes'];
$rating = $row['image_rating'];

$new_rating = $votes * $rating;

  $sql = "UPDATE ".IMAGES_TABLE."
          SET image_rating = $new_rating
          WHERE image_id = $image_id";

Frage nun, würde das so funktionieren? Ich will mir natürlich nicht die Einträge in der Datenbank zerstören...
Und probleme habe ich mit $image_id - woher bekomme ich die? ich will ja das die richtige spalte das update bekommt... Bei sovielen Einträgen ist das natürlich nicht so angenehm...

Wie gesagt, kann Php nicht so besonders - habe jetzt schon ziemlich lange gegoogelt ob vielleicht jemand mal vor einem ähnlichen problem stand - leider erfolglos :/



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