Forum Activity for @madc

MAD
@madc
12/21/13 12:16:09AM
600 posts

Module Image Replacement In ACP


Design and Skin Customization

This isn't working on my site.

Nova Skin

I am trying to override the jrAudio Button Images under Audio Support/Images
I have uploaded 4 images to override the Buttons

button_player_pause_new.png - 72 x 69
button_player_pause_hover_new.png - 72 x 69
button_player_play_new.png - 72 x 69
button_player_play_hover_new.png - 72 x 69

I have set them to Active
I have cleared all caches and Ran an integrity check after they failed to show.
The images aren't changing at all on the site.

Could it be the size as the old ones are 32x32.
I have tried this in the core images as well and they do not show either.
updated by @madc: 01/21/14 02:32:52AM
MAD
@madc
12/20/13 11:17:15PM
600 posts

Unable to create dowloadable form from form designer


Jamroom Developers

Not sure if this is meant to be in this forum ?

The code from step one is in jrAudio
It is part of the jrAudio module so it should be there.
open your item_details.tpl file under Audio Support then hit templates
Find the code up top and wrap it in the { if statement provided

Around line 7 you will see this

            {if $_conf.jrAudio_block_download == 'off' && (empty($item.audio_file_item_price) || $item.audio_file_item_price == '0')}
                {if jrUser_is_logged_in()}
                      <a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}">{jrCore_icon icon="download"}</a>
                {else}
                <a href="{$jamroom_url}/user/login" title="Log in to Download">{jrCore_icon icon="download"}</a>
                {/if}
             {/if}

Replace it with this

{if $item.audio_downloadable == 'on'}
            {if $_conf.jrAudio_block_download == 'off' && (empty($item.audio_file_item_price) || $item.audio_file_item_price == '0')}
                {if jrUser_is_logged_in()}
                      <a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}">{jrCore_icon icon="download"}</a>
                {else}
                <a href="{$jamroom_url}/user/login" title="Log in to Download">{jrCore_icon icon="download"}</a>
                {/if}
             {/if}
{/if}

Also in the item_detail.tpl find this around line 35

            {if $_conf.jrAudio_block_download == 'off' && (empty($item.audio_file_item_price) || $item.audio_file_item_price == '0')}
                {if jrUser_is_logged_in()}
                      <a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}">{jrCore_icon icon="download"}</a>
                {else}
                <a href="{$jamroom_url}/user/login" title="Log in to Download">{jrCore_icon icon="download"}</a>
                {/if}
             {/if}
 

and Replace with this

           {if $item.audio_downloadable == 'on'}
            {if $_conf.jrAudio_block_download == 'off' && (empty($item.audio_file_item_price) || $item.audio_file_item_price == '0')}
                {if jrUser_is_logged_in()}
                      <a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}">{jrCore_icon icon="download"}</a>
                {else}
                <a href="{$jamroom_url}/user/login" title="Log in to Download">{jrCore_icon icon="download"}</a>
                {/if}
             {/if}
            {/if}

<div style="font-size:20px;font-weight:bold;">Remember to make them active after Saving your edits<br />by clicking cancel then ticking the active boxes and saving</div>

Then you will need to open up your skin directory on your server
( Remember that any updates will override the below edits and need to be done again if you update MediaPro skin. )

Edit your song_chart_row.tpl file and the songs_row.tpl file.

Find this in both files ( or similar as I don't have MediaPro and don't know if it is different )

<div class="add_to_cart_section" title="Free Download"><span class="add_to_cart_price">Free</span><a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}" title="download">{jrCore_icon icon="download" size="24"}</a></div>

and wrap it in the if statement

If your code isn't identical to the above then wrap your code with

 {if $item.audio_downloadable == 'on'}
....."YOUR CODE".....
{/if}

As for the Field Label not sticking thats a strange one and I haven't seen that . Maybe one of the Devs can help you there.

PS. Have you updated your modules and Core etc through Marketplace / System Updates as a lot of fixes just got released
If you have make sure you do a reload of at least the core and the jrAudio modules
updated by @madc: 12/21/13 08:38:32PM
MAD
@madc
12/20/13 01:20:55AM
600 posts

Php Errors


Installation and Configuration

Thanks @SteveX
Yes I am in developers mode at the moment. I will ignore them for now .
Cheers
:)
updated by @madc: 12/20/13 01:21:14AM
MAD
@madc
12/19/13 10:41:30PM
600 posts

Aparna with Nova Skin


