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

0 Members and 1 Guest are viewing this topic.

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 #30 on: February 14, 2006, 12:00:33 AM »
Dann hast du hier etwas falsch gemacht, denn das gehört mit zur Thumbnail Veränderung:
http://www.4homepages.de/forum/index.php?topic=11470.msg61081#msg61081

Ne, ich hatte das doch rückgängig gemacht. Hatte ich ja geschrieben :)

Quote
Also nochmal Kommando zurück.

Der Code steht an der falschen Stelle,
und wird durch den Random Aufruf in der page_header php natürlich wieder überschrieben.

Jo, das geht :)

Besten Dank dafür...
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #31 on: February 14, 2006, 12:05:56 AM »
@icecream:

You might want to modify this part :

Quote

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"]
        ));


to read :

Code: [Select]

if ($template == "melden") {

$img_id = (isset($HTTP_GET_VARS['img_id'])) ? intval($HTTP_GET_VARS['img_id']) : 0;
$poster = (isset($HTTP_GET_VARS['poster'])) ? (stripslashes(trim($HTTP_GET_VARS['poster'])): (stripslashes(trim($HTTP_POST_VARS['poster']));
$username = (isset($HTTP_GET_VARS['username'])) ? (stripslashes(trim($HTTP_GET_VARS['username'])) : (stripslashes(trim($HTTP_POST_VARS['username']));
$up_date = (isset($HTTP_GET_VARS['up_date'])) ? intval($HTTP_GET_VARS['up_date']) : intval($HTTP_POST_VARS['up_date']);

        $site_template->register_vars(array(
        "img_id" => intval($img_id),
        "poster" => trim($poster),
        "username" => trim($username),
        "up_date" => intval($up_date)
        ));


;)

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 #32 on: February 14, 2006, 12:09:42 AM »
@icecream:

You might want to modify this part :

Quote

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"]
        ));


to read :

Code: [Select]

if ($template == "melden") {

$img_id = (isset($HTTP_GET_VARS['img_id'])) ? intval($HTTP_GET_VARS['img_id']) : 0;
$poster = (isset($HTTP_GET_VARS['poster'])) ? (stripslashes(trim($HTTP_GET_VARS['poster'])): (stripslashes(trim($HTTP_POST_VARS['poster']));
$username = (isset($HTTP_GET_VARS['username'])) ? (stripslashes(trim($HTTP_GET_VARS['username'])) : (stripslashes(trim($HTTP_POST_VARS['username']));
$up_date = (isset($HTTP_GET_VARS['up_date'])) ? intval($HTTP_GET_VARS['up_date']) : intval($HTTP_POST_VARS['up_date']);

        $site_template->register_vars(array(
        "img_id" => intval($img_id),
        "poster" => trim($poster),
        "username" => trim($username),
        "up_date" => intval($up_date)
        ));


;)


Blank Page when i do this :) But it´s not new on my site...
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #33 on: February 14, 2006, 01:20:43 AM »
@jensf:

Of course it's not new. For your case, it's because of this :

Quote

$site_template->register_vars(array(


(which causes you a problem since you installed too many MODs and one of them must of had affected this function. :P).

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #34 on: February 14, 2006, 02:28:17 AM »
@JensF
Stimmt was nicht?

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #35 on: February 14, 2006, 07:43:26 AM »
bei mir funzt beides nicht, weder von oracle noch von icecream..
es kommt beim ersten(von oracle) ein fehler das ein ":" nicht akzeptiert wird und beim ucecream seiner möglichkeit ein fehler in einer Zeile ist..hab ich leider nicht welche notiert!

Liebe Grüße
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 #36 on: February 14, 2006, 08:06:38 AM »
@JensF
Stimmt was nicht?


Ne, so geht alles aber mit der Änderung von Oracle geht bei mir nix mehr. Ich weiß auch nicht was die Änderung bewirkt. Aber so wie es ist läuft es. Liegt bei mir wahrscheinlich daran das ich zuviele Mods drin habe und irgendeiner oder sogar mehrere sich gegenseitig stören.
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline TheOracle

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

so geht alles aber mit der Änderung von Oracle geht bei mir nix mehr.


Correction. As I already explained, it is not from what I posted above that causes these blank pages.

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #38 on: February 15, 2006, 09:13:09 AM »
@Oracle: For which reason should it be done like yours?
I modified this script only to show a little thumb of the image which will be reported

@glitzer:
Mich würde die Fehlermeldung aber schon gerne interessieren.

@all:
Wie gesagt, den ersten Post von mir ignorieren,
und erst die Bearbeiten von meinem 2.Post nehmen.
Wenn es zu unklar ist,
poste ich es nochmal genau richtig.
Wobei es sich wohl am Besten gleich im ersten Post machen würde...^^

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

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #39 on: February 15, 2006, 03:15:42 PM »
Quote

For which reason should it be done like yours?


I ... don't think I understand Icecream. What I stated above was about was about specific reasons which has nothing to do with your codes above since it was some slight modifications it required. ;)

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 #40 on: February 15, 2006, 03:25:20 PM »
I ... don't think I understand Icecream. What I stated above was about was about specific reasons which has nothing to do with your codes above since it was some slight modifications it required. ;)
@icecream:

You might want to modify this part :
Why should it be modifyed to use more server memory as you showed?
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 #41 on: February 15, 2006, 03:33:49 PM »
Quote

Why should it be modifyed to use more server memory as you showed?


For better conditions with the strings. ;)

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #42 on: February 16, 2006, 12:04:16 PM »
Ich habe diesen Teil in meiner INdex leider nicht...


Also nochmal Kommando zurück.

Der Code steht an der falschen Stelle,
und wird durch den Random Aufruf in der page_header php natürlich wieder überschrieben.

Das hier
Code: [Select]
if (!empty($template)) {
 $clickstream = "<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\">".$lang['home']."</a>".$config['category_separator'].str_replace("_", " ", ucfirst($template));
 $site_template->register_vars("clickstream", $clickstream);
 $site_template->print_template($site_template->parse_template($main_template));
 include(ROOT_PATH.'includes/page_footer.php');
}

durch das ersetzen.

Was ich vorher gepostet hatte,
rückgängig machen,
aber die änderung im Template selbst beibehalten.
Code: [Select]
if (!empty($template)) {

 if ($template == "melden") {
 $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);
 }

 }
 $clickstream = "<a href=\"".$site_sess->url(ROOT_PATH."index.php")."\">".$lang['home']."</a>".$config['category_separator'].str_replace("_", " ", ucfirst($template));
 $site_template->register_vars("clickstream", $clickstream);
 $site_template->print_template($site_template->parse_template($main_template));
 include(ROOT_PATH.'includes/page_footer.php');
}

Da ich den Dynamic Header eingefügt hab.

Meine INdex.php hatte ich eh zuvor gepostet könnt ihr mir bitte helfen!
danke
lg
Alexx

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #43 on: February 16, 2006, 12:10:36 PM »
Poste mal deine index.php
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

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: Bild melden / report a pic / second possibility /zweite Möglichkeit
« Reply #44 on: February 16, 2006, 01:19:44 PM »
hallo Icecream
meine Index.php ist ein paar beiträge hier in diesem Thread drüber schon gepostet :)