Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Banner in einem Forum ändern!

Empfohlene Antworten

Ich kann die php-abrage nicht finden.

Ne Idee wo sie sich befinden könnte?

MfG

Loomit

  • Antworten 65
  • Ansichten 4.4k
  • Erstellt
  • Letzte Antwort

Sorry ich hab leider selbst noch nie mit dieser ForenSoftware gearbeitet die du verwendest.

Gruß,

Markus

Den Quelltext vom Header hab ich doch mal gepostet:

<table style=width:{$style['tableoutwidth]}" cellpadding="{$style['tableoutcellpadding']}" cellspacing={$style['tableoutcellspacing]}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">

<tr>

<td class="mainpage" align="center">

<table style="width:100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td class="" align="center">

<table>

<tr>

<td>

<if($style['logoimage']!="")><then><a href="index.php?sid=$session[hash]"><img

src="images/logostone.jpg" border="0" alt="$master_board_name" title="$master_board_name"/></a></then></if>

</td>

<td align="right" ><img src="images/leer.gif">   </td><td><a href="http://www2.sbsd.de/" target="_blank" ><img src="images/sbsd.gif" border="0"></a>

</td>

</tr>

</table>

</td>

<tr>

Das ist der neue mit dem 2. integrierten Banner!

versuch ma ob du was in der richtung

<if($user

in irgendeinem template finden kannst...

Ich hab sowas gefunden!

<tr>

<td class="tableb" width="20%" align="center"><img src="hm-portal/images/authors1.gif" border="0" alt="" />

<br /><span class="smallfont"><a href="wiw.php?sid=$session[hash]">{$lang->items['LANG_HMPORTAL_ONLINE_WHERELINK']}</a></span>

</td>

<td class="tablea" width="80%" align="center" colspan="9"><span class="smallfont">

<if($totaluseronline==1)>

<then>{$lang->items['LANG_HMPORTAL_ONLINE_ONEUSER']}</then>

<else>{$lang->items['LANG_HMPORTAL_ONLINE_SEVUSERS1']} $totaluseronline {$lang->items['LANG_HMPORTAL_ONLINE_SEVUSERS2']}</else>

</if><br />

$useronline<br />

<if($guestcount==1)>

<then>{$lang->items['LANG_HMPORTAL_ONLINE_ONEGUEST']}</then>

<else>$guestcount {$lang->items['LANG_HMPORTAL_ONLINE_SEVGUESTS']}</else>

</if><br />

</span></td>

</tr>

$pchattin

das sind zwar alles if clauses aber nicht die richtigen :).

Die Menustruktur ändert sich wenn mann eingeloggt ist oder?

( Also z.b. aus "Anmelden" wird "Ausmelden")

Dann musst du das Template suchen, indem diese "Menuleiste" eingelendet wird.

Darin sollte dann ein entsprechender IF-Clause sein.

Eine andere Möglichkeit wäre auch, dass der IF-Clause im PHP liegt anstatt im Template.

Am besten du durchsuchst mal die kompletten sourcen noch "login" "anmelden" "loggedin" etc... und schaust ob du was brauchbares findest.

du könntest mir auch per Mail die Sourcen schicken, dann schau ich ma rein!

Gruß,

Markus

Wie soll ich dir die sourcen schicken wenn nur ich Zugang zu den Templates

habe?

Sowas?

<if($allowloginencryption==1)><then>

<script type="text/javascript" src="js/sha1.js"></script>

<script type="text/javascript" src="js/crypt.js"></script></then></if>

</head>

<body>

$header

<form action="login.php" method="post" name="loginform"<if($allowloginencryption==1)><then> onsubmit="return encryptlogin(this);"</then></if>>

<input type="hidden" name="send" value="send" />

<input type="hidden" name="sid" value="$session[hash]" />

<if($allowloginencryption==1)><then>

<input type="hidden" name="authentificationcode" value="$session[authentificationcode]" />

<input type="hidden" name="crypted" value="false" /></then></if>

<table cellpadding="{$style['tableincellpadding']}" cellspacing={$style['tableincellspacing]}" border="{$style['tableinborder']}" class="tableinborder">

<tr>...................................................................

<if($allowloginencryption==1)><then>.......................

<if($allowloginencryption==1)><then>........................

Denkt ihr das dieser Code richtig ist, denn ich bin mir nicht sicher:

<if !$wbbuserdata['userid']><then>BANNER</then></if>

Und theoretisch müsste ich diesen Code in das Template vom Header

schreiben! Oder?

Denkt ihr das dieser Code richtig ist, denn ich bin mir nicht sicher:

<if !$wbbuserdata['userid']><then>BANNER</then></if>

das sieht doch ganz gut aus!

Und theoretisch müsste ich diesen Code in das Template vom Header

schreiben! Oder?

Jop

sollte dann ungefähr so aussehen:


<table width="200" border="1">

     <tr>

       <td class="" align="left"><if($style['logoimage']!="")><then><a href="index.php?sid=$session[hash]"><img 

      src="images/logostone.jpg" border="0" alt="$master_board_name" title="$master_board_name"/></a></then></if></td>

    </td>

<if !$wbbuserdata['userid']><then><td>

sponsered by...</td></then></if>

     </tr>

   </table>

Das Gnaze sieht bei mir aber so aus:

<table style="width:{$style['tableoutwidth']}" cellpadding={$style['tableoutcellpadding]}" cellspacing="{$style['tableoutcellspacing']}" align=center" border="{$style['tableoutborder]}" class="tableoutborder">

<tr>

<td class="mainpage" align="center">

<table style="width:100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td class="" align="center">

<table>

<tr>

<td>

<if($style['logoimage']!="")><then><ahref="index.php?sid=$session[hash]"><img src="images/logostone.jpg" border="0" alt="$master_board_name" title="$master_board_name"/></a></then></if>

</td>

<td align="right" ><img src="images/leer.gif">   </td><td><a href="http://www2.sbsd.de/" target="_blank" ><img src="images/sbsd.gif" border="0"></a>

</td>

</tr>

</table>

</td>

<tr>

Es tut mir leid das ich das nicht auf die Reihe bekomme!

Aber vielen Dank für deine Geduld und Hilfe!

Es tut mir leid das ich das nicht auf die Reihe bekomme!

Aber vielen Dank für deine Geduld und Hilfe!

keine Problem....

so müsste es gehen:

<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">

 <tr>

  <td class="mainpage" align="center">

   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">

    <tr> 

 <td class="" align="center">

<table>

<tr>

  <td>

    <if($style['logoimage']!="")><then><ahref="index.php?sid=$session[hash]"><img src="images/logostone.jpg" border="0" alt="$master_board_name" title="$master_board_name"/></a></then></if>

 </td>

<if !$wbbuserdata['userid']><then><td align="right" ><img src="images/leer.gif">   </td><td><a href="http://www2.sbsd.de/" target="_blank" ><img src="images/sbsd.gif" border="0"></a>

 </td></then></if>

</tr>

</table>

</td>

 <tr>


PS: gewöhn dir bitte an Source Code in CODE oder PHP Tags zu schreiben sieht besser aus und ist lesbarer

Tut mir leid, aber das geht nicht.

Wenn ich den code eingebe, dann gehen alle Banner oben weg,

egal ob ich angemeldet bin oder nicht.

:confused:

also ich hab mir den code oben jetzt noch 2 x angeschaut, aber ich glaub das er richtig ist.

hast du vielleicht einen Fehler beim Copy&Paste gemacht?

Nein ich habe nichts falsch gemacht beim kopieren und einfügen!

:confused:

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.