Forum Activity for @michael

michael
@michael
07/13/15 12:36:53AM
7,832 posts

Users vs Profiles


Genosis

Since profile names relate directly to a URL, they need to be unique. Usernames dont show up as often.

eg:
http://johnsonfamily.talldude.net/margaretha-mller-89

As long as the profile name is unique to start with the display name can be updated to display what is wanted.
michael
@michael
07/13/15 12:33:57AM
7,832 posts

Suggestions for future versions


Genosis

Thanks.

There probably wont be a 'next time', but for next time, you can change any use to be an admin user by changing their

user_group = master

in the jruser_item_key table in the database.
michael
@michael
07/13/15 12:29:10AM
7,832 posts

Spellchecker installing for tinyMCE...what am I doing wrong?


Using Jamroom

I think it might have been the context menu, so if you disable the contextmenu you can then use the browser spellcheck:

http://www.tinymce.com/wiki.php/Configuration:browser_spellcheck

But that means you don't have the context menu.

--edit--
related discussion:
http://www.tinymce.com/forum/viewtopic.php?id=32020
updated by @michael: 07/13/15 12:31:05AM
michael
@michael
07/13/15 12:25:17AM
7,832 posts

Top Ad banner


Installation and Configuration

Ads are showing for me.

That would be the header.tpl file.
screenshot_adverts.jpg screenshot_adverts.jpg - 137KB

updated by @michael: 07/13/15 12:25:43AM
michael
@michael
07/10/15 06:33:42PM
7,832 posts

Error: Offsite media downloads are blocked


Installation and Configuration

Then you'll need to figure out what is set for
HTTP_REFERER

$_SERVER['HTTP_REFERER']
When the android app contacts your server and add that to the allowed domains.

Or use proxima
https://www.jamroom.net/proxima/

Or make a custom download function in a module (would be another way to do it).

--edit--
actually, it looks like ALLOW_ALL_DOMAINS should allow that through. hmmm.

Could you check the ALLOW_ALL_DOMAINS again please, it looks like it should be going through.
updated by @michael: 07/10/15 06:36:48PM
michael
@michael
07/10/15 06:27:13PM
7,832 posts

Combined Videos Category Search


Design and Skin Customization

If its just to reduce the categories to unique ones, then here's the loop structure:
{$stuff = array('one', 'one', 'two', 'three', 'four', 'five', 'five', 'five', 'six')}

{foreach $stuff as $v}
    -:{$v}<br>
    {$wanted[$v] = $v}
{/foreach}

<hr>
{foreach $wanted as $v}
    -:{$v}<br>
{/foreach}
michael
@michael
07/10/15 06:21:07PM
7,832 posts

Spellchecker installing for tinyMCE...what am I doing wrong?


Using Jamroom

I looked at spellcheck a while back and from memory there was a trade-off issue that I don't remember totally clearly.

It was something like; the options are either to use the browsers built in spell checker functionality which is the best option except if you do that then you cant have ________(some other functionality)___________. OR you can use a custom spellchecker plugin but the free one uses google provided functionality and google have shut down that service, so the option is a paid for system which exists.

Think this was the paid option: http://tinymcespellcheck.com/
michael
@michael
07/10/15 06:17:18PM
7,832 posts

File Upload limit, php.ini


Installation and Configuration

its failing during the upload process, that green bar going across the bottom while the upload is happening?

If so check the server error logs, first guess is always 'not enough disk space', next is the destination directory isn't writable so the file cant be saved.
michael
@michael
07/10/15 02:15:09AM
7,832 posts

Combined Videos Category Search


Design and Skin Customization

Might need to run the returned results through a quick loop then. Not sure of the syntax for doing it in .tpl files, but in php syntax

foreach($stuff as $v){
  $wanted[$v] = $v;
}
That way any double ups in value will be over-written since they are used as the key to the array and array keys must be unique.
michael
@michael
07/10/15 02:11:08AM
7,832 posts

Code Question - Combined Audio


Design and Skin Customization

What you were thinking is good thinking, its just that it won't work in this location because you only want 1 seamless call, not two.

So the next place to look is the list template. You dont have template= in there at all, so Seamless is using the default list template which is:

/modules/jrSeamless/templates/item_list.tpl

It looks like this:
{if isset($_items)}
{foreach $_items as $item}
    {if is_file("`$jamroom_dir`/modules/`$item.seamless_module_name`/templates/item_list.tpl")}
        {jrSeamless_parse_template item=$item template="item_list.tpl" module=$item.seamless_module_name}
    {elseif jrUser_is_admin()}
        item_list.tpl for {$item.seamless_module_name} not found<br>
    {/if}
{/foreach}
{/if}

That reads: For every item that has been found, check to see if the module has an item_list.tpl file, if it does show that file.

So you want to change what it reads to make sure that it has an image if its an audio file, so you want it to read:
For every item that has been found, if the item is a jrAudio item make sure it has an image and check to see if the module has an item_list.tpl file and that the module is not , if it does show that file.

So try:
{if isset($_items)}
{foreach $_items as $item}
    {if $item.seamless_module_name == 'jrAudio' && !isset($item.audio_image_size)}
      {continue}
    {/if}

    {if is_file("`$jamroom_dir`/modules/`$item.seamless_module_name`/templates/item_list.tpl")}
        {jrSeamless_parse_template item=$item template="item_list.tpl" module=$item.seamless_module_name}
    {elseif jrUser_is_admin()}
        item_list.tpl for {$item.seamless_module_name} not found<br>
    {/if}
{/foreach}
{/if}
  512