Author Topic: Upload IP  (Read 19921 times)

0 Members and 1 Guest are viewing this topic.

Offline iettafune

  • Newbie
  • *
  • Posts: 24
    • View Profile
Upload IP
« on: October 20, 2005, 01:35:57 PM »
sorry, there is a mod o a plugin for see to administrator the IP upload??

Offline iettafune

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Upload IP
« Reply #1 on: October 21, 2005, 01:22:21 PM »
????????????

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Upload IP
« Reply #2 on: October 21, 2005, 01:25:51 PM »
pls. ask your question that everyone can understand it.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline iettafune

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Upload IP
« Reply #3 on: October 21, 2005, 02:54:12 PM »
I trying a method for see the users IP. who insert files in the 4gallery.
you can help me?

Offline marius26

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://www.steves-network.net
Re: Upload IP
« Reply #4 on: November 06, 2005, 04:00:07 PM »
what he probably means is that he wants to be able to see in acp, an ip of the person that uploaded the file.

Offline iettafune

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Upload IP
« Reply #5 on: November 06, 2005, 08:37:28 PM »
how I make to see the IP?

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: Upload IP
« Reply #6 on: November 06, 2005, 08:57:21 PM »
Its actualy quiet easy ;)
1) add new field user_ip ( VARCHAR(15) ) into 4images_images and 4images_images_temp tables you can execute the following MySQL query in your favorite MySQL manager (i.e. phpmyadmin)
Code: [Select]
ALTER TABLE `4images_images` ADD `user_ip` VARCHAR( 15 ) NOT NULL ;
ALTER TABLE `4images_images_temp` ADD `user_ip` VARCHAR( 15 ) NOT NULL ;
2) add new entry into includes/db_field_definitions.php:
Code: [Select]
$additional_image_fields['user_ip'] = array("Uploaded IP", "text", 0);3) in member.php find:
Code: [Select]
        $table = ($direct_upload) ? IMAGES_TABLE : IMAGES_TEMP_TABLE;Insert below:
Code: [Select]
        $HTTP_POST_VARS['user_ip'] = $site_sess->user_ip;
Then you either can use {user_ip} in details.html template or see the IP in ACP when you edit an image. (obviosly images uploaded before these modifications will not have the IP)

Done.
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 iettafune

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Upload IP
« Reply #7 on: November 06, 2005, 09:21:33 PM »
where I add

Code: [Select]
$additional_image_fields['user_ip'] = array("Uploaded IP", "text", 0);
in includes/db_field_definitions.php:???

Code: [Select]
<removed>
« Last Edit: November 06, 2005, 09:26:13 PM by V@no »

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Upload IP
« Reply #8 on: November 06, 2005, 09:22:33 PM »
At the End of the File... (o:

There are some Sampel for this:

Code: [Select]
// Example for additional user fields
//$additional_user_fields['user_adress'] = array($lang['user_adress'], "text", 1);

Offline iettafune

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Upload IP
« Reply #9 on: November 06, 2005, 09:23:54 PM »
???????

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: Upload IP
« Reply #10 on: November 06, 2005, 09:24:30 PM »
above ?>
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 iettafune

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Upload IP
« Reply #11 on: November 06, 2005, 09:36:09 PM »
ok, now when I add a new files in details.html the {user_ip} box remains empty.
but when i edit the files in low to the page ther is a "Uploaded IP" box. in this box i add IP and then i look this IP in details.html.....why???
the ip dosen't insert automatic in IP box in details.html


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: Upload IP
« Reply #12 on: November 06, 2005, 09:46:58 PM »
I didnt understand the problem...

It works just fine on my site
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 iettafune

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Upload IP
« Reply #13 on: November 06, 2005, 09:49:33 PM »
but the IP insert automatic when you upload an files???

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: Upload IP
« Reply #14 on: November 06, 2005, 09:53:51 PM »
yes, even if the image has to be validated by admin.

[edit]
it only works when images being uploaded from members upload form, not from ACP!
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)