http://www.icyphoenix.com/viewtopic.php?f=36&t=5274
-----------------------------------
abels_182
Wed 07 Jan, 2009 20:53

Reducing Theme To 80%  By Lopalong?
-----------------------------------
Due to the recent closure of http://icythemes.com/ip, I lost the documentation to reduce the style of 80%.
Someone has it?
Thank you  :mryellow:


-----------------------------------
Lopalong
Wed 07 Jan, 2009 23:11

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Can I help.......?  :mrgreen: 

[b]This first entry is for IP 1.2.0.27*[/b]

[spoiler][code linenumbers=false]# START Core File Changes:
#

OPEN: lang_main.php 

FIND: 

$lang['Inbox_size'] = 'Your Inbox is %d%% full'; // eg. Your Inbox is 50% full 
$lang['Sentbox_size'] = 'Your Sentbox is %d%% full'; 
$lang['Savebox_size'] = 'Your Savebox is %d%% full'; 

CHANGE TO: 

$lang['Inbox_size'] = 'Inbox'; 
$lang['Sentbox_size'] = 'Sentbox'; 
$lang['Savebox_size'] = 'Savebox'; 

OPEN: lang_main_attach.php 

FIND: (Not sure if this is used only by itself elsewhere?) 

$lang['Attachbox_limit'] = 'Attachbox is %d%% full'; 

CHANGE TO: 

$lang['Attachbox_limit'] = 'Attachbox';

OPEN: lang_extend_icy_phoenix.php

FIND: 

During

CHANGE TO: 

Duration

FIND: 

$lang['Calendar_from_to'] = 'From %s to %s (inclusive)';

CHANGE TO: 

$lang['Calendar_from_to'] = '<span class="gensmall"> %s <br /> (inclusive) to <br /> %s </span>';

#
# END Core File Changes:
#

OPEN:

overall_header.tpl

FIND AND REMOVE:

<table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="leftshadow" width="9" valign="top"><img src="{FULL_SITE_PATH}{SPACER}" alt="" width="9" height="1" /></td>
		<td width="100%" valign="top">

FIND:

</head>
<body>

AFTER ADD:

<div align="center"><div id="global-wrapper"><div id="shadow-left"><div id="shadow-right">

########

OPEN:

overall_footer.tpl

FIND:
	<div id="bottom_logo">
		<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">

INLINE FIND:

width="100%"

INLINE AFTER ADD:

 style="height:35px;"


FIND AND REMOVE:

						<!-- BEGIN generation_time_switch -->
						<span class="generation">{PAGE_GEN_TIME} <b>{GENERATION_TIME}s</b> (PHP: {PHP_PART}% SQL: 

{SQL_PART}%)</span><br />
						<span class="generation">{SQL_QUERIES}: {NUMBER_QUERIES} - {DEBUG_TEXT} - {GZIP_TEXT}</span>
						<!-- END generation_time_switch -->

FIND:

250  ( X 2 - Twice) 

CHANGE BOTH TO:

 25%

FIND AND REMOVE:

		</td>
		<td class="rightshadow" width="9" valign="top"><img src="{FULL_SITE_PATH}{SPACER}" alt="" width="9" height="1" /></td>
	</tr>
</table>

FIND:

</body>
</html>

BEFORE ADD:

</div></div></div></div>

	<!-- BEGIN generation_time_switch -->
<div style="text-align:center;">
	<div class="generation">{PAGE_GEN_TIME} <b>{GENERATION_TIME}s</b> (PHP: {PHP_PART}% SQL: {SQL_PART}%)</div>
	<div class="generation">{SQL_QUERIES}: {NUMBER_QUERIES} - {DEBUG_TEXT} - {GZIP_TEXT}</div>
</div>
<div style="padding:4px;"></div>
	<!-- END generation_time_switch -->

########

OPEN:

