Forum Activity for @michael

michael
@michael
09/17/17 09:53:34PM
7,826 posts

Configuring Tinymce


Jamroom Developers

There are 2 locations the form is intalized
/modules/jrCore/templates/form_editor.tpl
/modules/jrSiteBuilder/templates/form_editor.tpl

The $ul || $li are checks run off the values listed in the quotas "Allowed HTML Tags" found at:
ACP -> MODULES -> CORE -> SYSTEM CORE -> QUOTA CONFIG -> Allowed HTML Tags

If 'ul' and 'li' are not allowed there, then there is no sense in showing the button because they will be stripped out.

Each of those Allowed HTML Tags will be its own variable name in the form_editor.tpl
span,strong,em,a,b,u,i,p,div,br,img,h1,h2,h3,h4,pre,hr,ul,ol,li,sub,sup,table,tbody,th,tr,td


Since both of those files are in core modules that may be updated in the future, the location to adjust them that will be safe from updates is either on the TEMPLATES tab in the acp, eg:
ACP -> MODULES -> CORE -> SYSTEM CORE -> TEMPLATES -> form_editor.tpl -> MODIFY

OR by defining the equivalent file in the skin using the naming override convention. If you wanted to override
/modules/jrCore/templates/form_editor.tpl

Then copy it to the skin and call it:
/skins/YOUR SKIN/jrCore_form_editor.tpl

(But if you ALSO have an override in the TEMPLATES tab, then it will have the last word, so better to pick either the filesystem or the ACP as both can get confusing. I prefer the file system.)

--edit--

Docs: "Altering a modules template"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1051/altering-a-modules-template
updated by @michael: 09/17/17 09:54:38PM
michael
@michael
09/15/17 09:16:25PM
7,826 posts

Proxima Bridge List Users


Proxima

"module is not enabled in Proxima Bridge" is displaying because the jrProfile module does not have an item_index.tpl file. (thats searched for in the jrProximaBridge_get_active_modules() function)

Even if that is added though, a re-run of the query returns:
{"code":400,"text":"Bad Request","note":"invalid _item_id"}

If the URL is changed to:
/api/bridge/profile/search?search1=_item_id%20gt%200

a list is returned:
{"code":200,"text":"OK","data":{"_items":[{"_app_id":"1","_created":"1505534082","_p25":"2","_profile_id":"47","_updated":"1505535000","_user_id":"25","profile_active":"1","profile_disk_usage":"0","profile_name":"tim","profile_private":"1","profile_quota_id":"1","profile_url":"tim","_item_id":"47"},{"_created":"1505534082","_profile_id":"46","_updated":"1505535000","_user_id":"25","profile_active":"1","profile_disk_usage":"0","profile_name":"tim","profile_private":"1","profile_quota_id":"1","profile_url":"tim","_item_id":"46"},{"_app_id":"1","_created":"1505534037","_p24":"2","_profile_id":"45","_updated":"1505535000","_user_id":"","profile_active":"1","profile_disk_usage":"0","profile_name":"tim","profile_private":"1","profile_quota_id":"1","profile_url":"tim","_item_id":"45"},{"_created":"1505533862","_profile_id":"44","_updated":"1505535000","_user_id":"24","profile_active":"1","profile_disk_usage":"0","profile_name":"tim","profile_private":"1","profile_quota_id":"1","profile_url":"tim","_item_id":"44"},{"_app_id":"1","_created":"1505528845","_p23":"2","_profile_id":"43","_updated":"1505535000","_user_id":"","profile_active":"1","profile_disk_usage":"0","profile_name":"tim","profile_private":"1","profile_quota_id":"1","profile_url":"tim","_item_id":"43"},{"_created":"1505528837","_profile_id":"42","_updated":"1505535000","_user_id":"23","profile_active":"1","profile_disk_usage":"0","profile_name":"tim","profile_private":"1","profile_quota_id":"1","profile_url":"tim","_item_id":"42"},{"_app_id":"1","_created":"1505528824","_p22":"2","_profile_id":"41","_updated":"1505535000","_user_id":"","profile_active":"1","profile_disk_usage":"0","profile_name":"tim","profile_private":"1","profile_quota_id":"1","profile_url":"tim","_item_id":"41"},{"_created":"1505528821","_profile_id":"40","_updated":"1505535000","_user_id":"22","profile_active":"1","profile_disk_usage":"0","profile_name":"tim","profile_private":"1","profile_quota_id":"1","profile_url":"tim","_item_id":"40"},{"_app_id":"1","_created":"1505528803","_p21":"2","_profile_id":"39","_updated":"1505535000","_user_id":"","profile_active":"1","profile_disk_usage":"0","profile_name":"tim","profile_private":"1","profile_quota_id":"1","profile_url":"tim","_item_id":"39"},{"_created":"1505528739","_profile_id":"38","_updated":"1505535000","_user_id":"21","profile_active":"1","profile_disk_usage":"0","profile_name":"tim","profile_private":"1","profile_quota_id":"1","profile_url":"tim","_item_id":"38"}],"info":{"limit":10,"total_items":10}}}
michael
@michael
09/15/17 06:12:08PM
7,826 posts

