RSS
Home Forum v3
Welcome, Guest
Please Login or Register.    Lost Password?

Problem setting MAX Properties PER Agent
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Problem setting MAX Properties PER Agent
*
#1006
Problem setting MAX Properties PER Agent 2 Years, 2 Months ago Karma: 0
In AdminPanelConfiguration I have set an amount of 10 properties per agent (see red circle in image attached).
For each agent I can modify also amount of preperties (see image), because I need it.

But also if I've set a Max of 6 properties, that agent can publish 10 properties.

The limit at 10 is only because in his property list disappear the + (PLUS) button (and the DELETE button...), but If agent enter a propery he can click the PLUS button (Save and New), and he can insert also 1.000 properties
But he can't delete them because DELETE button disappear

Any suggestion to solve this?

Thanks.
alberth
Senior Boarder
Posts: 45
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1010
Re:Problem setting MAX Properties PER Agent 2 Years, 2 Months ago Karma: 59
change this 3 files and test please
File Attachment:
File Name: change_mypanel.zip
File Size: 15763
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/03/06 11:19 By administrator.
The administrator has disabled public write access.
 
#1011
Re:Problem setting MAX Properties PER Agent 2 Years, 2 Months ago Karma: 0
Thanks for quick response!

I have set a MAX of 7 properties in admin panel config, and
a MAX of 6 in user profile.

Also with your new files the addproperty form takes the Max value from admin panel and not from user profile.

So I can publish 7 properties and not 6
And, if when I compile the 7th property I click on Save and New I can publish 8 properties.

After that the save and new button disappear->THIS IS OK!
Delete button now remain->THIS IS OK!

Another question: this default_addproperty.php (but also with the previous)
don't check correctly the Category field on submit form these fields:

- Category
- Country
- State
- Locality

Field type is check correctly.

In order to submit form I have to comment the checks.
I have tried to check also with other operators like " != 0" and so on but no results...
alberth
Senior Boarder
Posts: 45
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1021
Re:Problem setting MAX Properties PER Agent 2 Years, 2 Months ago Karma: 59
\components\com_properties\views\panel\tmpl\default_addproperty.php

button save and new
line 200
change

<?php if($this->Can_publish > $this->Cant_items) || $this->Can_publish==-1){ ?>

to

<?php if($this->Can_publish > ($this->Cant_items+1) || $this->Can_publish==-1){ ?>
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1023
Re:Problem setting MAX Properties PER Agent 2 Years, 2 Months ago Karma: 59
\components\com_properties\views\panel\view.html.php

replace for attached, rename.

if user have field 'Amount of properties: XXX' > greater than 0, then use this value. if is '0' use default value used in configuration
Properties can published a registered user:

test please
File Attachment:
File Name: view_html_php-20100307.txt
File Size: 10899
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1073
Re:Problem setting MAX Properties PER Agent 2 Years, 2 Months ago Karma: 0
To admin: now all works well -> buttons appear/disappear correctly and I can set the max properties for each agent.
U are great!
Thanks!
alberth
Senior Boarder
Posts: 45
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/03/08 16:34 By alberth.
The administrator has disabled public write access.
 
#1078
Re:Problem setting MAX Properties PER Agent 2 Years, 2 Months ago Karma: 59
\components\com_properties\views\panel\tmpl\default_addproperty.php

line 116

function submitbutton(pressbutton) {

replace

document.getElementById('

to

form.getElementById('
administrator
Admin
Posts: 544
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1117
Re:Problem setting MAX Properties PER Agent 2 Years, 2 Months ago Karma: 0
For me it doesn't work.
It checks only Type.

Check doesn't work if user select:
- "Top" in Category menu
- "State" in State menu
- "Locality" in Locality menu

I saw that it works for user "creative" in post #1054.

I don't know....
alberth
Senior Boarder
Posts: 45
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3754
Re:Problem setting MAX Properties PER Agent 1 Year, 10 Months ago Karma: 5
Hola Admin, he descargado e instalado la version 3.1.0624 en mi localhost y pude observar que este mismo problema todavía persiste, voy a aplicar estos parches en esta version y ver si resulta bien.
TuteMdz
Gold Boarder
Posts: 170
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3755
Re:Problem setting MAX Properties PER Agent 1 Year, 10 Months ago Karma: 5
Ya modifiqué todo según lo que dice este post y solo quedan 2 problemas:
1) el boton save and new desaparece ok cuando se alcanza el limite pero solo en el menú superior, como este menú se repite abajo también, hay que copiar el "if" en el menú inferior.

linea 1280 (aproximadamente)
cambiar esto:

<button type="button" class="mybutton icon-32-new" onclick="submitbutton('save2new')"><span><?php echo JText::_('Save and new'); ?></span></button>

Por esto:

<?php if($this->Can_publish > $this->Cant_items || $this->Can_publish==-1){ ?>
<button type="button" class="mybutton icon-32-new" onclick="submitbutton('save2new')"><span><?php echo JText::_('Save and new'); ?></span></button>
<?php }?>

2)Por otro lado el modulo search crea conflicto con el id="cid" que es el de la categoría. Por este motivo el formulario no chequea si el usuario ha seleccionado la categoria correspondiente.
Para no tener que cambiar el identificador lo que hice fué, como decia en otro post, desabilitar el modulo search en la pagina My Panel. La solución que aquí se plantea es cambiar document.GetElementById por form.GetElementById pero no funciona ya que los dos id llamados cid están ubicados dentro de form.
TuteMdz
Gold Boarder
Posts: 170
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4960
Re:Problem setting MAX Properties PER Agent 1 Year, 8 Months ago Karma: 0
Hi,

I am new to this component and Joomla.
How to setting MAX Properties/joomla users and I do not know see admin.

Eg.
joomla user 1 : Admin need to set 2 MAX Properties
joomla user 2 : Admin need to set 6 MAX Properties
123456
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/08/29 14:52 By 123456.Reason: To make clear
The administrator has disabled public write access.
 
#4987
Re:Problem setting MAX Properties PER Agent 1 Year, 8 Months ago Karma: 0
Hello All,

Any one help me with Patch files
123456
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5021
Re:Problem setting MAX Properties PER Agent 1 Year, 8 Months ago Karma: 0
Hello All,

Waiting for your response , Help me to solve this
123456
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5025
Re:Problem setting MAX Properties PER Agent 1 Year, 8 Months ago Karma: 5
Hi 123456, you must create first a profile for each admin yuo have and then (in backend) go to Components > Properties > Control Panel > Profiles and select the profile for you 2nd admin. Click it and ther you have the option to select "Amount of properties" hope this solve your issue.
Matias.
TuteMdz
Gold Boarder
Posts: 170
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5033
Re:Problem setting MAX Properties PER Agent 1 Year, 8 Months ago Karma: 0
Hi Matias,

Thank you for your email.When I set "Amount of properties:1" in the admin section. After that user login in front end it show New in My Panel.

Either it should not show "New" or a warning message as reach Max. Property.

Thanks is Advance !
123456
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5749
Re:Problem setting MAX Properties PER Agent 1 Year, 7 Months ago Karma: 14
hi admin

as i see on the image above there is statwet you have published x of x possible... where did this go?

an somehow it still gets its parameters from the main config and not the users config and allways displays the save and new button
wulfseidel
i simply love this component :D
Gold Boarder
Posts: 258
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Hamburg GER Birthday: 08/28
Last Edit: 2010/09/28 08:00 By wulfseidel.
The administrator has disabled public write access.
 
Go to topPage: 1