Forum Activity for @brian

brian
@brian
04/15/14 10:24:33AM
10,169 posts

any skin coming out based on only events


Suggestions

Ahh thanks Steve - I should have refreshed my memory before posting like I knew what I was talking about ;)

Thanks for the clarification.
brian
@brian
04/15/14 09:33:23AM
10,169 posts

I don't see where to set prices in the audio importer


Using Jamroom

izhmel:I don't see where to set prices in the audio importer , it will take days to manually set prices for over 4000 tracks

Currently only FoxyCart is supported - an update to the PayPal module will be coming that will work with the importer.
brian
@brian
04/15/14 09:30:53AM
10,169 posts

Updating an old beta8 test site to current


Jamroom Developers

SteveX:Thanks Brian

That worked and looks like the update was 100% success :)

Glad to hear it ;)
brian
@brian
04/15/14 09:08:03AM
10,169 posts

Can't access to any directory where is located JR5


Installation and Configuration

Something is wrong with your mod_rewrite setup then - you can see it working properly here:

https://www.jamroom.net/test/
https://www.jamroom.net/test/index.html

You'll want to contact your hosting provider and see if they can help you out.
brian
@brian
04/15/14 08:14:02AM
10,169 posts

Downloading media after purchase


Using Jamroom

andersda:Please see the original question. The problem IS when I click the download button

The MP3 download restriction is only in place on the "normal" download that is provided by the core. When in the My Files section, downloads go through the vault_download view from the FoxyCart module. If you have customized your My Files view, make sure you are using the correct download URL.
brian
@brian
04/15/14 07:56:15AM
10,169 posts

New item details not showing


Jamroom Developers

dobmat:I don't have that line "field" in my template code. I see in the smarty console that there is no array $item but what is there is $_items. is that what I need to use?

Thanks.

No - you should not see $_items - you should see $item. $_items will only be set for your item_list.tpl file. I think it's important to take a step back here and try to understand what you are actually doing - without understanding what you are doing you're just going to be operating in a 100% "reactive" mode where you are making changes to things without understanding why you are doing them.

In your profile.php file now, there should be 2 different jrCore_parse_template calls - one to "item_list.tpl" and one to "item_detail.tpl".

item_list.tpl - this is the template that is used when you are displaying a list of items from the module. It will contain a smarty foreach loop where it loops over the $_items array - for each entry in the $_items array it will process the inside of the foreach loop one time. This is how we create a "list".

The way that the $_items array is built is by a call to jrCore_db_search_items() - this is the DataStore function that is used to get multiple items, and order them, etc.

item_detail.tpl - this template is used to display the information for a single item - not a list of items. There will be no foreach loop inside this template, and the data for the item will be in the $item array - not $_items (since there is only a single entry). The information for a single item is pulled from the DataStore using jrCore_db_get_item() - since we know the item_id we do not have to use the search function.

Since you are seeing an $_items array in your item_detail.tpl file, you are using the wrong datastore function to get the item.

The most simple profile.php "default" view should look something like this:

if (isset($_post['_1']) && jrCore_checktype($_post['_1'], 'number_nz')) {
    $_rp = array();
    $_rp['item'] = jrCore_db_get_item('module_dir', $_post['_1']);
    return jrCore_parse_template('item_detail.tpl', $_rp, 'module_dir');
}
else {
    $_sc = array(
        'limit' => 10
    );
    $_rp = jrCore_db_search_items('module', $_sc);
    return jrCore_parse_template('item_list.tpl', $_rp, 'module_dir');
}

Remember this is the most simple profile router, and somethings to note:

1) we create an array called $_rp (replacement) that we pass into jrCore_parse_template - the keys and values of this array are way are going to be available to us in our template. When we are processing our item_detail.tpl, see how we assign the returned array to the "item" key? This means the item information will be part of the $item variable inside the template.

2). jrCore_db_search_items() takes an array of parameters for it's second argument - you will need to flush that out to suit your needs.

Spend some time testing and playing around with this so you get an idea of how things work - that will allow you to move forward a better pace when you understand how the profile routing works.

Hope this helps!
updated by @brian: 04/15/14 07:56:51AM
brian
@brian
04/15/14 07:08:18AM
10,169 posts

New item details not showing


Jamroom Developers

dobmat:Do you mean to say that if I have for e.g. a image file uploaded during item creation I need to have the "field" in my template code?

Thanks.

No - not for an image, say if you were allowing an audio file, video file, etc. to be uploaded.

Remove it for now just to be sure things are working.
brian
@brian
04/15/14 07:06:35AM
10,169 posts

Can't access to any directory where is located JR5


Installation and Configuration

If cdvirtual is an actual directory, JR5 won't mess with it. There are rules specifically in the JR5 .htaccess file:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ modules/jrCore/router.php?_uri=$1 [NC,L]

This says "if the requested URI is NOT a directory, NOT a file and NOT a symlink, pass it into then JR5 router.

So I'm not sure why you would see that unless there is a .htaccess file in the cdvirtual directory that is redirecting back to the root.
brian
@brian
04/15/14 06:50:52AM
10,169 posts

any skin coming out based on only events


Suggestions

boplive:bummmmmmmmmmer...is there a module like the Genesis Event that is coming out soon..
which has the google map integration in it that relates to an event

Google Maps "integration" is simple a call to the Google Maps URL with the location you want to display - there's really no need for an extra "module" to do it.

Just be aware that if you sell stuff on your site, integrating with Google Maps is not allowed due to their terms of service.
brian
@brian
04/15/14 06:49:35AM
10,169 posts

Bulk upload files


Using Jamroom

This has been fixed in Core 5.1.37.

Thanks!
  742