Author Topic: [MOD] Bild melden - zweite Möglichkeit / report a pic - second possibility  (Read 81661 times)

0 Members and 1 Guest are viewing this topic.

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Quote
[Deutsch]
Hallo,

dieser Mod fügt einen Melde Button hinzu, der es den Benutzern ermöglicht, ein Bild der Administration zu melden.

Der Mod (in Deutsch und English)
Download

Der Mod wurde von Eckard41 aus dem paules-pc-forum.de erstellt, weitere Anfragen bitte über diesen Thread stellen. Gegen einen Besuch im paules-pc-forum.de ist natürlich nichts einzuwenden. :wink:

Hier gibt es einen vergleichbaren Mod, der ist aber etwas aufwendiger:
http://www.4homepages.de/forum/index.php?topic=11447.0

[English]
Hello!

First of all, my English ist bad, sorry!

This Mod adds would report one button, that it enables the users to report a picture of the administration. 

Here is this Mod (in German and English)
Download

The Mod was generated of Eckard41 out of the  paules-pc-forum.de , place further inquiries please over this thread. 

Here there is a comparable mod, to be sure somewhat more
http://www.4homepages.de/forum/index.php?topic=11447.0





Version 1.7.6
 :flag-en: Installations description for 4images Version 1.7.6 in english by Jan-Lukas  : here
 :flag-de: Installations-Beschreibung für 4images Version 1.7.6 in deutsch von Jan-Lukas  : hier
« Last Edit: May 14, 2008, 06:09:10 PM by mawenzi »

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #1 on: February 04, 2006, 08:36:24 PM »
Topic has been modified above, thanks for your understanding on my point of vue. ;)

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #2 on: February 04, 2006, 08:55:22 PM »
Sorry, I confused that to the links.

Is already good, take it again out, peace ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #3 on: February 04, 2006, 09:22:47 PM »
And what would mine be a purpose for ?? :?

You told me in PM I could publish my version instead since yours would require more time.
You really think that the world is going around yourself only, don't you?


Second, there are no unset commands in your PHP file (which could open some unwanted access).
HUH?


I don't know why there's a second version of this, but the official version has already been published here :

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

which is fully compatible with 4images's modulation and secured sessions.
There is no official version, but only a private (yours).
You are just too cocky, that's all.


In addition, your queries has not been coded under super globals.
You need read more carefuly PHP manual before you state such nonesence.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #4 on: February 04, 2006, 10:08:39 PM »
Is that so ? Then, if it were really that "much non-sense" has you described then why is my MOD placed under the MOD & Plugins section and fully working ? !

If it waren't working or I wouldn't know how to code, I wouldn't go that far to accomplish this task.

Meaning, again, your answer has no point since this MOD has already been accomplished.

That said, since users seems to be happy to use it, they must think I'm doing a clean job and I support them for it.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #5 on: February 04, 2006, 11:50:50 PM »
Is that so ? Then, if it were really that "much non-sense" has you described then why is my MOD placed under the MOD & Plugins section and fully working ? !
First of all, I did not move it there, and I would not move it, because it did not work properly from the beginning. Obviosly you did not test your own tutorial before you published it, and because of that before it become pretty much working mod, it took 2 pages of replys to fix it. Are you gonna deny that fact too?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #6 on: February 05, 2006, 01:15:45 AM »
@V@no
Perhaps you can make sometime a official version?
I installed the mod of TheOracle, and that very differ, that I here well known made would have, therefore the user should decide.


Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #7 on: February 05, 2006, 01:22:16 AM »
Quote

First of all, I did not move it there, and I would not move it


That explains your opposition. That is exacly what I wanted to know since you're making the same reactions when I'm creating a new topic - you refuse to reply to them. :roll:

Quote

Are you gonna deny that fact too?


Absolutely, since it was tested on another server and if you'd read my instructions like you were supposed too, you would already read the fact that a beta tester volonteered for this project as this MOD wasn't even build on my own server but that user's server to make sure I wasn't mistaken before distributing. In fact, the user can confirm these facts.

Sure, mawenzi reported some forgotten steps I made during my very first post on that topic as they were added, in the end, without questionnings.

Now, my question is this :

How many of my instructions would you be willing to "unread" before responding against my responses ?

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #8 on: February 08, 2006, 06:58:54 AM »
Ui, noch gar nicht gesehen. Wenn ich zusammen mit TheOracle seinen Mod nicht zum laufen bekomme dann schau ich mir den mal an. Der scheint nicht ganz so kompliziert zu sein. ;)
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #9 on: February 08, 2006, 04:46:36 PM »
Dieser Mod läßt sich wunderbar in 4imgaes einbauen, was wohl bei dem anderen nicht der Fall ist. Außerdem ist er innerhalb weniger Sekunden installiert.

Was jetzt nur noch fehlt, ist wie gesagt, ein Spam Schutz, eine Art Button Sperre, in der melden.html, für 10 Sekunden würde reichen. Die Weiterleitung auf die Dank Seite kann nämlich etwas dauern, das kommt auf den Server an. Der Melder kann in der Zwischenzeit öfter den Melden Button anklicken und somit mehrere Email an den Admin absenden.

