ich hab das Modul mit den Gästebüchern für User aber kann man dort einen bb Code einbauen
verwendete ilchClan Version: 1.1
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | <?php # Copyright by: www.dastiac.de.gg # Support: www.ilch.de defined ( 'main' ) or die ( 'no direct access' ); $title = $allgAr [ 'title' ]. ' :: Gästebuch von ' . $row [ 'name' ]; $hmenu = 'Gästebuch von ' . $row [ 'name' ]; $design = new design ( $title , $hmenu ); $design ->header(); $tpl = new tpl ( 'user/usergb' ); $uid = $menu ->get(3); $ar74 = array ( 'NICKNAME' => $row [ 'name' ], 'UID' => $uid ); $tpl ->set_ar_out( $ar74 ,0); ##VIEW if ( $menu ->get(2) == "view" ) { $limit = 20; // Limit $page = ( $menu ->getA(4) == 'p' ? $menu ->getE(4) : 1 ); $MPL = db_make_sites ( $page , "" , $limit , '?user-usergb-view-' . $uid . '' , 'usergb' ); $anfang = ( $page - 1) * $limit ; $abf = "SELECT * FROM `prefix_usergb` WHERE uid = $uid ORDER BY id DESC LIMIT $anfang, $limit" ; $erg = db_query( $abf ); while (@ $row = db_fetch_assoc( $erg )) { $homepage = '<a href="' . $row [ 'page' ]. '" target="_blank"><img src="include/images/icons/page.gif" border="0"></a>' ; } else { $homepage = '<a href="http://' . $row [ 'page' ]. '" target="_blank"><img src="include/images/icons/page.gif" border="0"></a>' ; } if ( $row [ 'mail' ] == "" ) { $email = '' ; } else { $email = '<a href="mailto:' . $row [ 'mail' ]. '"><img src="include/images/icons/mail.gif" border="0"></a>' ; } if (is_admin() || $uid == $_SESSION [ 'authid' ]) { $del = '<a href="?user-usergb-del-' . $uid . '-' . $row [ 'id' ]. '"><img src="include/images/icons/del.gif" border="0"></a>' ; } else { $del = '' ; } $ar2 = array ( 'DATE' => $row [ 'date' ], 'NICKNAME' => $row [ 'name' ], 'TXT' => bbcode( $row [ 'txt' ]), 'HOMEPAGE' => $homepage , 'EMAIL' => $email , 'UID' => $uid , 'DEL' => $del ); $tpl ->set_ar_out( $ar2 ,1); } $tpl ->set_out( 'SITELINK' , $MPL , 2); } ##ADD if ( $menu ->get(2) == "add" ) { $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' ); $ar3 = array ( 'CLASS' => $class , 'UID' => $uid , 'ANTISPAM' => get_antispam ( 'usergb' , 1) ); $tpl ->set_ar_out( $ar3 ,3); } ## INSERT if ( $menu ->get(2) == "insert" ) { if ( $_POST [ 'email' ] == "" || $_POST [ 'nick' ] == "" || $_POST [ 'txt' ] == "" ) { $link = "index.php?user-usergb-add-" . $uid . "" ; $text = "Bitte alle Pflichtfelder ausfüllen!" ; wd ( $link , $text ); } else { if (chk_antispam ( 'usergb' )) { $date = date ( "d.m.Y" , time()); $ip = $_SERVER [ 'REMOTE_ADDR' ]; $bet = "Neuer Eintrag in Deinem Gästebuch!" ; $txt = "Es hat jemand in Dein Gästebuch geschrieben. Klicke auf den Link um direkt dorthin zu kommen: [URL=index.php?user-usergb-view- ".$uid." ]Link[/url]"; sendpm(1, $uid , $bet , $txt ); # $txt = escape( $_POST [ 'txt' ], 'textarea' ); # $name = escape( $_POST [ 'name' ], 'string' ); # $mail = escape( $_POST [ 'mail' ], 'string' ); # $page = escape( $_POST [ 'page' ], 'string' ); $ins = db_query( "INSERT INTO `prefix_usergb` (name, mail, page, uid, date, ip, txt) VALUES ('" . $_POST ['nick ']."' , '".$_POST[' email ']."' , '".$_POST[' homepage ']."' , '".$uid."' , '".$date."' , '".$ip."' , '".$_POST[' txt ']."' )"); if ( $ins == true) { $link2 = "index.php?user-usergb-view-" . $uid . "" ; $text2 = "Erfolgreich eingetragen!" ; wd ( $link2 , $text2 ); } else { echo mysql_error(); } } else { $antitxt = "Anti-Spam nicht korrekt!" ; $antilink = "index.php?user-usergb-add-" . $uid . "" ; wd ( $antilink , $antitxt ); } } } ## DELETE if ( $menu ->get(2) == "del" ) { $pid = $menu ->get(4); $delete = "DELETE FROM `prefix_usergb` WHERE id = " . $pid . " LIMIT 1" ; $erg = db_query( $delete ); $link3 = "index.php?user-usergb-view-" . $uid . "" ; $text3 = "Eintrag gelöscht!" ; wd ( $link3 , $text3 ); } $design ->footer(); ?> |
Geschlossen | ||
![]() |
Zurück zu Allgemein |