Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: [Solved] Can't change the default template
Pages: [1] 2 3   Go Down
  Print  
Author Topic: [Solved] Can't change the default template  (Read 4691 times)
0 Members and 1 Guest are viewing this topic.
Nandee
Newbie
*

Karma: 0
Offline 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
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« 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

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Nandee
Newbie
*

Karma: 0
Offline 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
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« 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

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Nandee
Newbie
*

Karma: 0
Offline 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
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« 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

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Nandee
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #6 on: August 17, 2010, 16:54:32 »

Well, no, this component has got no own cache. I think it loads the default JComments template, and I have to change it in the source code. However I've found a file in which I could change "default" to "gk_style" and now it loads style.css from gk_style. But somehow it still doesn't look like it supposed to.
You can see it here on my site: http://www.gamevideos.hu/video/player/11/20.
And this is how it should look like: http://demo.gavick.com/joomla15/jul2010/index.php?option=com_content&view=article&id=78:assassins-creed-2&catid=37:demo-articles&Itemid=59#comments.
« Last Edit: August 25, 2010, 04:18:50 by Nandee » Logged
smart
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« 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

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Nandee
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #8 on: August 17, 2010, 18:23:57 »

I'm using the free version of this component, and you can download it here: http://www.hdvideoshare.net/download.php?req=1.
Logged
smart
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« 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:
Code:
<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

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Nandee
Newbie
*

Karma: 0
Offline 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
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« 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

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Nandee
Newbie
*

Karma: 0
Offline 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
Administrator
Hero Member
*****

Karma: 146
Offline Offline

Gender: Male
Posts: 2579



WWW
« Reply #13 on: August 17, 2010, 19:24:17 »

Try to add after line:
Code:
<link rel="stylesheet" href="<?php echo JURI::base(); ?>components/com_jcomments/tpl/default/style.css" type="text/css" />

next code:
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:
Code: (css)
iframe {
background:none repeat scroll 0 0 #FFFFFF;
border:medium none;
}
with
Code: (css)
iframe {
background:none repeat scroll 0 0 inherit;
border:medium none;
}
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Nandee
Newbie
*

Karma: 0
Offline 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
Pages: [1] 2 3   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: [Solved] Can't change the default template
 
Jump to: