Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Announcements:
Aparna Module Version 1.1.4 Released - NEW FEATURES
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 05/28/11 14:32 
LATEST NEWS

26th June 2011 V1.1.4 Module now includes the means to upload a new 'thumbnail.png' image file that will show in the Admin Control Panel => Config Modules section. This would be used in a cloned module to distinguish from other cloned Aparna modules. Also, the module now includes the means to limit the number of items a user may create, per quota


Aparna now has four 'pre-configured' modules to clone that can be used 'out of the box'.

BlogsExtra - When cloned, the BlogsExtra module will optionally give your users access to a Blogs feature that provides fields for Blog Title, Category, Blog Text, and up to 4 Blog Image uploads.

Review - When cloned, the Review module will optionally give your users access to a feature that allows them to generate 'Product Reviews'. It provides fields for Product Name, Product Manufacturer, Product Description, Product Category, Product Price, one Image upload, and the actual Product Review.

Classifieds - When cloned, the Classifieds module will optionally give your users access to a feature that allows them to generate 'Classified Ads'. It provides fields for Item Name, Item Description, Item Category, Seller Contact Details, Seller Location, Item Price, up to six Image uploads, and a text area for Further Information.

MiniPhotoAlbum - When cloned, the MiniPhotoAlbum module will optionally give your users access to a feature that allows them to generate 'mini Photo Albums'. It provides fields for Album Name, Album Description and up to twelve Album Image uploads.

All of the above can be used as they come, but more likely they will provide you with a starting point for you to add more fields, edit the field text, select values and their 'required' status, so as to fine tune them to your Jamroom site's, and users' requirements.

So effectively, you have FOUR MODULES FOR THE PRICE OF ONE, and any number of others you can think of.

Visit the Aparna Demo and Support site at http://paulasher.com/?t=Aparna for full module information, installation and configuration instructions and screenshots.

Cheers
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center

Last edited by Paul on 06/26/11 15:35; edited 4 times in total
Back to top
DigNitMedia



Joined: 17 Sep 2009
Posts: 13

Posted: 06/03/11 21:44 
Hi Paul,

Thanks for keeping these cool new modules coming!

I bought this last week, and have it setup on my site. Everything seems to be working fine in the control panel.

I've:
1. cloned the module, calling it "Custom"
2. Created a new "item" field
3. Allowed this module in the Profile Quota
4. added {$debug} to a theme template.
5. Rebuilt profile
6. Navigate to the profile, and the debug window pops up.
7. several variables related to the module show up, but not the image variable that I added.

I've tried rebuilding profiles, running integrity check, and nothing helps. Not getting any PHP errors through Jamroom or CPanel, no JS errors either.

http://www.dignit.com/thesoundguitarmagazine/

Could I be missing a step?

Cheers,
~E
5. Went to the only profile in that quote with this enabled.

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 06/04/11 02:21 
Have you modified/created theme templates to show the Custom items?
The Custom variables showing in the debug popup are just the 'global' ones from the module's include file. You need to add the Custom items to your theme templates.

Cheers
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
DigNitMedia



Joined: 17 Sep 2009
Posts: 13

Posted: 06/06/11 09:52 
Hello!

I initially just dropped the variable tag in the template and thought it might render, but it gets killed at render time. I've read through the sample code you have on your site a few times, and I ~think~ I need to put the tag for images in loop/if statement. Is that true?

Cheers,
~E

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 06/06/11 11:25 

DigNitMedia:
Hello!

I initially just dropped the variable tag in the template and thought it might render, but it gets killed at render time. I've read through the sample code you have on your site a few times, and I ~think~ I need to put the tag for images in loop/if statement. Is that true?

Cheers,
~E


Yes, because you can upload multiple images per item, the information on each image is returned as elements of an array, so that you can optionally loop round them to show images in sequence.

But how are you putting the custom item variables in the template? The above url is a theme index page. Have you got custom templates outputting to index.php in the theme.cfg file? If you are just putting the custom variables in the index template(s), that would explain why they are not showing.
Cheers
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
DigNitMedia



Joined: 17 Sep 2009
Posts: 13

Posted: 06/06/11 13:12 
So, my goal is to add a custom "banner" to replace the little default flash band name banner for artists.

The clone of Aparna is called "Custom", the item field is "custom_image_0"

I added this:
{if $CUSTOM_FILE_COUNT > 0}
{foreach from=$CUSTOM_IMAGE item="image"}
<img src="{$JAMROOM_URL}/{$image.url}&width=960" alt="{$BAND_NAME}">
{/foreach}
{/if}

Rebuilt the theme, and nothing shows up.

I borrowed that bit of code from here: http://www.paulasher.com/index.php?t=Aparna, exchanging "$CUSTOM" for "$BLOGSEXTRA"

to jr_header.tpl for that theme.

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 06/06/11 14:43 

DigNitMedia:
So, my goal is to add a custom "banner" to replace the little default flash band name banner for artists.

The clone of Aparna is called "Custom", the item field is "custom_image_0"

I added this:
{if $CUSTOM_FILE_COUNT > 0}
{foreach from=$CUSTOM_IMAGE item="image"}
<img src="{$JAMROOM_URL}/{$image.url}&width=960" alt="{$BAND_NAME}">
{/foreach}
{/if}

Rebuilt the theme, and nothing shows up.

I borrowed that bit of code from here: http://www.paulasher.com/index.php?t=Aparna, exchanging "$CUSTOM" for "$BLOGSEXTRA"