calendar_box.tpl (NOTE: These Changes Don't have any noticable affect until under 86% in forum-width.) ;-)

And this first change is so that "FF" FINALLY gets to realise that we don't want the table 1800+++px wide - - GRRRRRRRRRRRR!

FIND:
		<tr valign="top">
			<td class="rowcal2" nowrap="nowrap">

REMOVE:

nowrap="nowrap"

FIND:

			<td class="rowcal3" valign="top" align="center" height="4" nowrap="nowrap"><span class="genmed"><a href="{_calendar_box._row._cell.U_DATE}" alt="{_calendar_box._row._cell.DATE}" class="genmed">{_calendar_box._row._cell.DATE}</a></span></td>


REPLACE WITH:

			<td class="rowcal3" valign="top" align="center" height="4"><span class="genmed"><a href="{_calendar_box._row._cell.U_DATE}" alt="{_calendar_box._row._cell.DATE}" class="genmed">{_calendar_box._row._cell.DATE}</a></span></td>


FIND:

					<td class="rowcal2" nowrap="nowrap" valign="top"><span class="genmed">{_calendar_box._row._cell.switch_filled._event.EVENT_TYPE}<a href="{_calendar_box._row._cell.switch_filled._event.U_EVENT}" onMouseOver="createTitle(this, '{_calendar_box._row._cell.switch_filled._event.EVENT_MESSAGE}', event.pageX, event.pageY);" onMouseOut="destroyTitle();" class="{_calendar_box._row._cell.switch_filled._event.EVENT_CLASS}">{_calendar_box._row._cell.switch_filled._event.EVENT_TITLE}</a></span></td>


REPLACE WITH:

					<td class="rowcal2" valign="top"><span class="genmed"><br />{_calendar_box._row._cell.switch_filled._event.EVENT_TYPE}<a href="{_calendar_box._row._cell.switch_filled._event.U_EVENT}" onMouseOver="createTitle(this, '{_calendar_box._row._cell.switch_filled._event.EVENT_MESSAGE}', event.pageX, event.pageY);" onMouseOut="destroyTitle();" class="{_calendar_box._row._cell.switch_filled._event.EVENT_CLASS}">{_calendar_box._row._cell.switch_filled._event.EVENT_TITLE}</a></span></td>

########

OPEN:

links_body.tpl

FIND:
			<td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="100%" onclick="window.location.href='{linkrow.LINK_URL}'"">

REMOVE:

width="100%" 

########

OPEN:

contact_us_body.tpl

FIND:

	<td class="row2"><span class="gen"><textarea name="message" rows="25" cols="40" wrap="virtual" style="width:500px" tabindex="4" class="post">{MESSAGE}</textarea></span></td>

Change:  500px

To: 450px

########

OPEN:

credits_display.tpl

DELETE ALL OF THE SCRIPT:

REPLACE WITH:

{IMG_TBL}<div class="forumline nav-div">
	<p class="nav-header">
		<a href="{U_PORTAL}">{L_HOME}</a>{NAV_SEP}<a href="{S_MODE_ACTION}" class="nav-current">{L_PAGE_NAME}</a>
	</p>
		<div class="nav-links">
		<div class="nav-links-left">{CURRENT_TIME}</div>
		&nbsp;
	</div>
</div>{IMG_TBR}

{IMG_THL}{IMG_THC}<span class="forumlink">{L_IP_TEAM}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr><td class="row1 row-center" align="center" nowrap="nowrap"><div class="post-text">{L_BBC_IP_CREDITS}</div></td></tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}

{IMG_THL}{IMG_THC}<span class="forumlink">{L_PAGE_NAME}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<tr>
	<th width="30%" height="25">{L_HACK_NAME}</th>
	<th width="20%">{L_AUTHOR}</th>
	<th>{L_DESCRIPTION}</th>
	<th>{L_WEBSITE}</th>
</tr>
<!-- BEGIN empty_switch -->
<tr><td colspan="7" class="row1 row-center">{L_NO_HACKS}</td></tr>
<!-- END empty_switch -->

<!-- BEGIN listrow -->
<tr>
	<td class="row1" valign="middle"><span class="gen">&nbsp;&nbsp;{listrow.HACK_NAME}&nbsp;{listrow.HACK_VERSION}</span></td>
	<td class="row1g" valign="middle"><span class="genmed">{listrow.HACK_AUTHOR}</span></td>
	<td class="row1"><span class="genmed">{listrow.HACK_DESC}</span></td>
	<td class="row1g" valign="middle"><span class="gensmall">{listrow.HACK_WEBSITE}</span></td>
</tr>
<!-- END listrow -->

<tr><td class="catbottom" colspan="4" height="28" align="right">&nbsp;</td></tr>
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}

########

OPEN:

memberlist_body.tpl (Something has to be removed to accommodate 80% width.) :P

FIND: 
			<td align="left" valign="middle">{memberrow.AVATAR_IMG}</td>

REPLACE WITH:

			<!-- <td align="left" valign="middle">{memberrow.AVATAR_IMG}</td> -->

########

OPEN:

privmsgs_body.tpl 

FIND:

<div class="forumline" style="padding-left:3px;padding-right:3px">
<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
	<td align="right" style="vertical-align:top;">
	<!-- BEGIN switch_box_size_notice -->
	<table class="forumline" width="190" cellspacing="0">
	<tr><th colspan="3"><span class="gensmall">{ATTACH_BOX_SIZE_STATUS}</span></th></tr>
	<tr>
		<td colspan="3" width="190" class="row1" nowrap="nowrap"><img src="{BAR_GRAPHIC_LEFT}" width="4" height="12" alt="" /><img src="{BAR_GRAPHIC_BODY}" width="{ATTACHBOX_LIMIT_IMG_WIDTH}" height="12" alt="{INBOX_LIMIT_PERCENT}" /><img src="{BAR_GRAPHIC_RIGHT}" width="4" height="12" alt="" /></td>
	</tr>
	<tr>
		<td width="33%" class="row3"><span class="gensmall"><span class="text_green">0%</span></span></td>
		<td width="34%" class="row3 row-center"><span class="gensmall"><span class="text_blue">50%</span></span></td>
		<td width="33%" class="row3 row-right"><span class="gensmall"><span class="text_red">100%</span></span></td>
	</tr>
	</table>
	<!-- END switch_box_size_notice -->
	</td>
	<td width="100%" align="center" style="vertical-align:top;">
		<div class="forumline" style="margin-left:5%;margin-right:5%">
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
		<tr>
			<td width="25%" align="center">{INBOX_IMG}<br /><span class="forumlink">{INBOX}</span></td>
			<td width="25%" align="center">{SENTBOX_IMG}<br /><span class="forumlink">{SENTBOX}</span></td>
			<td width="25%" align="center">{OUTBOX_IMG}<br /><span class="forumlink">{OUTBOX}</span></td>
			<td width="25%" align="center">{SAVEBOX_IMG}<br /><span class="forumlink">{SAVEBOX}</span></td>
		</tr>
		</table>
		</div>
	</td>
	<td align="right" style="vertical-align:top;">
		<!-- BEGIN switch_box_size_notice -->
		<table class="forumline" width="190" cellspacing="0">
		<tr><th colspan="3"><span class="gensmall">{BOX_SIZE_STATUS}</span></th></tr>
		<tr>
			<td colspan="3" width="190" class="row1" nowrap="nowrap"><img src="{BAR_GRAPHIC_LEFT}" width="4" height="12" alt="" /><img src="{BAR_GRAPHIC_BODY}" width="{INBOX_LIMIT_IMG_WIDTH}" height="12" alt="{INBOX_LIMIT_PERCENT}%" title="{INBOX_LIMIT_PERCENT}%" /><img src="{BAR_GRAPHIC_RIGHT}" width="4" height="12" alt="" /></td>
		</tr>
		<tr>
			<td width="33%" class="row3"><span class="gensmall"><span class="text_green">0%</span></span></td>
			<td width="34%" class="row3 row-center"><span class="gensmall"><span class="text_blue">50%</span></span></td>
			<td width="33%" class="row3 row-right"><span class="gensmall"><span class="text_red">100%</span></span></td>
		</tr>
		</table>
		<!-- END switch_box_size_notice -->
	</td>
</tr>
</table>
</div>

REPLACE WITH:

<div class="forumline" style="padding-left:3px;padding-right:3px">
<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
	<td align="right" style="vertical-align:top;">
    <!-- BEGIN switch_box_size_notice --> 
    <table class="row1g" width="20%" cellspacing="0"> 
    <tr><th colspan="3"><span class="gensmall">{ATTACH_BOX_SIZE_STATUS}</span></th></tr> 
    <tr> 
        <td colspan="3" width="190" class="row1" nowrap="nowrap"><img src="{BAR_GRAPHIC_LEFT}" width="4" height="12" alt="" /><img src="{BAR_GRAPHIC_BODY}" width="{ATTACHBOX_LIMIT_IMG_WIDTH}" height="12" alt="{INBOX_LIMIT_PERCENT}" /><img src="{BAR_GRAPHIC_RIGHT}" width="4" height="12" alt="" /></td> 
    </tr> 
    <tr> 
        <td width="33%" class="row3"><span class="gensmall"><span class="text_green">0%</span></span></td> 
        <td width="34%" class="row3 row-center"><span class="gensmall"><span class="text_blue">50%</span></span></td> 
        <td width="33%" class="row3 row-right"><span class="gensmall"><span class="text_red">100%</span></span></td> 
    </tr> 
    </table> 
    <!-- END switch_box_size_notice --> 
    </td> 
    <td width="100%" align="center" style="vertical-align:top;"> 
        <div class="forumline" style="margin-left:5%;margin-right:5%"> 
        <table width="100%" cellspacing="0" cellpadding="0" border="0"> 
        <tr> 
            <td width="25%" align="center">{INBOX_IMG}<br /><span class="forumlink">{INBOX}</span></td> 
            <td width="25%" align="center">{SENTBOX_IMG}<br /><span class="forumlink">{SENTBOX}</span></td> 
            <td width="25%" align="center">{OUTBOX_IMG}<br /><span class="forumlink">{OUTBOX}</span></td> 
            <td width="25%" align="center">{SAVEBOX_IMG}<br /><span class="forumlink">{SAVEBOX}</span></td> 
        </tr> 
        </table> 
        </div> 
    </td> 
    <td align="right" style="vertical-align:top;"> 
        <!-- BEGIN switch_box_size_notice --> 
        <table class="row1g" width="20%" cellspacing="0"> 
        <tr><th colspan="3"><span class="gensmall">{BOX_SIZE_STATUS}</span></th></tr> 
        <tr> 
            <td colspan="3" width="190" class="row1" nowrap="nowrap"><img src="{BAR_GRAPHIC_LEFT}" width="4" height="12" alt="" /><img src="{BAR_GRAPHIC_BODY}" width="{INBOX_LIMIT_IMG_WIDTH}" height="12" alt="{INBOX_LIMIT_PERCENT}%" title="{INBOX_LIMIT_PERCENT}%" /><img src="{BAR_GRAPHIC_RIGHT}" width="4" height="12" alt="" /></td> 
        </tr> 
        <tr> 
            <td width="33%" class="row3"><span class="gensmall"><span class="text_green">0%</span></span></td> 
            <td width="34%" class="row3 row-center"><span class="gensmall"><span class="text_blue">50%</span></span></td> 
            <td width="33%" class="row3 row-right"><span class="gensmall"><span class="text_red">100%</span></span></td> 
        </tr> 
        </table> 
        <!-- END switch_box_size_notice -->
	</td>
</tr>
</table>
</div>

########

OPEN:

bbcb_smileys_mg.tpl 

FIND: 

<!-- END switch_sm_pic_upload --> 

