Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Problem toolbox

Re: [REOPEN] Problem toolbox 20 Nov 2011 15:25 #542

  • twev
  • twev's Avatar
  • Offline
  • Senior Member
  • Posts: 62
  • Thank you received: 15
  • Karma: 6
Hi Jocelyn
Sorry for the delay - took the wife away for her birthday but not allowed to take notebook!!!!

Here is the result of inserting your line of code:
JToolBar Object
(
    [_name:protected] => toolbar
    [_bar:protected] => Array
        (
            [0] => Array
                (
                    [0] => Standard
                    [1] => delete
                    [2] => ICPCREQUESTS_JTOOLBAR_DELETE
                    [3] => delete
                    [4] => 
                )

            [1] => Array
                (
                    [0] => Standard
                    [1] => save
                    [2] => ICPCREQUESTS_JTOOLBAR_SAVE
                    [3] => save
                    [4] => 
                )

            [2] => Array
                (
                    [0] => Standard
                    [1] => apply
                    [2] => ICPCREQUESTS_JTOOLBAR_APPLY
                    [3] => apply
                    [4] => 
                )

            [3] => Array
                (
                    [0] => Standard
                    [1] => cancel
                    [2] => ICPCREQUESTS_JTOOLBAR_CANCEL
                    [3] => cancel
                    [4] => 
                    [5] => 
                )

        )

    [_buttons:protected] => Array
        (
        )

    [_buttonPath:protected] => Array
        (
            [0] => /usr/local/psa/home/vhosts/trevnali.net/httpdocs/icpc/libraries/joomla/html/toolbar/button
        )

    [_errors:protected] => Array
        (
        )

)

and the generated code for the buttons look like this:
<div id="toolbar" class=" toolbar-list">
<ul>
<li id="toolbar-cancel" class="button" style="list-style:none; float: left;">
<div class="toolbar" onclick="javascript:return Joomla.submitform('cancel');" style="cursor:pointer">
<div class="icon-16 icon-16-task-cancel"> </div>
<span class="text">Cancel</span>
</div>
</li>
<li id="toolbar-apply" class="button" style="list-style:none; float: left;">
<div class="toolbar" onclick="javascript:return document.formvalidator.submitform(document.adminForm, 'apply', function(pressbutton){return Joomla.submitform(pressbutton);});" style="cursor:pointer">
<div class="icon-16 icon-16-task-apply"> </div>
<span class="text">Apply</span>
</div>
</li>
<li id="toolbar-save" class="button" style="list-style:none; float: left;">
<div class="toolbar" onclick="javascript:return document.formvalidator.submitform(document.adminForm, 'save', function(pressbutton){return Joomla.submitform(pressbutton);});" style="cursor:pointer">
<div class="icon-16 icon-16-task-save"> </div>
<span class="text">Save</span>
</div>
</li>
<li id="toolbar-delete" class="button" style="list-style:none; float: left;">
<div class="toolbar" onclick="javascript:if (window.confirm('Are you sure to delete this item ?')){return Joomla.submitform('delete');}" style="cursor:pointer">
<div class="icon-16 icon-16-task-delete"> </div>
<span class="text">Delete</span>
</div>
</li>
</ul>
</div>

The 'Cancel' button and the 'Delete' button work but the 'Save' and 'Apply' buttons do not work.

Would you like access to the site to test yourself? (It is only a domain I use for testing before release.)

Regards
Trevor
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 20 Nov 2011 16:05 #543

  • twev
  • twev's Avatar
  • Offline
  • Senior Member
  • Posts: 62
  • Thank you received: 15
  • Karma: 6
Some progress. . .

I compared the generated code to that of the sandbox and it looks the same so I thought that perhaps it is the template that I am using so I switched to the Atomic template and the page works OK! So for me it looks like it is the template (Radiance by RocketTheme) that is causing the problem.

Sorry if you have wasted time on this :blush:

I will see if I can figure out what is causing it and will post back here in case others have the same problem.

Regards
Trevor
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 20 Nov 2011 22:24 #544

  • twev
  • twev's Avatar
  • Offline
  • Senior Member
  • Posts: 62
  • Thank you received: 15
  • Karma: 6
I have found the problem. . .

I am using a module for translating the site into different languages called Lyosis Translate. The module loads jQuery which conflicts with MooTools. Fortunately there is a setting within the module admin to avoid the conflict.

Here is a link to some more information about the conflict:
docs.jquery.com/Using_jQuery_with_Other_Libraries

Not sure if this helps your problem though cpicoli!

Regards
Trevor
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 23 Nov 2011 11:27 #559

  • cpicoli
  • cpicoli's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Karma: 0
