Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / Presales / [RESOLVED] Poster's IP adress registered, how to?

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

[RESOLVED] Poster's IP adress registered, how to?

More
11 years 7 months ago - 11 years 7 months ago #673 by MikeGolf
MODS I'm sorry please move this topic to right section, Adsmanager!

Hello,

i'm using AdsManager 2.6.5 and J 1.5.
I want to registrer poster's IP (according to laws).

I followed this topic on the old forum to register posters IP adress, modified because I haven't adsmanager.class.php (I think that is for older version).

STEP 1 TOPIC: add this
var $poster_ip = null;
to adsmanager.class.php under these classes: adsmanagerad and adsmanagerfield.
My STEP 1: I add that code to component/com_adsmanager/helpers/field.php under "class JHTMLAdsanagerField" and component/com_adsmanager/helpers/general.php under jhtml Adsmanagergeneral
f.e. the first one is
class JHTMLAdsmanagerField
{
	var $content;
	var $conf;
	var $field_values;
	var $mode;
	var $plugins;
	var $itemid;
var $poster_ip=null;

STEP 2 TOPIC: add this code
/* Poster IP modification */
$poster_ip = getenv("REMOTE_ADDR");
echo "<input type='hidden' name='poster_ip' value='$poster_ip' />";
at the end of inserction form
MY STEP 2: I add this code in components/com_adsmanger/views/edit/tmpl/default.php under
echo "<input type='hidden' name='isUpdateMode' value='".$this->isUpdateMode."' />";
		echo "<input type='hidden' name='id' value='".@$this->content->id."' />";

STEP 3 TOPIC: add column in yourownprefix_adsmanager_ads VARCHAR named poster_ip 15 character
MY STEP 3: the same.

It doesn't work. I hope someone can help me because this is a good feature to be ok with law.

Thank you!
Last edit: 11 years 7 months ago by tompap.
The following user(s) said Thank You: yolozeyramir
More
11 years 7 months ago #677 by tompap
Replied by tompap on topic Poster's IP adress registered, how to?
Hello,

There is no more need of code modification, with all paid subscription, there is a "ip field plugin".
Just create a field of this type; and the ip of the user will be saved like any other fields.
Time to create page: 0.164 seconds
Powered by Kunena Forum