to jr_header.tpl for that theme.


This is in a theme so the 'Custom' items need to be generated at build time by having something like

custom_list.cfg | custom.php

in the theme.cfg file, then custom_list.cfg having the line

custom_list.tpl | {CUSTOM_ID}_list.php

custom_list.tpl would then be

<img src="{$CUSTOM_IMAGE.0.url}&width=960" alt="{$BAND_NAME}">

Then {CUSTOM_ID}_list.php could be included in the header template.


This might be getting a bit complex. An easier way would be just to put a ranking call where you want the image to be, something like -

{jr_ranking mode="Custom" band_id=$BAND_ID show="1" order="2" row_template="custom_row.tpl"}

(order="2" specifies the latest Custom item)

Then, in custom_row.tpl -

<img src="{$CUSTOM_IMAGE.0.url}&width=960" alt="{$BAND_NAME}">

I'm assuming here that there is just one image upload in the Custom module so we can access it directly as array element '0'. If there are more images you may then have to loop around them.

Also note that in the latest version of Aparna, the {$JAMROOM_URL} is included in the image url variable, so no need to include it in the template.

hth
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
DigNitMedia



Joined: 17 Sep 2009
Posts: 13

Posted: 06/06/11 15:31 

pasher:


This might be getting a bit complex. An easier way would be just to put a ranking call where you want the image to be, something like -

{jr_ranking mode="Custom" band_id=$BAND_ID show="1" order="2" row_template="custom_row.tpl"}

(order="2" specifies the latest Custom item)

Then, in custom_row.tpl -

<img src="{$CUSTOM_IMAGE.0.url}&width=960" alt="{$BAND_NAME}">

I'm assuming here that there is just one image upload in the Custom module so we can access it directly as array element '0'. If there are more images you may then have to loop around them.

Also note that in the latest version of Aparna, the {$JAMROOM_URL} is included in the image url variable, so no need to include it in the template.

hth
Pa


Getting closer, I think.

I used the ranking call, but the image source is rendering like this:
<img src="image.php?mode=Custom_meter_file_0&band_id=388&media_id=1&width=960" alt="The Sound Guitar Magazine">

Yes, in this use, there is only one file.

Don't know where "meter_file" is coming from?

Cheers,
~E

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 06/06/11 16:44 
That code looks OK. "mode=Custom_meter_file_0" is correct. Its the Jamroom naming convention for uploaded module files.
The only thing is the missing $JAMROOM_URL before the image.php.
The latest Aparna module should put it in. Just for now, change the template to -

<img src="{$JAMROOM_URL}/{$CUSTOM_IMAGE.0.url}&width=960" alt="{$BAND_NAME}">

and see if that works. If it does, take it out again and upload the latest Aparna V1.1.2. You'll then need to 're-clone' the Custom module by setting the 'overwrite' checkbox. This will make sure that Custom is also at the latest revision.
Cheers
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
DigNitMedia



Joined: 17 Sep 2009
Posts: 13

Posted: 06/06/11 16:58 

pasher:
That code looks OK. "mode=Custom_meter_file_0" is correct. Its the Jamroom naming convention for uploaded module files.
The only thing is the missing $JAMROOM_URL before the image.php.
The latest Aparna module should put it in. Just for now, change the template to -

<img src="{$JAMROOM_URL}/{$CUSTOM_IMAGE.0.url}&width=960" alt="{$BAND_NAME}">

and see if that works. If it does, take it out again and upload the latest Aparna V1.1.2. You'll then need to 're-clone' the Custom module by setting the 'overwrite' checkbox. This will make sure that Custom is also at the latest revision.
Cheers
Pa


That done did it!

When did 1.1.2 come out? I only just got this last week....

Cheers!
~E

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 06/07/11 00:24 

Quote:
When did 1.1.2 come out? I only just got this last week....


A few days ago - Another user was using it on a cluster and I had to make some changes for it to work in that situation, hence the reason that the image url now includes the full url with the correct domain.

Glad we got you sorted.
Cheers
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
DigNitMedia



Joined: 17 Sep 2009
Posts: 13

Posted: 06/23/11 10:00 
Soooo...it seems that when it comes time to upgrade, I need to upgrade all of the cloned modules independently?

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 06/23/11 10:28 

DigNitMedia:
Soooo...it seems that when it comes time to upgrade, I need to upgrade all of the cloned modules independently?


Upgrade the main Aparna module, then 're-clone' all the other cloned modules, but set the overwrite checkbox.
Hope that's not too tedious but it was the easiest way I could think of doing it.
Cheers
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
DigNitMedia



Joined: 17 Sep 2009
Posts: 13

Posted: 06/23/11 10:50 

pasher:

Upgrade the main Aparna module, then 're-clone' all the other cloned modules, but set the overwrite checkbox.
Hope that's not too tedious but it was the easiest way I could think of doing it.
Cheers
Pa


Not tedious at all, and much better than manual! Does this ugrade allow me to use full urls for images now? I'm creating a module that allows overwriting of an inline style on theme templates... e.g.:


Code
<body style="background-image:url({$JAMROOM_URL}/{$CUSTOMBACKGROUND_IMAGE.0.url}); background-repeat:no-repeat;">


Thanks Paul!

Cheers,
~E

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 06/23/11 11:53 
From memory, I'm pretty sure that the module returns the full image URL, so try it without the {$JAMROOM_URL}
Cheers
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Announcements

123Next >
 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.