Hello,
Sorry for the delay in returning to the subject, I was outside for a few days.

Here is the result of the insertion of code:



I saw the Trevor solved the problem (very good) but in my case this solution does not apply because I am using a clean install of joomla 1.5. There is nothing more than the installed default plugins and components.

Regards
Cpicoli
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 23 Nov 2011 11:40 #560

  • cpicoli
  • cpicoli's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Karma: 0
I just realized one thing. See the figure that the name of some files are different between the downloaded package and sandbox.




I have tried to change codes and file names and reinstall but the problem continues.

I've done testing in IE, Chrome and Firefox.
I am testing in two environments: the first (localhos) is windows + wamp. The second is my web hosting (linux).

In all cases only the cancel button on the toolbar is available in front-end ...

(administrative area in the toolbar is ok)

Regards
Cpicoli
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 23 Nov 2011 11:41 #561

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Nice to see you again Cpicoli,


Ok, that shot show that the problem is not coming from an incompatibility of navigator.

I check it in few minutes.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 23 Nov 2011 11:55 #562

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Everything works perfectly. The problem is on you hand.



Can you see this source code in you FRONT - ITEM - VIEW ?

// Toolbar
		jimport('joomla.html.toolbar');
		$bar = & JToolBar::getInstance('toolbar');
		if (!$isNew && $access->get('core.delete'))
			$bar->appendButton( 'Standard', "delete", "RESERVAS_TASK_DELETE", "delete", false);
		if ($access->get('core.edit') || ($isNew && $access->get('core.create')))
			$bar->appendButton( 'Standard', "save", "RESERVAS_TASK_SAVE", "save", false);
		if ($access->get('core.edit'))
			$bar->appendButton( 'Standard', "apply", "RESERVAS_TASK_APPLY", "apply", false);
		$bar->appendButton( 'Standard', "cancel", "RESERVAS_TASK_CANCEL", "cancel", false, false );

		$lists['toolbar'] = $bar;


I'm quite sure the logged user don't have the rights to create and to edit.


In Joomla 1.5, you can modify the ACL of your component in the controller file.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 23 Nov 2011 12:37 #565

  • cpicoli
  • cpicoli's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Karma: 0
The logged on user has all permissions for the group is "super users".

Yes, the code is present in the file:

com_reservas \ views \ sazonalidadeitem \ view.html.php

Is difficult to resolve this problem ...

Regards,
Cpicoli
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 23 Nov 2011 12:47 #566

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Try to replace the previous code by

// Toolbar
		jimport('joomla.html.toolbar');
		$bar = & JToolBar::getInstance('toolbar');
		$bar->appendButton( 'Standard', "delete", "RESERVAS_TASK_DELETE", "delete", false);
		$bar->appendButton( 'Standard', "save", "RESERVAS_TASK_SAVE", "save", false);
		$bar->appendButton( 'Standard', "apply", "RESERVAS_TASK_APPLY", "apply", false);
		$bar->appendButton( 'Standard', "cancel", "RESERVAS_TASK_CANCEL", "cancel", false, false );

		$lists['toolbar'] = $bar;


And please also screen shot the result of :
<?php echo("<pre>"); print_r($access); echo("</pre>"); ?>
Coding is now a piece of cake
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 23 Nov 2011 13:01 #568

  • cpicoli
  • cpicoli's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Karma: 0
Now the toolbar appeared!




But trying to apply or save I get the message that I do not have rights to perform the action: (

If the user group is "super users" should be allowed right?

Regards,

Cpicoli
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 23 Nov 2011 22:31 #577

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Your problem come from the user authorizations.

If it is a Cook issue, the possibles concerned files are
  • The controller file
  • classes/jcontroller.php
  • helper.php

If the user group is "super users" should be allowed right?
You are under 1.5, "Super users" is not a group. do you mean "Super Administrator" ?


Put this where you want to see what is the usertype of the logged user. (And make a shot)
<?php
	$user = JFactory::getUser();
	echo("<pre>"); print_r($user); echo("</pre>");
?>
Coding is now a piece of cake
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 24 Nov 2011 11:03 #587

  • cpicoli
  • cpicoli's Avatar
  • Offline
  • New Member
  • Posts: 19
  • Karma: 0
Yes, I meant super administrator.
Sorry, is now working properly! Yesterday made a fresh install of joomla to test and forgot to enable the login module.

Now I can continue component in the toolbars will appear correctly?
The administrator has disabled public write access.

Re: [REOPEN] Problem toolbox 24 Nov 2011 11:14 #589

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Arrrh...

You was logged as Super Administrator in back, but not in front.


Closed.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: cpicoli
Time to create page: 0.096 seconds

Get Started