×

Notice

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

TOPIC: Trying to resize the image in the comments

Trying to resize the image in the comments 15 years 3 months ago #5941

  • Andrew Stocker
  • Andrew Stocker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hey everyone,

Basically I am trying to make the images in the comments smaller. I am using the gAvatar plugin but it doesn't seem to have a CSS.

In the back menu it has this:




which im not sure sure about?

Thanks

Trying to resize the image in the comments 15 years 3 months ago #5943

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
If you mean the user avatar, open the CSS and provide a new width: parameter to this class -
#comment .comment_avatar .avatar
...which should already be in the modern CSS.

If you mean embeds in the actual comment, i'm not sure. I think there is a setting in the JoomlaComment backend to specify the maximum width of Images. P.S. I don't know what gAvatar is :silly:[IMG] embeds in the actual comment, i'm not sure. I think there is a setting in the JoomlaComment backend to specify the maximum width of Images.

P.S. I don't know what gAvatar is :silly:

Trying to resize the image in the comments 15 years 3 months ago #5945

  • Andrew Stocker
  • Andrew Stocker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
yeah sorry, I got confused with Gavatar it has nothing to do with the comments.

What you said in the first parapgraph is what I mean, but for some reason I can't find that line of code.

Using firebug it won't come up when I select the avatar

.......... ok gave it another look and found the code just now, however when I try and resize that line of code using width and height, it just changes the comment box, and not the actual image!

Trying to resize the image in the comments 15 years 3 months ago #5958

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Are you using the modern template on JoomlaComment 4 Beta 2?

Taking a look at moderns' black.css file we have...
/* comment avatar */
#comment .comment_avatar {
    float: left;
    padding: 0px 5px 5px 0px;
}
Yes you're right, that class I mentioned isn't in modern - I've added it into my own templates but it should still work. So find that CODE above in your CSS and try changing it to this:
#comment .comment_avatar {
    display:block;
    background: transparent;
    float: left;
    width:78px;
}
#comment .comment_avatar .avatar {
    width: 64px;
    margin-top:12px;
}
I have no idea if display:block is needed, i'm not too spiffy at CSS. But if that doesn't work let me know and i'll see what I can figure out.

Trying to resize the image in the comments 15 years 3 months ago #5970

  • Andrew Stocker
  • Andrew Stocker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
you sir are a legend in your own rights, it works!

Good stuff dude.


One thing I would maybe see if it was possible, is to make the pictures of people who are replying smaller than the original post.



See what I mean.

Lol I'm being cheeky now and pushing you. Nothing major though but would look much better especially with all the replies being indented and in a straight line!

Trying to resize the image in the comments 15 years 3 months ago #5974

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
I do like the smaller-avatars for the replies, infact I love that commenting layout entirely and will create a template heavily inspired by it's clean-and-sleek approach. Alas I have no idea how to do it. It'd require some heavy core changes because the templates can't execute their own PHP, and JavaScript or Dynamic CSS wouldn't know how to seperate the Reply avatars from the bigger Thread-starting avatars. At least, I don't know how.

Lol I'm being cheeky now and pushing you. Nothing major though but would look much better especially with all the replies being indented and in a straight line!

Right on, I completely agree. Stay tuned in to the Comojoom Forums over the next few weeks, I plan to unveal some "teasers" of the new Templates which will then be open to user feedback, criticisms and suggestions :)

Trying to resize the image in the comments 15 years 3 months ago #5975

  • Andrew Stocker
  • Andrew Stocker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
will do dude!

Trying to resize the image in the comments 15 years 3 months ago #6029

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Oh! And if you havn't written a review yet, we would be very happy if you spread the love for JoomlaComment over at extensions.joomla.org/extensions/contact...ticles-comments/4389 B)

Trying to resize the image in the comments 15 years 3 months ago #6031

  • Andrew Stocker
  • Andrew Stocker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
np ^^
  • Page:
  • 1
Time to create page: 0.138 seconds