Seite 1 von 1

Beiträge reservieren....oder so

Verfasst: 05.02.2006 23:09
von DreamPromise
Moin moin

gibt es eine Möglichkeit als UserX in ein Feld z.B. Citibank einzugeben.
Wenn dann UserV einen neuen Beitrag oder eine neues Thema eröffnet und darin das Wort Citibank vorkommt das der UserX eine Mail bekommt ??

Gibts da was ??

DP

Verfasst: 06.02.2006 00:10
von all-around-board
Hi,

ich kann dir zwar nicht helfen, aber deine Statistik in der Sigantur, wie hast du das gemacht?

Verfasst: 06.02.2006 00:44
von DreamPromise
Moin moin

ich hab ein Verzeichnis angelegt: sig.gif
Da rein hab ich die index.php kopiert und ein weiteres Verzeichnis angelegt: images
In diese Verzeichnis hab ich die signature.png reinkopiert.

index.php
<?php

define('IN_PHPBB', true);
$phpbb_root_path = '../';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

// Get basic (usernames + totals) online
// situation
//
$user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : '';
$sql = "SELECT u.username, u.user_id, s.session_logged_in, s.session_ip
FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
WHERE u.user_id = s.session_user_id
AND s.session_time >= ".( time() - 300 ) . "
$user_forum_sql
ORDER BY u.username ASC, s.session_ip ASC";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql);
}

$logged_online = 0;
$prev_user_id = 0;

while( $row = $db->sql_fetchrow($result) )
{
// User is logged in and therefor not a guest
if ( $row['session_logged_in'] )
{
// Skip multiple sessions for one user
if ( $row['user_id'] != $prev_user_id )
{
$logged_online++;
}

$prev_user_id = $row['user_id'];
}
}

$sql = 'SELECT max(topic_id)
FROM ' . TOPICS_TABLE;

if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Couldn\'t retrieve max of Topic_id data', '', __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result))
{
$max_topic_id = $row['max(topic_id)'];
}
$sql = 'SELECT topic_title
FROM ' . TOPICS_TABLE . '
WHERE topic_id = ' . $max_topic_id;

if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Couldn\'t retrieve Topic_id data', '', __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result))
{
$latest_topic = $row['topic_title'];
}

$image = "images/signature.png";
$im = imagecreatefrompng($image);
$tc = ImageColorAllocate ($im, 0, 0, 0);
$red = ImageColorAllocate ($im, 255, 153, 0);
$blue = ImageColorAllocate ($im, 0, 102, 153);
$sitename = $board_config['sitename'];
$total_users = get_db_stat('usercount');
$total_posts = get_db_stat('postcount');
$total_topics = get_db_stat('topiccount');
$j = strlen($total_users);
$leerzeichen = $j*6+237;
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
ImageString($im, 3, 148, 2, "Statistik @", $tc);
ImageString($im, 3, 230, 2, "$sitename", $blue);
ImageString($im, 2, 148, 15, "Mitglieder: $total_users - ", $tc);
ImageString($im, 2, $leerzeichen, 15, "Online: $logged_online", $red);
ImageString($im, 2, 148, 25, "Letztes Thema:", $tc);
ImageString($im, 2, 238, 25, "$latest_topic", $blue);
ImageString($im, 2, 148, 35, "Gepostet: $total_posts Beiträge in $total_topics Themen", $tc);
ImageString($im, 2, 148, 45, "Unser neuestes Mitglied:", $tc);
ImageString($im, 2, 298, 45, "$newest_user", $blue);
header("Content-Type: image/png");
Imagepng($im,'',100);
ImageDestroy ($im);
?>
signature.png: [ externes Bild ]

Das png kannste ja selber anpassen

DP

Hallo

Verfasst: 06.02.2006 13:05
von all-around-board
Deine Signatur schaut Hammer aus!! Könntest du mir auch so eine machen, weil aus des is mir bissl zu kompliziert! Hast du Lust und kurz Zeit?? mfG

Jonny

Verfasst: 06.02.2006 13:13
von Jan500
@all-around-board such doch mal hier im forum, da wurde schon oft über diese Art der Signatur geredet :roll: u.a. auch wie man diese erstellt ;-)

Jan

Verfasst: 06.02.2006 15:41
von all-around-board
DANKE an DreamPromise, hat SUPER GEKLAPPT!!

Verfasst: 06.02.2006 19:52
von DreamPromise
Moin moin

na dann lass doch mal sehen :-) :-)
DP

Verfasst: 06.02.2006 21:24
von all-around-board
Ja, mach ich, nachdem ich mir eine neue Bilddatei gebastelt hab!