×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Different templates for question and answer?

Different templates for question and answer? 14 years 6 months ago #9849

  • Jaime
  • Jaime's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Hello...

I am using JoomlaComment 4.0. The problem I'm having is that the same template is used for both the question and the answer. The only difference is that the indentation of the answer is {wrapnum} configured somewhere.

I need the question to have a different graphical design than the answer. Is this possible? or, what source code do I have to take a look in order to modify it accordingly?

Any help will be appreciated
Thanks

Jaime

Different templates for question and answer? 14 years 6 months ago #9850

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
There is no easy way to do this. You will have to modify comment.class.php
The function post_htmlCode in Josc_post returns this:
return $this->envelope($html, $id, ($wrapnum * $this->_tree_indent) . 'px');

and the envelope function does the necessary magic. Here you will have to play and figure out a way to add a class, instead of the margin. Then you can style this class through css. This is what comes in my mind.
  • Page:
  • 1
Time to create page: 0.102 seconds