Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Šaukykla
Parašė robert· 2008 Rugs. 4 16:09:46
#1
Sveiki gal kas žino kaip padaryti, kad šita "Šaukykla" butu ilgesnė
Štai šaukyklos kodas :
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
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",
";)" => "wink.gif",
":(" => "sad.gif",
":p" => "pfft.gif",
"B)" => "cool.gif",
":D" => "grin.gif",
);
foreach($smileys as $key=>$smiley) $smiles .= "<img width=\"10\" height=\"10\" 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:140px;'><br>
".$locale['122']."<br>\n";
}
echo "<textarea name='shout_message' rows='4' class='textbox' style='width:140px;'></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']
);
?>
<script type="text/javascript">
/******************************************
* Scrollable content script II- © Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=5
if (iens6){
document.write('<div id="container" style="position:relative;width:145px;height:220px;border:1px solid black;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:145px;left:0;top:0">')
}
</script>
<ilayer name="nscontainer" width=145 height=240 clip="0,0,145,160">
<layer name="nscontent" width=145 height=240 visibility=hidden>
<?php
if (dbrows($result) != 0) {
$i = 0;
while ($data = dbarray($result)) {
echo "<span class='shoutboxname'>";
if ($data['user_level'] == "103") {
$user = "<font color='#ffffff'><b>".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "102") {
$user = "<font color='#f1ebf1'><b>~".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "101") {
$user = "".$data['user_name']."";
}
if ($data['user_name']) {
echo $char;
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>$user</a><br>\n";
} else {
echo "".$data['shout_name']."\n";
}
echo "</span><br>
<span class='shoutbox'>".parsesmileys($data['shout_message'])."</span><br>\n";
if ($i != $numrows) echo "<br>\n";
}
if ($numrows > $settings['numofshouts']) {
echo "<center>\n<img src='".THEME."images/bullet.gif'>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a> <img src='".THEME."images/bulletb.gif'></center>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
if (iADMIN)
{
$editlink = '<a class="button" href="'.ADMIN.'shoutbox.php'.$aidlink.'"> Admin </a> ';
}
else
{
$editlink='<a class="button" href="'.INFUSIONS.'shoutbox_panel/shoutbox_archive.php"> Archive </a> ';
}
?>
</layer></ilayer>
<script language="JavaScript1.2">
if (iens6)
document.write('</div></div>')
</script>
<table width="140px"><td><p align="right"><?php print($editlink); ?>
<a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)"><img src="<?php print(INFUSIONS); ?>shoutbox_panel/images/up.gif" border=0></a> <a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)"><img src="<?php print(INFUSIONS); ?>shoutbox_panel/images/down.gif" border=0></a></p>
</td>
</table>
<script language="JavaScript1.2">
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",20)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",20)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</script>
<?php
closeside();
?>
Parašė vlc· 2008 Rugs. 4 16:09:42
#2
nzn ar tirai veikia,bet manau turetu :)
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
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",
";)" => "wink.gif",
":(" => "sad.gif",
":p" => "pfft.gif",
"B)" => "cool.gif",
":D" => "grin.gif",
);
foreach($smileys as $key=>$smiley) $smiles .= "<img width=\"10\" height=\"10\" 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:140px;'><br>
".$locale['122']."<br>\n";
}
echo "<textarea name='shout_message' rows='4' class='textbox' style='width:140px;'></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']
);
?>
<script type="text/javascript">
/******************************************
* Scrollable content script II- © Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=5
if (iens6){
document.write('<div id="container" style="position:relative;width:145px;height:220px;border:1px solid black;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:145px;left:0;top:0">')
}
</script>
<ilayer name="nscontainer" width=145 height=240 clip="0,0,145,160">
<layer name="nscontent" width=145 height=240 visibility=hidden>
<?php
if (dbrows($result) != 0) {
$i = 0;
while ($data = dbarray($result)) {
echo "<span class='shoutboxname'>";
if ($data['user_level'] == "103") {
$user = "<font color='#ffffff'><b>".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "102") {
$user = "<font color='#f1ebf1'><b>~".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "101") {
$user = "".$data['user_name']."";
}
if ($data['user_name']) {
echo $char;
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>$user</a><br>\n";
} else {
echo "".$data['shout_name']."\n";
}
echo "</span><br>
<span class='shoutbox'>".parsesmileys($data['shout_message'])."</span><br>\n";
if ($i != $numrows) echo "<br>\n";
}
if ($numrows > $settings['numofshouts']) {
echo "<center>\n<img src='".THEME."images/bullet.gif'>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a> <img src='".THEME."images/bulletb.gif'></center>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
if (iADMIN)
{
$editlink = '<a class="button" href="'.ADMIN.'shoutbox.php'.$aidlink.'"> Admin </a> ';
}
else
{
$editlink='<a class="button" href="'.INFUSIONS.'shoutbox_panel/shoutbox_archive.php"> Archive </a> ';
}
?>
</layer></ilayer>
<script language="JavaScript1.2">
if (iens6)
document.write('</div></div>')
</script>
<table width="140px"><td><p align="right"><?php print($editlink); ?>
<a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)"><img src="<?php print(INFUSIONS); ?>shoutbox_panel/images/up.gif" border=0></a> <a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)"><img src="<?php print(INFUSIONS); ?>shoutbox_panel/images/down.gif" border=0></a></p>
</td>
</table>
<script language="JavaScript1.2">
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",40)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",20)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</script>
<?php
closeside();
?>
Redagavo vlc· 2008 Rugs. 4 16:09:58
Parašė robert· 2008 Rugs. 4 16:09:22
#3
neviekia :|
Parašė vlc· 2008 Rugs. 4 16:09:18
#4
O dabar?
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
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",
";)" => "wink.gif",
":(" => "sad.gif",
":p" => "pfft.gif",
"B)" => "cool.gif",
":D" => "grin.gif",
);
foreach($smileys as $key=>$smiley) $smiles .= "<img width=\"10\" height=\"10\" 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:140px;'><br>
".$locale['122']."<br>\n";
}
echo "<textarea name='shout_message' rows='4' class='textbox' style='width:140px;'></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']
);
?>
<script type="text/javascript">
/******************************************
* Scrollable content script II- © Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=5
if (iens6){
document.write('<div id="container" style="position:relative;width:145px;height:220px;border:1px solid black;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:145px;left:0;top:0">')
}
</script>
<ilayer name="nscontainer" width=145 height=240 clip="0,0,145,160">
<layer name="nscontent" width=145 height=240 visibility=hidden>
<?php
if (dbrows($result) != 0) {
$i = 0;
while ($data = dbarray($result)) {
echo "<span class='shoutboxname'>";
if ($data['user_level'] == "103") {
$user = "<font color='#ffffff'><b>".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "102") {
$user = "<font color='#f1ebf1'><b>~".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "101") {
$user = "".$data['user_name']."";
}
if ($data['user_name']) {
echo $char;
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>$user</a><br>\n";
} else {
echo "".$data['shout_name']."\n";
}
echo "</span><br>
<span class='shoutbox'>".parsesmileys($data['shout_message'])."</span><br>\n";
if ($i != $numrows) echo "<br>\n";
}
if ($numrows > $settings['numofshouts']) {
echo "<center>\n<img src='".THEME."images/bullet.gif'>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a> <img src='".THEME."images/bulletb.gif'></center>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
if (iADMIN)
{
$editlink = '<a class="button" href="'.ADMIN.'shoutbox.php'.$aidlink.'"> Admin </a> ';
}
else
{
$editlink='<a class="button" href="'.INFUSIONS.'shoutbox_panel/shoutbox_archive.php"> Archive </a> ';
}
?>
</layer></ilayer>
<script language="JavaScript1.2">
if (iens6)
document.write('</div></div>')
</script>
<table width="140px"><td><p align="right"><?php print($editlink); ?>
<a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)"><img src="<?php print(INFUSIONS); ?>shoutbox_panel/images/up.gif" border=0></a> <a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)"><img src="<?php print(INFUSIONS); ?>shoutbox_panel/images/down.gif" border=0></a></p>
</td>
</table>
<script language="JavaScript1.2">
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",50)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",50)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</script>
<?php
closeside();
?>
Parašė robert· 2008 Rugs. 4 16:09:05
#5
ne :|
Parašė vlc· 2008 Rugs. 4 16:09:51
#6
nu nzn,prisek man ta saukykla jei gali :)
Redagavo vlc· 2008 Rugs. 4 16:09:02
Parašė Žmogus· 2008 Rugs. 4 16:09:38
#8
<ilayer name="nscontainer" width=145 height=240 clip="0,0,145,160">
<layer name="nscontent" width=145 height=240 visibility=hidden>
Čia kažkur atrodo
Parašė robert· 2008 Rugs. 4 16:09:09
#9
ShadoVw ten jau keicau nepadejo :|
Parašė vlc· 2008 Rugs. 4 16:09:37
#10
va dabar turetu tirai veikt :)
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
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",
";)" => "wink.gif",
":(" => "sad.gif",
":p" => "pfft.gif",
"B)" => "cool.gif",
":D" => "grin.gif",
);
foreach($smileys as $key=>$smiley) $smiles .= "<img width=\"10\" height=\"10\" 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:140px;'><br>
".$locale['122']."<br>\n";
}
echo "<textarea name='shout_message' rows='4' class='textbox' style='width:140px;'></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']
);
?>
<script type="text/javascript">
/******************************************
* Scrollable content script II- © Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=5
if (iens6){
document.write('<div id="container" style="position:relative;width:145px;height:220px;border:1px solid black;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:145px;left:0;top:0">')
}
</script>
<ilayer name="nscontainer" width=240 height=240 clip="0,0,145,160">
<layer name="nscontent" width=145 height=240 visibility=hidden>
<?php
if (dbrows($result) != 0) {
$i = 0;
while ($data = dbarray($result)) {
echo "<span class='shoutboxname'>";
if ($data['user_level'] == "103") {
$user = "<font color='#ffffff'><b>".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "102") {
$user = "<font color='#f1ebf1'><b>~".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "101") {
$user = "".$data['user_name']."";
}
if ($data['user_name']) {
echo $char;
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>$user</a><br>\n";
} else {
echo "".$data['shout_name']."\n";
}
echo "</span><br>
<span class='shoutbox'>".parsesmileys($data['shout_message'])."</span><br>\n";
if ($i != $numrows) echo "<br>\n";
}
if ($numrows > $settings['numofshouts']) {
echo "<center>\n<img src='".THEME."images/bullet.gif'>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a> <img src='".THEME."images/bulletb.gif'></center>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
if (iADMIN)
{
$editlink = '<a class="button" href="'.ADMIN.'shoutbox.php'.$aidlink.'"> Admin </a> ';
}
else
{
$editlink='<a class="button" href="'.INFUSIONS.'shoutbox_panel/shoutbox_archive.php"> Archive </a> ';
}
?>
</layer></ilayer>
<script language="JavaScript1.2">
if (iens6)
document.write('</div></div>')
</script>
<table width="140px"><td><p align="right"><?php print($editlink); ?>
<a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)"><img src="<?php print(INFUSIONS); ?>shoutbox_panel/images/up.gif" border=0></a> <a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)"><img src="<?php print(INFUSIONS); ?>shoutbox_panel/images/down.gif" border=0></a></p>
</td>
</table>
<script language="JavaScript1.2">
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",50)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",50)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</script>
<?php
closeside();
?>
Parašė robert· 2008 Rugs. 4 16:09:56
#11
Zapojus parašė:
va dabar turetu tirai veikt :)
......
Isvis neveikia, nerodo shuotboxo
Parašė vlc· 2008 Rugs. 4 16:09:50
#12
pzdc ;D as pakeiciau taip pat ka ir parase pries mane shadow
Parašė robert· 2008 Rugs. 4 16:09:24
#13
daugiau nieks nežino kaip padaryti ja ilgesnę?
Parašė vlc· 2008 Rugs. 4 16:09:40
#14
beje,kaip ats failas vadinasi kuri man rodei?
Parašė robert· 2008 Rugs. 4 16:09:00
#15
shoutbox_panel.php
Parašė vlc· 2008 Rugs. 4 16:09:17
#16
pas mane makalyne tam faile rodo :D
Parašė robert· 2008 Rugs. 4 16:09:00
#17
aš jį koregavau kad avatar nerodytų ir t.t. ieškojau vietų kur galima būtų pakeisti ilgį, bet taip ir neradau :(
Parašė vlc· 2008 Rugs. 4 16:09:16
#18
va pagaliua padariau
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
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",
";)" => "wink.gif",
":(" => "sad.gif",
":p" => "pfft.gif",
"B)" => "cool.gif",
":D" => "grin.gif",
);
foreach($smileys as $key=>$smiley) $smiles .= "<img width=\"10\" height=\"10\" 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:140px;'><br>
".$locale['122']."<br>\n";
}
echo "<textarea name='shout_message' rows='4' class='textbox' style='width:140px;'></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']
);
?>
<script type="text/javascript">
/******************************************
* Scrollable content script II- © Dynamic Drive (www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=5
if (iens6){
document.write('<div id="container" style="position:relative;width:200px;height:320px;border:1px solid black;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:145px;left:0;top:0">')
}
</script>
<ilayer name="nscontainer" width=145 height=240 clip="0,0,145,160">
<layer name="nscontent" width=145 height=240 visibility=hidden>
<?php
if (dbrows($result) != 0) {
$i = 0;
while ($data = dbarray($result)) {
echo "<span class='shoutboxname'>";
if ($data['user_level'] == "103") {
$user = "<font color='#ffffff'><b>".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "102") {
$user = "<font color='#f1ebf1'><b>~".$data['user_name']."</b></font>";
} else if ($data['user_level'] == "101") {
$user = "".$data['user_name']."";
}
if ($data['user_name']) {
echo $char;
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>$user</a><br>\n";
} else {
echo "".$data['shout_name']."\n";
}
echo "</span><br>
<span class='shoutbox'>".parsesmileys($data['shout_message'])."</span><br>\n";
if ($i != $numrows) echo "<br>\n";
}
if ($numrows > $settings['numofshouts']) {
echo "<center>\n<img src='".THEME."images/bullet.gif'>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a> <img src='".THEME."images/bulletb.gif'></center>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
if (iADMIN)
{
$editlink = '<a class="button" href="'.ADMIN.'shoutbox.php'.$aidlink.'"> Admin </a> ';
}
else
{
$editlink='<a class="button" href="'.INFUSIONS.'shoutbox_panel/shoutbox_archive.php"> Archive </a> ';
}
?>
</layer></ilayer>
<script language="JavaScript1.2">
if (iens6)
document.write('</div></div>')
</script>
<table width="140px"><td><p align="right"><?php print($editlink); ?>
<a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)"><img src="<?php print(INFUSIONS); ?>shoutbox_panel/images/up.gif" border=0></a> <a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)"><img src="<?php print(INFUSIONS); ?>shoutbox_panel/images/down.gif" border=0></a></p>
</td>
</table>
<script language="JavaScript1.2">
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",20)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",20)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</script>
<?php
closeside();
?>
Jei nori kad butu dar ilgesne keisk
document.write('<div id="container" style="position:relative;width:200px;height:320px;border:1px solid black;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:145px;left:0;top:0">')
Parašė robert· 2008 Rugs. 4 16:09:17
#19
ooo dėkuj ;)