Hallo zusammen,
ich habe in der logininfo einen Link zu den Privaten Nachrichten im Woltlab Burning Board. (forum/index.php?page=PMList)
Ich möchte aber bei erhalt einer Nachricht, hinter dem Link auch eine 1 oder andere Zahl steht.
Dazu muss man die Datenbank passend auslesen. Ich muss auf wcf1_user zugreifen und pmOutstandingNotifications auslesen. Das was dort steht ist die Anzahl der noch ungelesenen Nachrichten.
Mein Link sieht so aus:
<a href="forum/index.php?page=PMList">Private Nachrichten</a>
Wenn jetzt nun neue Nachrichten vorhanden sind, soll der Link demnach so aussehen:
<a href="forum/index.php?page=PMList"><strong>Private Nachrichten (3)</strong></a>
Hat dafür jemand eine Idee?
--
Hi all,
I have the login info in a link to the private messaging in WoltLab Burning Board. (forum/index.php?page=PMList)
But I want to sustaining a message behind the link is also a 1 or a different number.
This requires you to read the database appropriately. I need to access and wcf1_user pmOutstandingNotifications read. That what it says is the number of unread messages.
My link looks like this:
<a href="forum/index.php?page=PMList">Private Messages</ a>
Now, if now there are new messages, the link should therefore look like this:
<a href="forum/index.php?page=PMList"><strong>Private Messages (3)</ strong></ a>
Does anyone have an idea for it?
includes/page_header.php
Above / Über:
$site_template->register_vars(array(
"home_url" => ROOT_PATH,
"media_url" => MEDIA_PATH,This / Das ?
$sql = "SELECT w.pmOutstandingNotifications
FROM (".USERS_TABLE." u)
LEFT JOIN wcf1_user w ON (w.userID = ".get_user_table_field("u.", "user_id").")
WHERE u.user_id = $user_id";
$wbb_row = $site_db->query_firstrow($sql);Die User haben in beide Systeme die gleiche ID / The users have the same ID in both systems