Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: Comments style  (Read 2890 times)

bobcat

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 67
    • ESL Jobs by Country
Comments style
« on: November 11, 2006, 08:22:55 am »

OK easy question, but i have had no luck solving this myself.

I'm trying to put a div around the comments, so i can apply a different background color.

Trying to get something like: http://www.solucija.com/home/snews-15rc3-released/#Comment1

Can someone point me to the correct places to place the div in snews.php (ver 1.5 rc3).

Thanks for any help!

Harold

  • Full Member
  • ***
  • Karma: 0
  • Posts: 110
    • http://blog.haroldbeukers.nl/
Comments style
« Reply #1 on: November 11, 2006, 09:16:28 am »

well, in the style.css you can easely change the background:  .commentsbox.
but, if this isnt wat you ment;look at linenumber 597-610 in snews.php
Logged
E=Fb

bobcat

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 67
    • ESL Jobs by Country
Comments style
« Reply #2 on: November 11, 2006, 09:48:34 am »

Thanks harold. I have made it that far but that is where i am stuck.

Problem is like in the above example, i am trying to achieve a speech bubble appearance as seen in the above snew website example.
I can get a div and background color for the comments. But if i try to put a div (with arrow picture) under this one in the code, the picture appears above the comments.

I have no idea how to fix this, i guess it comes down to incorrect position of my divs, but i have tries for so long with no success..  :(

Harold

  • Full Member
  • ***
  • Karma: 0
  • Posts: 110
    • http://blog.haroldbeukers.nl/
Comments style
« Reply #3 on: November 11, 2006, 12:23:16 pm »

i found something:

linenumber: 240 (not exactly:))

// INFO LINE TAGS (readmore, comments, date)
function tags($tag) {
   $tags = array(); $tags['infoline'] = '<p class="date">,readmore,comments,date,edit,</p>';
   $tags['comments'] = '<div class="comment">,<p class="date">,name, on ,date,edit,</p>,<p>,comment,</p>,<div>...a div after all comments...</div> </div>';
   return $tags[$tag];
}

or after the closing div (better)
// INFO LINE TAGS (readmore, comments, date)
function tags($tag) {
   $tags = array(); $tags['infoline'] = '<p class="date">,readmore,comments,date,edit,</p>';
   $tags['comments'] = '<div class="comment">,<p class="date">,name, on ,date,edit,</p>,<p>,comment,</p>, </div><div>...a div after all comments...</div>';
   return $tags[$tag];
}
« Last Edit: September 12, 2007, 11:51:02 pm by Harold »
Logged
E=Fb

bobcat

  • Jr. Member
  • **
  • Karma: 1
  • Posts: 67
    • ESL Jobs by Country
Comments style
« Reply #4 on: November 12, 2006, 01:32:45 am »

Thanks Harold, Works great!  :D  :D  :D