Advertisement:

Author Topic: Disable jobe attributes plugin in the item post page  (Read 569 times)

admosbah

  • Newbie
  • *
  • Posts: 10
Disable jobe attributes plugin in the item post page
« on: September 29, 2015, 11:31:11 am »
hello
i am developing an new plugin i want ask you if is possible to disable the jobe attributes plugin in the item post page.
thanks


Ramoo Srivasatva

  • Newbie
  • *
  • Posts: 13
  • OsClass Expert
Re: Disable jobe attributes plugin in the item post page
« Reply #1 on: October 02, 2015, 12:55:15 am »
Hello admosbah,

Job attributes plugin you can disable many ways :

1 .login admin panel and disable simple way.

2. after selection category hooks calling jobs attributes plugin you can disable hooks or disable by css all jobs attributes.

 Web Tester

Skype : ramoomca

Exp :
www.internetbroadband.co.in
www.JagoGrahakJago.co.in
www.ServiceCenterCare.in

admosbah

  • Newbie
  • *
  • Posts: 10
Re: Disable jobe attributes plugin in the item post page
« Reply #2 on: October 03, 2015, 10:34:52 am »
I am developing a new plugin like Jobs attributes plugin I want make a choice for users when post ads if they want not use this plugin or disable it

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: Disable jobe attributes plugin in the item post page
« Reply #3 on: October 03, 2015, 05:48:44 pm »
Hi, assuming you are developing a plugin, you know what to do for insert tables with values, right?

So it easy solution: add a new value like checkbox, if marked by user for show the values of the plugin on item page, or not.
Let's suppose your function for this is: disable_attributes_job();

In your item.php:

if(disable_attributes_job() != true) {... the main function of your attributes jobs...}

Or something: if(disable_attributes_job() != 'enable') {... the main function of your attributes jobs...}

In item-post.php is something like: Selected box if you do not want showing the content of attributes jobs on ad [ ]

And with javascript you can use hidden div after box selected for hide all content fields of plugin on item-post.

That's it.

Regards