Hacks4wbb by HFW™ (https://hacks4wbb.de/index.php)
- WBB Bereich (https://hacks4wbb.de/board.php?boardid=20)
--- wbb2.3.6 Start (https://hacks4wbb.de/board.php?boardid=441)
---- Dokumentationen|Codeschnipsel (https://hacks4wbb.de/board.php?boardid=445)
----- [Codeschnipsel] Bild bei neuer PN (https://hacks4wbb.de/thread.php?threadid=32228)


Geschrieben von omar am 10.03.2023 um 03:08:

  Bild bei neuer PN

global.php


suche:
code:
1:
2:
3:
/** default templates **/
$header_pms = '';
$header_acp = '';


fuege darueber ein:

code:
1:
if($wbbuserdata['pmnewcount']!= 0) $newpms = '1';

header.tpl

fuege ganz am Ende ein:



code:
1:
2:
3:
<if($newpms == 1)><then>
<center><marquee scrollamount=7 onmouseover="mar.stop()" onmouseout="mar.start()"><a href="pms.php?sid=$session[hash]"><img src="images/pms.gif" alt="Du hast Post" title="Du hast Post" border="0"></a></marquee></center><br />
</then></if>


Wenn du mehrere Styles hast, muss die AEnderung in allen header.tpl vorgenommen werden!

Lade ein Bild deiner Wahl in den Ordner wbb2/images/ und nenne es pms.gif

Viel Spass

alfie



Geschrieben von omar am 10.03.2023 um 03:12:

  das bild stehen bleibt wenn mann mit der maus drauf kommt

header tpl


aendern:

code:
1:
2:
3:
<if($newpms == 1)><then>
<center><marquee scrollamount=7 onmouseover="this.stop()" onmouseout="this.start()"><a href="pms.php?sid=$session[hash]"><img src="images/pms.gif" alt="Du hast Post" title="Du hast Post" border="0"></a></marquee></center><br />
</then></if>



Geschrieben von omar am 10.03.2023 um 03:13:

  Text Zusatz davor

php:
1:
2:
3:
<if($newpms == 1)><then>
<center><marquee scrollamount=7 onmouseover="mar.stop()" onmouseout="mar.start()">SIE HABEN POST!!! <a href="pms.php?sid=$session[hash]"><img src="images/pms.gif" alt="Du hast Post" title="Du hast Post" border="0"></a></marquee></center><br />
</then></if>


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH