Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Xwoman

Pages: [1]
1
oki :-) thx  i have  change the


 //--------------------------
//--------Smiles------------
//--------------------------
function smilies($text,$enablesmilies = 1) ..........

Now i can click my smileys .  i missing only 1 thing .....  i can´t see the  ALL smiles button ....  :oops:

2
hi! how can i use this in comment_form.html :

Quote
<!-- BEGIN SMILIES -->
<br>
<script language="JavaScript">
function PopUp(aaa,zz,xx,scrb){

var wsss = eval (screen.width/2 - zz/2);
var hsss = eval(screen.height/2 - xx/2);

helpWin = window.open(aaa,"imageWin","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scrb+",resizable=0,width="+ zz +",height="+ xx +",left="+ wsss +",top="+ hsss +"");

}
</script>
<a href="JavaScript:paste_strinL(':)',0)"><img src="./img/smilies/grin.gif" border=0></a>
<a href="JavaScript:paste_strinL(';)',0)"><img src="./img/smilies/wink.gif" border=0></a>
<a href="JavaScript:paste_strinL(':up:',0)"><img src="./img/smilies/up.gif" border=0></a>
<a href="JavaScript:paste_strinL(':down:',0)"><img src="./img/smilies/down.gif" border=0></a>
<a href="JavaScript:paste_strinL(':biglol:',0)"><img src="./img/smilies/biglol.gif" border=0></a>
<a href="JavaScript:paste_strinL(':confused:',0)"><img src="./img/smilies/confused.gif" border=0></a>
<a href="JavaScript:paste_strinL(':cool:',0)"><img src="./img/smilies/cool.gif" border=0></a>
<a href="JavaScript:paste_strinL(':mad:',0)"><img src="./img/smilies/mad.gif" border=0></a>
<a href="JavaScript:paste_strinL(':sad:',0)"><img src="./img/smilies/sad.gif" border=0></a>
<a href="JavaScript:paste_strinL(':shame:',0)"><img src="./img/smilies/shame.gif" border=0></a>
<a href="JavaScript:paste_strinL(':smirk:',0)"><img src="./img/smilies/smirk.gif" border=0></a>
<a href="JavaScript:paste_strinL(':tongue:',0)"><img src="./img/smilies/tongue.gif" border=0></a>
<small><a href="javascript:PopUp('hack_smilies.php?p=display',150,400,1)">...</a></small>

<!-- END SMILIES -->

3
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: May 29, 2003, 10:21:46 AM »
kann   sein das es nur unter windows geht?????? 8O

4
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: May 28, 2003, 12:41:28 PM »
i have the some problem ------ help pls ........  :cry:  :cry:


Quote from: mantra
V@no after I install your new mood v2 . it's work fine on main page. but if I log in admin page I got this error
----------------------------------------------------------------------------------------------------------
Warning: Cannot add header information - headers already sent by (output started at c:\myserver\scripts\gallery\admin\admin_functions.php:671) in c:\myserver\scripts\gallery\admin\admin_functions.php on line 167

Warning: Cannot add header information - headers already sent by (output started at c:\myserver\scripts\gallery\admin\admin_functions.php:671) in c:\myserver\scripts\gallery\admin\admin_functions.php on line 168

Warning: Cannot add header information - headers already sent by (output started at c:\myserver\scripts\gallery\admin\admin_functions.php:671) in c:\myserver\scripts\gallery\admin\admin_functions.php on line 169

Warning: Cannot add header information - headers already sent by (output started at c:\myserver\scripts\gallery\admin\admin_functions.php:671) in c:\myserver\scripts\gallery\admin\admin_functions.php on line 170

Warning: Cannot add header information - headers already sent by (output started at c:\myserver\scripts\gallery\admin\admin_functions.php:671) in c:\myserver\scripts\gallery\admin\admin_functions.php on line 171

----------------------------------------------------------------------------------
Where did I make wrong [ I change all instruction very carefully ]
and I don't have blank line after ?> in all php page like in FAQ of this forum
 
I search the error line in admin_functions.php
I try remove this code

  header ("Cache-Control: no-store, no-cache, must-revalidate");
  header ("Cache-Control: pre-check=0, post-check=0, max-age=0", false);
  header ("Pragma: no-cache");
  header ("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT");
  header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");


and the error missing, did I lost some of feature in 4images.

Can help??

5
Discussion & Troubleshooting / php in Index.php ?
« on: May 19, 2003, 03:02:22 PM »
ich kann es mit include anzeigen lasen ...... es geht auch  , nur wenn ich auf Send klicke passiert nichts :-(

6
Discussion & Troubleshooting / php in Index.php ?
« on: May 19, 2003, 02:25:17 PM »
hallo an alle wie kann ich das in Index.php anzeigen ??

Quote
<?php
$cfg = "config2.php";
include($cfg);

include($dateipfad."template.php");
echo $head;


// Gibt es diesen Eintrag schon? (Name, Text, IP)
$dbdaten = file($dateipfad.$file); $countdbdaten = count($dbdaten);
for($x=0; $x<$countdbdaten; $x++)
{
    $expdbdaten = explode("Ø", $dbdaten[$x]);
    $ip = getenv(REMOTE_ADDR);
    $dbname = $expdbdaten[0];
    $dbtext = $expdbdaten[1];
    $dbip = $expdbdaten[3];
    if($new_name==$dbname && $new_text==$dbtext && $ip==$dbip)
        {
            $temp = "true";
        }
}

// Speichern eines Shouts
if($new_name<>"" && $new_name<>"Name" && $new_text<>"" && $new_text<>"Text" && !$temp)
{
    // Schreiben eines neuen Shouts
    $fd = fopen($dateipfad.$file, "a");
    flock($fd,2);
    fwrite ($fd, $daten[$x]);
    fwrite ($fd, $new_name."Ø".$new_text."Ø". time() ."Ø". getenv(REMOTE_ADDR) ."Ø". "\r\n" );
    flock($fd,3);
    fclose ($fd);
}

// Lesen der Shouts
    // Datei in ein Array einlesen
    $daten = file($dateipfad.$file);
    $numrows = count($daten);
    // Die Shouts und das Template Syntax formatieren
    if($numrows<$anzahl_anzeigen){ $anzahl_anzeigen = $numrows; }
    for($a=$numrows-$anzahl_anzeigen; $a<$numrows; $a++)
    {
        $shouts = explode("Ø", $daten[$a]);
        if(($html_name == "no") || !$html_name){ $shouts[0] = htmlspecialchars(stripslashes($shouts[0])); }else{ $shouts[0] = stripslashes($shouts[0]); }
        if(($html_text == "no") || !$html_text){ $shouts[1] = htmlspecialchars(stripslashes($shouts[1])); }else{ $shouts[1] = stripslashes($shouts[1]); }
        if(($smilies_name == "yes") || !$smilies_name){ $shouts[0] = smiliehtml($shouts[0], $cfg); }
        if(($smilies_text == "yes") || !$smilies_text){ $shouts[1] = smiliehtml($shouts[1], $cfg); }
        if(($vbcodes_name == "yes") || !$vbcodes_name){ $shouts[0] = codehtml($shouts[0]); }
        if(($vbcodes_text == "yes") || !$vbcodes_text){ $shouts[1] = codehtml($shouts[1]); }
        if(($magiclink_name == "yes") || !$magiclink_name){ $shouts[0] = magiclink($shouts[0]); }
        if(($magiclink_text == "yes") || !$magiclink_text){ $shouts[1] = magiclink($shouts[1]); }
        if(($badwords_name == "yes") || !$badwords_name){ $shouts[0] = badwords($shouts[0], $cfg); }
        if(($badwords_text == "yes") || !$vbcodes_text){ $shouts[1] = badwords($shouts[1], $cfg); }
 
        if(($cut_name == "yes") || !$cut_name){ $shouts[0] = cut($shouts[0], $cfg); }
        if(($cut_text == "yes") || !$cut_text){ $shouts[1] = cut($shouts[1], $cfg); }

        if($farbenwechsel=="yes" && $a%2){$tab_change=$tab_change_1;}elseif($farbenwechsel=="yes"){$tab_change=$tab_change_2;}else{$tab_change=$tab_body;}
   $posttime = "Zeit: ".gmdate("d. M Y - H:i:s",$shouts[2]);
   $postip = "IP: ".$shouts[3];
   if($title_body=="Zeit"){$overtitle=$posttime;}
   elseif($title_body=="IP"){$overtitle=$postip;}
   elseif($title_body=="Zeit&IP"){$overtitle=$posttime." / &#13;&#10;".$postip;}
   else{$overtitle="";}
   include($dateipfad."template.php");
        $ausgabe[] = $body;
    }

    // Position des ersten Eintrages
    if(($newest_place == "bottom") || !$newest_place)
    {
        for($nr=0; $nr<count($ausgabe); $nr++)
        {
            echo $ausgabe[$nr];
        }
    }
    else
    {
   $ausgabe = array_reverse($ausgabe);
        for($nr=0; $nr<count($ausgabe); $nr++)
        {
            echo $ausgabe[$nr];
        }
    }


// Linkformatierung für die Codes
$link_code = rtrim($link_code);
if($link_codes == "black"){ $link_codes = "<img src=\"".$bilderpfad."codes_black.gif\" border=0>"; }
elseif($link_codes == "white"){ $link_codes = "<img src=\"".$bilderpfad."codes_white.gif\" border=0>"; }
elseif(($link_codes != "black") && ($link_codes != "white") && ($link_codes <> "")){ $link_codes = $link_codes; }
else{ $link_codes = "<img src=\"".$bilderpfad."codes_black.gif\" border=0>"; }

// Linkformatierung für das Archiv
$link_archiv = rtrim($link_archiv);
if($link_archiv == "black"){ $link_archiv = "<img src=\"".$bilderpfad."archiv_black.gif\" border=0>"; }
elseif($link_archiv == "white"){ $link_archiv = "<img src=\"".$bilderpfad."archiv_white.gif\" border=0>"; }
elseif(($link_archiv != "black") && ($link_archiv != "white") && ($link_archiv <> "")){ $link_archiv = $link_archiv; }
else{ $link_archiv = "<img src=\"".$bilderpfad."archiv_black.gif\" border=0>"; }

// Formatierung der maximalen Länge (Name)
$name_maxlaenge = rtrim($name_maxlaenge);
if($name_maxlaenge == ""){ $name_maxlaenge = "10"; }
else{ $name_maxlaenge = $name_maxlaenge; }

// Formatierung der maximalen Länge für den Text
$text_maxlaenge = rtrim($text_maxlaenge);
if($text_maxlaenge == ""){ $text_maxlaenge = "20"; }
else{ $text_maxlaenge = $text_maxlaenge; }

// Das Formular ausgeben
include($dateipfad."template.php");
echo $foot;

?>



<?php
// ****************************** Funktionen: Smilies, Badwords, Codes ******************************

// Funktion für die Smilies
function smiliehtml($shout, $cfg)
{
    include($cfg);
    if(!$smiley){ return $shout; }
    while(list($zeichen, $bild) = each($smiley))
        { $shout = str_replace($zeichen, '<img src="'.$bilderpfad.$bild.'" border="0">', $shout); }
    return $shout;
}
// Funktion für die Wortzensur
function badwords($shout, $cfg)
{
    include($cfg);
        if(!$badword) return $shout;
        while(list($word, $replace) = each($badword))
      $shout = str_replace($word, $replace, $shout);
        return $shout;
}
// Funktion für die Codes
function codehtml($shout)
{
    $shout = eregi_replace("\[B\]([^\[]+)\[/B\]","<b>\\1</b>",$shout);          //
    $shout = eregi_replace("\[I\]([^[]+)\[/I\]","<i>\\1</i>",$shout);           //
    $shout = eregi_replace("\[U\]([^[]+)\[/U\]","<u>\\1</u>",$shout);           //
    $shout = eregi_replace("\[MAIL\]([^[]+)\[/MAIL\]","<a href=\"mailto:\\1\">\\1</a>",$shout);                //[MAIL][/MAIL]
    $shout = eregi_replace("\[MAIL=([^[]+)\]([^[]+)\[/MAIL\]","<a href=\"mailto:\\1\">\\2</a>",$shout);        //[MAIL=][/MAIL]
    $shout = eregi_replace("\[URL\]www.([^\[]+)\[/URL\]","<a href=\"http://www.\\1\">\\1</a>",$shout);                          //http://www.
    $shout = eregi_replace("\[URL\]([^[]+)\[/URL\]","<a href=\"\\1\" target=\"_blank\">\\1</a>",$shout);                        //http://  
    $shout = eregi_replace("\+)\]([^[]+)\[/URL\]","<a href=\"http://\\1\" target=\"_blank\">\\2</a>", $shout);  //[URL=http://]
    $shout = eregi_replace("\+)\]([^[]+)\[/URL\]","<a href=\"http://\\1\" target=\"_blank\">\\2</a>",$shout);         //[URL=]  
    $shout = eregi_replace("\[IMG\]([^[]+)\[/IMG\]","<img src=\"\\1\" width=15 height=15 border=0>",$shout);   //  

    $shout = eregi_replace("(java)(script:)","\\1 \\2",$shout);          // Sicherung für javascript:

    return $shout;
}
// Funktion für die Magic-Links
function magiclink($shout)
{
    // Magic-Link (URL)
    $urlmuster = "=([ ])(http://)?([a-zA-Z]+)(\.)([a-zA-Z]+)(\.)([a-zA-Z]{2,4})(\/)?([a-zA-Z]+\.[a-zA-Z]+)?(#[a-zA-Z0-9]+)?(\?[a-zA-Z0-9]+\=[a-zA-Z0-9]+)?([&\=a-zA-Z0-9]+)?=is";
    $replace = "\\1<a href=\"http://\\3\\4\\5\\6\\7\\8\\9\\10\\11\\12\" target=\"_blank\">\\2\\3\\4\\5\\6\\7\\8\\9\\10\\11\\12</a>";
    $shout = trim(preg_replace($urlmuster,$replace," ".$shout));
    // Magic-Link (Mail)
    $mailmuster = "=([ ])([_a-zA-Z0-9-]+)(\.?)([_a-zA-Z0-9-]+)(@)([a-zA-Z0-9-]{2,}\.)?([a-zA-Z0-9-]{2,}\.)?([a-zA-Z0-9-]{3,})(\.[a-zA-Z]{2,4})?(\.[a-zA-Z]{2,4})=is";
    $replace = "\\1<a href=\"mailto:\\2\\3\\4\\5\\6\\7\\8\\9\\10\">\\2\\3\\4\\5\\6\\7\\8\\9\\10</a>";
    $shout = trim(preg_replace($mailmuster,$replace," ".$shout));
    return $shout;
}
// Funktion zum Zeichen trennen
function cut($txt, $cfg)
{
    include($cfg);
    $temp[0] = explode(" ",$txt);
    foreach($temp[0] as $val[0])
    {
        if(preg_match("=(\")=",$val[0]))
        {
            $temp[1] = explode(">",$val[0]);
            unset($temp[2]);
            foreach($temp[1] as $val[1])
            {
                if(!preg_match("=(\")=",$val[1]))
                {
                    $string = "=(([^<>]{".$linelength."}))=U";
                    $temp[2][] = preg_replace($string,"\\1 \\3",$val[1]);
                }
                else
                {
                    $temp[2][] = $val[1];
                }
            }
            $output[] = implode(">",$temp[2]);
        }
        else
        {
            $string = "=(([^<>]{".$linelength."}))=U";
            $output[] = preg_replace($string,"\\1 \\3",$val[0]);
        }
    }
    $txt = trim(implode(" ",$output));
    return $txt;
}
?>

7
Mods & Plugins (Requests & Discussions) / Shoutbox ?
« on: May 17, 2003, 10:46:12 AM »
ok :-) than i will make it self and will post it here   :roll:
THX

8
Mods & Plugins (Requests & Discussions) / Shoutbox ?
« on: May 16, 2003, 08:01:18 PM »
Hi!anybody Know a Shoutbox for 4images?  8O  thx for help

Pages: [1]