Forum Activity for @ultrajam

SteveX
@ultrajam
04/14/16 09:10:59AM
2,589 posts

html in text fails form validation


Jamroom Developers

We are still having trouble saving some forms with html in the textarea. Last year we made most users admins to get around the problem, but we want to move away from that this season to prevent them having access to acp, dashboards and admin emails.

Beth is a normal user on a quota which Allows ALL HTML tags.

She is editing a profile which is also on a quota which allows ALL HTML tags.

She tries to update a form with a textarea set to validate allowed_html. The text area contains a ul with a class, and links with href and target.
ul, ul.class, a, a.href and a.target are all allowed as html in the Allowed HTML tags field for the quota (which should be overridden by the Allows ALL HTML tags setting).
The Active Text Formatter Allow HTML is also checked.

When she tries to save the form the error message appears listing all of the html tags which are allowed, all html used in the field is listed.

Any suggestions as to what I could try next would be greatly appreciated.

Thanks!
updated by @ultrajam: 08/10/16 02:20:50AM
SteveX
@ultrajam
04/14/16 04:31:08AM
2,589 posts

Privacy check for images?


Jamroom Developers

I fixed this as a problem by moving the items to a public profile.

The default images were being displayed by the check in jrImage_display_image at line 928 of jrImage/include.php

It would be useful to have the option to avoid that privacy check in order to display images on items which avoid privacy checking. Otherwise, items listed by setting privacy_check=false will always display the default image for non-admins.
SteveX
@ultrajam
04/14/16 03:05:57AM
2,589 posts

Tracker item created on the wrong profile


Jamroom Developers

I saw this (or something similar) a few times last year, there have been threads on this as well.

When creating a new tracker item after viewing a profile which is co-owned by several users I created a new tracker item (I am logged in as admin).

In the Tracker Owner dropdown I can see myself and the other 7 owners of that profile - I select myself.

The tracker item is created on the shared (wrong) profile - it's on a quota which has no trackers so it doesn't appear anywhere.
When I look in the database the _profile_id and the tracker_profile_id are both set to the id of the shared profile whereas they should be set to my profile (only my profile has a tracker, and only I create tracker items).

Generally I only see my username in the Tracker Owner dropdown, when i see other users I know the tracker item is likely to go missing.
updated by @ultrajam: 08/01/16 06:25:13AM
SteveX
@ultrajam
04/14/16 02:53:02AM
2,589 posts

php warnings from emoji functions


Jamroom Developers

Thanks Michael :)

FYI, looks like you have a different version of that function to me. My jrCore 5.3.4 function has no is_string check.
SteveX
@ultrajam
04/14/16 02:07:46AM
2,589 posts

php warnings from emoji functions


Jamroom Developers

It looks like jrCore_replace_emoji is run twice each time I click on the Error Log tab or the Debug log tab.

The first value is an array containing $_conf and $_mods, and the second value is the $_user array.
SteveX
@ultrajam
04/14/16 01:45:20AM
2,589 posts

php warnings from emoji functions


Jamroom Developers

So in the debug log, I get a wide range of different values for $string including the following

A pair of arrays: $_conf and $_mods
All language strings
The $_user array
The html for the debug log ACP page
empty

The log generally reads (2016-04-14T09:22:40+01:00.0.51098300 : 0.035)-(mem: 1310720)-(pid: 20210)-(ip: 164.11.187.83)-(user: )-(uri: GET /core/debug_log)
Sometimes the username is there but usually not.
SteveX
@ultrajam
04/13/16 03:24:00PM
2,589 posts

videos not converting after 24 hours


Installation and Configuration

Why not use the current version of ffmpeg which is included by the jamroom core module?
SteveX
@ultrajam
04/13/16 10:22:58AM
2,589 posts

php warnings from emoji functions


Jamroom Developers

Thanks Michael, I'll give that a try tomorrow.

I'm seeing about 200 per minute so if you aren't seeing them they must be caused by our custom modules.
SteveX
@ultrajam
04/12/16 03:40:06AM
2,589 posts

php warnings from emoji functions


Jamroom Developers

We are getting many writes of the same two warnings to the error log:
Quote: PHP Warning: preg_match_all() expects parameter 2 to be string, array given in /......./modules/jrCore-release-5.3.4/lib/util.php on line 1200
Quote: PHP Warning: preg_match_all() expects parameter 2 to be string, array given in /......./modules/jrCore-release-5.3.4/lib/util.php on line 1191
Do you see these too?

I'm wondering if these are from editor fields in my custom modules.

Thanks
updated by @ultrajam: 07/17/16 02:41:25AM
SteveX
@ultrajam
04/12/16 02:29:12AM
2,589 posts

TinyMCE inserting line breaks into some list items


Jamroom Developers

Hi Brian, I think some of the inserted line breaks were improved in the last core update (tables?), but this still remains a problem with lists.

http://academicskills.uwe.ac.uk/steve/workbooks/workbook-features/12034/test

Thanks
updated by @ultrajam: 04/12/16 03:24:11AM
  81