Forum Activity for @michael

michael
@michael
08/14/16 07:42:38PM
7,832 posts

Users dont get the file they paid for


Using Jamroom

The most likely scenario is paypal is not sending a message to your server to tell jamroom that the file has been sold. If that was happening, there would be an entry in the activity log.

It would be either:
jrPayPal: processing incoming transaction:
or
jrPayPal: invalid notification received in webhook

If neither of those are in your activity log, paypal did not tell jamroom that an item was sold.

If thats the case, check if you have an IPN set at paypal pointing to the wrong url.
michael
@michael
08/14/16 06:51:27PM
7,832 posts

ISkin4 Lightbox - video support


Design and Skin Customization

In smarty2 they were necessary, but from smarty3 a space will be fine.

Smarty2 code:
onfocus="if(this.value=='{$svar}'){ldelim} this.value=''; {rdelim}"

Smarty3 code:
onfocus="if(this.value=='{$svar}'){ this.value=''; }"

Just make sure there is a space after the { and you dont need {ldelim}.

This will fail in smarty3
onfocus="if(this.value=='{$svar}'){this.value='';}"
because the {t..... is treated as a smarty function.
michael
@michael
08/14/16 05:46:52PM
7,832 posts

Users dont get the file they paid for


Using Jamroom

yep, thats a good thought. If that was the case though, it wouldn't have 'just started' happening. It was working, then it stopped, nothing changed in the module, maybe something changed in the server (ask the server company about that one), maybe paypal changed something.

Servers don't change the way they work unless something changed. We need to figure out what changed.
michael
@michael
08/14/16 05:37:34PM
7,832 posts

jrAction_item_list.tpl Shared Action link to Action Item Detail.


Suggestions

outline how to setup an actual example of what you're trying to achieve. The one above is a bit too abstract to comment on with confidence.
updated by @michael: 08/14/16 05:37:51PM
michael
@michael
08/14/16 05:35:01PM
7,832 posts

ISkin4 Lightbox - video support


Design and Skin Customization

PatriaCo:
The result is always height="300px", with an empty width="". No matter the viewport width.
As soon as we have this figured out, I will post all the code. This is very cool. Thanks for the all help so far.
Just to clarify I need to figure out how to capture the id.width() for the viewport size.
Thanks!
Make sure the id that is getting output actually exists on the page.

By the time it gets to the HTML output on the page, all the {$somtehing} will have been rendered into their actual values, so if you view the source code for the page you will see:

	$(document).ready(function() {
		{* 16:9 aspect ratio instead of fixed height.*}
		var id = $('#ytplayer123456');
		var tw = id.width();
		var th = Math.round(tw / 1.778);
		if (th < 300) {
		    th = 300;
		}
		id.height(th);
	});
Make sure '#ytplayer123456' is somewhere in the page, so that you can get the width of it.
michael
@michael
08/14/16 05:30:41PM
7,832 posts

ISkin4 Lightbox - video support


Design and Skin Customization

PatriaCo:
Not sure I understand how to use those correctly. Do you have a link to some documentation on them?

Smarty docs are here: http://www.smarty.net/docs/en/index.tpl

{ldelim} and {rdelim} were used a lot in smarty 2, we're on smarty 3 now so you're probably not going to use them as much.


michael
@michael
08/14/16 05:28:54PM
7,832 posts

Image gallery error on save


Jamroom Developers

Are you using a BETA version or STABLE version. If its a BETA version, make sure you're up-to-date.
michael
@michael
08/14/16 05:15:00PM
7,832 posts

Suggestions for Lightbox view


Suggestions

You have total control over your site, if you want a lightbox on anywhere, you can alter the skin to put a lightbox anywhere.

Example, if you wanted a lightbox from each of the images in the gallery page where the "View Images in Lightbox" was shown, the template is /modules/jrGallery/templates/item_gallery.tpl . You can over-ride it with this method:

Docs: "Altering a Module's Template"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-developers-guide/1051/altering-a-modules-template

Currently the code is already there for the lightbox and starts at position 0, but you can start it on any image by adding a link containing the item_id, eg:
<a href="{$jamroom_url}/{$murl}/image/gallery_image/{$item._item_id}/1280" data-lightbox="images" title="{$_items['0'].gallery_alt_text}">open in a lightbox</a>
around line 75 to check its working (as thats inside the foreach loop), then style it however you like.

That will add a 'open in a lightbox' link to each of the images.
michael
@michael
08/14/16 05:02:30PM
7,832 posts

Comments item_action - Use module_name


Design and Skin Customization

Ah, the title of the module. to me "module name" meant "jrAudio" "jrVideo", I thought you wanted that.

In the {debug} output there is probably a {$_mods} section with all of the active modules and their data. You can target the 'module_name' from that section by giving it the module name you're getting, eg:
{$_mods.jrAction.module_name}
will output "Timeline" or
{$_mods.jrAudio.module_name}
will output "Uploaded Audio" if thats what its set to in the ACP.

So using this structure, you can pass in the variable that contains your 'jrAudio' and get back the display name for the module.

Try:
{$_mods[$item.action_data.comment_module].module_name}


Related docs:

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

Docs: Smarty Docs
http://www.smarty.net/docs/en/index.tpl
michael
@michael
08/14/16 04:45:04PM
7,832 posts

Users dont get the file they paid for


Using Jamroom

Nothing has changed with the paypal module since 08 Dec 2015 so if this started happening after that date, then something must have changed somewhere.

We'll recheck the module from here. You should check your paypal for any errors or notices.
  370