Help with html

30 replies [Last post]
Cyberdemon
Offline
Joined: Jun 2005
Posts:
Help with html

Do you know were I could get 1, And also is there a site that hosts FREE Game servers?????

Visit Mookiejr's Frag Fest

Cyberdemon
Offline
Joined: Jun 2005
Posts:
Help with html

Do you know were I could get 1, And also is there a site that hosts FREE Game servers?????

Visit Mookiejr's Frag Fest

]EK+[babe
lisa's picture
Offline
Joined: May 2005
Posts:
Help with html

ok i uploaded my shoutbox script and translated the important things so u can use it too! u have to change the settings (colors, fontface, fontsize, max. amout of shouts..) in shoutbox.php. and upload all the files and folders

and to insert the shoutbox, insert in ur quellcode
1. (php) <?include("shoutbox.php");?>
or 2. (html) <iframe src="shoutbox.php" width="10%" height="407"></iframe>

change width and height to your personal wish..

EDIT: and i dont think that there r any good gameservers FOR FREE because otherwise the ppl who pay for gameservers would be stupid Winking

Cyberdemon
Offline
Joined: Jun 2005
Posts:
Help with html

I get a box on the bottem that says, [=red]<?php
/*
* Register Globals stress
*/
if (!ini_get('register_globals')) {
$register_order = array('GET','POST','COOKIE','SESSION','SERVER');
foreach ($register_order as $order) {
if (@count(${'HTTP_'.$order.'_VARS'}) > Innocent {
extract(${'HTTP_'.$order.'_VARS'}, EXTR_OVERWRITE);
}
}
}
/*
############################################
# #
# bsx-shoutbox version 00.60 #
# #config area# #
# #
############################################
# #
# Damit die Funktion der Shoutbox #
# gewährleistet ist, müssen zunächst #
# folgende Variablen angepasst werden. #
# #
############################################
*/

/*
* Design Einstellungen
*/
$shout_max = "50"; // Max. Amout of Postings
$taba[bgcolor] = "#6A0202"; // Background color for table A
$tabb[bgcolor] = "#6A0202"; // Background color for table B
$tabc[bgcolor] = "#6A0202"; // Background color for table C
$tabout = "#6A0202"; // Background color for table out
$taba[] = "#FF9933"; // Fontcolor for table A
$taba[face] = "Verdana, Tahoma"; // Fontface for table A
$taba[size] = "2"; // Fontsize for table B
$tabb[] = "#FFFFFF"; // Fontcolor for table B
$tabb[face] = "Verdana, Tahoma"; // Fontface for table B
$tabb[size] = "1"; // Fontsize for table B
$tabc[] = "#FF9933"; // Fontcolor for table C
$tabc[face] = "Verdana, Tahoma"; // Fontface for table C
$tabc[size] = "1"; // Fontsize for table C
$bgcolor[1] = "#280301"; // table-background color for name and date
/*
* Dont edit anything of the following settings !!!!
*/
$ext = "htm"; // Dateiendung der Templates
$templatedir = "tpl"; // Ordner der Templates
$tplcache = array();
/*
* return: template string
* param: templatename string und extension='htm' string
* usage: siehe function dooutput
* desc: gibt den Inhalt der Template template zurück. Benutzt Cache..
*/
if(! function_exists(gettemplate)) {
function gettemplate($template,$ext="htm") {

global $templatedir, $ext, $tplcache;
if(!isset($tplcache[$template])) {
if(!$templatedir) $templatedir = "tpl";
$tplcache[$template] = implode("",file($templatedir."/".$template.".".$ext));
}
return str_replace("\"","\\\"",$tplcache[$template]);
}
}
/*
* return: den template source
* param: template string
* usage: eval("print dooutput(\"".gettemplate("template string")."\");");
* desc: Ersetzt in template einige Codewörter zur Formatierung und gibt dann template aus
*/
if(! function_exists(dooutput2)) {
function dooutput2($template) {

global $taba, $tabb, $tabc, $tabout, $elem, $msg;

$icon = "";
if(file_exists("gfx/icons/$elem[icon]")) { $elem[icon] = $icon; }

$template = str_replace("{taba}","$taba[bgcolor]",$template);
$template = str_replace("{tabb}","$tabb[bgcolor]",$template);
$template = str_replace("{fonta_color}","$taba[]",$template);
$template = str_replace("{fonta_face}","$taba[face]",$template);
$template = str_replace("{fonta_size}","$taba[size]",$template);
$template = str_replace("{fontb_color}","$tabb[]",$template);
$template = str_replace("{fontb_face}","$tabb[face]",$template);
$template = str_replace("{fontb_size}","$tabb[size]",$template);
$template = str_replace("{fontc_color}","$tabc[]",$template);
$template = str_replace("{fontc_face}","$tabc[face]",$template);
$template = str_replace("{fontc_size}","$tabc[size]",$template);
$template = str_replace("{tabc}","$tabc[bgcolor]",$template);
$template = str_replace("{tabout}","$tabout",$template);
$template = str_replace("{MSG}","".stripslashes($msg)."",$template);
$template = str_replace("{Datum}","".date("d.m.Y", $elem[Datum])." um ".date("H:i", $elem[Datum])."",$template);

return $template;
}
}
/*
* return: den formatierten string
* param: string
* usage: $string = smilie($string);
* desc: tauscht die bekannten smilie Kürzel gegen echte html tags aus
*/
if(! function_exists(smilie)) {
function smilie ($string) {

$string = str_replace("8o"," ",$string);
$string = str_replace(":D"," ",$string);
$string = str_replace(":P"," ",$string);
$string = str_replace("8)"," ",$string);
$string = str_replace(":["," ",$string);
$string = str_replace(":]"," ",$string);
$string = str_replace("X("," ",$string);
$string = str_replace(":N"," ",$string);
$string = str_replace(":|"," ",$string);
$string = str_replace(":rolleyes:"," ",$string);
$string = str_replace(":("," ",$string);
$string = str_replace(":)"," ",$string);
$string = str_replace(";D"," ",$string);
$string = str_replace(";)"," ",$string);
$string = str_replace(":Y"," ",$string);

return $string;
}
}

/*
* return: den formatierten string
* param: string
* usage: $string = ubb($string);
* desc: tauscht die bekannten ubb [*] Tags gegen echte html tags aus
*/
if(! function_exists(ubb)) {
function ubb ($string) {

$string = str_replace("\n","<br>",$string);
$string = str_replace("","",$string);
$string = str_replace("
","",$string);
$string = str_replace("","",$string);
$string = str_replace("
","",$string);
$string = eregi_replace("\\[url\]([^\\[]*)\\[/url\\]","\\1",$string);
$string = eregi_replace("\\[icq=([^\\[]*)\\]([^\\[]*)\\[/url\\]","\\2",$string);
$string = eregi_replace("\\[url\=([^\\[]*)\\]([^\\[]*)\\[/icq\\]","\\2",$string);
$string = eregi_replace("\\[icq\\]([^\\[]*)\\[/icq\\]","\\1",$string);
$string = eregi_replace("\\[=([^\\[]*)\\]([^\\[]*)\\[/\\]","<font color=\\1>\\2</font>",$string);
$string = eregi_replace("\\[email\]([^\\[]*)\\[/email\\]","\\1",$string);
$string = eregi_replace("\\[email=([^\\[]*)\\]([^\\[]*)\\[/email\\]","\\2",$string);
$string = eregi_replace("\\[img]([^\\[]*)\\[/img]","",$string);
$string = str_replace("

Quote:
","<blockquote>«",$string);
$string = str_replace("

","»</blockquote>",$string);

return $string;
}
}
/*
* return: formatierten string
* param: string
* usage: $string = formated($string);
* desc: formatiert einen string korrekt für db eingabe ...
*/
if(! function_exists(formated)) {
function formated($string) {

$string = addslashes($string);
$string = str_replace("\n", "", $string);
$string = str_replace(chr(10), "", $string);
$string = str_replace(chr(13), "", $string);

return $string;
}
}
/*
* return: ok=true scheisse=false
* param: $shout_user & $shout_text
* usage: $string = insert($shout_user, $shout_text);
* desc: trägt neuen Enitrag in die shout.bsx ein und gibt den kompletten Inhalt der Datei wieder
*/
if(! function_exists(insert)) {
function insert($shout_user, $shout_text, $shout_url) {

global $shout_max;

$shout_user = formated($shout_user);
$shout_text = formated($shout_text);
if(file_exists("shout.bsx")) $max = lesaus(); else $max = 0;
if((file_exists("shout.bsx")) && ((count($max)-1) <= $shout_max)) {
$cur = fopen("shout.bsx", "a");
flock($cur, 2);
$new_file = fputs($cur, "\n".$shout_user."||".$shout_url."||".$shout_text."||".time()."||");
flock($cur, 3);
fclose($cur);
} else {
$cur = fopen("shout.bsx", "w");
flock($cur, 2);
$new_file = fputs($cur, "".$shout_user."||".$shout_url."||".$shout_text."||".time()."||");
flock($cur, 3);
fclose($cur);
}
if($new_file) return true; else return false;
}
}
/*
* return: array $elem
* param: /
* usage: $elem = lesaus();
* desc: liest datei zeilenweise ins array elem ein ...
*/
if(! function_exists(lesaus)) {
function lesaus() {

$cur = fopen("shout.bsx", "r");
flock($cur, 1);
$n = 1;
while(! feof($cur)) {
$elem[$n] = explode("||", fgets($cur, 1000));
array_pop($elem[$n]);
$n++;
}
flock($cur, 3);
fclose($cur);
return $elem;
}
}
if($shout == "Send") {
if(($shout_user == "") || ($shout_text == "")) {
$msg = "!! Please insert message and name !!<br>";
} else {
insert($shout_user, $shout_text, $shout_url);
}
}
if(file_exists("shout.bsx")) {
$elem_detail = array_reverse(lesaus());
$z = 1;
foreach($elem_detail as $key=>$elem) {
$msg .= "</td>\n</tr><tr>\n<td colspan=\"2\" align=\"left\" valign=\"top\" bgcolor=\"$bgcolor[1]\">"
.""
."<font color=\"$tabc[]\" face=\"$tabc[face]\" size=\"$tabc[size]\">$elem[0]</font>"
."<font color=\"$tabc[]\" face=\"$tabc[face]\" size=\"$tabc[size]\"> um "
.date("H:i", $elem[3])." Uhr</font></td>\n"
."</td>\n</tr><tr>\n<td colspan=\"2\" align=\"left\" valign=\"top\" bgcolor=\"$tabb[bgcolor]\">"
."<font color=\"$tabb[]\" face=\"$tabb[face]\" size=\"$tabb[size]\">"
.stripslashes(smilie($elem[2]));
$z++;
}
}
eval("print dooutput2(\"".gettemplate("box")."\");");
?>[/]

IM LOST I HAVE THE BOX BUT IT SAYS THAT INSIDE

Visit Mookiejr's Frag Fest

]EK+[babe
lisa's picture
Offline
Joined: May 2005
Posts:
Help with html

i dont see the box with that inside on your page - did u upload it or do u see the box with this text inside in frontpage preview??

Cyberdemon
Offline
Joined: Jun 2005
Posts:
Help with html

I have a new website that i didnt upload yet and I see that in a box on it

Visit Mookiejr's Frag Fest

]EK+[babe
lisa's picture
Offline
Joined: May 2005
Posts:
Help with html
Cyberdemon wrote:

I have a new website that i didnt upload yet and I see that in a box on it

u need to upload it
otherwise it wouldnt work i think

EVOL.IZNOGOUD
Iznogoud's picture
Offline
Joined: Mar 2004
Posts:
Help with html

http://www.myshoutbox.com/

The code to insert on your page will be generated for you; <iframe> or popup...

Example:
<!-- BEGIN MYSHOUTBOX.COM CODE -->
<iframe src="http://xxxxx.myshoutbox.com/" width="152" height="300" frameborder="0" allowTransparency="true"></iframe>
<!-- END MYSHOUTBOX.COM CODE-->

xxxxx is the ID of your shoutbox wich u get when u 'register'.

Free!

Bättre pissa i stuprännan än stupa i pissrännan !

Cyberdemon
Offline
Joined: Jun 2005
Posts:
Help with html

How do u add music with HTML

Visit Mookiejr's Frag Fest

EVOL.IZNOGOUD
Iznogoud's picture
Offline
Joined: Mar 2004
Posts:
Help with html

Bättre pissa i stuprännan än stupa i pissrännan !