Forum Activity for @michael

michael
@michael
03/01/15 04:20:17PM
7,832 posts

Edit Comments Button


Suggestions

Editable comments will be in the next version of the Comments module. ver 1.5.2
updated by @michael: 03/01/15 04:21:30PM
michael
@michael
03/01/15 11:32:53AM
7,832 posts

Success/Notice css


Jamroom Developers

Not a false alert, I see it too. Thanks.

--edit--
Got a check in place so only one shows from next core release.
updated by @michael: 03/01/15 12:39:05PM
michael
@michael
03/01/15 11:28:38AM
7,832 posts

How To Delete Account Type in "Sign Up" form Designer


Ning To Jamroom

^^ brian's option is the best, use gravatar module to give them a non-interesting image until they upload their own.

If you absolutely have to force them to upload an image, a better solution than trying to put it on the signup form which wont work because they aren't logged in, is to make the profile image required on their "Profile Update" page, and redirect them to that page if they don't have a profile image.
michael
@michael
03/01/15 01:29:41AM
7,832 posts

How To Delete Account Type in "Sign Up" form Designer


Ning To Jamroom

The issue is one that the upload file function wants the user to be logged in before allowing them to upload stuff to it.

That upload should have failed.
michael
@michael
03/01/15 01:26:07AM
7,832 posts



There are a bunch of possible locations.

If you went server side code options are
* /skin/(YOUR SKIN)/header.tpl
Define a smarty_function just like {jrCore_list... or any other smarty function, its pretty simple once the module structure is in place.

Look for functions marked smarty_function_....... in include.php files for examples, let me know if you get stuck and I'll walk you through it.

so what you end up with is a function that fires from the template eg:
// at the top of header.tpl
{xxMymodule_default_lang}

That will fire smarty_function_xxMymodule_default_lang() which is a php function.

Next option is to hook into an event which fires when the page loads.

"Events and Listeners"
https://www.jamroom.net/the-jamroom-network/documentation/development/1011/events-and-listeners

and find an event, then fire off a server side function.

Another way to do it, but client side without a module would be to check for a cookie on page load, and if it isn't there redirect via javascript to the detected language, then set a cookie so the user doesnt get redirected next time.
michael
@michael
02/28/15 05:30:40PM
7,832 posts

Playlist to play all audio and soundcloud


Design and Skin Customization

One way to do it could be to add another form field to the audio files via the Form Designer that only the admin can see, make it a text field and the admin enters something there.>>

then use the Batch Edit module to go through and update all the audio files with which radio station they are at.

If you called the field audio_station and set them as numbers 1, 2, 3 etc, then use that in player search



{jrCore_media_player type="jrAudio_player_dark" module="jrAudio" field="audio_file" order_by="_created random" limit="50" search1="audio_station = 1"}

That would play all the songs in station 1, do the same for the others.

"Batch Item Editor"
https://www.jamroom.net/the-jamroom-network/networkmarket/236/batch-item-editor
michael
@michael
02/28/15 05:25:16PM
7,832 posts



Fantastic! Finally someone I agree with. I get frustrated A LOT when websites decide for me what language I should be viewing the site in.

"You're in Japan, you must want Japanese :) "

(looking at you victorinox.com) :(

You're definitely asking the right question, Browser Setting!

As for how to implement it, I haven't done it. These look promising though:
* http://stackoverflow.com/questions/1043339/javascript-for-detecting-browser-language-preference
* http://stackoverflow.com/questions/3770513/detect-browser-language-in-php

Either once server side or once client side, after that leave it at what they chose.
updated by @michael: 10/23/15 01:58:33PM
michael
@michael
02/28/15 03:07:57PM
7,832 posts

Playlist to play all audio and soundcloud


Design and Skin Customization

Yeah, soundcloud have their own player. I've yet to see a player that can play both. If you do see one, let us know.
michael
@michael
02/28/15 01:41:07PM
7,832 posts

Can the update form also be added to the activity feed on home page


Design and Skin Customization

In most cases its not going to be a problem because the user will have _some_ profile_id that belongs to them set. Its just going to be the rare cases, so test well on:
* just logged in and not visited a profile yet
* user owns two (or more) profiles

It was a while ago when I was looking at doing something similar and put this code in my template:
{if !isset($_user.profile_id) && isset($_user._profile_id)}
    {$_user.profile_id = $_user._profile_id}
{/if}
"If the user doesn't have a $_user.profile_id, then use the home one from their user account." It was needed for what I was fiddling with at the time, you'd need to test. Might not be needed, not sure.
  577