Help for adding html area to album details

RIDVAN
RIDVAN
Offline
0
Hi there,
im just working for adding a link to album details area.
So the users able to buy albums from online store (and its suggestion for this project,maybe there will be an extension for this :woohoo: )

lets come to my question :dry:
im editing the album details table,
I just wanna change the "Edition details:" area to html link&button table.
So i guess,on the admin area of M.C i have to edit the form.php file.
(administrator/components/com_muscol/views/album/tmpl/form.php)

and that code :
see the attached image (i couldnt add a code with bbcode function of kunena
[img size=486]http://www.joomlamusicsolutions.com/images/fbfiles/images/code_area.gif[/img]

i have to add some tags to this code for allowing "html code" area of my M.C admin panel (Edition details: section) ??

waiting asap :blush:
Attachments:
Responses (8)
  • Accepted Answer

    Saturday, April 11 2009, 10:29 PM - #Permalink
    0
    sorry man, this is a bit more difficult that you think :lol:

    to allow HTML, you have to tell joomla that this field will contain HTML, because if you dont do it, joomla will automaticlu purge all html code inside textareas (thats a security thing)

    if youre interested I can tell you how to do it, but this is a bit risky, because maybe future versions of MC will overwrite the files you would modify so you'd loose what you' have changed...

    anyway, here's two other options that may be OK for you (and that dont involve dramatic MC code changes):

    1 - use the "review" field ! :lol: you can add as much html there as you like! ;)

    2 - use the details textarea, but dont write the entire html tag (wich would be "">Buy this album

    or someting like taht

    what you think?
    The reply is currently minimized Show
  • Accepted Answer

    RIDVAN
    RIDVAN
    Offline
    Saturday, April 11 2009, 10:47 PM - #Permalink
    0
    ok i forgot the 2options :unsure:
    so here is an another solution :cheer:

    how about the adding second Review area to the details table of albums ?

    see the link below
    http://remixland.de/v3/component/option,com_muscol/id,6/view,album/

    the is an google ads , i made it from script side (default.php)
    can we add there 2.review area to google ads table ?
    so we'll able to add anyting we want to there , maybe :side:
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 12 2009, 09:50 AM - #Permalink
    0
    well, I dont plan to add second review area, because most of the users dont have need of this

    but I can tell yo how to do it in 5 steps if you want to :)
    The reply is currently minimized Show
  • Accepted Answer

    RIDVAN
    RIDVAN
    Offline
    Sunday, April 12 2009, 12:45 PM - #Permalink
    0
    yes please tell it to me, greatful for this :)
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 12 2009, 02:38 PM - #Permalink
    0
    1 - create a new field in the database table jos_muscol_albums called "review2", a "text" field
    2 - on file "administrator/components/com_muscol/tables/album.php" add the code "var $review2 = null;" (where all the other variables are initialized)
    3 - on file "administrator/components/com_muscol/models/album.php" add this code after line 245:

    $data['review2'] = JRequest::getVar('review2', '', 'post', 'string', JREQUEST_ALLOWRAW);

    4 - on "administrator/compoents/com_muscol/views/album/tmpl/form.php" add this code after line 336:

    echo $editor->display('review2', $this->album->review2, '550', '400', '60', '20', false);

    5 - now we just need to display te info in the frontend: on file "components/com_muscol/views/album/tmpl/default.php" add this code wherever you want the review2 field to appear (for instance on line 120):

    echo $this->album->review2;

    that's it man, 5 steps, as promised ;)
    The reply is currently minimized Show
  • Accepted Answer

    RIDVAN
    RIDVAN
    Offline
    Sunday, April 12 2009, 03:20 PM - #Permalink
    0
    yess 5 easy steps :D
    but im little bit scary for this, if i add this codes into my db and php files, is there any problem about updates of m.c ?

    i know i have to change every update files code structure for review2 area (i can do this) but i dont want any problems about updating m.c...
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 12 2009, 03:38 PM - #Permalink
    0
    man, I just can't tell you that

    yes, it is possible that future updates overwrite some of theese files... probably this will happen

    so... the bet thing you can do about it is write on a sheet of paper what files did you modified and how, and after each update just check if theese files were changed.. and if they were, just re-add the code

    :)
    The reply is currently minimized Show
  • Accepted Answer

    RIDVAN
    RIDVAN
    Offline
    Sunday, April 12 2009, 04:15 PM - #Permalink
    0
    ok im going to try it on demo server and then maybe i can write a tutorial for who wants to edit the details area like me :)
    The reply is currently minimized Show
Your Reply