is it possible to add a url to the Albumtitel

phatair
phatair
Offline
0
Hi,

is it possible in the album view, to add the albumtitel in the top, an url?

I want to link to amazon album site, is there any chance to do this for every album?

Greetings
Responses (32)
  • Accepted Answer

    Friday, September 11 2009, 09:19 AM - #Permalink
    0
    well, you can add a link of course, all you have to do is to modify the file

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

    and add a link element surrounding the album title. but.. where will the link to amazon stored in every album? (you can use the Buy Link field...)

    the variable for the buy link is stored in

    $this->album->buy_link
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Friday, September 11 2009, 10:20 AM - #Permalink
    0
    Hi Germi,

    yes you are correct-it is a little bit stupid to add the url to the album title ;)

    My problem is - i can not use your buy link field because i use the amazon affiliate program. i get from amazon not a simple link, i get an html code with java inside - so i have to put this code on every site to generate the link with my affiliate program id.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 11 2009, 10:46 AM - #Permalink
    0
    but the code is different for every album, right?

    then you need an extra field on the album form (and on the database table for albums)...
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Friday, September 11 2009, 11:01 AM - #Permalink
    0
    yes the code is different for every album

    where is the Buy field displayed? I typed into this field http://www.amazon.de/gp/product/B001EOQUIM?ie=UTF8&48es5d8e4&linkCode=as2&camp=4812&creative=6742&creativeASIN=B001EOQUIM but i dont see anything in the frontend?

    Show buy button on album is on "yes" on the the parameters settings
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 11 2009, 11:31 AM - #Permalink
    0
    it should appear under the album title...
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 11 2009, 11:48 AM - #Permalink
    0
    sorry: it appear next to the player, under the album front sleeve
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Friday, September 11 2009, 12:19 PM - #Permalink
    0
    Hi Germi,

    hm...i dont see this link

    i made some changes on the template but i tried it with the original template, too. no link

    here is a link -> http://www.sound-ecke.de/sound-ecke/a/anthony-b/rise-up
    no other album has at the moment a buy link
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 11 2009, 01:54 PM - #Permalink
    0
    when did you installed the upgrade to version 1.5?

    please, paste here your views/album/tmpl/default.php file so I can see if it is the latest version
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Friday, September 11 2009, 02:09 PM - #Permalink
    0
    i installed it a few days after you puplished it on your site.

    i attached the default.php because the code is not dispalyed correct in the forum [file name=default-20090911.zip size=3191]http://www.joomlamusicsolutions.com/images/fbfiles/files/default-20090911.zip[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 11 2009, 02:31 PM - #Permalink
    0
    hello

    it is up-to-date, so no problem with it. look at line 105... it should show up if you have the param enabled and something written on the buy link field!!
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Friday, September 11 2009, 04:00 PM - #Permalink
    0
    Hi,

    the line 105 looks ok
    i cann not show the code here becaus it is cut out

    the parameter in the setting is set to yes for Show BUY button on albums (where can i check if the setting is correct in the code?)

    i have some text in the buy link of the album - i tried 2 different links.

    no buy album is shown on the album :/
    I deleted all text for the album like tracklist and so an because there are some amazon script inside - no change.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 11 2009, 08:18 PM - #Permalink
    0
    ...mmmm are you sure you are editing the right file... this you say sounds like it cannot be... you change texts and they dont change? then you are not editing what you should..:S
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Saturday, September 12 2009, 07:33 AM - #Permalink
    0
    Hi

    sometimes pictures say more than thousand words ;)

    i attached a zip with 3 jpg inside. they show that

    1. there is a buy link in the album
    2. the main parameter is set to yes for show buy link in albums
    3. there is no link in the frontend for buy this album

    Greetings
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 12 2009, 09:42 AM - #Permalink
    0
    I believe you... but... you forgot to attach the ZIP !! :lol:
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Saturday, September 12 2009, 11:23 AM - #Permalink
    0
    shit :D :blush:

    now here is the zip: (ok its to big - here is the rapidshare link: http://rapidshare.com/files/279013914/no_buy_link.zip.html
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 12 2009, 12:12 PM - #Permalink
    0
    I really dont understand..:S everything is ok!! why is not showing up??
    ....
    just for now, why dont you just delete the "if($this->params->get('allowalbumbuy'))" on the template file..? if that works , then we will know that there is something wrong with this parameter...
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Saturday, September 12 2009, 12:28 PM - #Permalink
    0
    Hi,

    so i delete "if($this->params->get('allowalbumbuy') && $this->album->buy_link != "")"

    if i delete only "if($this->params->get('allowalbumbuy')) i get a white page

    nothing changed - no "buy album" is displayed :/
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 12 2009, 01:13 PM - #Permalink
    0
    delete only "$this->params->get('allowalbumbuy') &&"

    so it remains:

    if($this->album->buy_link != "")
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Saturday, September 12 2009, 01:45 PM - #Permalink
    0
    Hi,

    so i changed it - now it looks like:
    "params->get('allowalbumbuy') && $this->album->buy_link != ""){ ?>buy_link; ?>" title="" target="_blank">"

    the code is cut up :/

    EDIT: i uploaded a default.php from a few days ago. The original file without any changes from me. The same problem...
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 12 2009, 02:04 PM - #Permalink
    0
    maybe.. this is *really* strange :S
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Saturday, September 12 2009, 02:13 PM - #Permalink
    0
    hi,
    yes...hm... i edit my last post. i uploaded a old (original) default.php - the encoding with DOS is normal :/
    but also with the orignal default.php there is no buy link...

    shit :D

    is it possible that i "destroyed" something in a other file while i changed some other things??

    maybe a stupid question - you dont see the buy link, arent you? http://www.sound-ecke.de/sound-ecke/a/anthony-b/rise-up

    because i use win7 and i hope i'm not the only one who dont see the link :)
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 12 2009, 02:34 PM - #Permalink
    0
    mmmmm... I dont think so. very unlikely

    hey, try to write something directly on the template file, some dummy text there where the buy link is suposed to appear... and check out if it shows up.

    also... check your views/album/tmpl/ folder. is there any other file there, besides of default.php and index.html ?
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Saturday, September 12 2009, 02:43 PM - #Permalink
    0
    hm..there are 4 files in the temp folder
    default.php
    default.xml
    default_album.php
    index.html

    i changed the buy link - but i'M not sure if this is correct

    i add a txt file because the forum cut out the code [file name=Neues_Textdokument_2.txt size=258]http://www.joomlamusicsolutions.com/images/fbfiles/files/neues_textdokument_2.txt[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 12 2009, 03:05 PM - #Permalink
    0
    does this works? I mean... do you see this "TEST" text that you added?
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Saturday, September 12 2009, 03:12 PM - #Permalink
    0
    no - nothing :(
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 12 2009, 03:16 PM - #Permalink
    0
    ... try cutting out the "if" condition: just write some dummy text. I think there's something going on here... like it's not rendering this template but another...

    you are uploading the file to your server every time you make a change, right? ;)
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Saturday, September 12 2009, 03:24 PM - #Permalink
    0
    yes i upload the file :)

    i upload now the original untouched default.php from the update zip file and deleted the german language ini - same problem

    i delete teh if condition (attached the code, is this correct?)
    same problem [file name=Neues_Textdokument_2-20090912.txt size=226]http://www.joomlamusicsolutions.com/images/fbfiles/files/neues_textdokument_2-20090912.txt[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 12 2009, 03:27 PM - #Permalink
    0
    hey, to delete the IF sentence you must also delete the initial { and the final } ... (I guess you're not familiar to PHP

    or just replace the current "IF" for "if(true){"...
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Saturday, September 12 2009, 03:34 PM - #Permalink
    0
    yes i'm not really familiar to php :/ sorry!

    i changed it again - is it corrct now?? with this code - same problem


    [file name=Neues_Textdokument_2-20090912-2.txt size=224]http://www.joomlamusicsolutions.com/images/fbfiles/files/neues_textdokument_2-20090912-2.txt[/file]
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 12 2009, 03:36 PM - #Permalink
    0
    yes, the code is correct. so the problem is clear now: it is not rendering this template!!! :S maybe some cache in your site? can you clean up the cache?
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Saturday, September 12 2009, 03:39 PM - #Permalink
    0
    i clean up the cache with the joomla feature - tools -> clean cache

    same problem
    The reply is currently minimized Show
  • Accepted Answer

    phatair
    phatair
    Offline
    Tuesday, September 15 2009, 12:25 PM - #Permalink
    0
    hi,

    i dont know how to solve this problem, so i will insert manually the amazon link in the album description. this works fine - maybe the buy link will work in the next version on my page :)
    The reply is currently minimized Show
Your Reply