Forum Activity for @michael

michael
@michael
06/04/15 07:10:48PM
7,832 posts

TinyMCE tables adds line breaks


Using Jamroom

If you know the input for any location was put there by tinymce then using nl2br is safe and desired (I thought it was in by default, this happens all the time?).

Because tinymce will give the appropriate formatting. If the input box is NOT using tinymce, like the post box here doesn't then you will want to have nl2br ON because a new line should be re-formatted to a BR so the breaks stay in.

Depends on how your setup is setup.

I'll go check out adding a table and look for why BR's are turning up.

--edit--
seeing it, will get it sorted. Thanks.
updated by @michael: 06/04/15 07:58:14PM
michael
@michael
06/04/15 06:30:14PM
7,832 posts

Modern Responsive design examples


Ning To Jamroom

Q: Could any of those styles be made into a jamroom skin?
A: Yes

Q: Do any of those skins already understand what to do with what Jamroom outputs?
A: No

Those skins know what to do with the static content they put there, but they have no system in place to deal with the dynamic content jamroom outputs (the stuff input by your users). Those skins do not know how to format the admin control panel. They don't have any structure for users profiles, or dealing with modules.

So they are lacking a lot.

To get them to work, you'd have to add in the facilities to allow the aspects of jamroom you wanted to use to work.

You could just put them up as-is into a skin and they would work just like they work there, then start bringing in just the bits that you want to bring in. That would be another way to do it.

It depends on if you want to build them into a full working jamroom skin or just a partially working jamroom skin.

--edit--
If you just wanted to use one of them for the front-end, then this module:

"Alternative Admin Skin"
https://www.jamroom.net/the-jamroom-network/networkmarket/55/alternate-admin-skin

Could be use to use a skin that already knows how to format the ACP and Profiles in those sections and just use that skin for the front-end. (another option.)
updated by @michael: 06/04/15 06:33:30PM
michael
@michael
06/04/15 02:17:54AM
7,832 posts

'Normal' users cannot upload photos in 'Embed Local Media'


Using Jamroom

Thats the way of things, when you try to explain the problem, the problem goes away :)

quality bark images.... ;)

Glad its sorted.
michael
@michael
06/04/15 02:04:55AM
7,832 posts

old referal links redirect or search and suggest


Ning To Jamroom

Make sure you have the:
ACP -> SYSTEM CORE -> GLOBAL CONFIG -> LOG 404 NOT FOUND

checkbox checked, that will allow you to see what URLs people are hitting in your activity log.

From there you can use the url mapper to send them where you know they want to go:

"Url Mapper"
https://www.jamroom.net/the-jamroom-network/networkmarket/179/url-mapper

--
If you still want something for your 404.tpl page then yes the referer is there:
http://www.smarty.net/docsv2/en/language.variables.smarty

so in:
/skins/YOUR SKIN/404.tpl

You can see the referer with this variable:
{$smarty.server.HTTP_REFERER}

although thats probably not so useful in searching for extra similar pages.

I guess you could make a custom smarty function that took the referer as a variable and outputted possible choices for other pages, but im not sure why you would do that because for the referer to be there there has to be a link to the page from one of your pages and there is not much point in purposely linking to a page that is not there.

If you did want to though....

"Defining your own smarty function"
https://www.jamroom.net/the-jamroom-network/documentation/development/1569/defining-your-own-smarty-function
michael
@michael
06/04/15 01:37:09AM
7,832 posts

module template generate a data csv file


Design and Skin Customization

Crossed wires in this conversation.

If you want it to popup as a downloadable file, you'll have to do it via a module's view function so you can set the type of file to be downloadable instead of displayed.

--edit--
take a look at the jrDeveloper module, The way it does it is to first create the file and save it to disk then the download function looks like this:
//------------------------------
// download_skin
//------------------------------
function view_jrDeveloper_download_skin($_post, $_user, $_conf)
{ jrUser_master_only(); $mdir = jrCore_get_media_directory(0, FORCE_LOCAL); if (!isset($_post['_1']) || !is_file("{$mdir}/{$_post['_1']}")) { jrCore_set_form_notice('error', 'Invalid ZIP file'); jrCore_location('referrer'); } jrCore_send_download_file("{$mdir}/{$_post['_1']}"); session_write_close(); exit(); }

That is when a skin is packaged and needs to be downloaded. The steps are:
* get the file,
* send the file
* exit

But first you need to create the file, and write it to disk.

The view_jrDeveloper_package_skin_save() function has an example of that happening.
* create structure
* write to file.
updated by @michael: 06/04/15 01:44:34AM
michael
@michael
06/04/15 01:34:45AM
7,832 posts

Upload limit


Installation and Configuration

"How do I increase PHP's upload limit?"
https://www.jamroom.net/the-jamroom-network/documentation/problems/748/how-do-i-increase-phps-upload-limit

Quote:
The php.ini settings that resulted in 128MB upload

In the 3 screenshots below of the servers php.ini file in the editor you can see the settings that resulted in Jamroom having a - max allowed upload limit of 128MB:

post_max_size = 512M
upload_max_filesize = 512M
memory_limit = 512M
michael
@michael
06/04/15 01:32:53AM
7,832 posts

A way of controlling big images added to forums


Using Jamroom

It goes into one of the css files of your skin. Since you have a custom skin, you would edit one of the css files found at:
/skins/YOUR SKIN/css/(choose one).css

Pick one with a related name, maybe site.css if that's there.
michael
@michael
06/04/15 01:30:17AM
7,832 posts

Listing in ProJam Light


Design and Skin Customization

nduguseliphaz:
What about a list of top 5 newest blogs?

{jrCore_list module="jrBlog" order_by="_created numerical_desc" limit="5"}
michael
@michael
06/04/15 01:26:34AM
7,832 posts

Site Builder Menu on Mobile Device


Using Jamroom

What do you expect to happen for mobile? I know mobile cant handle 3 levels of depth in a menu, but think it can handle 2.

Currently the new "Site Builder Core" menu is not in any of the mobile menus yet. to add it to elastic, add it to:
/skins/jrElastic/header_menu_mobile.tpl about line 4

so it looks like this:
<div class="sb-slidebar sb-left">
<nav>
    <ul class="sb-menu">
{jrSiteBuilder_menu}

    <li><a href="{$jamroom_url}">{jrCore_lang skin=$_conf.jrCore_active_skin id="1" default="Home"}</a></li>


Then let me know what issues you see. Thinking that perhaps for the mobile menu we limit to just 2 levels deep?
michael
@michael
06/04/15 01:15:23AM
7,832 posts

Cant Upload Images To Gallery


Using Jamroom

What page does he end up on. Did he do it from his profile.
guess You have the link to /gallery/create on the top section of the site and he has more than one profile and since he wasn't on his profile before going there the system didnt know where to return to.

Its a stretch guess. need to get more info like what was the URL of the page he returned to. better to keep different questions in different threads. "how do i turn off galleries" in a different thread please.

Keep this one for "cant upload images to gallery"
  531