AFTER ADD: (This adds "FRIENDS_ONLINE" to underneath Smilies in PM and Sig editor) 

<table width="90%" align="center" cellspacing="0" cellpadding="0"> 
<tr> 
<td> 
&nbsp;{FRIENDS_ONLINE} 
</td> 
</tr> 
</table> 

########

OPEN:

profile_signature.tpl 

FIND AND REMOVE: 

<!-- INCLUDE profile_cpl_menu_inc_start.tpl --> 

########

OPEN:

posting_body.tpl 

FIND AND REMOVE: 

{CPL_MENU_OUTPUT}

########

OPEN:

style_ice.css

FIND:

@import url("dock.css");

AFTER ADD:

#global-wrapper { 
    width: 90%; 
} 

#shadow-left { 
background-image: url(images/ice/shadow_left.gif); 
background-repeat: repeat-y; 
background-position: left; 
} 

#shadow-right { 
padding: 0 9px 0 9px; 
background-image: url(images/ice/shadow_right.gif); 
background-repeat: repeat-y;     
background-position: right; 
}[/code][/spoiler]


Wow! The template System has come a Lonnnnnnnng way in such a short time.  :mricy: 

[b]RC1 Release:[/b]

For those who want to stop the editor breaking the width in PM's and Signature.

[spoiler][code linenumbers=false]OPEN: 

bbcb_smileys_mg.tpl 

FIND: 

<!-- END switch_sm_pic_upload --> 

AFTER ADD: (This adds "FRIENDS_ONLINE" to underneath Smilies in PM and Sig editor) 

<table width="90%" align="center" cellspacing="0" cellpadding="0"> 
<tr> 
<td> 
&nbsp;{FRIENDS_ONLINE} 
</td> 
</tr> 
</table> 

######## 

OPEN: 

profile_signature.tpl 

FIND AND REMOVE: 

<!-- INCLUDE profile_cpl_menu_inc_start.tpl --> 

######## 

OPEN: 

posting_body.tpl 

FIND AND REMOVE: 

{CPL_MENU_OUTPUT} [/code][/spoiler]


-----------------------------------
abels_182
Thu 08 Jan, 2009 01:05

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Thanks Lopa!!!!
You are the BEST. :mryellow:  :mryellow:


-----------------------------------
Sarakin
Thu 08 Jan, 2009 01:25

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
What are these MODifications for?


-----------------------------------
Lopalong
Thu 08 Jan, 2009 01:30

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
For "Reducing Theme To 80%  By Lopalong?"

So when you go to various pages mentioned in the MOD - the layout doesn't break. ;)

That's what it's for! :P


-----------------------------------
abels_182
Fri 09 Jan, 2009 23:32

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Hey Lopalong.
This does not look good with resolutions higher than 1024x768 ...
How can I change the percentage (%) by the pixels?
Thank you :mricy:


-----------------------------------
Lopalong
Sat 10 Jan, 2009 00:18

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Here!

#global-wrapper { 
    width: 90%; 
} 

change width to 860px; or whatever suits you or the style you are trying to squash etc. And if it's Crystal Styles, you ain't going to be able to squash them very much - But you didn't say what style you were changing. :(


-----------------------------------
Chaotic
Sat 10 Jan, 2009 00:26

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
[quote user="abels_182" post="35518"]Hey Lopalong.
This does not look good with resolutions higher than 1024x768 ...[/quote]

I disagree.  Of course words and images are going to appear smaller because of increased resolution, but most of your users will not have their resolution set above 1024x768. :)

Take a look at my site with Lopalong's reducing code.  Link is in my profile.


-----------------------------------
abels_182
Sat 10 Jan, 2009 08:21

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
[quote user="Lopalong" post="35521"]Here!

#global-wrapper { 
    width: 90%; 
} 

[/quote]

