Перейти к содержимому


Фотография
- - - - -

Submissions Problem


Лучший Ответ SmetDenis , 29 April 2014 - 09:51

Hi,

Try this way

in the file - components\com_zoo\controllers\submission.php
remove or comment this line
h2p_200x0.png

administrator\components\com_zoo\classes\submission.php
ui8_200x0.png
replace to

	public function canAccess($user = null) {
		return true;
	}
Best regards, Denis. Перейти к сообщению


  • Закрытая тема Тема закрыта
Сообщений в теме: 11

#1 tobypsl2

tobypsl2

Отправлено 15 April 2014 - 10:03

I've set up a front end submission form that posts to a JBZoo directory.

 

The third party who is posting to this form is reporting that there is an error - the posting doesn't happen.

 

They are posting multi-part form data as per the attached file.

 

I can't see what the issue is but wondered whether there is something missing / incorrect in the data they are sending.

 

What is the best way to test this?

 

I've attached the data they send..

 

Edited to add the form is at www.c2recruitment.com/broadbean

Прикрепленные файлы

  • Прикрепленный файл  data log.txt   4.62К   28 Количество загрузок:

Сообщение отредактировал tobypsl2: 15 April 2014 - 10:26

  • 0

#2 tobypsl2

tobypsl2

Отправлено 15 April 2014 - 10:25

duplicate edit


Сообщение отредактировал tobypsl2: 15 April 2014 - 10:26

  • 0

#3 SmetDenis

SmetDenis

Отправлено 16 April 2014 - 07:22

Hello,

This message set here.
\components\com_zoo\controllers\submission.php
uvi_200x0.png

As you can see, for detail info you need login as super administrator.
Please, try sign in and show new error message.

Best regards, Denis.
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#4 tobypsl2

tobypsl2

Отправлено 16 April 2014 - 09:37

Hi Denis

 

Are you saying I need to login as a superadmin attempt the post again and then check the error message?  If I do this where do I access the error message?

 

Or are you saying the post didn't work because the poster wasn't logged in as a superadmin?

 

The submission form and the page are set to accept content from public.

 

I have tested the script using the Chrome POSTMAN extension (without login details) and it does reload the form (as your error message suggests it will) If I test inclkuding superadmin login details where do i go to look at the error message?

 

Thanks.


  • 0

#5 SmetDenis

SmetDenis

Отправлено 17 April 2014 - 07:38

Hi,

 

Are you saying I need to login as a superadmin attempt the post again and then check the error message?  

 

Yes, You need login on front-end of website.

It necessary for watch a error message, because it appears only for super admin.

 

If I do not have the text of the error I can not say what the problem was.

Or, another way - You can give me temporary access to ftp and I will try find and fix error.

 

Best regars, Denis.


  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#6 tobypsl2

tobypsl2

Отправлено 27 April 2014 - 20:58

Hi Denis,

 

 

Yes, You need login on front-end of website.

 

 

 

This turns out to be the problem. I was led to believe that the person using the form could login - but in fact they can't their post has to be a single transaction with no login.

 

From my perspective this is fine as I plan to IP protect the page so only they can use it.

 

But from the JBZoo component perspective this is an issue because in order to use the front end form submission you have to be logged in and to have 'trusted' status to post published material.

 

So in order to use JBZoo for this functionality I will need to disable the need to login and be 'trusted'.  ie. to allow guest posting of published material via the form.

 

How is this most easily achieved?

 

Thanks.

 

 


  • 0

#7 tobypsl2

tobypsl2

Отправлено 29 April 2014 - 09:17

Just to recap on the nature of the problem.

 

I am using the frontend form submission to allow a third party to post catalog content to the site.

 

They use an automated system which means that:

  • their process is a single transaction
  • they cannot handle login requests

The JBZoo requires that posters have 'trusted' status to post content to the site. Guests cannot have trusted status only registered users can. This means a login is required.

 

I am seeking the easiest way to remove the requirement to login.


  • 0

#8 SmetDenis

SmetDenis

Отправлено 29 April 2014 - 09:24

Hi,

Thanks for detailed explanation.
I will try to find solution and answer you here.

Just wait a bit.

Thanks a lot.
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#9 SmetDenis

SmetDenis

Отправлено 29 April 2014 - 09:51   Лучший Ответ

Hi,

Try this way

in the file - components\com_zoo\controllers\submission.php
remove or comment this line
h2p_200x0.png

administrator\components\com_zoo\classes\submission.php
ui8_200x0.png
replace to
	public function canAccess($user = null) {
		return true;
	}
Best regards, Denis.
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#10 tobypsl2

tobypsl2

Отправлено 29 April 2014 - 12:07

Thanks denis I have made these changes and guest can now post as required.

 

Apparently there is a cookie set on an element on the form which may be preventing posting:

 

 

I noticed there is a cookie set for this key: 3ecc936de90fbf4f1520714ed5dc0f27

which may be done by something in joomla for whatever purpose. When I try to add that cookie in the integration, it returns an invalid token error message

 

Do you know what this might be for and how I can turn off cookies for any JBZoo elements?

 

Thanks.


  • 0




Click to return to top of page in style!