|
Page 1 of 2
|
alkie2k
Joined: October 2009
Posts: 6
|
 Black Pearl Max Width And Sitelogo_small.png
Hello,
how can i set the max. width for the style Black Pearl (520px) and can i delete the sitelogo_small.png from the top of the style ?
|
#1 Wed 21 Oct, 2009 16:18 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Black Pearl Max Width And Sitelogo_small.png
You may set width in template/_mg_config.html and you can remove the logo by editing template/overall_header.html.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#2 Wed 21 Oct, 2009 19:30 |
|
alkie2k
Joined: October 2009
Posts: 6
|
 Re: Black Pearl Max Width And Sitelogo_small.png
You may set width in template/_mg_config.html and you can remove the logo by editing template/overall_header.html.
Well, maybe i do something wrong but nothing works in this files...
here my _mg_config.html
<!-- IF $MG_CONFIG_SWITCH -->
To use these vars you need to include this file in overall header using the
INCLUDE function and then you are able to recall the vars using this syntax:
{$MG_TBL_H_L}
{$MG_GLOBAL_WIDTH}
<!-- ENDIF -->
DEFINE $MG_GLOBAL_WIDTH = '520px'
<!-- DEFINE $MG_BUTTONS_EXTENSION = 'png' -->
<!-- DEFINE $MG_TBL_H_L = '<div><div class="tbl-h-l"><div class="tbl-h-r"><div class="tbl-h-c"><div class="tbl-title">' -->
<!-- DEFINE $MG_TBL_H_R = '</div></div></div></div>' -->
<!-- DEFINE $MG_TBL_F_L = '<div class="tbl-f-l"><div class="tbl-f-r"><div class="tbl-f-c"> ' -->
<!-- DEFINE $MG_TBL_F_R = '</div></div></div></div>' -->
<!-- DEFINE $MG_SPACER = '<img src="{T_THEME_PATH}/images/spacer.gif" width="1" height="4" alt="" />' -->
<!-- DEFINE $MG_MAX = '/images/icon_maximize.gif' -->
<!-- DEFINE $MG_MIN = '/images/icon_minimize.gif' -->
<!-- DEFINE $MG_MAX_PNG = '/images/icon_maximize.png' -->
<!-- DEFINE $MG_MIN_PNG = '/images/icon_minimize.png' -->
and the "sitelogo_small.png" i'm not found in overall_header.html, you have special function for this process ?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
<!-- INCLUDE _mg_config.html -->
<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
<script type="text/javascript" src="{T_TEMPLATE_PATH}/scripts.js"></script>
<script type="text/javascript">
// <![CDATA[
<!-- IF S_USER_PM_POPUP -->
if ({S_NEW_PM})
{
popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
}
<!-- ENDIF -->
function popup(url, width, height, name)
{
if (!name)
{
name = '_popup';
}
window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
return false;
}
function jumpto()
{
var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
var per_page = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';
if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
{
if (base_url.indexOf('?') == -1)
{
document.location.href = base_url + '?start=' + ((page - 1) * per_page);
}
else
{
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
}
}
}
/**
* Find a member
*/
function find_username(url)
{
popup(url, 760, 570, '_usersearch');
return false;
}
/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
var parent = document.getElementById(id);
if (!parent)
{
eval('parent = document.' + id);
}
if (!parent)
{
return;
}
var rb = parent.getElementsByTagName('input');
for (var r = 0; r < rb.length; r++)
{
if (rb[r].name.substr(0, name.length) == name)
{
rb[r].checked = state;
}
}
}
<!-- IF ._file -->
/**
* Play quicktime file by determining it's width/height
* from the displayed rectangle area
*
* Only defined if there is a file block present.
*/
function play_qt_file(obj)
{
var rectangle = obj.GetRectangle();
if (rectangle)
{
rectangle = rectangle.split(',')
var x1 = parseInt(rectangle[0]);
var x2 = parseInt(rectangle[2]);
var y1 = parseInt(rectangle[1]);
var y2 = parseInt(rectangle[3]);
var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
}
else
{
var width = 200;
var height = 0;
}
obj.width = width;
obj.height = height + 16;
obj.SetControllerVisible(true);
obj.Play();
}
<!-- ENDIF -->
// ]]>
</script>
<!--[if lt IE 7]>
<script type="text/javascript" src="{T_TEMPLATE_PATH}/pngfix.js"></script>
<![endif]-->
</head>
<body class="{S_CONTENT_DIRECTION}">
<a name="top"></a>
<!-- <div id="wrapper"> -->
<div style="width:{$MG_GLOBAL_WIDTH};clear:both;margin: 0 auto;">
<table width="100%" align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="leftshadow" width="9" valign="top"><img src="{T_THEME_PATH}/images/spacer.gif" alt="" width="9" height="1" /></td>
<td class="np-body" width="100%" valign="top">
<!--<div id="top_logo">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td height="150" align="left" valign="middle"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
<td align="center" valign="middle"><h1>{SITENAME}</h1><span class="gen">{SITE_DESCRIPTION}</span></td>
<td align="right" valign="top"> </td>
</tr>
</table>
</div>-->
<!-- INCLUDE menu_block.html -->
<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --><span style="color:#CC3333;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
<div id="wrapcentre">
<!-- IF S_USER_PM_POPUP and S_NEW_PM -->
<div style="margin-top:50px;margin-bottom:50px;text-align:center;clear:both;"><div class="popuppm-new"><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a></div></div>
<!-- ENDIF -->
Thx for Help
|
#3 Wed 21 Oct, 2009 22:26 |
|
spydie 
Joined: December 2008
Posts: 1796
Location:  In the Boxes
|
 Re: Black Pearl Max Width And Sitelogo_small.png
