|
Page 1 of 1
|
BlancoLanda
Joined: July 2009
Posts: 8
|
Link Clicking In The Banner (top_header.png) Milky_Way's Style
Some days ago I posted some problems that I cought fix, the result: fifa-gaming.com.ar.
I would like to redirect to the portal when I click in the header banner (top_header.png)
Probably I have to add some command at the stylesheet.css
#top_logo{
border-width: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
background: url('./images/top_header.png') repeat;
height: 150px;
}
But I don't know that command and it would be nice if you give me it.
I just want to redirect to the portal (fifa-gaming.com.ar URL) when I click in the banner, I hope you understand what I'm talking about.
Thank you very much!
|
#1 Sun 26 Jul, 2009 23:39 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
spydie
Joined: December 2008
Posts: 1796
Location: In the Boxes
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
up´s
look´s like you´ve removed sitelogo_small totaly.
sitelogo_small was linking back to index automaticly.
why don´t you create a white backround or transparent.
then you create your logo as sitelogo_small with full size of header and adjust it to your header.
the original code link´s you back
Edit
sry i did´nt see the PhpBB mod issue.
What i said before is for Icy
can you post your overall_header file PLs.
____________ Out of Order
|
#2 Sun 26 Jul, 2009 23:54 |
|
BlancoLanda
Joined: July 2009
Posts: 8
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
Thank you for the fast reply!
Overall_header:
<!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 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 -->
I also will upload the file in a .rar file if you want
Description: |
|
Download |
Filename: |
overall_header.rar |
Filesize: |
2.1 KB |
Downloaded: |
192 Time(s) |
|
#3 Mon 27 Jul, 2009 00:28 |
|
spydie
Joined: December 2008
Posts: 1796
Location: In the Boxes
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
try this.
tell me what happens.
Description: |
|
Download |
Filename: |
overall_header.rar |
Filesize: |
2.11 KB |
Downloaded: |
242 Time(s) |
____________ Out of Order
|
#4 Mon 27 Jul, 2009 00:44 |
|
BlancoLanda
Joined: July 2009
Posts: 8
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
Anything happens, it seems that doesn't work.
I tried purging the caché of the style and purging the cache of the ACP.
|
#5 Mon 27 Jul, 2009 01:01 |
|
spydie
Joined: December 2008
Posts: 1796
Location: In the Boxes
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
post the file you´ve located this code please
- #top_logo{
- border-width: 0px 0px 0px 0px;
- margin: 0px 0px 0px 0px;
- padding: 0px 0px 0px 0px;
- background: url('./images/top_header.png') repeat;
- height: 150px;
- }
and the original one aswell. without editing if you still got it
____________ Out of Order
|
#6 Mon 27 Jul, 2009 09:52 |
|
Inactive User
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
Try this:
HTML
Find:
<a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
Replace with:
<a href="./portal.php"><img src="./styles/milky_way/theme/images/top_header.png" alt="" title="" height="150" width="960"></a></td>
CSS:
Replace the #top_logo block with this.
#top_logo{
border-width: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
background-color: #c0c0c0;
height: 150px;
}
You WILL have to resize top_header.png to about 960px wide to fit the header and this -> height="150" width="960" to whatever you end up with.
|
#7 Mon 27 Jul, 2009 10:15 |
|
spydie
Joined: December 2008
Posts: 1796
Location: In the Boxes
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
That´s what i´ve been thinking about, LOPA.
But since i haven´t got the files, I wanted him to post them so i can have a look.
Because it look´s to me like he deleted the logo image and put his image in the backround.
that´s why the link does´nt work.
Well in my thinking
____________ Out of Order
|
#8 Mon 27 Jul, 2009 10:24 |
|
Inactive User
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
You already told him what to do here:
spydie wrote: why don´t you create a white background or transparent.
then you create your logo as sitelogo_small with full size of header and adjust it to your header.
the original code link´s you back
But obviously he doesn't understand what needs to be done and where to do it.
|
#9 Mon 27 Jul, 2009 10:57 |
|
BlancoLanda
Joined: July 2009
Posts: 8
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
Try this:
HTML
Find:
<a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
Replace with:
<a href="./portal.php"><img src="./styles/milky_way/theme/images/top_header.png" alt="" title="" height="150" width="960"></a></td>
CSS:
Replace the #top_logo block with this.
#top_logo{
border-width: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
background-color: #c0c0c0;
height: 150px;
}
You WILL have to resize top_header.png to about 960px wide to fit the header and this -> height="150" width="960" to whatever you end up with.
Weird, I did those changes, at the CSS and at the overall_header.html, but I announced that in overall_header.html there isn't exactly:
<a href="{U_INDEX}">{SITE_LOGO_IMG}</a></td>
There is:
<a href="{FULL_SITE_PATH}{U_INDEX}">{SITE_LOGO_IMG}</a></td>
I tried remplacing that and remplacing what you written for the CSS and the image/url does not appear:
Now I will re-upload the original overall_header.html for fix again the banner (but it hasn't got the link)
EDIT: I re-uploaded the original overall_header.html and nothing happend, but the banner reappeared when I re-uploaded the old stylesheet.
EDIT 2: uploading the old stylesheet and the new html worked, now I just have to edit the banner so it has a nice view.
Thank you very much for your help.
|
#10 Mon 27 Jul, 2009 11:38 |
|
spydie
Joined: December 2008
Posts: 1796
Location: In the Boxes
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
- <a href="{FULL_SITE_PATH}{U_INDEX}">{SITE_LOGO_IMG}</a></td>
that was the change i tried
____________ Out of Order
|
#11 Mon 27 Jul, 2009 11:49 |
|
jdeezy
Joined: November 2009
Posts: 1
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
I know this topic is old but I wanted to post the answer to this because it's so easy and others will finally have an answer to this question.
All you need to do is look in Overall_header and find the 'div' tag that your banner resides in. In this guy's case his banner lies in the "top_logo" div tag.
Once you find the div then just place a simple <a href="h**p://site.com/forum/portal.php"> above the <div id="top_logo"> and then below the </div> you would place </a> and that's it LOL.
Hope this helps everyone.
|
#12 Tue 10 Nov, 2009 12:28 |
|
Informpro
Joined: October 2008
Posts: 1110
Location:
|
Re: Link Clicking In The Banner (top_header.png) Milky_Way's Style
This problem has been solved and the site is died ...
|
#13 Tue 10 Nov, 2009 14:17 |
|
|
Page 1 of 1
|
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
|
|
|
|