Author Topic: MOD IMAGES? HELP XD  (Read 3103 times)

0 Members and 1 Guest are viewing this topic.

Offline neverkas

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • FullPosteo
MOD IMAGES? HELP XD
« on: June 08, 2009, 05:01:04 AM »
Alguien sabe si se puede utilizar este MOD, en el campo de Título de las imagenes?
http://www.4homepages.de/forum/index.php?topic=13071.0

What if you can use this MOD in the title field of the images?
http://www.4homepages.de/forum/index.php?topic=13071.0
http://www.fullposteo.com.ar/



La nueva forma de compartir tus fotos y vídeos con tus amigos!

The new form to share photos and videos width your friends!

Offline neverkas

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • FullPosteo
Re: MOD IMAGES? HELP XD
« Reply #1 on: June 17, 2009, 04:30:11 PM »
...?  8O
http://www.fullposteo.com.ar/



La nueva forma de compartir tus fotos y vídeos con tus amigos!

The new form to share photos and videos width your friends!

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: MOD IMAGES? HELP XD
« Reply #2 on: June 17, 2009, 04:48:21 PM »
in members.php find two times:
Code: [Select]
 if ($image_name == "")  {
Insert above:
Code: [Select]
 if ($user_info['user_level'] != ADMIN && preg_match("#[<>]#", $image_name))
  {
    $error = 1;
    $field_error = preg_replace("/".$site_template->start."field_name".$site_template->end."/siU", str_replace(":", "", $lang['image_name']), $lang['bad_characters']);
    $msg .= (($msg != "") ? "<br />" : "").$field_error;
  }

in lang/<your language>/main.php add:
Code: [Select]
 $lang['bad_characters'] = "Unacceptable characters in {field_name}";


P.S. test it with non-admin account.
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)