here you got your sitelogo_small.png
find this in overall header
<td height="150" align="left" valign="middle"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
If you want to take it totaly out of the header. just delet this line
____________ Out of Order
|
#4 Thu 22 Oct, 2009 00:15 |
|
Joshua203 
Joshua 203
Dutch A Go Go

Joined: August 2008
Posts: 1754
Location:  Earth, Europe, the Netherlands, Rotterdam
|
 Re: Black Pearl Max Width And Sitelogo_small.png
also if none of your edits seem to work ... purge the cache in your admin panel and clean your browser's cache and check again
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#5 Thu 22 Oct, 2009 12:29 |
|
Ripley 
Joined: October 2009
Posts: 76
Location:  Ufa
|
 Re: Black Pearl Max Width And Sitelogo_small.png
I just changed in \imageset this sitelogo_small.png to my logo and the problem was resolved
|
#6 Thu 22 Oct, 2009 12:56 |
|
Joshua203 
Joshua 203
Dutch A Go Go

Joined: August 2008
Posts: 1754
Location:  Earth, Europe, the Netherlands, Rotterdam
|
 Re: Black Pearl Max Width And Sitelogo_small.png
just is a pitty that this was not your problem
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#7 Thu 22 Oct, 2009 13:08 |
|
alkie2k
Joined: October 2009
Posts: 6
|
 Re: Black Pearl Max Width And Sitelogo_small.png
also if none of your edits seem to work ... purge the cache in your admin panel and clean your browser's cache and check again
ah ...  i have clean the "cache" folder of the forum and look , it works
but... , if i'm logged in , i use the german language, the menu with the buttons "log in" "messages" and the others in the line are to long and the max width are over 520px. Well i have edit "menu_block.html" and set <br> or <p> or new table but nothing works. Can you help me again ?
THX
|
#8 Thu 22 Oct, 2009 16:12 |
|
Joshua203 
Joshua 203
Dutch A Go Go

Joined: August 2008
Posts: 1754
Location:  Earth, Europe, the Netherlands, Rotterdam
|
 Re: Black Pearl Max Width And Sitelogo_small.png
well i guess you can try this two ways:
1. you can go to the german language directory and find the replacement texts to make translated words/terms shorter (they probably are found in language/german/common.php)
2. or try what you allready tried but avoid putting BR between <!--IF ........ --> and <!-- ENDIF -->, becaue the "IF" will not be handled and will be skipped if it is not true.
*if you try number 2 you may also need to look at the height of forum-buttons in the stylesheet.css
i hope this helped alittle
editted a couple of times to make it understandable
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#9 Thu 22 Oct, 2009 19:12 |
|
alkie2k
Joined: October 2009
Posts: 6
|
 Re: Black Pearl Max Width And Sitelogo_small.png
