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:
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:
Responses (8)
-
Accepted Answer
0sorry 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? -
Accepted Answer
0ok 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: -
Accepted Answer
-
Accepted Answer
01 - 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 -
Accepted Answer
-
Accepted Answer
0man, 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
-
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »