Advertisement:

Author Topic: .  (Read 2186 times)

Pigeon

  • Sr. Member
  • ****
  • Posts: 498
.
« on: April 01, 2014, 01:54:46 am »
Remove Topic
« Last Edit: April 02, 2014, 04:05:24 pm by alive_gene »

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: location - please help me
« Reply #1 on: April 01, 2014, 10:25:18 am »
@alive_gene
You could:
- remove it from item-edit.php, so user can add location, but cannot edit it
- you can only disable location on item-edit.php (adding readonly attribute on it)

Ramesh

  • Jr. Member
  • **
  • Posts: 61
Re: location - please help me
« Reply #2 on: April 01, 2014, 11:15:11 am »
simple comment that code ... item-edit.php page

for more issues or theme work or plugin customization u can messege me .

Pigeon

  • Sr. Member
  • ****
  • Posts: 498
Remove Topic
« Reply #3 on: April 01, 2014, 02:18:41 pm »
Remove Topic
« Last Edit: April 02, 2014, 03:17:54 pm by alive_gene »

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: location - please help me
« Reply #4 on: April 01, 2014, 08:04:10 pm »
Ramesh---quit trolling/spamming the users posts.


frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: location - please help me
« Reply #5 on: April 01, 2014, 08:53:54 pm »
@alive_gene

This is absolutely highly improbable. Noone would think how to hack changing location :)

Quote
user could edit the location by (right-click on chrome browser and press Inspect element) and remove that html or css code and easily edit the location.

Pigeon

  • Sr. Member
  • ****
  • Posts: 498
Remove Topic
« Reply #6 on: April 01, 2014, 09:19:46 pm »
Remove Topic
« Last Edit: April 02, 2014, 03:18:14 pm by alive_gene »

Pigeon

  • Sr. Member
  • ****
  • Posts: 498
Remove Topic
« Reply #7 on: April 02, 2014, 01:09:22 am »
Remove Topic
« Last Edit: April 02, 2014, 03:19:59 pm by alive_gene »

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: location - please help me
« Reply #8 on: April 02, 2014, 01:54:46 am »
the other thread you want it edited>>wth?

Pigeon

  • Sr. Member
  • ****
  • Posts: 498
Remove Topic
« Reply #9 on: April 02, 2014, 02:05:28 am »
Remove Topic
« Last Edit: April 02, 2014, 03:18:30 pm by alive_gene »

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: location - please help me
« Reply #10 on: April 02, 2014, 10:00:27 am »
@alive_gene
All ways you could use can be hacked as readonly attribute.

Pigeon

  • Sr. Member
  • ****
  • Posts: 498
Remove Topic
« Reply #11 on: April 02, 2014, 12:55:18 pm »
Remove Topic
« Last Edit: April 02, 2014, 03:18:45 pm by alive_gene »

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: location - please help me
« Reply #12 on: April 02, 2014, 01:00:05 pm »
@alive_gene
if you press button, in core there is update function that is looking for inputs you submitted, also for country, region & city.
If it is empty (or does not exist), it simply update value to empty.

I got 1 idea with low rate to work, but you can test (try only for city first).
- remove (or comment) location code on item-edit.php
- add somewhere on place where original location code was this one:

Code: [Select]
$_POST['city'] = 'City1';

If item updates with this city, you can define all attributes to submit post values...

mahesh

  • Full Member
  • ***
  • Posts: 116
Re: Remove Topic
« Reply #13 on: April 02, 2014, 03:29:52 pm »
Hi alive_gene,

Simply hide the location div instead of removing
just put the inline style code style="display:none;" in location div tag in item.php

you should not remove the code of location. because it gets updated every time user updated so instead of removing you should just hide it for user to not changing location

Pigeon

  • Sr. Member
  • ****
  • Posts: 498
Re: Remove Topic
« Reply #14 on: April 02, 2014, 03:50:42 pm »
Hi alive_gene,

Simply hide the location div instead of removing
just put the inline style code style="display:none;" in location div tag in item.php

you should not remove the code of location. because it gets updated every time user updated so instead of removing you should just hide it for user to not changing location

dear Mahesh, when you hide by css or html code, then users could update the location by editing html of the page,
forget about this topic, i found the other method,
(i could not remove this topic, and changed the name of the topic to remove :D)
thank you anyway