Link kleur
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

Link kleur
Vraagje ?
mijn links hebben nu dezelfde kleur als de gewone tekst, namelijk zwart.
Waar kan ik aanpassen dat de links een andere kleur krijgen ?
mijn links hebben nu dezelfde kleur als de gewone tekst, namelijk zwart.
Waar kan ik aanpassen dat de links een andere kleur krijgen ?
templates/subSilver/bbcode.tpl:
includes/bbcode.php:
Code: Selecteer alles
<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->Code: Selecteer alles
// matches an "xxxx://yyyy" URL at the start of a line, or after a space.
// xxxx can only be alpha characters.
// yyyy is anything up to the first space, newline, comma, double quote or <
$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);
// matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
// Must contain at least 2 dots. xxxx contains either alphanum, or "-"
// zzzz is optional.. will contain everything up to the first space, newline,
// comma, double quote or <.
$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
// matches an email@domain type address at the start of a line, or after a space.
// Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
$ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);- WebSiteNet
- Berichten: 6524
- Lid geworden op: 20 okt 2003, 16:56
- Locatie: Wieringerwerf
- Contacteer:
ja het gaat over een link kleur voorbeeld een url meedelen in een bericht is moeilijk te zien of het een link is omdat het dezelde kleur isals de tekst in het bericht.
Ik heb dat al eens veranderd in mijn admin paneel maar dit veranderd niet ?
En in overall_header.tpl zie ik nergens een kleurcode staan ?
hier mijn overall_header code
----------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css"></head><body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/graphite/{T_HEAD_STYLESHEET}" type="text/css" />
<style type="text/css">
<!--
TH { background-image: url(templates/graphite/images/{T_TH_CLASS2}) }
TD.cat { background-image: url(templates/graphite/images/{T_TH_CLASS1}) }
TD.rowpic { background-image: url(templates/graphite/images/{T_TH_CLASS3}); background-repeat: repeat-y }
TD.catHead,TD.catSides,TD.catLeft,TD.catRight,TD.catBottom { background-image: url(templates/graphite/images/{T_TH_CLASS1}) }
-->
</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
<a name="top"></a>
<table width="100%" border="1" bordercolor="#000000"background="templates/graphite/images/head_bg.jpg">
<tr>
<td bordercolor="#e5e5e5">
<table width="100%" border="0">
<tr>
<td>
<div align="left"><a href="index.php"><img src="templates/graphite/images/header.gif" width="500" height="100" alt="Home to {SITENAME}" border="0"></a></div>
</td>
</tr>
</table>
<table width="100%" border="1" bordercolor="#000000"background="templates/graphite/images/gradbox.jpg">
<tr>
<td height="23" bordercolor="#E5E5E5">
<div align="center"><a href="faq.php"><img src="templates/graphite/images/nav_faq.gif" width="59" height="18" alt="FAQ" style="padding-top: 3px;" hspace="5" border="0"></a><a href="search.php"><img src="templates/graphite/images/nav_search.gif" width="59" height="18" alt="Search" style="padding-top: 3px;" hspace="5" border="0"></a><a href="memberlist.php"><img src="templates/graphite/images/nav_members.gif" width="59" height="18" alt="Members" style="padding-top: 3px;" hspace="5" border="0"></a><a href="groupcp.php"><img src="templates/graphite/images/nav_groups.gif" width="59" height="18" alt="Groups" style="padding-top: 3px;" hspace="5" border="0"></a><a href="profile.php?mode=editprofile"><img src="templates/graphite/images/nav_profile.gif" width="59" height="18" alt="Profile" style="padding-top: 3px;" hspace="5" border="0"></a><a href="privmsg.php?folder=inbox"><img src="templates/graphite/images/nav_pms.gif" width="59" height="18" alt="PMs" style="padding-top: 3px;" hspace="5" border="0"></a><a href="profile.php?mode=register"><img src="templates/graphite/images/nav_register.gif" width="59" height="18" alt="Register" style="padding-top: 3px;" hspace="5" border="0"></a><a href="login.php"><img src="templates/graphite/images/nav_login.gif" width="59" height="18" alt="Login" style="padding-top: 3px;" hspace="5" border="0"></a><a href="login.php?logout=true"><img src="templates/graphite/images/nav_logout.gif" width="59" height="18" alt="Logout" style="padding-top: 3px;" hspace="5" border="0"></a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Ik heb dat al eens veranderd in mijn admin paneel maar dit veranderd niet ?
En in overall_header.tpl zie ik nergens een kleurcode staan ?
hier mijn overall_header code
----------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css"></head><body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/graphite/{T_HEAD_STYLESHEET}" type="text/css" />
<style type="text/css">
<!--
TH { background-image: url(templates/graphite/images/{T_TH_CLASS2}) }
TD.cat { background-image: url(templates/graphite/images/{T_TH_CLASS1}) }
TD.rowpic { background-image: url(templates/graphite/images/{T_TH_CLASS3}); background-repeat: repeat-y }
TD.catHead,TD.catSides,TD.catLeft,TD.catRight,TD.catBottom { background-image: url(templates/graphite/images/{T_TH_CLASS1}) }
-->
</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
<a name="top"></a>
<table width="100%" border="1" bordercolor="#000000"background="templates/graphite/images/head_bg.jpg">
<tr>
<td bordercolor="#e5e5e5">
<table width="100%" border="0">
<tr>
<td>
<div align="left"><a href="index.php"><img src="templates/graphite/images/header.gif" width="500" height="100" alt="Home to {SITENAME}" border="0"></a></div>
</td>
</tr>
</table>
<table width="100%" border="1" bordercolor="#000000"background="templates/graphite/images/gradbox.jpg">
<tr>
<td height="23" bordercolor="#E5E5E5">
<div align="center"><a href="faq.php"><img src="templates/graphite/images/nav_faq.gif" width="59" height="18" alt="FAQ" style="padding-top: 3px;" hspace="5" border="0"></a><a href="search.php"><img src="templates/graphite/images/nav_search.gif" width="59" height="18" alt="Search" style="padding-top: 3px;" hspace="5" border="0"></a><a href="memberlist.php"><img src="templates/graphite/images/nav_members.gif" width="59" height="18" alt="Members" style="padding-top: 3px;" hspace="5" border="0"></a><a href="groupcp.php"><img src="templates/graphite/images/nav_groups.gif" width="59" height="18" alt="Groups" style="padding-top: 3px;" hspace="5" border="0"></a><a href="profile.php?mode=editprofile"><img src="templates/graphite/images/nav_profile.gif" width="59" height="18" alt="Profile" style="padding-top: 3px;" hspace="5" border="0"></a><a href="privmsg.php?folder=inbox"><img src="templates/graphite/images/nav_pms.gif" width="59" height="18" alt="PMs" style="padding-top: 3px;" hspace="5" border="0"></a><a href="profile.php?mode=register"><img src="templates/graphite/images/nav_register.gif" width="59" height="18" alt="Register" style="padding-top: 3px;" hspace="5" border="0"></a><a href="login.php"><img src="templates/graphite/images/nav_login.gif" width="59" height="18" alt="Login" style="padding-top: 3px;" hspace="5" border="0"></a><a href="login.php?logout=true"><img src="templates/graphite/images/nav_logout.gif" width="59" height="18" alt="Logout" style="padding-top: 3px;" hspace="5" border="0"></a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
- martijndoes
- Berichten: 120
- Lid geworden op: 09 sep 2004, 20:34
- martijndoes
- Berichten: 120
- Lid geworden op: 09 sep 2004, 20:34
Als je de waarde in je admincp niet wilt aanpassen (en het dus hard wil opgeven ipv in je stylesheet) kan je in de stukjes code die ik gaf zoiets toevoegen aan de anchor (<a>) tags:Jacky schreef:Ik zie in de code nergens een kleurlink staan ?
Maar ik snap daar ook weinig vankan het simpel worden uitgelegd ?
Code: Selecteer alles
style="color:#666666;"