Forum Activity for @ultrajam

SteveX
@ultrajam
07/29/14 03:44:21PM
2,587 posts

Jamroom's 11th birthday - 25% off special


Announcements

That's a nice special.

Thanks Brian and the Jamroom Team!

And happy birthday Jamroom :)
SteveX
@ultrajam
07/28/14 01:47:10AM
2,587 posts

contact us form not working,


Using Jamroom

Is it working when you are logged in?
SteveX
@ultrajam
07/27/14 03:30:46PM
2,587 posts

contact us form not working,


Using Jamroom

To the contact form, not a link to something else.
SteveX
@ultrajam
07/27/14 03:30:24PM
2,587 posts

contact us form not working,


Using Jamroom

So do you have a link?
SteveX
@ultrajam
07/27/14 03:27:32PM
2,587 posts

JrCore_list order with multiple facters


Using Jamroom

There is no possible way to place them in the 3 snips of code.

1 and 3 assign to a single variable.

You need to find each jrCore_list function that they are providing $order_by to, and change them to use order_by1 and order_by2
updated by @ultrajam: 07/27/14 03:29:29PM
SteveX
@ultrajam
07/27/14 12:41:28PM
2,587 posts

contact us form not working,


Using Jamroom

What have you done to your templates and/or configuration which might have broken it?

Was it working before?

Do you have a link?
SteveX
@ultrajam
07/27/14 06:02:11AM
2,587 posts

Banned items question


Using Jamroom

You could try a bit of jquery to check for the banned address on blur. Something like this might get you started:
<script>
jQuery(document).ready(function() {

	$('#user_email').on("blur",function() { 
		var inputVal = $(this).val(); // the email input value
		var bannedAddress= /aol.com/; // the regex to test
		if(bannedAddress.test(inputVal)) {
			alert("No AOL Email Addresses");
			$(this).val(""); // remove the email from the input
		}
	});

});
</script>

updated by @ultrajam: 07/27/14 06:14:49AM
SteveX
@ultrajam
07/27/14 04:25:36AM
2,587 posts

JrCore_list order with multiple facters


Using Jamroom

Your "Setup 1" is smarty shorthand for assign, so Setup 1 and Setup 3 are the same - they both assign a string to a variable. They would both then use that variable in jrCore_list as order_by=$order_by, so there is no real difference between all 3 setups.

Looks like your code is ok, but you aren't understanding what the code does or what ratings are. audio_rating_overall_average can be 4.33.

Your audio will be listed by the rating (specifically rating_1, but there can be many), and then by the number of times the item has been rated (for all ratings for the item if there are many).

If you really want to list all items with a 4 star rating and then order those by the number of times they were rated 4 stars you are going to have a lot of work to do. But bear in mind that you won't end up with useful results - something which has a 4 star rating might have zero actual 4 star ratings but plenty of 3 star ratings and plenty of 5 star ratings. And something with 10 rates and an average rating of 4.33 with one 5 star rating will still list above something with an average of 4.32 and 10000 5 star rates.

If you really do want to do that, you can access the number of 5 star ratings using audio_rating_1_5

It would be sensible to spend some time looking at the database using phpmyadmin to see what is recorded when an item is rated and get to understanding of how ratings work.

This would list by rating, and then order by the number of 5 star ratings
order_by1="audio_rating_overall_average numerical_desc"
order_by2="audio_rating_1_5 numerical_desc"
BUT, as said above, audio_rating_overall_average can be 4.33, and the second order_by will only apply when items have the same audio_rating_overall_average...
SteveX
@ultrajam
07/24/14 07:11:42PM
2,587 posts

Listing Order


Archived

You could try order_by1="audio_rating_1_average_count NUMERICAL_DESC" order_by2="audio_rating_1_count NUMERICAL_DESC"

Not sure if that will work, but worth a try - jrCore_list documentation is what you need to look at, and experiment if the documentation doesn't cover it.

Post back here if you can, it may save someone else some time in the future.
SteveX
@ultrajam
07/23/14 06:28:16PM
2,587 posts

custom module shows double 'blank' images?


Design and Skin Customization

elric:
Follow question:
jrImage_display: invalid size parameter

What is the max size, and how do I change the max size? Nothing in the documentation that I can find.

:-P

/**
 * jrImage_get_allowed_image_widths()
 * @return array Returns array of allowed image sizes
 */
function jrImage_get_allowed_image_widths(){
    $_sz = array(
        '24'       => 24,
        'xxsmall'  => 24,
        '40'       => 40,
        'xsmall'   => 40,
        '56'       => 56,
        '72'       => 72,
        'small'    => 72,
        '96'       => 96,
        'icon96'   => 96,
        '128'      => 128,
        'icon'     => 128,
        '196'      => 196,
        'medium'   => 196,
        '256'      => 256,
        'large'    => 256,
        '320'      => 320,
        'larger'   => 320,
        '384'      => 384,
        'xlarge'   => 384,
        '512'      => 512,
        'xxlarge'  => 512,
        '800'      => 800,
        'xxxlarge' => 800,
        '1280'     => 1280
    );
    return $_sz;
}
  145