|
| IP: |
n/a |
| Rang: |
|
| Registrierung: |
01.07.2003, 18:55 |
| Homepage: |
http://www.script-solution.de |
| Wohnort: |
Marburg |
| |
 Forum-Gott mit 7594 Punkte, 7360 Beiträge |
|
Hallo,
zur Werbung: Du könntest das im Template posts.htm einfügen. Und zwar könntest du Zeile 166:in:Code: 1 2 3 4
| {LOOP posts as index => post} {IF index == 1} ...hier deine Werbung einbauen... {ENDIF} | ändern. Dann wird unter dem ersten Beitrag deine Werbung angezeigt.
Zum Bot: Wie ghost schon sagte, ist hier kein wirklicher Bot notwendig. Ist zwar leider bisher etwas umständlich, aber machs mal folgendermaßen: Füg unter Zeile 3506 der src/actions/actions.php:folgendes ein: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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
| // config $fid = 12; // in welches Forum soll das Thema? $time = time(); // bitte so lassen $user_id = 1; // mit welchem User soll das Thema erstellt werden? $insert_string = 'NULL,NULL'; // bitte so lassen $insert_string2 = 'NULL'; // bitte so lassen $symbol = 0; // das Symbol des Themas $allow_posts = 1; // sind Beiträge erlaubt? $important = 0; // wichtig? // Themen-Titel $topic_name = 'Willkommen im Board '.$user_name.'!';
// Beitrags-Text $post_text = 'Hallo '.$user_name.'!
Sei herzlich Willkommen bei uns im Forum!
Hier kannst du viele neue Freunde finden und interessante Diskussionen führen....
blablablablablabla
Mit freundlichen Grüssen,
das Forums-Team'; // determine topic-id $thread_table_info = $this->db->sql_fetch_assoc( $this->db->sql_qry("SHOW TABLE STATUS LIKE '".BS_TB_THREADS."'") ); $tid = $thread_table_info['Auto_increment']; // generate text $text = ''; $error = $this->functions->prepare_message_for_db($text,$post_text,'posts',1,1); // create post $this->db->sql_qry( 'INSERT INTO '.BS_TB_POSTS." (rubrikid,threadid,post_user,post_an_user,post_an_mail,post_time,text,text_posted,use_bbcode, use_smileys,ip_adresse) VALUES ('".$fid."','".$tid."','".$user_id."',".$insert_string.",'".$time."', '".$text."','".$post_text."','1','1', '".$this->sess->user_ip."')" ); $postid = $this->db->get_last_insert_id(); // update stats $this->db->sql_qry( 'UPDATE '.BS_TB_FORUMS." SET threads = threads + 1, posts = posts + 1, lastpost_id = '$postid' WHERE id = '".$fid."'" ); $this->_helper->update_stats_table(1,true); // create topic $this->db->sql_qry("INSERT INTO ".BS_TB_THREADS." (rubrikid,name,posts,post_user,post_time,post_an_user,post_an_mail,lastpost_user,lastpost_time, lastpost_an_user,symbol,type,comallow,important,lastpost_id) VALUES (".$fid.",'".$topic_name."',0,'".$user_id."','".$time."', ".$insert_string.",'".$user_id."','".$time."',".$insert_string2.",".$symbol.",'thread', '".$allow_posts."','".$important."','".$postid."')");
// increase experience $sql_add = ''; $forum_data = &$this->forums->get_forum_data($fid); if($forum_data['increase_experience'] == 1) { $number = BS_EXPERIENCE_FOR_POST + BS_EXPERIENCE_FOR_TOPIC; $sql_add = ',exppoints = exppoints + '.$number; }
$this->db->sql_qry( 'UPDATE '.BS_TB_PROFILES.' SET posts = posts + 1 '.$sql_add.' WHERE id = '.$user_id ); | Am Anfang musst du ein paar Einstellungen vornehmen. Alles andere sollte so bleiben. Ich habe es eben (zwar nicht bei der Registrierung, sondern woanders) ausprobiert und es funktionierte. Ich hoffe, dass das auch bei dir so ist 
mfg Nils
|
|