• [MOD] - Report a picture (configurable from ACP + over HTML template files) 4 0 5 1
Currently:  

Author Topic: [MOD] - Report a picture (configurable from ACP + over HTML template files)  (Read 157096 times)

0 Members and 1 Guest are viewing this topic.

Offline Alonso

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • Haustierpics.de
Nabend ich möchte das Gäste den "Report a Picture" Link nicht sehen.

Wie kann ich das ändern ?

Danke schonmal vorab
Dumm ist nur der der Dummes tut

Offline Alonso

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • Haustierpics.de
Zudem hab ich grade noch ein Fehler entdeckt

Wenn ich als Gast auf Neue Bilder klicken erscheint oben der Fehler

Notice: Undefined variable: report_url in /www/htdocs/xxxxxx/includes/functions.php on line 430


functions.php on line 430 ist das hier

 "report_image_url" => $report_url,

Jemand ne Idee
Dumm ist nur der der Dummes tut

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Hi ! I don't understand why but i don't receive any report, i tested it with a normal user and i didn't receive any email. I have PM installed and I receive notifications from the site about new pm.
  My gallery don't have any error, i use 1.7.3 version. The url: http://www.myart.es could someone help me please?
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline sargent

  • Pre-Newbie
  • Posts: 3
    • View Profile
This is a great mod but after installing it i am getting an error on the new images page for a guest but i dont get this if you are a member logged in this is what im getting i have ver 7.4 installed any help would be great the mod works well registered users can send email for pics just want to get rid of this error

http://www.incrediheaven.com/search.php?search_new_images=1

Notice: Undefined variable: report_url in /home/incredih/public_html/includes/functions.php on line 431

Notice: Undefined variable: report_url in /home/incredih/public_html/includes/functions.php on line 431

Notice: Undefined variable: report_url in /home/incredih/public_html/includes/functions.php on line 431

Notice: Undefined variable: report_url in /home/incredih/public_html/includes/functions.php on line 431

Notice: Undefined variable: report_url in /home/incredih/public_html/includes/functions.php on line 431

Notice: Undefined variable: report_url in /home/incredih/public_html/includes/functions.php on line 431

Notice: Undefined variable: report_url in /home/incredih/public_html/includes/functions.php on line 431

Notice: Undefined variable: report_url in /home/incredih/public_html/includes/functions.php on line 431

Notice: Undefined variable: report_url in /home/incredih/public_html/includes/functions.php on line 431

Notice: Undefined variable: report_url in /home/incredih/public_html/includes/functions.php on line 431

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Try with:

Quote
"report_image_url" => (isset($report_url)) ? $report_url : "",

from includes/functions.php file.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline sargent

  • Pre-Newbie
  • Posts: 3
    • View Profile
Yep that did it thanks heaps

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Hi at @ll....

sehr guter MOD work's perfekt...

Greetings darkness  :mrgreen:

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Hi! I installed this great mod. But i dont receive the email  :roll: so i modified the mod and now i receive a pm when someone report a picture with the same text that the email. if you want it you will need pmv2 installed. here is the addon:

search:
Code: [Select]
$site_email->set_body("image_report_message", $config['language_dir']);
$site_email->send_email();


add after:
Code: [Select]
$pm_to = 1;    //Here your ID like admin
$pm_from = $user_info['user_id'];
$pm_type = 5;
$pm_bbcode = 1;
$pm_smiles = 1;

$pm_message = "Querido webmaster,\n\nPerfil: ".$user_name_link."\n\nImagen URL: ".$destination_url."\n\nEl usuario: \"".$user_name."\" ha reclamado la imagen llamada: \"".$image_name."\"\n\nPor la siguiente razon:\n\n
=============================================\n\n".$report_comments."\n\n=============================================\n\nSi deseas contestar a este usuario, aqui tienes su direccion de e-amil: ".$user_email."
\n\nQue te vaya bien.\n\n".$site_name;
$pm_subject = "\"".$user_info['user_name']."\" ha reclamado la imagen: ".$image_name;

$sql = "INSERT INTO ".PM_TABLE."
(pm_date, pm_to, pm_from, pm_subject, pm_type, pm_text, pm_bbcode, pm_html, pm_ip, pm_smiles)
VALUES
('".time()."', $pm_to, $pm_from, '".$pm_subject."', $pm_type, '".$pm_message."', $pm_bbcode, 0, '".$session_info['session_ip']."', $pm_smiles)";
$site_db->query($sql);
Replace $pm_to number with your ID

 :wink:
« Last Edit: August 09, 2007, 11:38:56 PM by ccsakuweb »
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
What PM do with report picture ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
i don't receive report pic in email so i need a solution. this is a solution, if someone have the same problem that me and have installed pmv2 this addon will help him. so i write this addon here.

$pm_message  is the text from the pm. Replace this with the image_report_message.html and {variable} to ".$variable."
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Quote
$site_email->set_from(stripslashes($config['site_email']), stripslashes($user_name));

From first post ... do no why is there but should:

Quote
$site_email->set_from(stripslashes($config['site_email']));

Template email file need exist from lang/your_template/email.

To replace with email:

Quote
$site_email->set_to(stripslashes("your_email@your_domain.com"));

Replace your_email@your_domain.com with email. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
wow thank you!!! The last time none help me. thank you very much, it works rigt ^o^
now i wont need pm ^^
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
includes/email.php there for that. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline fotopolis

  • Newbie
  • *
  • Posts: 27
    • View Profile
Can anyone help me to include Secure Code to this mod?

These are the posts, but I am not sure how to do it or the steps to integrate it.

http://www.4homepages.de/forum/index.php?topic=8987.0
http://www.4homepages.de/forum/index.php?topic=8987.msg59688#msg59688
http://www.4homepages.de/forum/index.php?topic=11405.0

Thanks!

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Ist das eine Mod mit dem man Bilder melden kann?