Jim B
Problembeschreibung:
Ich besitze die Forenversion 2.3.6 und habe das Portal 4.0.1 installiert. Ich hab mir hier aus dem Board einen älteren Style geladen und installiert. Der dazugehörige "portal-Button" ist auch dabei, allerdings nicht in der Menuleiste integriert. Ich möchte jetzt diesen Button einbauen und auf das Portal verweisen lassen.
Fehlermeldung:
Keine
Link zum Forum oder Screenshot:
http://www.leanbodies.de/wbb2/portal.php
Was wurde zuletzt geändert oder eingebaut?
Portal 4.0.1
Gruß Jim
fireglow305
Das Portal von JGS?
Bin mir jetzt nicht ganz sicher aber probier mal das hier:
| code: |
1:
|
<a href="jgs_portal.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_portal.gif" border="0" alt="" /></a> |
|
Jim B
Das Portal heißt mywbb-Portal 4.0.1
Was mache ich mit diesem Code? Hab keine Ahnung, wohin damit.
fireglow305
Das von mywbb kenne ich nicht,sorry. Am besten da mal nachfragen.
Hier steh auch nochmal wie man Buttons in den Header einfügt
Buttons im Header einfügen
Jim B
Danke, habs jetzt mit folgendem Code hinbekommen:
| Zitat: |
| <a href=\\\"portal.php{\$SID_ARG_1ST}\\\"><img src=\\\"{\$style['imagefolder']}/top_portal.gif\\\" border=\\\"0\\\" alt=\\\"{\$lang->items['LANG_GLOBAL_USERCP']}\\\" title=\\\"{\$lang->items['LANG_GLOBAL_USERCP']}\\\" /></a> |
Biggi
Die ganzen Backslashes hast du aber nicht wirklich im Code, oder?
Und du hast als alternativen Text und als Titel der Graphik die Sprachvariable vom Profil-Button dringelassen. Wenn du ein einsprachiges Board hast, schreib da doch einfach sowas rein:
alt="Zum Portal" title="Zum Portal"
Wenn dein Board mehrsprachig ist, machst du dir besser eigene Sprachvariablen dafür.
Jim B
Hab den Code nochmal ohne Backslashes eingefügt.
Ein Problem ist mir aufgefallen: Der Portal Button wird nur für angemeldete User angezeigt. Woran könnte das liegen?
Biggi
Du wirst ihn in eine if-Abfrage reingeschrieben haben. Zeig mal den Code aus deinem Template header her.
Schweinebacke
Es darf nicht zwischen einer if-Abfrage liegen.
| code: |
1:
|
<if($wbbuserdata['userid'])><then> -- hier der Link plus Button -- </then></if> |
|
Edit:
zweimal ist ja auch nicht schlecht
Schweinebacke
wenn der Button als Erstes erscheine soll dann so:
| code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
|
table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
<tr>
<td class="mainpage" align="center" background="{$style['imagefolder']}/innen_bg.gif">
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="{$style['imagefolder']}/logo_l.gif" alt="" /></td>
<td style="background-image: url({$style['imagefolder']}/logo_bg.gif); width:100%;" align="center" ></td>
<td><if($style['logoimage']!="")><then><a href="index.php?sid=$session[hash]"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if></td>
</tr>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="{$style['imagefolder']}/teiler_l.gif" alt="" /></td>
<td style="background-image: url({$style['imagefolder']}/teiler_bg.gif); width:100%;" align="center" ></td>
<td><img src="{$style['imagefolder']}/teiler_r.gif" alt="" /></td>
</tr>
<table style="width: 100%; height: 54px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" style="height: 54px; width: 173px;" nowrap="nowrap"><img src="{$style['imagefolder']}/top_l.gif" border="0" alt="" /></td>
<td align="right" nowrap="nowrap" style="background-image: url({$style['imagefolder']}/top_bg.gif); background-repeat: repeat-x; vertical-align: top; width: 100%;">
<span class="smallfont"><a href="portal.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_portal.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TOPORTAL']}" title="{$lang->items['LANG_GLOBAL_TOPORTAL']}" /></a>
<if($wbbuserdata['userid'])><then><a href="usercp.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" /></a>
<a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" /></a></then><else>
<a href="register.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" /></a></else></if>
<a href="memberslist.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_members.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" title="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" /></a>
<a href="team.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_team.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TEAM']}" title="{$lang->items['LANG_GLOBAL_TEAM']}" /></a>
<a href="misc.php?action=faq{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/top_faq.gif" border="0" alt="{$lang->items['LANG_GLOBAL_FAQ']}" title="{$lang->items['LANG_GLOBAL_FAQ']}" /></a>
<a href="calendar.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_calendar.gif" border="0" alt="{$lang->items['LANG_GLOBAL_CALENDAR']}" title="{$lang->items['LANG_GLOBAL_CALENDAR']}" /></a>
<a href="search.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_search.gif" border="0" alt="{$lang->items['LANG_GLOBAL_SEARCH']}" title="{$lang->items['LANG_GLOBAL_SEARCH']}" /></a>
<a href="index.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_start.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TOINDEX']}" title="{$lang->items['LANG_GLOBAL_TOINDEX']}" /></a>
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_acp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_ACP']}" title="{$lang->items['LANG_GLOBAL_ACP']}" /></a></then></if>
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_modcp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MODCP']}" title="{$lang->items['LANG_GLOBAL_MODCP']}" /></a></then></if></span></td>
<td align="right"><img src="{$style['imagefolder']}/top_r.gif" border="0" alt="" /></td>
</tr>
</table><br /> |
|
Jim B
Mit dem Header ist der Portalbutton richtig gesetzt, aber das Hintergrundbild ist verschwunden und manche Grafiken sind minimal verschoben.
Schweinebacke
Ich habe einen Zeilenumbruch mit dem Editor im Quelltext drin, das könnte den Abstand der Buttons verursachen.
Den Code der Links mal wieder in eine Zeile setzen.
| code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
|
table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
<tr>
<td class="mainpage" align="center" background="{$style['imagefolder']}/innen_bg.gif">
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="{$style['imagefolder']}/logo_l.gif" alt="" /></td>
<td style="background-image: url({$style['imagefolder']}/logo_bg.gif); width:100%;" align="center" ></td>
<td><if($style['logoimage']!="")><then><a href="index.php?sid=$session[hash]"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if></td>
</tr>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="{$style['imagefolder']}/teiler_l.gif" alt="" /></td>
<td style="background-image: url({$style['imagefolder']}/teiler_bg.gif); width:100%;" align="center" ></td>
<td><img src="{$style['imagefolder']}/teiler_r.gif" alt="" /></td>
</tr>
<table style="width: 100%; height: 54px;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" style="height: 54px; width: 173px;" nowrap="nowrap"><img src="{$style['imagefolder']}/top_l.gif" border="0" alt="" /></td>
<td align="right" nowrap="nowrap" style="background-image: url({$style['imagefolder']}/top_bg.gif); background-repeat: repeat-x; vertical-align: top; width: 100%;">
<span class="smallfont"><a href="portal.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_portal.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TOPORTAL']}" title="{$lang->items['LANG_GLOBAL_TOPORTAL']}" /></a><if($wbbuserdata['userid'])><then><a href="usercp.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" /></a><a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" /></a></then><else><a href="register.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" /></a></else></if><a href="memberslist.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_members.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" title="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" /></a><a href="team.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_team.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TEAM']}" title="{$lang->items['LANG_GLOBAL_TEAM']}" /></a><a href="misc.php?action=faq{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/top_faq.gif" border="0" alt="{$lang->items['LANG_GLOBAL_FAQ']}" title="{$lang->items['LANG_GLOBAL_FAQ']}" /></a><a href="calendar.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_calendar.gif" border="0" alt="{$lang->items['LANG_GLOBAL_CALENDAR']}" title="{$lang->items['LANG_GLOBAL_CALENDAR']}" /></a><a href="search.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_search.gif" border="0" alt="{$lang->items['LANG_GLOBAL_SEARCH']}" title="{$lang->items['LANG_GLOBAL_SEARCH']}" /></a><a href="index.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_start.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TOINDEX']}" title="{$lang->items['LANG_GLOBAL_TOINDEX']}" /></a><if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_acp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_ACP']}" title="{$lang->items['LANG_GLOBAL_ACP']}" /></a></then></if><if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_modcp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MODCP']}" title="{$lang->items['LANG_GLOBAL_MODCP']}" /></a></then></if></span></td><td align="right"><img src="{$style['imagefolder']}/top_r.gif" border="0" alt="" /></td>
</tr>
</table><br /> |
|
Welches Hintergrundbild ist verschwunden?
Jim B
Habs eben schon hinbekommen. Vielen Dank