Closed (works as designed)
Project:
Latest Members
Version:
6.x-2.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2011 at 18:53 UTC
Updated:
12 May 2020 at 02:18 UTC
Jump to comment: Most recent
Comments
Comment #1
d------ commentedHi Mark,
You can control the number of pictures in the locks settings and the size is easy to control using CSS. If you really want to force the images to be smaller and not just display smaller then you will need to add that logic to the modules code. I don't think it will be necessary unless you have a very high traffic site though or limited resources.
Thanks,
Dan
Comment #2
d------ commentedComment #3
markflyer commentedI just wanted to display a smaller picture size so I can get more pictures. I have added the below text to the .module and .css but nothing happens. could you help me?
Mark
.MODULE - BELOW
/**
* Implementation of hook_init().
*/
function latest_members_init() {
drupal_add_css(drupal_get_path('module', 'latest_members') .'/latest_members.css');
if (!isset($_SERVER['REQUEST_TIME'])) {
$_SERVER['REQUEST_TIME'] = time();
}
}
.CSS - BELOW
#latest-members {
height: 75px;
width: 75px;
overflow: auto;
}
Comment #4
markflyer commentedI just wanted to display a smaller picture size so I can get more pictures. I have added the below text to the .module and .css but nothing happens. could you help me?
Mark
.MODULE - BELOW
/**
* Implementation of hook_init().
*/
function latest_members_init() {
drupal_add_css(drupal_get_path('module', 'latest_members') .'/latest_members.css');
if (!isset($_SERVER['REQUEST_TIME'])) {
$_SERVER['REQUEST_TIME'] = time();
}
}
.CSS - BELOW
#latest-members {
height: 75px;
width: 75px;
overflow: auto;
}
Comment #5
d------ commentedHi Mark,
You don't need to edit the PHP but to help you with the CSS can you post up your HTML output or a link to your website? I'll check out the CSS and try and help.
You should have a CSS class on each picture that might look like this:
The class is "latest-member" so in your CSS you need for example:
If this still won't work then maybe it's being overridden somewhere else, in which case try:
I noticed in your CSS you tried #latest-members which is for an ID and not a class - so maybe that is part of the problem? :)
Thanks,
Dan
Comment #6
d------ commented