Ich habe das im Moment so gelöst:
melden.html
suchen
Code: [Select]
<input type="submit" name="submit" class="button" value="Bild melden">ersetzen mit
Code: [Select]
<input name="melden_" onClick="if(this.checked==true) { document.melden.submit.disabled=false; } else { document.melden.submit.disabled=true; }" type="checkbox"> Bild melden<br>H&auml;ckchen setzen und bitte <u>1x</u> auf Abschicken klicken!<br>
<input disabled type="submit" name="submit" class="button" value="Abschicken">
So muss der Benutzer erst ein Häckchen anklicken, bevor der Melde Button aktiviert wird. Aber letztlich ändert das nichts daran, das der Benutzer dem Admin mehrere Emails zusenden kann, wenn er schnell genug klickt. Aber ein versehentliches anklicken wird dadurch zumindest verhindert.

Gruß
michii-w.

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #10 on: February 09, 2006, 12:46:57 AM »
Im qhaut.de Forum wurde mir endlich ein Spam Schutz gebastelt.
http://www.qhaut.de/forums/index.php?showtopic=3724&st=20&gopid=22227&#entry22227

Falls der Mod bereits irgendwo eingebaut ist:

öffne
header.html
in den head einfügen
Code: [Select]
<script language="JavaScript" type="text/javascript">
<!--
var last_submit = 0;
function submit_is_ok() {
    if (new Date().getTime() - last_submit > 10000) {
        last_submit = new Date().getTime();
        return true;
    } else {
        return false;
    }
}
//-->
</script>
öffne
melden.html
suche
Code: [Select]
<form name="melden" action="melden.php" method="post">ersetzen durch
Deutsch
Code: [Select]
<form name="melden" action="melden.php" method="post" onsubmit="return submit_is_ok();">English
Code: [Select]
<form name="report" action="report.php" method="post" onsubmit="return submit_is_ok();">

Das wars, nun können Benutzer den Bild Melden Button nur einmal alle 10 Sekunden benutzen, die Weiterleitung sollte die Seite bis dahin weitergeleitet haben.

###########################################################################

Was jetzt noch schön wäre, allerdings wohl ein Datenbank Update erfordert, wäre ein Vermerk in der Detail Ansicht, dass das Bild/Upload von einem Benutzer gemeldet wurde. Vielleicht wird der "Melden" Button in der Detail Ansicht einfach gesperrt, also das man die melden.html erst gar nicht aufrufen kann.

Wer kann das machen?

Gruß
michi-w.

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #11 on: February 09, 2006, 05:59:49 PM »
Ich nutze Michis Script und es funktioniert perfekt!

Vielen Dank bin super zufrieden damit!

Alles Liebe
Alexx

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #12 on: February 12, 2006, 07:06:13 PM »
Hi,

der Spam Schutz funzt bei mir aber leider nicht! Ist aber nicht ganz so schlimm. Mein server ist recht schnell :)

Was ich noch super finden würde ist anstatt dem Link "Ansehen" das Thumbnail des Bildes zu zeigen....

Und dann muss das ganze noch Multi Language fähig sein ;)
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #13 on: February 13, 2006, 06:13:00 PM »
Halllo,

hast du den Spam Schutz nachträglich eingebaut oder war der bereits im Mod?
Vielleicht habe ich ja etwas falsch modifiziert.

Gruß
michi-w.

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #14 on: February 13, 2006, 07:34:13 PM »

Was ich noch super finden würde ist anstatt dem Link "Ansehen" das Thumbnail des Bildes zu zeigen....


Ist nur eine "Test vorschlag".

Habs nur auf die schnelle gecodet,
kann sein, dass noch Flüchtigkeitsfehler drin sind.
Da ich den Mod nicht drin hab, konnte ich es auch nicht testen.

in der index.php
suche:
Code: [Select]
    if ($template == "melden") {
        $site_template->register_vars(array(
        "img_id" => $HTTP_GET_VARS["img_id"],
        "poster" => $HTTP_GET_VARS["poster"],
        "username" => $HTTP_GET_VARS["username"],
        "up_date" => $HTTP_GET_VARS["up_date"]
        ));
    }
durch folgendes ersetzen:
Code: [Select]
    if ($template == "melden") {
        $site_template->register_vars(array(
        "img_id" => $HTTP_GET_VARS["img_id"],
        "poster" => $HTTP_GET_VARS["poster"],
        "username" => $HTTP_GET_VARS["username"],
        "up_date" => $HTTP_GET_VARS["up_date"]
        ));
       
        $img_id = isset($HTTP_GET_VARS["img_id"]) ? intval(trim($HTTP_GET_VARS['img_id'])) : "";
        if ($img_id) {
        $sql = "SELECT i.*, c.cat_name
        FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
        WHERE i.image_id = $img_id AND c.cat_id = i.cat_id";
        $image_row = $site_db->query_firstrow($sql);
        show_image($image_row);
        }

    }

In der melden.html
Code: [Select]
<td colspan="2">
M&ouml;chten Sie das Bild mit der ID <a href="details.php?image_id={img_id}">{img_id}</a> einem Administrator melden?
</td>

ersetzen durch:
Code: [Select]
<td colspan="2">
M&ouml;chten Sie das Bild {thumbnail}mit der ID <a href="details.php?image_id={img_id}">{img_id}</a> einem Administrator melden?
</td>

Wie gesagt, der Code ist nur so schnell dahin geschrieben,
und auch nicht besonders optimiert, gerade was die Abfragen angeht.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump