Forum Activity for @michael

michael
@michael
06/19/16 05:33:15PM
7,832 posts

jrCore_format_string :: issues


Jamroom Developers

yep the issue is probably truncate. Truncate just cuts the string off at 170 characters no matter what.

<a href="https://www.jamroom.net/the-jamroom-network/forum/new_posts/41144/jrcore-format-string-issues">The link to this page</a>

If you're thinking that the 170 characters is just the text inside the href, better think again, its everything. So cutting it off is always a bad idea in my mind.

As for the jrCore_format_string issue

Docs: "{jrCore_format_string}"
https://www.jamroom.net/the-jamroom-network/documentation/development/1437/jrcore-format-string

The jrCore_format_string is just one of the piped converters you are applying to the variable
{$some_var|first_converter|second_converter|third_converter}

They run in order, so if the first_converter turns all @tags into html links, then the second_converter strips all html, then the second one is stripping the work the first one did.

Try truncate as the first converter then run all your stuff after that.
michael
@michael
06/19/16 01:35:42AM
7,832 posts

Extra menu level site builder?


Using Jamroom

My suggestion is if you plan on getting users from mobile devices viewing the page, dont make your menus more than 2 deep.
michael
@michael
06/19/16 01:33:30AM
7,832 posts

Meta Tags


Using Jamroom

maybe check for them with {debug} If they are defined already, then dont include your custom ones.

Docs: {debug}
https://www.jamroom.net/the-jamroom-network/documentation/development/1477/debug

Docs: Template Blocks
https://www.jamroom.net/the-jamroom-network/documentation/development/3126/template-blocks
michael
@michael
06/19/16 01:27:45AM
7,832 posts

Changing profile look


Design and Skin Customization

sure, every skin has a profile_header.tpl profile_index.tpl profile_footer.tpl

The menu is styled by the jrProfile_menu function so you can have it look like however you want it to look.

Docs: {jrProfile_menu}
https://www.jamroom.net/the-jamroom-network/documentation/development/1997/jrprofile-menu

The best place for figuring out what you can do is by looking at the existing skins and how they do it.
michael
@michael
06/18/16 12:18:04AM
7,832 posts

Modal Login


Suggestions

After the login is complete, you have options as to where to redirect to:
YOUR-SITE.com/user/admin/quota/hl=login_page#ff-login_page

ACP -> MODULES -> USERS -> USERS -> QUOTA CONFIG -> LOGIN REDIRECT
Quote: After a successful login, what location should the user be redirected to?

"profile" - User will be redirected to their Profile.

"index" - User will be redirected to the Site index page.

URL - Enter an actual URL (eg. http://www.mysite.com/post_login_page) for the user to be redirected to.
Default: profile

You could specify a url of a custom module that recorded the last page the users was on. That might even be recorded for you already on the jrCore_get_local_referrer() function.
michael
@michael
06/17/16 12:20:37AM
7,832 posts

Embed Local Media in TinyMCE not working in Chrome on iOS


Using Jamroom

Try again now with .jpeg, should be working now.
bear_picknic.jpeg bear_picknic.jpeg - 56KB
michael
@michael
06/16/16 09:46:14PM
7,832 posts

Changing or adding templates sitebuilder


Design and Skin Customization

a checkbox will store an "off" or "on" value. So if you stored it on 'audio_free' then
{if $audio_free == "on"}
The audio checkbox is checked.
{/if}

If you don't know what variables are available to you, then {debug}

Docs: "{debug}"
https://www.jamroom.net/the-jamroom-network/documentation/development/1477/debug
michael
@michael
06/16/16 08:39:56PM
7,832 posts

{if} statement - works in some templates not in others


Jamroom Developers

spelling mistake.

Its not the {if} statement thats not working its the condition your asking it to check does not evaluate to true.

You're asking it a question, its doing the right thing. The information you're passing it must be wrong.

You're saying that {$group_intro_video} exists and contains "52" but the if statement not firing and it not printing are both calling you a liar. ;)

throw a screenshot of the debug up here and I'll see what I see.

Oh, and check that your {degbug} is written right next to that if statement. Could be that the location of the debug call is in a different template to where you're trying to use it.
michael
@michael
06/16/16 08:33:20PM
7,832 posts

Extra menu level site builder?


Using Jamroom

Its an imposed limit, it was going to be 2 because of mobile devices, but its capable of 3.
-top
--first
---second

If you want to make that suggestion, accompany it with a working example of a menu 4 levels deep that works for mobile too, or a suggestion about how to handle that.
michael
@michael
06/15/16 06:33:33PM
7,832 posts

Stop Rating emails


Installation and Configuration

If you don't want to make a module, then perhaps put text into your email
ACP -> MODULES -> ITEM FEATURES -> ITEM RATINGS -> TEMPLATES -> email_new_rating_message.tpl

And instruct the receivers of the email where to turn off the ratings notifications.

The situation: a user has posted something, a different user has rated it. Thats something the poster of the thing would likely want to be notified about. If they don't want to be notified about it, they can turn it off.
  384