Forum Activity for @michael

michael
@michael
06/05/16 06:05:21PM
7,839 posts

Researcher Privileges


Genosis

no. new users are created when a person uses the signup form and confirms their address.

New profiles can be created by power users though. Then the admin user can link any new user to that.

Docs: "Glossary: Power User"
https://www.jamroom.net/the-jamroom-network/documentation/getting-started/2568/glossary#power-user

--edit--
Admin can create new users and send them a notification:
http://site.com/user/create

updated by @michael: 06/05/16 06:06:41PM
michael
@michael
06/05/16 06:02:02PM
7,839 posts

Tag Cloud


Installation and Configuration

Isleander:.....but would like it to show on the Home page - as in the demo......
The code you need is:
{jrTags_cloud height="300"}
it goes in your index.tpl file for your skin.

-----

Isleander:.....My question to Michael was I don't see
Quote:...the template "item_details.tpl" as stated in the documentation; is "item_lists.tpl" the same template, by a different name?

No.

Docs: "Module File System Structure"
https://www.jamroom.net/the-jamroom-network/documentation/development/789/module-file-system-structure

Each module has its own structure, some use item_detail.tpl, some don't.
michael
@michael
06/05/16 05:38:51PM
7,839 posts

player invisible buttons


Using Jamroom

Could be anything. The song shows a length of 0:00 so "no song provided" could be the issue. Could be a CSS issue. Could be some other added javascript blocking the player loading issue. Could be ............

* Review any changes you have made recently. Try reverting them to see if it fixes it.
* Try it on a default skin, see if it works there.

Need to narrow down to what is causing it, then you can start to look for a fix.
michael
@michael
06/05/16 05:11:23PM
7,839 posts

Javascript Functions


Jamroom Developers

yeah me too. fantastic program. Tons of stuff to keep finding. Saw someone using it in a video the other day and though "ok, they haven't found the auto-complete html yet :) "

in an html document if you write

div.someclass(then hit tab) it will produce
<div class="someclass"></div>
or
table>tr.someclass>td.odd(then hit tab) it will produce
<table>
    <tr class="someclass">
        <td class="odd"></td>
    </tr>
</table>

excellent piece of software.
michael
@michael
06/05/16 12:00:54AM
7,839 posts

Tag Cloud


Installation and Configuration

Depends on what skin your using. The docs are here for more explanation:

Docs: "Item Tags"
https://www.jamroom.net/the-jamroom-network/documentation/modules/95/item-tags

Whichever skin your using will need to have one of the {jrTag.......... functions in a template somewhere for anything to be displayed.
michael
@michael
06/04/16 11:58:34PM
7,839 posts

Javascript Functions


Jamroom Developers

I don't remember all the code, I just go look in the /js/ directory for a file called the name of the module, then use alt+shift+- (in phpstorm) to shrink all the functions down to their explanation and name, then expand ones that look interesting.

Same thing for modules, repeat process for the include.php file to see what functions it provides. :)
michael
@michael
06/04/16 12:05:03AM
7,839 posts

Javascript Functions


Jamroom Developers

from /modules/jrCore/js/jrCore.js these ones are useful:

jrCore_set_csrf_cookie() // useful for ajax submission use in conjunction with the php function jrCore_validate_location_url(); to make sure the location sending the data is one you want sending the data. prevent CSRF attacks


jrSetCookie // sets a cookie
jrReadCookie // read a cookie
jrEraseCookie // erase a cookie

There are probably other ones provided by other modules, depends on what you're interested in doing.
updated by @michael: 06/04/16 12:06:04AM
michael
@michael
06/03/16 08:53:11PM
7,839 posts

Jquery in TPL Help


Using Jamroom

The only time where wrapping the whole block in a {literal}{/literal} is a bad idea is when you have javascript and smarty mixed.

Like this:
function someFunction(){
   var a = '{$profile_name}';
   alert(a);
}

If you wrapped that in a literal

{literal}
function someFunction(){
   var a = '{$profile_name}';
   alert(a);
}
{/literal}
instead of getting an alert with 'dazed' the alert would read '{$profile_name}' because smarty couldn't do the replacement.

-- edit --
jamroom uses $ for jquery. so make sure you're not introducing another copy of jquery along with your scripts. you only need it once per page.

and try replacing to $

{literal}<script>
		$(function() {

			$('#audio4_html5_white').audio4_html5({

updated by @michael: 06/03/16 08:56:18PM
michael
@michael
06/03/16 05:23:41PM
7,839 posts

playing comment-attached audio files


Design and Skin Customization

sure you can do that with a bit of fiddling. The template you're interested in is:
/modules/jrCore/templates/upload_attachments.tpl

It has a foreach loop in it that displays each of the attachments, you'd want to check if the file is a .mp3 file from there, then add in your player.

Docs: "Altering A Modules Template"
https://www.jamroom.net/the-jamroom-network/documentation/development/1051/altering-a-modules-template
michael
@michael
06/03/16 05:13:10PM
7,839 posts

Foxy Cart Site Integration - Page Code


Installation and Configuration

You're not going to be able to put smarty code into one of the pages created on a profile, it will need to go into a template.

The code you want to add looks like this:
<a href="{jrFoxyCart_subscribe_url quota_id=3}">Monthly Subscription @ $29</a>

Where that quota_id=3 should be replaced with whichever quota you want them to signup to, so for you it will probably be something like:
<a href="{jrFoxyCart_subscribe_url quota_id=2}">Fan Clipz 1-Year Subscription @ $29</a>
<a href="{jrFoxyCart_subscribe_url quota_id=3}">Fan Clipz 6-Month Subscription @ $29</a>
<a href="{jrFoxyCart_subscribe_url quota_id=4}">Fan Clipz 3- Month Subscription @ $29</a>
<a href="{jrFoxyCart_subscribe_url quota_id=5}">Fan Clipz Monthly Subscription @ $29</a>

Depending on the order in which you created the different quotas. Just get the number of the quota aligned with the quota its for.

If you wanted a loop to do all the quotas, then this one from the docs works:
{jrFoxyCart_subscribable_quotas assign="quotas_that_allow_subscriptions"}
{foreach $quotas_that_allow_subscriptions as $quota_id => $_q}
    <a href="{jrFoxyCart_subscribe_url quota_id=$quota_id}">Subscribe Now ({$_q.quota_jrProfile_name})</a> <br>
{/foreach}
Its the same thing, just lists all the possible quotas.

That needs to go into a template file, so either via Site Builder if you have that enabled:

Docs: "Site Builder"
https://www.jamroom.net/the-jamroom-network/documentation/site-builder

Or you can edit an existing skin template:
ACP -> SKINS -> FLASHBACK -> TEMPLATES -> (choose a location for it) -> MODIFY (the index.tpl is the front page.)

Docs: "Using the Template Editor"
https://www.jamroom.net/the-jamroom-network/documentation/development/3183/using-the-template-editor

Quote:One note: I installed the Site Builder and tried it with that module but it totally took away all of the HEADER Listings on top, i.e.…Home – Community – Lists – etc.. Going to need to practice with Site Builder to become proficient but can’t spend the time right now with it.
Yes it will do that, but the pages are still there, so you can use the MENU EDITOR to add those url's back in to the new menu if you want to keep using the pages.
  389