Installation and Configuration

I just checked my source after uploading over the original one and it is correct?
http://final.punkbp.com/band_of_the_week/stream/botw_file/3/key=Aug3w3NF3cfn/file.mp3
( Changed botw_song to botw_file just in case your wondering from previous posts)
MAD
@madc
12/19/13 10:16:50PM
600 posts

Aparna with Nova Skin


Installation and Configuration

hahahaa Ok now I see it. It went in my Junk Folder for some reason.
I did sign up for the Udemy course at a discounted price anyway . I will go through the mail and check it out.

ps There is a PM system here???
updated by @madc: 12/19/13 10:19:42PM
MAD
@madc
12/19/13 09:50:44PM
600 posts

Aparna with Nova Skin


Installation and Configuration

Thanks @paul
The button worked fine. That will do us for now but would be good to have the audio converted etc if need be with the player.
So any heads up you can give @michael would be fantastic!
MAD
@madc
12/19/13 09:09:26PM
600 posts

Aparna with Nova Skin


Installation and Configuration

I can zip up my created module and send it to you if you'd like? ( would need email address )
MAD
@madc
12/19/13 05:48:11PM
600 posts

Php Errors


Installation and Configuration

Checking my php error log in ACP shows this

[19-Dec-2013 10:29:41 Europe/Dublin] PHP Notice: Undefined index: default in /home/punkbp/public_html/addonsites/final/modules/jrCore-release-5.1.6/index.php on line 2331 [x 4]

The line in question shows

$val = jrCore_db_escape($_post['default']);

updated by @madc: 01/19/14 01:16:55PM
MAD
@madc
12/19/13 04:38:46PM
600 posts

Aparna with Nova Skin


Installation and Configuration

I tried a lot of variations using botw_song_file without success.
Strange thing was that everytime I tested it say ie.
{jrCore_media_player type="jrAudio_player_dark" module="prBotw" field="botw_song_file" item=$item}
or
{jrCore_media_player type="jrAudio_player_dark" module="jrAudio" field="botw_song_file" item=$item}
It then displayed this
<img src="http://final.punkbp.com/temptodelete/player2.png" />
The only time it ever displays this
<img src="http://final.punkbp.com/temptodelete/player1.png" />
is if the code is
{jrCore_media_player type="jrAudio_player_dark" module="prBotw" field="botw_song" item=$item}
But the mp3 info is still not getting into the JS section.

It is strange though that when I am uploading the mp3 through my AUDIO field after it uploads it is empty as below

<img src="http://final.punkbp.com/temptodelete/imageupload.jpg" />

If I change the field from Audio to File in form designer it then displays the info of the mp3 file I uploaded ( as below ).
<img src="http://final.punkbp.com/temptodelete/file-upload.png" />

If I try to replace ( upload over ) this file with another mp3, It says it's the wrong file type ( Even though in ACP File Downloads Module I have it set for Admins to allow mp3's etc. )

But even that doesn't bring it in to the JS.

So I am still confused as to why the mp3 is not getting into the JS section.


I ran debug through my index_list_botw.tpl file.

It seems as though it is reading the mp3
{$current_url}<\/th>\n	"http://final.punkbp.com/"<\/td><\/tr>\n
{$info}<\/th>\n	Array (2)<\/b>
limit<\/b> => 3
total_items<\/b> => 1<\/td><\/tr>\n
{$item}<\/th>\n	Array (218)<\/b>
_created<\/b> => "1387448836"
_updated<\/b> => "1387499838"
_user_id<\/b> => "1"
botw_date<\/b> => "1324252800"
botw_genre<\/b> => "Punk"
botw_lfsep<\/b> => "149"
botw_title<\/b> => "Two Two 79"
botw_video<\/b> => "<iframe width="560" height="315" src=..."
_profile_id<\/b> => "1"
botw_pending<\/b> => "0"
botw_location<\/b> => "Groningen, Nederland "
botw_song_name<\/b> => "02 Shit.mp3"
botw_song_size<\/b> => "1779014"
botw_song_time<\/b> => "1387449250"
botw_song_type<\/b> => "audio/mpeg"
botw_title_url<\/b> => "two-two-79"
botw_lfsfeatured<\/b> => "Promises / Interview / Hey You / Inte..."
botw_song_extension<\/b> => "mp3"
botw_descr<\/b> => "<p><strong><span style="color:#ff0000..."

updated by @madc: 12/19/13 05:14:28PM
  51