Olga
Olga
Offline
0
Hello, Germi

I find Music Collection wonderful. It suits very good for new site I'm making for my friends. But I have questions.

Is it possible to have both Russian and English letters in A-Z search in different modules?

Is it possible to change shape of A-Z search.

My friends also were interested in album search for year of creation of album.

Thanx.
Responses (23)
  • Accepted Answer

    Friday, December 04 2009, 04:41 PM - #Permalink
    0
    hello flibustier,

    thanks for your compliment :)

    It is not directlty possible to have both letter bars, but this wont be much difficult to add as custom work.

    yes, it is possible to change the shape (it's all CSS, my friend ;) )

    year of creation is not an option of the search, but again, this can be easily included by small code add-ons

    please let me know any other soubts you may have :)

    all the best,
    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Friday, December 04 2009, 05:02 PM - #Permalink
    0
    Thank you for quick answer!
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Friday, December 04 2009, 07:35 PM - #Permalink
    0
    Hello, Germi!

    I bought Music Collection and install at localhost for test.

    Could you, please, tell me which files I should change with my srewdriver
    to get two A-Z search and year search for albums.

    Thanks.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, December 04 2009, 08:08 PM - #Permalink
    0
    sure. let's start with the A-Z bar

    (I asume you have basic PHP knowledge)

    I was going to explain how to create the AZ bar in russian, but finally I decided it was too hard to explain, so I made it myself :lol:

    so I made the function for you ;) , all you have to do now is call it.

    here's the thing: copy the attached file on the folder /components/com_muscol/helpers/

    (unzip it first)
    [file name=helpers.zip size=2270]http://www.joomlamusicsolutions.com/images/fbfiles/files/helpers.zip[/file]

    the file in it, helpers.php, has to replace the existing one you'll have in this folder.

    now open it with your editor. go to line 144. you'll find this:
    
    $inicials = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","123");
    		
    $inicials_russian = array("1","2","3","4","5","6","7","8","9","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","123");
    

    as you see, I duplicate the array containing the letters in the bar, and I named it "$inicials_russian". I replaced the first characters for 1, 2, 3 etc. that's because I dont have the russian alphabet ;) but here's where you'll have to replace all this characters for the russian ones. do you understand?

    ok, now I asume this is done. the only step left is to call a new function I created so the bar is also rendered in russian.

    open file /components/com_muscol/views/artists/tmpl/detailed.php (I asume you use detailed view)

    at the very beginning you'll find this:

    
    if($this->params->get('showletternavigation')){
    		echo MusColHelper::letter_navigation($this->letter);
    	}
    


    here is where the alph bar is printed. well, we just need to add the russian one, too. so replace this piece of code for this one:

    
    if($this->params->get('showletternavigation')){
    		echo MusColHelper::letter_navigation($this->letter);
    		
    		echo MusColHelper::letter_navigation_russian($this->letter);
    	}
    


    as you see, I'm also calling the new function made SPECIALLY FOR YOU!! ;) called letter_navigation_russian

    ok! we're almost done. one last step. you'll have to add the calling to this function to ALL the view of Music Collection :S :lol: that's about 10 files or so. wich ones? well..

    /components/com_muscol/views/artist/tmpl/default.php
    /components/com_muscol/views/artist/tmpl/grid.php
    /components/com_muscol/views/artist/tmpl/detailed.php

    /components/com_muscol/views/album/tmpl/default.php

    /components/com_muscol/views/song/tmpl/default.php

    /components/com_muscol/views/search/tmpl/default.php
    /components/com_muscol/views/search/tmpl/detailed.php
    /components/com_muscol/views/search/tmpl/grid.php
    /components/com_muscol/views/search/tmpl/songs.php

    /components/com_muscol/views/songs/tmpl/detailed.php

    I hope I'm not missing any ;)

    and that's all for having a russian alphabet bar, folks! :)

    hope you understand everything. if you dont, let me know ;)

    tomorrow we'll go ahead with the YEAR search thing, now I gotta go!
    best,
    Germi
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Friday, December 04 2009, 08:14 PM - #Permalink
    0
    Wow!!!

    This is wonderful!!!!
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Friday, December 04 2009, 08:14 PM - #Permalink
    0
    THANK YOU!!!
    The reply is currently minimized Show
  • Accepted Answer

    Friday, December 04 2009, 08:16 PM - #Permalink
    0
    you're much welcomed

    that's what you call fast & efficient support! ;)

    let me know if everything works as expected! :) I'd like to see the result on your site :)

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Friday, December 04 2009, 08:20 PM - #Permalink
    0
    Of course, I will send you a link of complete work. :)

    Good night and great thanks.

    I am
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Tuesday, December 08 2009, 07:14 PM - #Permalink
    0
    Hello, Germi,


    It's a pity but this version with two A-Z toolbars doesn't work properly.
    I didn't ask you, cause I wanted to be shure I'd done no mistake.

    As a result a have now two A-Z which work both at the same time. In an attachment you'll see how it looks like.

    Sorry for desturbing you.
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Tuesday, December 08 2009, 07:15 PM - #Permalink
    0
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 08 2009, 07:24 PM - #Permalink
    0
    yes, I know! wasn't this what you wanted? two bars?

    if you want only one bar... no problem! a small modification on the file I posted will be enough. but first, post the link... (I can't see it!)

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Tuesday, December 08 2009, 07:29 PM - #Permalink
    0
    Yes, I want two.
    My site is on localhost in my computer.
    I send you a screenshot
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Tuesday, December 08 2009, 07:34 PM - #Permalink
    0
    Oj, what a technic troubles today.
    I cant attach a picture.
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Tuesday, December 08 2009, 07:37 PM - #Permalink
    0
    http://www.joomlamusicsolutions.com/images/fbfiles/images/forGermi.jpg
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 08 2009, 07:42 PM - #Permalink
    0
    let's see: the letter that does below is just that does not have space to fit on the bar, you should give the bar more space (in your template)

    one question: how many characters are in Russian? I mean, there is an equivalency between each character (A, B, C) to an russian one? (the solution I gave you was assuming that the number of chars where exactly the same)

    did you try the other letters? do they show results? I tested on my localhost and it worked fine... are you sure you have some artist under these letters?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 08 2009, 07:43 PM - #Permalink
    0
    by the way, the breadcrumb still shows "B" because the change I made was for letterbar only, not for breadcrumb. for breadcrumb you'll need extra coding. let's first solve the first issue and then we'll go ahead with breadcrumbs
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Tuesday, December 08 2009, 08:00 PM - #Permalink
    0
    There are 33 letters in Russian.
    :))

    First I went to administrator/components/muscol/... form.php and add russian letters. Than I add one artist for testing. Bot russian toolbar worked like English but with Russian letters. It shows me result of Englis list of atists.
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Tuesday, December 08 2009, 08:01 PM - #Permalink
    0
    http://www.joomlamusicsolutions.com/images/fbfiles/images/forGermi2.jpg
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 08 2009, 08:08 PM - #Permalink
    0
    ok, first think: do not add letters in form.php, because these wont be recognized in the frontend.

    the problem is that there are more letters in russian than in english

    in this case, the russian bar has to work independently of english one, not like he solution I gave, wich makes they work together.

    so, what you want is that ALL russian characters are different than english ones, right? not like it is now, that when you select a letter from a letterbar, the equivalent letter on the other letterbar is selected... is that right?

    if that's the case, tell me and I'll think a solution for this.

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Tuesday, December 08 2009, 08:13 PM - #Permalink
    0
    You are absolutely right! :)
    Thank you. I hope this task isn't problem to you
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 08 2009, 08:45 PM - #Permalink
    0
    ok, let me a couple of days to set thinks right. I'll tell you something tomorrow

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Olga
    Olga
    Offline
    Tuesday, December 08 2009, 08:52 PM - #Permalink
    0
    OK, I'm not in a hurry.

    For me this is just the first case when I need to change in a code that a lot.

    Thank you :)
    The reply is currently minimized Show
  • Accepted Answer

    Alexander
    Alexander
    Offline
    Wednesday, April 28 2010, 10:51 AM - #Permalink
    0
    This is wonderful!!!!

    But Under this theme, simplicity, write a separate article. In the forum to read hard!
    The reply is currently minimized Show
Your Reply