well i guess you can try this two ways:
1. you can go to the german language directory and find the replacement texts to make translated words/terms shorter (they probably are found in language/german/common.php)
2. or try what you allready tried but avoid putting BR between <!--IF ........ --> and <!-- ENDIF -->, becaue the "IF" will not be handled and will be skipped if it is not true.
*if you try number 2 you may also need to look at the height of forum-buttons in the stylesheet.css
i hope this helped alittle
editted a couple of times to make it understandable 
YES  i have delete the height in the stylesheet.css take a <br> and new <table> in "menu_block.html"
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="forum-buttons" colspan="0">
<!-- IF not S_IS_BOT -->
<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED -->
<a href="{U_REGISTER}">{L_REGISTER}</a> <img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />
<!-- ENDIF -->
<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a> <img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />
<!-- IF S_USER_LOGGED_IN -->
<a href="{U_PROFILE}">{L_PROFILE}</a><br>
<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS -->
<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a></td>
</tr>
<tr>
<td class="forum-buttons" colspan="3"><img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />
<!-- ENDIF -->
<a href="{U_INDEX}">{L_FORUM}</a> <img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />
<!-- IF not S_IS_BOT -->
<!-- IF S_USER_LOGGED_IN -->
<!-- IF S_DISPLAY_PM -->
<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->
<a href="#"> / </a><a href="{U_PRIVATEMSGS}" class="PM-new-link">{PRIVATE_MESSAGE_INFO_UNREAD}</a>
<!-- ENDIF -->
<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_DISPLAY_MEMBERLIST -->
<a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a> <img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
<!-- IF S_DISPLAY_SEARCH -->
<a href="{U_SEARCH}">{L_SEARCH}</a> <img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />
<!-- ENDIF -->
<a href="{U_FAQ}">{L_FAQ}</a></td>
</tr>
</table>
and i think it works now after delete cache-folder again
well now my last question about the style (i think for now  ), in witch file are the "shadow_left.gif" and "shadow_right.gif" that i can delete it ?
THX
|
#10 Thu 22 Oct, 2009 22:47 |
|
Joshua203 
Joshua 203
Dutch A Go Go

Joined: August 2008
Posts: 1754
Location:  Earth, Europe, the Netherlands, Rotterdam
|
 Re: Black Pearl Max Width And Sitelogo_small.png
uuuuhhm viewing that code just quickly i would say turn it around, i mean add the new part at the bottom
left shadow in overal header and right shadow in overal footer
maybe even in simple header and footer?
Edit: spelling
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#11 Thu 22 Oct, 2009 23:28 |
|
Ripley 
Joined: October 2009
Posts: 76
Location:  Ufa
|
 Re: Black Pearl Max Width And Sitelogo_small.png
well now my last question about the style (i think for now  ), in witch file are the "shadow_left.gif" and "shadow_right.gif" that i can delete it ?
THX[/quote]
You may edit css and change width shadow left and shadow right from 9px (or 10px) to 0px. Or find what color is np-body (background) and make pics shad.left and shad.right. same style and color and change them.
Or the better is to open overall header and find this <td class="leftshadow" width="9" valign="top"><img src="{T_THEME_PATH}/images/spacer.gif" alt="" width="9" height="1" /></td> guess this must be deleted
In overall footer <td class="rightshadow" width="9" valign="top"><img src="{T_THEME_PATH}/images/spacer.gif" alt="" width="9" height="1" /></td>
I may mistake with third example... But you can try both of them easy. Just copy to notepad before make any changes
|
#12 Fri 23 Oct, 2009 12:20 |
|
alkie2k
Joined: October 2009
Posts: 6
|
 Re: Black Pearl Max Width And Sitelogo_small.png
Ok the 2nd way works. Now, after the configuration for the style i can't create topics, the create toppic button are not there.
Now i have delete the style, download from your page, extract and upload on my server. I changed the style again, the same problem. If i go back
to default style (prosilver phpbb default style) i can see the button and it works. Why?
|
#13 Fri 23 Oct, 2009 16:51 |
|
Joshua203 
Joshua 203
Dutch A Go Go

Joined: August 2008
Posts: 1754
Location:  Earth, Europe, the Netherlands, Rotterdam
|
 Re: Black Pearl Max Width And Sitelogo_small.png
it's kinda hard to tell why without anything to look at, like the changed code, a link to the board or even a screenshot
please post more info
also did you read this?:
Joshua203 wrote: uuuuhhm viewing that code just quickly i would say turn it around, i mean add the new part at the bottom
i am not saying this is the cause but it might be
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#14 Fri 23 Oct, 2009 18:46 |
|
alkie2k
Joined: October 2009
Posts: 6
|
 Re: Black Pearl Max Width And Sitelogo_small.png
Well, i have found what was wrong...
i have needed a german folder for german language, so have change the en to de and it works now...
Alkie2k
|
#15 Fri 23 Oct, 2009 19:00 |
|
|
Page 1 of 2
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
Similar Topics
Similar Topics
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|