Forum Activity for @michael

michael
@michael
06/03/16 05:23:41PM
7,826 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,826 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.
michael
@michael
06/03/16 12:04:45AM
7,826 posts

Recurring search error in Activity Log


Using Jamroom

this part:
 [0] => leigh

It probably should have a location, look more like:
 [0] => gallery_% like leigh

currently is saying "search the leigh" where as it should be saying "search the gallery for anything with leigh in it"

Its probably a jrCore_list call somewhere that looks like this:
{jrCore_list moudle="jrGallery" search1="leigh"}


updated by @michael: 06/03/16 12:05:31AM
michael
@michael
06/02/16 09:31:57PM
7,826 posts

php warnings from smarty templates


Jamroom Developers

http://stackoverflow.com/questions/4261133/php-notice-undefined-variable-and-notice-undefined-index#4261200
Quote: ......Although PHP does not require variable declaration, it does recommend it.....

Its just a note saying active's not set. If if it is set is what's being checked for, then go with just isset
{if isset($entry.active)} active{/if}

Get the peace of mind of being overly-correct. :)
michael
@michael
06/02/16 09:22:52PM
7,826 posts

New 'Group Mailer' Module


Announcements

Thanks Strumelia. :)
michael
@michael
06/02/16 08:13:38PM
7,826 posts

Jquery in TPL Help


Using Jamroom

presuming you have the closing {/literal} at the other end of it then nothing needs to be done.

if you have things like
.......auddio4_html5({var a=5
thats fine for javascript, but smarty sees {v and thinks "looks like its a smarty function :)". you can get around it by making sure you have a space between any { and the first thing after it { var a=5 would be fine.
michael
@michael
06/01/16 02:43:14AM
7,826 posts

Media Url Scanner


Using Jamroom

done, thanks. not big enough to warrant a release, but it will be trimmed in the next version.
  391