[x] Navigation

[x] Languages

[x] Design
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

bbcodes in ein neues Modul einfügen und Probleme mit...

This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page     Forum Index ›  Hilfe

View previous topic :: View next topic  
Author Message
lexi_
Doppel-Null-Agent
Doppel-Null-Agent

Offline Offline
Joined: Jul 07, 2004
Posts: 178

PostPosted: 02.10.2004 21:24
Post subject: bbcodes in ein neues Modul einfügen und Probleme mit...

Hallo kann mir vielleicht jemand helfen, beim implementieren des BBCodes in ein neues Modul.
Desweiteren habe ich Probleme mit den umlauten in der email, wenn man sich aber das modul "contact" anschaut funktioniert es aber
mfg
lexi
hier der aktuelle quelltext:
Array:
<?php

if (!eregi("modules.php", $PHP_SELF)) {

die ("You can't access this file directly...");

}



$index = 0;

require_once("mainfile.php");

$module_name = basename(dirname(__FILE__));
get_lang($module_name);


function groupmail(){
include("header.php");
require_once('includes/nbbcode.php');




OpenTable();
$bb = '';
if ( $MAIN_CFG['email']['allow_html_email'] || (is_admin($admin)) ) {
    $bb = bbcode_table('message', 'email_mod',0);
} else {
    $bb = '';
}

if (is_user($user)) {
    if ($userinfo['name'] != '') {
        $sender_name = $userinfo['name'];
    } else {
        $sender_name = $userinfo['username'];
    }
    $sender_email = $userinfo['user_email'];
}

       echo "<form action=\"".getlink()."\" method=\"post\" name=\"submitnews\" enctype=\"multipart/form-data\"  accept-charset=\"utf-8\">\n"
                    ."<table witdh=100%> \n"
                    ."<tr><strong>"._YOURNAME.": </strong>\n";
           
        
    $username = '';
    
    if (is_user($user)) {
        $username = $userinfo['username'];
        
        echo "<a href=\"".getlink('Your_Account')."\">$username<a> \n"
            ."<font class=\"content\">\n"
            ."[ <a href=\"".getlink('Your_Account&amp;op=logout')."\">"._LOGOUT."</a> ]\n"
            ."</font></td></tr>\n";
    }

    echo "<tr>\n"
                ."<tr><td>&nbsp;</td><td><strong>" ._BBCODE_TABLE."</strong></td></tr> \n"
            ."<br /><br />\n"
        ."<td><strong>"._SUBTITLE.": </strong></td>\n"
        ."<td><input type=\"text\" name=\"subject\" size=\"50\" maxlength=\"80\" value=\"$subject\" ></td>\n"
                ."</tr>\n"
                ."<tr>\n"
                ."<td><br></td>\n"
                ."<td><textarea name=\"nachricht\" rows=\"25\" cols=\"100\" value=\"$body\"></textarea></td>\n"
                ."<td colspan=2><br></td>\n"
            ."</tr>\n" 
            ."<tr><td></td><td><center><input type=\"submit\" name=\"op\" value=\""._OK."\"/> &nbsp; <input type=\"reset\" name=\"op\" value=\""._RESET."\"/></center></td>\n"
        ."</tr>\n"                                                                                                                        
        ."</table></form>\n";


include('footer.php');



CloseTable();
}
$op = isset($op)?$op:"";
switch($op) {


        case _OK:
                 mail("alex.1@gmx.de", "$subject", "$nachricht");
                groupmail();
        break;
   
    default:
          groupmail();
        break;
 }




?>



lexi_'s server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Server SUSE 9.3 / PHP 4.3.10 / Mysql 4.1.10a / cpg 9.2.0.RC2
Back to top
View user's profile Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.    This topic is locked: you cannot edit posts or make replies.    Printer Friendly Page    Forum Index ›  Hilfe
Page 1 of 1
All times are GMT + 1 Hour



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Interactive software released under GNU GPL, Code Credits, Privacy Policy