Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
Doulos
Life Cycles Becoming CPU Cycles



Joined: Jun 06, 2005
Posts: 732

PostPosted: Sun Sep 24, 2017 11:02 pm Reply with quote

I have another noob question ...

Is there a way to change the minimus width of a module? If someone moves the shrinks the size of the window the module collapses down to a certain width - I would like to increase the width on a particular module. Is this something that can be done on an individual module or is this set in the theme for the whole site?
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Mon Sep 25, 2017 12:55 am Reply with quote

Its theme-based, not really recommended but yes its possible. Which theme you are using and which module should have a fixed width-value?

_________________
Github: RavenNuke 
View user's profile Send private message
Doulos







PostPosted: Mon Sep 25, 2017 1:41 am Reply with quote

I am using fisubice and it is a custom module that has a text field that is wider than the minimum width of the main area if the window is small enough.

I was able to fix this issue by hiding the right blocks.

Thanks
 
neralex







PostPosted: Mon Sep 25, 2017 2:33 am Reply with quote

1. There is no need to set a fixed width-value fo the whole module. Put a <div> arount the input-tags like this:

html Code:
<div class="nowrap">

<input type="text" name="foo" value="bar" />
<input type="submit" value="Submit" />
</div>

You can also try to make the input-field smaller with CSS or with the size-attribute.

2. show/hide right blocks

php Code:
// BEGIN: Added in v2.40.00 - Mantis Issue 0001043

$index = 0;
if (!defined('INDEX_FILE')) define('INDEX_FILE', true); // Set to FALSE to hide right blocks
if (defined('INDEX_FILE') AND INDEX_FILE===true) {
// auto set right blocks for pre patch 3.1 compatibility
$index = 1;
}
// END: Added in v2.40.00 - Mantis Issue 0001043
 
Doulos







PostPosted: Mon Sep 25, 2017 12:22 pm Reply with quote

Good to know. The text was bleeding over into the right-side blocks if the window was reduced enough.


neralex wrote:
2. show/hide right blocks

php Code:
// BEGIN: Added in v2.40.00 - Mantis Issue 0001043

$index = 0;
if (!defined('INDEX_FILE')) define('INDEX_FILE', true); // Set to FALSE to hide right blocks
if (defined('INDEX_FILE') AND INDEX_FILE===true) {
// auto set right blocks for pre patch 3.1 compatibility
$index = 1;
}
// END: Added in v2.40.00 - Mantis Issue 0001043


This is what I did - when I finally actually read the "//Set to FALSE ..."
Thanks again nerelax.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©