Navigacija

Vartotojų tinkle

Prisijungusių svečių: 70
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,952
Naujausias narys: tomeem

Naujausi straipsniai

Paskutiniai nariai

tomeem 1 savaitė
Reikalas 2 savaitės
weberiz 5 savaitės
mRokass 7 savaitės
kartoonas 8 savaitės
iaescortsmap 8 savaitės
ozzWANTED 9 savaitės
grunskiz11 savaitės
Bruksnys11 savaitės
illusion11 savaitės
ordo12 savaitės
Jurgaila13 savaitės
originalcs1613 savaitės
Rytis14 savaitės
halis15 savaitės
junkus18 savaitės
morlis18 savaitės
Majakas20 savaitės
andsoft21 savaitės
picolee9022 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 18.222.110.189
Naujienų: 529
Straipsnių: 235
Temų: 52,584
Postų: 522,522
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Žmogus
2023 Rugs. 7 21:09:14
O gal BloodKiller pasijungs?

Apocal
2023 Rugs. 2 18:09:23
Nu davai nuveikiam kažką akinanti šypsen. Prisijungti kada visi čia akinanti šypsen.

Apocal
2023 Rugs. 2 00:09:18
Šiaip atėjau pažiūrėti ar dar lopas nesby yra ar koks ten buvo.

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
Dėl shoutbox`o
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Expert PHP, MySQL klausimai

Autorius: ssuperth Peržiūrų: 2622      Spausdinti temą
2010 Bir. 1 15:06:49          1 žinutė iš 6
Spausdinti pranešimą
Norėjau paklausti kaip atskirti shoutbox_panel.php nuo tų side_left.php, footer.php. Ta prasme, aš noriu įsidėti shoutbox`ą su iframes, ir kai atidaro shoutbox_panel.php užsikrauną visas webas. Bandžiau ieškot shoutbox_panel folderyje kur yra parašyta, kad atidarytu ir footer.php ir pnš. Gal galėtumete padėti išimti šiuos dalykus? kad atidarius shoutbox_panel.php rodytu tik shoutbox`ą.

shoutbox_panel.php failas:
<?php

if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }

echo "<script>
function insertnewtext(elname, what) {
if (document.forms['shoutform'].elements[elname].createTextRange) {
document.forms['shoutform'].elements[elname].focus();
document.selection.createRange().duplicate().text = what;
} else if ((typeof document.forms['shoutform'].elements[elname].selectionStart) != 'undefined') { // for Mozilla
var tarea = document.forms['shoutform'].elements[elname];
var selEnd = tarea.selectionEnd;
var txtLen = tarea.value.length;
var txtbefore = tarea.value.substring(0,selEnd);
var txtafter = tarea.value.substring(selEnd, txtLen);
var oldScrollTop = tarea.scrollTop;
tarea.value = txtbefore + what + txtafter;
tarea.selectionStart = txtbefore.length + what.length;
tarea.selectionEnd = txtbefore.length + what.length;
tarea.scrollTop = oldScrollTop;
tarea.focus();
} else {
document.forms['shoutform'].elements[elname].value += what;
document.forms['shoutform'].elements[elname].focus();
}
}
</script>";

function smiler($textarea) {
$smiles = "";
$smileys = array (
":)" => "smile.gif",
":|" => "frown.gif",
":(" => "sad.gif",
":D" => "grin.gif",
":P" => "pfft.gif",
":o" => "shock.gif",
"B)" => "cool.gif",
":@" => "angry.gif"
);

foreach($smileys as $key=>$smiley) $smiles .= "<img width=\"14\" height=\"14\" style=\"cursor:pointer;\" src='".IMAGES."smiley/$smiley' onClick=\"insertnewtext('shout_message', '$key');\">\n";
return $smiles;
}


openside($locale['120']);
if (isset($_POST['post_shout'])) {
if (iMEMBER) {
$shout_name = $userdata['user_id'];
} elseif ($settings['guestposts'] == "1") {
$shout_name = trim(stripinput($_POST['shout_name']));
if (is_numeric($shout_name)) $shout_name="";
}
$shout_message = str_replace("\n", " ", $_POST['shout_message']);
$shout_message = preg_replace("/^(.{255}).*$/", "$1", $shout_message);
$shout_message = preg_replace("/([^\s]{25})/", "$1\n", $shout_message);
$shout_message = trim(stripinput(censorwords($shout_message)));
$shout_message = str_replace("\n", "<br>", $shout_message);
if ($shout_name != "" && $shout_message != "") {
if (dbcount("(*)", "shoutbox", "shout_message='$shout_message' AND shout_datestamp+84600>".time())) {
header("Location: ".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
} else {
$result = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '".time()."', '".USER_IP."')");
      {
      }
}
}
header("Location: ".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : ""));
}

if (iMEMBER || $settings['guestposts'] == "1") {
echo "<form name='shoutform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".FUSION_QUERY : "")."'>
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2' align=\"center\">\n";

if (iGUEST) {
echo $locale['121']."<br>
<input type='text' name='shout_name' value='".$userdata['user_name']."' class='textbox' maxlength='32' style='width:240px;'><br>
".$locale['122']."<br>\n";
}
echo "<textarea name='shout_message' rows='3' class='textbox' style='width:200px;'></textarea>
</td>
</tr>
<tr>

<td colspan='2'>".smiler("shout_message")."<input type='submit' name='post_shout' value='".$locale['123']."' class='button'></td>
</tr>
</table>
</form>
<br>\n";

} else {

echo "<center>".$locale['125']."</center><br>\n";

}

$result = dbquery("SELECT count(shout_id) FROM ".$db_prefix."shoutbox");
$numrows = dbresult($result, 0);
$result = dbquery(
"SELECT * FROM ".$db_prefix."shoutbox LEFT JOIN ".$db_prefix."users
ON ".$db_prefix."shoutbox.shout_name=".$db_prefix."users.user_id
ORDER BY shout_datestamp DESC LIMIT 0,".$settings['numofshouts'] );
?>

<ilayer name="nscontainer" width=145 height=160 clip="0,0,145,160">
<layer name="nscontent" width=145 height=160 visibility=hidden>

<?php

if (dbrows($result) != 0) {
$i = 0;
while ($data = dbarray($result)) {
echo "<span class='shoutboxname'>";
if ($data['user_level'] == "103") {
$user = "<b>".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "102") {
$user = "<b>".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "101") {
$user = "".$data['user_name']."";

}

if ($data['user_avatar']!='')
{
$cchar=dbarray($char);
$char='<img src="'.IMAGES.'avatars/'.$data['user_avatar'].'" alt="" title="" style=" margin: 2px;" align="left" height="35" width="35">';

}else {$char='<img src="'.IMAGES.'avatars/noava.png" alt="" title="" style=" margin: 2px;" align="left" height="35" width="35">';}

if ($data['user_name']) {
echo $char;
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>$user</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n";

} else {

echo "".$data['shout_name']."\n";
}

echo "<span class='shoutboxdate'>".showdate("shortdate", $data['shout_datestamp'])."</span><br>

<span class='shoutbox'>".parsesmileys($data['shout_message'])."</span><br><br><br>\n";
if ($i != $numrows) echo "<br>\n";
}

if ($numrows > $settings['numofshouts']) {
echo "<br><a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a> </center>\n";

}
} else {

echo "<div align='left'>".$locale['127']."</div>\n";
}

if (iADMIN)
{
$editlink = '<a class="button" href="'.ADMIN.'shoutbox.php'.$aidlink.'"> Admin </a>&nbsp; ';
}
else
{
$editlink='<a class="button" href="'.INFUSIONS.'shoutbox_panel/shoutbox_archive.php">&nbsp;Archive&nbsp;</a>&nbsp;&nbsp;';
}
?>

<table width="140px"><td><p align="right"><?php print($editlink); ?><a class="button" href="<?php print(INFUSIONS); ?>shoutbox_panel/shoutboxhelp.php">&nbsp;<?php print($locale['124']); ?>&nbsp;&nbsp;&nbsp;</a>
</td>
</table>

<?php

closeside();

?>



2010 Bir. 2 14:06:05          2 žinutė iš 6
Spausdinti pranešimą
Negalit niekas padėti? :/ Atsilyginčiau reklama sentel.lt puslapyje.
2010 Bir. 2 19:06:41          3 žinutė iš 6
Spausdinti pranešimą
pabandyk pacia pirma eilute isimt. po <?php

.
2010 Bir. 2 20:06:54          4 žinutė iš 6
Spausdinti pranešimą
Pabandžiau, viskas norm, bet kai pridedu per iframes meta errorą
Fatal error: Call to undefined function openside() in /home/***/public_html/infusions/shoutbox_panel/shoutbox_panel.php on line 45




2010 Bir. 5 20:06:29          5 žinutė iš 6
Spausdinti pranešimą
sujunk su maincore.php

.
2010 Bir. 8 00:06:11          6 žinutė iš 6
Spausdinti pranešimą
Ta prasme sujunkti? shoutbox_panel.php su maincore?
Peršokti į forumą: