Nandee
Newbie
Karma: 0
Offline
Posts: 14
|
 |
« on: August 16, 2010, 18:56:52 » |
|
Hello everyone,
I've just installed JComments 2.2.0.0 on my site. I've uploaded a GavickPro template (gk_style) to the components/com_jcomments/tpl directory, and then, in the Joomla Administration (in the JComments settings), I changed the default template to gk_style. However, when I checked it on the site, the changes hadn't appeared. By the way, I'm using JComments integrated with the ContusHDVideoShare component, I don't know whether it's important. So can anyone tell me how can I make the template change on the site? Thanks in advance.
|
|
|
|
« Last Edit: September 19, 2010, 22:04:00 by Nandee »
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #1 on: August 16, 2010, 19:18:04 » |
|
Could you attach here this template? Or just send it me by email? I'll check it with JComments 2.2
|
|
|
|
|
Logged
|
|
|
|
Nandee
Newbie
Karma: 0
Offline
Posts: 14
|
 |
« Reply #2 on: August 16, 2010, 19:58:51 » |
|
Since it came with a commercial Joomla template, I think it's better if I send it to you by email. But I can't find your address anywhere so can you please tell me what it is?
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #3 on: August 16, 2010, 20:27:49 » |
|
I've tested it on demo.joomlatune.com and no problems found. All I did - just copied the folder gk_style to /components/com_jcomments/tpl/ and select it in component settings.
May be you've forgot to clean Joomla's cache after template change?
BTW, seems what this template doesn't support threaded comments (as I see it displays all comments at one level without any padding left)
|
|
|
|
« Last Edit: August 16, 2010, 20:29:27 by smart »
|
Logged
|
|
|
|
Nandee
Newbie
Karma: 0
Offline
Posts: 14
|
 |
« Reply #4 on: August 17, 2010, 00:33:57 » |
|
I've done exactly the same steps. I've also cleared the Joomla cache but I still see the default template. But the problem only occurs if I view the comments of the ContusHDVideoShare component's videos. In Joomla articles, the template changes correctly. I really don't know what causes this problem.
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #5 on: August 17, 2010, 13:05:58 » |
|
But the problem only occurs if I view the comments of the ContusHDVideoShare component's videos. May be it has its own cache?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
smart
|
 |
« Reply #7 on: August 17, 2010, 17:38:17 » |
|
I think it loads the default JComments template Send this extension to me by email, please. I'll check it too...
|
|
|
|
|
Logged
|
|
|
|
|
|
|
smart
|
 |
« Reply #9 on: August 17, 2010, 18:32:13 » |
|
I've checked this extension and found that it indeed use static paths to styles in file /components/com_contushdvideoshare/views/commentappend/tmpl/default.php And all you need is edit path in line: <link rel="stylesheet" href="<?php echo JURI::base(); ?>components/com_jcomments/tpl/default/style.css" type="text/css" /> After this changes applied all must work. But I'm quite confused why this file has <body> tag and some input elements outside the form element. Its strange for me...
|
|
|
|
|
Logged
|
|
|
|
Nandee
Newbie
Karma: 0
Offline
Posts: 14
|
 |
« Reply #10 on: August 17, 2010, 18:41:21 » |
|
Yes, it is the line I was talking about. I've already changed "default" to "gk_style" but it doesn't look like on the demo site.
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #11 on: August 17, 2010, 18:47:22 » |
|
This is because the comments block in this extension is loaded through IFRAME and default background for it is set to FFFFFF. Also it couldn't contain some styles defined in gk_style template and what are needed to proper comments template displaying.
I could suggest you to include Gavic template styles to file where you're edited path to JComments style. It might help... Also I suggest you to use FireBug plugin for Firefox to easy investigate site's CSS styles.
|
|
|
|
« Last Edit: August 17, 2010, 19:06:12 by smart »
|
Logged
|
|
|
|
Nandee
Newbie
Karma: 0
Offline
Posts: 14
|
 |
« Reply #12 on: August 17, 2010, 19:18:42 » |
|
I'm already using Firebug, which is a really helpful extension. But I don't really understand PHP so I don't know what codes should I change. Could you please help me with it?
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #13 on: August 17, 2010, 19:24:17 » |
|
Try to add after line: <link rel="stylesheet" href="<?php echo JURI::base(); ?>components/com_jcomments/tpl/default/style.css" type="text/css" /> next code: <link rel="stylesheet" href="http://www.gamevideos.hu/templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="http://www.gamevideos.hu/templates/system/css/general.css" type="text/css" /> <link rel="stylesheet" href="http://www.gamevideos.hu/templates/gk_gamebox/css/addons.css" type="text/css" /> <link rel="stylesheet" href="http://www.gamevideos.hu/templates/gk_gamebox/css/layout.css" type="text/css" /> <link rel="stylesheet" href="http://www.gamevideos.hu/templates/gk_gamebox/css/template.css" type="text/css" /> <link rel="stylesheet" href="http://www.gamevideos.hu/templates/gk_gamebox/css/joomla.css" type="text/css" />
<link rel="stylesheet" href="http://www.gamevideos.hu/templates/gk_gamebox/css/gk_stuff.css" type="text/css" /> <link rel="stylesheet" href="http://www.gamevideos.hu/templates/gk_gamebox/css/typo.css" type="text/css" /> <link rel="stylesheet" href="http://www.gamevideos.hu/templates/gk_gamebox/css/css3.css" type="text/css" /> <link rel="stylesheet" href="http://www.gamevideos.hu/templates/gk_gamebox/css/style1.css" type="text/css" /> <link rel="stylesheet" href="http://www.gamevideos.hu/templates/gk_gamebox/css/override.css" type="text/css" /> And also you need to replace in file http://www.gamevideos.hu/templates/gk_gamebox/css/joomla.css code: iframe { background:none repeat scroll 0 0 #FFFFFF; border:medium none; } with iframe { background:none repeat scroll 0 0 inherit; border:medium none; }
|
|
|
|
|
Logged
|
|
|
|
Nandee
Newbie
Karma: 0
Offline
Posts: 14
|
 |
« Reply #14 on: August 17, 2010, 19:31:03 » |
|
Thank you very very much smart! I change the codes and will tell you what is the result.
|
|
|
|
|
Logged
|
|
|
|
|