If I change to 860px, the right edge of the template away.
[URL=http://img53.imageshack.us/my.php?image=sinbordeub2.png][IMG]http://img53.imageshack.us/img53/8729/sinbordeub2.th.png[/IMG]

If I write a value of less than 860px, the portal is aligned to the right
[URL=http://img159.imageshack.us/my.php?image=alineaderecharq1.png][IMG]http://img159.imageshack.us/img159/2156/alineaderecharq1.th.png[/IMG]

what happens? :cry: 
Thanks!
Bye


-----------------------------------
Lopalong
Sat 10 Jan, 2009 08:37

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
A link to your site Please?

Post the script you have in the overall_footer for the theme you are trying to change.

And DON'T send me to imageshack again - Upload your pics here. :(


-----------------------------------
abels_182
Sat 10 Jan, 2009 19:20

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
[url=http://www.enlaonda.com.ar]My Site

This is my overall_footer.tpl:
[spoiler][code linenumbers=false]		<!-- BEGIN switch_importal -->
		{PORTAL_TAILCENTER}
		</td>
		{PORTAL_TAILRIGHT}
		</tr>
		</table>
		{PORTAL_TAIL}
		<!-- END switch_importal -->

		{CMS_ACP}
<div style="text-align:center;"><font size="2" face="Verdana">
<a href="http://invertironline.net/"><span style="text-decoration: none;">
InvertirOnLine</span></a> <b>|</b> <a href="http://kosciuk.net/blog/">
<span style="text-decoration: none;">Kosciuk</span></a> <b>|</b>
<a href="http://apuntesyresumenes.com/"><span style="text-decoration: none;">
Apuntes y Resúmenes</span></a></font></div>
<div style="text-align:center;"><font face="Verdana" size="2"><b>ENLAONDA - 
	</b>www.enlaonda.com.ar & www.enlaonda.co.cc</font></div>
<div style="text-align:center;"><span class="admin-link">{ADMIN_LINK}</span><br /><br /></div>
	</td>
</tr>
<!-- BEGIN switch_footer_table -->
<tr>
	<td width="100%" colspan="3">
		<div style="padding-left:5px; padding-right:5px;">
		<table class="forumline" width="100%" cellspacing="0" cellpadding="0">
			<tr><td class="row-header"><span>{L_STAFF_MESSAGE}</span></td></tr>
			<tr><td><div class="post-text"><br />{switch_footer_table.FOOTER_TEXT}<br /><br /></div></td></tr>
		</table>
		</div>
	</td>
</tr>
<!-- END switch_footer_table -->
<!--
<tr>
	<td colspan="3" width="100%">
		<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr><td class="row5bg" width="100%">&nbsp;</td></tr>
		</table>
	</td>
</tr>
-->
<tr>
	<td colspan="3">
	<div id="bottom_logo_ext">
	<div id="bottom_logo">
		<table class="empty-table" width="100%" height="35px" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td nowrap="nowrap" width="25%" align="left">
					<span class="copyright">&nbsp;Powered by <a href="http://www.icyphoenix.com/" 

target="_blank">Icy Phoenix</a> | <a href="http://www.phpbb.com/" target="_blank">phpBB</a>{TRANSLATION_INFO}</span>
				</td>
				<td nowrap="nowrap" align="center">

					<div style="text-align:center;">
						<span class="generation"><b>{LOFI}</b></span>
						<!-- BEGIN generation_time_switch -->
						<span class="generation">{PAGE_GEN_TIME} <b>{GENERATION_TIME}s</b> (PHP: 

{PHP_PART}% SQL: {SQL_PART}%)</span><br />
						<span class="generation">{SQL_QUERIES}: {NUMBER_QUERIES} - {DEBUG_TEXT} - 

{GZIP_TEXT}</span>
						<!-- END generation_time_switch -->
					</div>

				</td>
				<td nowrap="nowrap" width="25%" align="right">
					<span class="copyright">Design by <a href="http://www.mightygorgon.com" 

target="_blank">Mighty Gorgon</a>&nbsp;</span><br />
					<span><script>

var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

function countup(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
difference+=" días"
document.write(" "+difference+" online! ")
}
//cambiar la fecha
countup(2008,9,28)
</script> </span>
				</td>
			</tr>
		</table>
	</div>
	</div>
	</td>
</tr>
</table>

{BOTTOM_HTML_BLOCK}
<span><a name="bottom"></a></span>
</body>
</html>[/code][/spoiler]

Sorry for my poor English :oops: 
[b]Thanks[/b]


-----------------------------------
Lopalong
Sun 11 Jan, 2009 11:23

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
The footer script you have posted does not reflect the changes as required in the instructions. :(


-----------------------------------
abels_182
Sun 11 Jan, 2009 22:54

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Thanks! Works Great! :mrgreen:


-----------------------------------
Lopalong
Mon 12 Jan, 2009 01:26

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Glad you fixed it!  :mrgreen: 

For your sake and others in future, The best way to help solve most problems with themes is:

Post a URL to your site:

Include the theme ID number that you will find in the ACP - Style and Templates >  Default Style etc.

It makes it so much easier.! ;)


-----------------------------------
Mighty Gorgon
Sat 17 Jan, 2009 13:11

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Just a cosmetic suggestion for all people who want to reduce their template to a fixed width... I would use TWO COLUMNS in home page instead of three... :wink:


-----------------------------------
n1cks21
Sun 01 Feb, 2009 15:55

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
[quote user="Chaotic" post="35522"][quote user="abels_182" post="35518"]Hey Lopalong.
This does not look good with resolutions higher than 1024x768 ...[/quote]

I disagree.  Of course words and images are going to appear smaller because of increased resolution, but most of your users will not have their resolution set above 1024x768. :)

Take a look at my site with Lopalong's reducing code.  Link is in my profile.[/quote]

I have just done the above changes however I need some help :-

Chaotic I love your site and I would like to have the same layout how did you manage to put a border at the top and bottom as mine doesnt seem to have them ???

I also love the background picture  :mryellow: good job

the only other problem was with the footer code, the intructions says find:-

[spoiler]
FIND: 
</body> 
</html>
[/spoiler]

however mine didnt have it so I put it here :-

[spoiler]
		<!-- BEGIN switch_importal -->
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>

		{PORTAL_TAILCENTER}
		</td>
		{PORTAL_TAILRIGHT}
		</tr>
		</table>
		{PORTAL_TAIL}
		<!-- END switch_importal -->

		{CMS_ACP}
		<div style="text-align:center;"><br /><span class="admin-link">{ADMIN_LINK}</span><br /><br /></div>

	</td>
</tr>
<!-- BEGIN switch_footer_table -->
<tr>
	<td width="100%" colspan="3">
		<div style="padding-left:5px; padding-right:5px;">
		<table class="forumline" width="100%" cellspacing="0" cellpadding="0">
			<tr><td class="row-header"><span>{L_STAFF_MESSAGE}</span></td></tr>
			<tr><td><div class="post-text"><br />{switch_footer_table.FOOTER_TEXT}<br /><br /></div></td></tr>
		</table>
		</div>
	</td>
</tr>
<!-- END switch_footer_table -->
<!--
<tr>
	<td colspan="3" width="100%">
		<table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr><td class="row5bg" width="100%">&nbsp;</td></tr>
		</table>
	</td>
</tr>
-->
<tr>
	<td colspan="3">
	<div id="bottom_logo_ext">
	<div id="bottom_logo">
		<table class="empty-table" width="100%" height="35px" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td nowrap="nowrap" width="25%" align="left">
					<span class="copyright">&nbsp;Powered by <a href="http://www.icyphoenix.com/" target="_blank">Icy Phoenix</a> based on <a href="http://www.phpbb.com/" target="_blank">phpBB</a>{TRANSLATION_INFO}</span>
				</td>
				<td nowrap="nowrap" align="center">
					<div style="text-align:center;">
						<span class="generation"><b>{LOFI}</b></span>
	
					</div>
				</td>
				<td nowrap="nowrap" width="25%" align="right">
					<span class="copyright">Design by <a href="http://www.mightygorgon.com" target="_blank">Mighty Gorgon</a>&nbsp;<br />{CRACKER_TRACKER_FOOTER}</span>
				</td>
			</tr>
		</table>
	</div>
	</div>
	</td>
</tr>
</table>


<div align="center">{BOTTOM_HTML_BLOCK}
  <span><a name="bottom"></a></span>
  </body>
  <div align="center">
  
</div>

<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=3974397; 
var sc_invisible=0; 
var sc_partition=31; 
var sc_click_stat=1; 
var sc_security="c0a117ad"; 
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><div class="statcounter">
  <div align="center"><a href="http://www.statcounter.com/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/3974397/0/c0a117ad/0/" alt="hit counter" ></a></div>
</div></noscript>
<!-- End of StatCounter Code -->

<div align="right" class="style1">
  <p><font size="-20">Site Logo Designed by Troutpitza aka Clinton Green 2008</font></p>
  <p>&nbsp;</p>
</div>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-6171820-1");
pageTracker._trackPageview();
</script>

</div></div></div></div> 

    <!-- BEGIN generation_time_switch --> 
<div style="text-align:center;"> 
    <div class="generation">{PAGE_GEN_TIME} <b>{GENERATION_TIME}s</b> (PHP: {PHP_PART}% SQL: {SQL_PART}%)</div> 
    <div class="generation">{SQL_QUERIES}: {NUMBER_QUERIES} - {DEBUG_TEXT} - {GZIP_TEXT}</div> 
</div> 
<div style="padding:4px;"></div> 
    <!-- END generation_time_switch --> 
</html>
[/spoiler]

is that ok ???

my site :- www.uk-alliance.com

oh I am using Blue Pearl Theme as well


-----------------------------------
Lopalong
Sun 01 Feb, 2009 22:13

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
From memory - the instructions tell you that you have clean up this block.

[code linenumbers=false]<div align="center">{BOTTOM_HTML_BLOCK} 
  <span><a name="bottom"></a></span> 
  </body> 
  <div align="center"> 
   
</div> [/code]

You have added mods etc, that are outside of the body, so you need to work out what's best for you. But either way, you need to move </body> to above the </html>


-----------------------------------
n1cks21
Mon 02 Feb, 2009 00:53

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
hi again Lopalong, sorry about this nothing seems to work first time for me ahhhhhhhhhhhhhhhhhhhhhhhhh

anyway, I followed these instructions that you posted :-

[spoiler]
######## 

OPEN: 

overall_footer.tpl 

FIND: 
    <div id="bottom_logo"> 
        <table class="empty-table" width="100%" cellspacing="0" cellpadding="0" border="0"> 

INLINE FIND: 

width="100%" 

INLINE AFTER ADD: 

 height="35px" 


FIND AND REMOVE: 

                        <!-- BEGIN generation_time_switch --> 
                        <span class="generation">{PAGE_GEN_TIME} <b>{GENERATION_TIME}s</b> (PHP: {PHP_PART}% SQL: 

{SQL_PART}%)</span><br /> 
                        <span class="generation">{SQL_QUERIES}: {NUMBER_QUERIES} - {DEBUG_TEXT} - {GZIP_TEXT}</span> 
                        <!-- END generation_time_switch --> 

FIND: 

250  ( X 2 - Twice) 

CHANGE BOTH TO: 

 25% 

FIND AND REMOVE: 

        </td> 
        <td class="rightshadow" width="9" valign="top"><img src="{FULL_SITE_PATH}{SPACER}" alt="" width="9" height="1" /></td> 
    </tr> 
</table> 

FIND: 

</body> 
</html> 

BEFORE ADD: 

</div></div></div></div> 

    <!-- BEGIN generation_time_switch --> 
<div style="text-align:center;"> 
    <div class="generation">{PAGE_GEN_TIME} <b>{GENERATION_TIME}s</b> (PHP: {PHP_PART}% SQL: {SQL_PART}%)</div> 
    <div class="generation">{SQL_QUERIES}: {NUMBER_QUERIES} - {DEBUG_TEXT} - {GZIP_TEXT}</div> 
</div> 
<div style="padding:4px;"></div> 
    <!-- END generation_time_switch --> 

######## 
[/spoiler]

there doesnt mention anything about cleaning up :-

[spoiler]
<div align="center">{BOTTOM_HTML_BLOCK} 
 <span><a name="bottom"></a></span> 
 </body> 
 <div align="center"> 
  
</div> 
[/spoiler]


anyway I have moved the code to above the body tag 

I still have no border at the top or bottom any ideas ?? Chaotic site looks great with the borders


-----------------------------------
Lopalong
Mon 02 Feb, 2009 02:23

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Sorry, I thought I had made reference to the the fact that the bottom blocks and body vars needed to be moved. :(

Chaotic uses a theme created by Limun, so if you want extras added - talk to Limun, because I don't normally work on any theme that someone has added modifications to themselves. And I certainly don't create patches on-the-run for wannabe personal taste changes etc. :P


-----------------------------------
n1cks21
Mon 02 Feb, 2009 13:29

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
ok.................. I may need to do that or even change to ProSilver IP Blue because I have followed your script but changed the global-wrapper to 924px everything now looks ok however I am having a problem when I post in the forum it doesnt seem to wrap around properly, for example if I create a new message and press and hold down the a key by the time I have  "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" it shows it as one big line knocking the rest of the site out of line.

any help would be great


-----------------------------------
Lopalong
Mon 02 Feb, 2009 22:36

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Stop holding down the key? No normal word is ever going to be that long, and the editor can't find a space to wrap it. :P


-----------------------------------
Chaotic
Mon 02 Feb, 2009 23:08

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Lopa,

Your reducing code works correctly with the beta?  I think n1cks21 is using this on a beta IP.  You are the code master so I'm not sure if your code works on the beta or not.


-----------------------------------
n1cks21
Tue 03 Feb, 2009 00:24

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
I am using version 1.2.0.27c , but the a was just an example, I have this problem with some of my smileys also.


-----------------------------------
Chaotic
Tue 03 Feb, 2009 01:05

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Oh ok, :lol:


-----------------------------------
Lopalong
Tue 03 Feb, 2009 07:53

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
@Chaotic:

Thanks but I did check n1cks site and [i][b]IF [/b][/i]he was "Playing" with the beta - "No Comment on what I would have said" if that had been the case  :mrblue: 

@n1cks: When you reduce the theme width, there is some stuff that is set for the MAX and smilie rows are one of them. [i][b]IF[/b][/i] that's what we are talking about. ?

You can change the smilie columns and rows in the ACP.[i][b] IF[/b][/i] that's what we are talking about [b]?[/b]


[i][b]Or did I already say that? [/b][/i] :mryellow:

[b]Edit:[/b]

There were some unwanted carriage returns in the script which I have removed.

The most obvious change is:

height="35px" 

Which should have been ->

style="height: 35px;"


-----------------------------------
n1cks21
Tue 03 Feb, 2009 09:52

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
yes the smileys did need changing in the ACP which I did what I mean is when you use smileys in a post ?? but I suppose it's the same answer that you gave me for the a example above, I suppose when you put smiley after smiley after smiley the editor cant find a space to wrap it ???

I do have quite big smileys on my site


-----------------------------------
Lopalong
Tue 03 Feb, 2009 11:44

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Smilies can or should be able to be broken with spaces between each one, notwithstanding that at present they probably look something like this:

:asmile::bsmile::csmile: etc. Though it may not be apparent in the editor, that's how they are coming up as described by you?

It means that the url calling the smilies either needs a space before or after the http string that calls them. Not difficult, but means a .php script adjustment.

Post it as a new topic and we'll see if we can thrash it out. ;)

Post some pics too, as it would be helpful. :P

You could also try adding spaces before and after all the "New" and / or large smilies that you add. 

E.g. <space>:mysmilie:<space> If you get what I mean. ;)


-----------------------------------
n1cks21
Tue 03 Feb, 2009 23:38

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Thanks for the reply, I will try your suggestion and put some spaces in before I create a new thread

thanks again


-----------------------------------
Lopalong
Thu 05 Feb, 2009 01:36

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
If that don't work, and it probably won't! Try this?

Open: viewtopic_body.tpl

[code linenumbers=false]Find:

{POLL_DISPLAY}
<tr>
	<th width="150">{L_AUTHOR}</th>

Replace With:

{POLL_DISPLAY}
<tr>
	<th style="width:15%;">{L_AUTHOR}</th>


Find:

	<td class="row-post" width="100%" height="100%">
		<div class="post-buttons-top post-buttons">
			<span class="img-main">{postrow.QUOTE_IMG}</span>


Replace With: (Adjust 800px to suit your style.)

	<td class="row-post" style="width:800px; height:100%;">
		<div class="post-buttons-top post-buttons"  >
			<span class="img-main">{postrow.QUOTE_IMG}</span>[/code]


It won't fix AAAAAAAAAAAAAAAAAAAA etc, but it will fix the smilies. And higher resolutions will just have to put up with what they get unless you do fix or have fixed the overall table width with px. ;)


-----------------------------------
n1cks21
Thu 05 Feb, 2009 02:58

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
I have set the global-wrapper to 924px does that fix the overall table width as well ????

I have done the change from above which has fixed the smileys once posted but still shows them as a big long line in the preview window.

Images posted still strech the template, I have tried to limit image sizes via ACP but it doesnt seem to have any effect 

thanks for all your help lopalong


-----------------------------------
Lopalong
Thu 05 Feb, 2009 05:26

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Yes, You have fixed the overall width.

Open: 

posting_preview.tpl

Find:
		<td class="row-post" width="100%">

Replace With: (Adjust 800px to suit your theme)

		<td class="row-post" style="width:800px; height:100%;">



A link to your "Image" (Pics) problem please. ;)


-----------------------------------
n1cks21
Thu 05 Feb, 2009 16:25

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
getting there slowly that worked........ but now, not sure how to explain this, when I type a message in the message box the text/smileys look fine but when I click preview the text/smileys now look fine in the preview window at the top but the text/smileys move into one long line in the message box, I assume I have to put the same fix as above but somewhere in the message box ????

my picture problem is when I post a big image on the forum it stretches the width to show the picture, so I changed it in ACP to use thumbnails so when you click on them they show up as big picture like on this site, however when I post a picture I dont get a thumbnail I get the below :-

[img]http://www.uk-alliance.comimagesimage.jpg[/img]
If I click on each one the picture does show, so it does work it just doesnt show a thumbnail


ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

I asume it's a file location problem but not sure where to look


-----------------------------------
Lopalong
Thu 05 Feb, 2009 23:02

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Mate,

You need to work on a theme that you haven't modified, and then add your mods to it one by one to see what is happening. ;)

No doubt there could be other changes made for cosmetic reasons - but I never tested all functions of the reduced theme because no-one was interested in either testing it or providing any feedback at the time it was available. I'll look at it again for the next version of IP, but it's a little late in the process to be bothering with it now. :(

As for the no thumbnail - it's a php.ini thing, and it has been discussed here several times so please search for that answer.


-----------------------------------
n1cks21
Fri 06 Feb, 2009 00:03

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
I understand thanks for all your help

keep up your good work


-----------------------------------
Lopalong
Mon 06 Apr, 2009 03:47

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
For the over-fussy people, the second post has been upgraded to include RC1; and more than likely the final release. ;)


-----------------------------------
wachowski
Mon 13 Apr, 2009 12:24

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
hey lopalong is that orange template yours?
If it is, whats its name? 

It looks very nice-- :mrorange:


-----------------------------------
Lopalong
Mon 13 Apr, 2009 12:42

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
If you are talking about the posted screen shots way back the start of the thread? No it's not. And I'm not sure if it isn't an FKThemes template, that should be available in the "Downloads" theme section here for IP v27 ONLY -  until it's converted to RC1 whatever.

 :mricy:


-----------------------------------
n1cks21
Wed 15 Apr, 2009 10:33

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
:shock: 

so to reduce the theme by 80% in my new version (1.2.22.49) all I have to do is this :-

[spoiler]
OPEN: 

bbcb_smileys_mg.tpl 

FIND: 

<!-- END switch_sm_pic_upload --> 

AFTER ADD: (This adds "FRIENDS_ONLINE" to underneath Smilies in PM and Sig editor) 

<table width="90%" align="center" cellspacing="0" cellpadding="0"> 
<tr> 
<td> 
&nbsp;{FRIENDS_ONLINE} 
</td> 
</tr> 
</table> 

######## 

OPEN: 

profile_signature.tpl 

FIND AND REMOVE: 

<!-- INCLUDE profile_cpl_menu_inc_start.tpl --> 

######## 

OPEN: 

posting_body.tpl 

FIND AND REMOVE: 

{CPL_MENU_OUTPUT} [/spoiler]

 :?:  :?:  :?:


-----------------------------------
Lopalong
Wed 15 Apr, 2009 11:54

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
NO!

 You would still have to reduce your theme to 80% whatever FIRST - All that adjustment does is stop the editor from "breaking" the template in PM Reply / New; and the Sig after you have reduced it.


-----------------------------------
n1cks21
Mon 20 Apr, 2009 17:19

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
ok  :oops:  :oops:  :oops:


-----------------------------------
_aNoNiMo_
Wed 05 Aug, 2009 18:28

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
Lopalong can help set the theme fk_theme_kids, looks good to enter the website, but when entering the username and password, decentralization, I have the resolution 1024*768 and I would like my website was well http://eligetutheme.es/forum/ 

The error is http://chatbuenrollito.es/index.php 

Username: prueba

password: 123456 

we must shift the web to the right to see the blocks, and that's what I want to fix 

I have installed the version of Icy Phoenix 1.3.0.53 

Thank you very much!


-----------------------------------
Lopalong
Sat 08 Aug, 2009 03:14

Re: Reducing Theme To 80%  By Lopalong?
-----------------------------------
At the moment I'm not doing anything with IPv1.3* so you will have to wait unless someone else can help you. :(

But! Please don't post your requests in more than one thread in future, and particularly not about v1.3 in the "Old" version threads. ;)