Latest Videos Module


Ning To Jamroom

Nice one! :) Site's looking great!
michael
@michael
09/13/17 09:27:56PM
7,826 posts

share This tool integration


Design and Skin Customization

Use the {debug} tool to see if $item is available

Docs: "{debug}"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1477/debug

If its not available, then the share this module isnt going to know what to needs sharing.

copy+paste the errors into a [ c o d e] block here. Errors are there to help you understand whats going on, each one will have a meaning that helps you solve your issue.
michael
@michael
09/13/17 09:21:39PM
7,826 posts

Latest Videos Module


Ning To Jamroom

What you're seeing is not videos, but images belonging to the videos. They are laid out in a row with the image in a column that is 2 wide and the text in a column that is 10 wide. ( total must equal 12 for a full row ).

I believe you're wanting to make the images about 6 wide, so change the col2 to col6 and the col10 to col6 for that row.

See screenshot
half-half.jpg half-half.jpg - 182KB
michael
@michael
09/13/17 09:05:52PM
7,826 posts

Couple of gallery delete issues


Using Jamroom

This might be what you're saying:
http://www.ourtownstory.co.uk/gallery/template_compare/id=85

Previously:
{jrCore_item_list_buttons module="jrGallery" item=$item}
was changed to
{jrCore_item_update_button module="jrGallery" profile_id=$item._profile_id item_id=$item._item_id}
{jrCore_item_delete_button module="jrGallery" profile_id=$item._profile_id action="`$murl`/delete_save/`$item.profile_url`/`$item.gallery_title_url`"}

Its not on the item detail page, but the link does look like its ends up on the gallery list page which is setup without a header.
http://www.ourtownstory.co.uk/gallery
updated by @michael: 09/13/17 09:06:14PM
michael
@michael
09/13/17 08:46:54PM
7,826 posts

Couple of gallery delete issues


Using Jamroom

A video of me walking through the problem. Not understanding it sorry. :(
delete_issue.mp4.zip - 31.4MB
michael
@michael
09/13/17 01:21:01AM
7,826 posts

User Registration


Design and Skin Customization

Use this code:
{jrCore_include template="header.tpl"}


{jrCore_form_create_session module="jrUser" option="signup" assign="token"}
<div id="jrUser_signup_msg"></div>
<form id="jrUser_signup" name="jrUser_signup" action="{$jamroom_url}/user/signup_save" method="post" accept-charset="utf-8" enctype="multipart/form-data">
    <input type="hidden" id="jr_html_form_token" name="jr_html_form_token" value="{$token}">
    user name <input type="text" id="user_name" class="form_text" name="user_name" value=""><br>
    email <input type="text" id="user_email" class="form_text" name="user_email" value=""><br>
    password <input type="password" id="user_passwd1" class="form_text" name="user_passwd1" value=""><br>
    repeat password <input type="password" id="user_passwd2" class="form_text" name="user_passwd2" value=""><br>
    <input type="hidden" id="quota_id" name="quota_id" value="1">
    <img id="form_submit_indicator" src="{$jamroom_url}/skins/jrNova/img/submit.gif" width="24" height="24" alt="working...">
    <input type="button" id="jrUser_signup_submit" class="form_button" value="signup" tabindex="3" onclick="jrFormSubmit('#jrUser_signup','{$token}','post');">
</form>


{jrCore_include template="footer.tpl"}

Change the quota_id from "1" to the number of the quota you want to allow signups for.
  186