Forum Activity for @michael

michael
@michael
07/19/18 10:53:52PM
7,823 posts

Newlines in database converted to HTML break for presentation


Jamroom Developers

First was comments in a textarea...(da da da insert music here). Then came TinyMCE....

So jamroom was setup to store the comments as they were formatted coming from the textarea, then in order to turn that into HTML that looks the same as it was formatted in the textarea nl2br() is added to the output.

So put a texteditor in place of a textarea and you end up needing to know which was used ( not which is active NOW ) to enter the text.

The answer to your question is:
which: nl2br()
who: jamroom

--edit--
The solution if its causing a problem for you is to exclude NL2BR from the string formatters.

eg: for blog's item_detail.tpl the blog text will be output like this:
{$item.blog_text|jrCore_format_string:$item.profile_quota_id}
The solution is to add 'nl2br' to the EXCLUDE list
{$item.blog_text|jrCore_format_string:$item.profile_quota_id:null:nl2br}

Then the BR won't be output.
updated by @michael: 07/19/18 11:09:43PM
michael
@michael
07/19/18 04:11:08AM
7,823 posts

How to change the default settings for Notifications?


Using Jamroom

The default is going to be to notify the correct user of something they should be interested in. We've tried to get it setup right, however if there is somewhere where you think the default should be something other than what it is, let us know.
michael
@michael
07/18/18 08:30:33PM
7,823 posts

How to change the default settings for Notifications?


Using Jamroom

You're right, you can't as admin set the system up as:
* The profile has a guestbook, but the profile owner will not be notified when someone writes in the guestbook.

By default the notifications are set to ON. The user can then decide to turn them off.

What your after can be done by a module though, although the question "Why?" does jump to mind.
michael
@michael
07/18/18 04:30:12PM
7,823 posts

How to change the default settings for Notifications?


Using Jamroom

only admin gets notified when new members join the network
michael
@michael
07/16/18 04:37:17AM
7,823 posts

How do we put alt tags in images ?


Using Jamroom

Really depends on where you're talking about.
<img src="(some url)" alt="description of the image">

or if its in the tempates via jrCore_image, then
{jrCore_image skin="jrYourSkinHere" image="menu.png" alt="menu"}
michael
@michael
07/16/18 04:34:45AM
7,823 posts

France - FIFA World Cup winners!


Off Topic

Congratulations :) :thumbs-up:
michael
@michael
07/16/18 04:33:36AM
7,823 posts

For sharing with OneAll Social, how to link another network account to a JR network account?


Using Jamroom

Yes, you're right, it should be NETWORKS.

That looks like there is a setting at twitter that needs checking.

Try the steps found here:
https://stackoverflow.com/questions/10567305/why-does-my-twitter-application-access-level-is-read-only-and-how-can-i-change

Quote:
1. Go to dev.twitter.com/apps
2. Select your app
3. Go to the Settings tab
4. Look for 'Application Type'
5. Change it to Read and Write

networks.jpg networks.jpg - 71KB
michael
@michael
07/13/18 10:02:47PM
7,823 posts

For sharing with OneAll Social, how to link another network account to a JR network account?


Using Jamroom

researchcooperative:....."Select the external social networks you would like to link to your account - note that you must already have an account on the linked social network, and have linked it to your account in order to link your activity stream."....
its saying: "If you want to share to twitter, you need to have a twitter account."

So the user goes to their
YOUR SITE -> ACCOUNT SETTINGS -> NOTIFICATIONS -> CLICK TWITTER

Then twitter will open and ask "since you are currently logged in at twitter as SOMBODY, would you like to let this jamroom site post to your sombody twitter account?" you say YES, then the account is linked and when you share things, you'll have the option to share to twitter.
michael
@michael
07/11/18 06:33:34PM
7,823 posts

How do I add a check box in a module ?


Using Jamroom

What you're asking for is too broad. You're asking for the someone to build the module you want for you, then to write detailed instructions that you can copy so that you can have the module.

Docs: "Sponsor a module"
https://www.jamroom.net/the-jamroom-network/documentation/jamroomnet/4931/sponsor-a-module
michael
@michael
07/10/18 08:13:29AM
7,823 posts

Item list display options - can comments be truncated with a "read more..." at end?


Using Jamroom

Yes, you can use
|truncate:200
to truncate the output to the first 200 characters. May not be a good idea if you allow HTML in your comments thought as sometimes tags can get cut-off. But if you dont then choose the amount of characters you want to show and adjust.

In Site Builder you can use a custom template (down the bottom of the form.) Find the variable you want to shorten, it may be something like
{$item.comment_text}
and add the above to it
{$item.comment_text|truncate:200}
  120