You are here:Templates Club arrow Help and Support arrow Support Forums
Youjoomla Support
Welcome, Guest
Please Login or Register.    Lost Password?
slider size (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: slider size
#7841
carpman
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
slider size 4 Months, 2 Weeks ago Karma: 0  
Hello, ok i have changed the slider size to 500px and want to use 'user2, user3' for something else.

Problem is that when i start using 'user2 - user3' each module reverts to 33.3px which means the slider is too small!

Is it possible set each module to fixed px or set user1 to 500px and and then have user2 - user3 take 50% of remaining space?

cheers
 
Logged Logged  
  The administrator has disabled public write access.
#7842
neo
Admin
Posts: 3876
graph
User Online Now Click here to see the profile of this user
Re:slider size 4 Months, 2 Weeks ago Karma: 85  
you need to be more specific , what template and site link
 
Logged Logged  
 
Please mark your post as SOLVED if your issue is resolved. Thank you. To mark the post as solved , edit your first post title : NOTE FOR UNANSWERED POST: IF YOUR POST IS NOT ANSWERED WITHIN 48H PLEASE SEND ME AN EMAIL TROUGH OUR CONTACT FORM WITH SUBJECT UNANSWERED POST
  The administrator has disabled public write access.
#7844
carpman
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:slider size 4 Months, 2 Weeks ago Karma: 0  
it is template joomla_hosting

don't want to post url in public but can't PM feature either?
 
Logged Logged  
  The administrator has disabled public write access.
#7845
neo
Admin
Posts: 3876
graph
User Online Now Click here to see the profile of this user
Re:slider size 4 Months, 2 Weeks ago Karma: 85  
module widths are defined in settings.php , and called in index.php for each module position. you can change it to your own widths
 
Logged Logged  
 
Please mark your post as SOLVED if your issue is resolved. Thank you. To mark the post as solved , edit your first post title : NOTE FOR UNANSWERED POST: IF YOUR POST IS NOT ANSWERED WITHIN 48H PLEASE SEND ME AN EMAIL TROUGH OUR CONTACT FORM WITH SUBJECT UNANSWERED POST
  The administrator has disabled public write access.
#7846
carpman
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:slider size 4 Months, 2 Weeks ago Karma: 0  
Yep i found that but not sure how to achieve this?

currently looks like

Code:
//START COLLAPSING TOP1:)
$top1 = 0;
if ($this->countModules('user1')) $top1++;
if ($this->countModules('user3')) $top1++;
if ($this->countModules('user2')) $top1++;

if ( $top1 == 3 ) {
	$top1width = '33.3%';
} else if ($top1 == 2) {
	$top1width = '49%';
} else if ($top1 == 1) {
	$top1width = '100%';
}
but can i have user1 as 500px and user2 user3 as 50% of what left? would something like this work
Code:

//START COLLAPSING TOP1:)
$top1 = 0;
if ($this->countModules('user1')) $top1++;
if ($this->countModules('user3')) $top1++;
if ($this->countModules('user2')) $top1++;

if ( $top1 == 3 ) {
	$top1width = '500px';
} else if ($top1 == 2) {
	$top1width = '50%';
} else if ($top1 == 1) {
	$top1width = '50%';
}
somehow i don't think that will work as it looks like i can only set each module in correspondence to other modules? cheers
 
Logged Logged  
  The administrator has disabled public write access.
#7847
neo
Admin
Posts: 3876
graph
User Online Now Click here to see the profile of this user
Re:slider size 4 Months, 2 Weeks ago Karma: 85  
again same thing, you keep on asking for custom work , I would love to help but the support in forums is for templates as they are, I can give you few pointers and that is already to much bit you must do the rest yourself and understand php.

if ( $top1 == 3 ) says if there are 3 modules published each module size should be 33.3%

what you need is php call for custom size for each module user1 user2 user3 or you delete the php width call from index.php and instead add widths in layout.css for each module position
 
Logged Logged  
 
Please mark your post as SOLVED if your issue is resolved. Thank you. To mark the post as solved , edit your first post title : NOTE FOR UNANSWERED POST: IF YOUR POST IS NOT ANSWERED WITHIN 48H PLEASE SEND ME AN EMAIL TROUGH OUR CONTACT FORM WITH SUBJECT UNANSWERED POST
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop