Pop-up Archive

Started on the old forum in May 2008 · view the original in the archive · old links redirect here

14 replies · 1,019 views · started 18 years ago · 1 min read

5 participants
Guest #1

Is anybody have code for Pop-up message archive? or somebody may write code for archive for pop-up message? Thanks External image (may be gone)

this is my pops.php

<?php

 $uid = getuid_sid($sid);
 $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_pops WHERE touid='".$uid."' AND unread='1'"));
  if($nopop[0]>0)
{
 $sql ="SELECT * FROM ibwf_pops where touid='".$uid."' AND unread = '1' ORDER BY id LIMIT 0, 1";
 $pd = mysql_query($sql);
 while ($pop = mysql_fetch_array($pd))
  {
  $id = mysql_fetch_array(mysql_query("SELECT touid FROM ibwf_pops WHERE touid='".$uid."'"));
  if($uid==$id[0])
  {
    $chread = mysql_query("UPDATE ibwf_pops SET unread='0' WHERE id='".$pop[0]."'");
  }
  $novo2 = $pop[5];
$dtop = date("d.m.y - H:i:s",$novo2);
$by = getnick_uid($pop[2]);
$msg = htmlspecialchars($pop[1]);
echo "[size="1"][b]$by:[/b] $msg - $dtop[/size]
";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
";
echo "[size="1"]<anchor>odgovori<go href=\"popup.php?action=send&sid=$sid\" method=\"post\">";

echo "<postfield name=\"who\" value=\"$pop[2]\"/>";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";

echo "</go></anchor>[/size]";

echo "
---
";
  }
}

and my popup.php

<?php
header("Content-type: text/vnd.wap.wml");
header("Cache-Control: no-store, no-cache, must-revalidate");
echo("<?xml version=\"1.0\"?>");
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<?php
include("config.php");
include("core.php");
connectdb();
$action = $_GET['action'];
$sid = $_GET['sid'];
$who = $_GET['who'];
$msg = $_POST['msg'];
if(islogged($sid)==false)
{
    echo "<card id=\"main\" title=\"$sitename\">";
      echo "<p align=\"center\">";
      echo "You are not logged in
";
      echo "Or Your session has been expired

";
      echo "<a href=\"index.php\">Login</a>";
      echo "</p>";
      echo "</card>";
      echo "</wml>";
      exit();
}
$uid = getuid_sid($sid);
if(isbanned($uid))
    {
        echo "<card id=\"main\" title=\"$sitename\">";
      echo "<p align=\"center\">";
      echo "<img src=\"images/notok.gif\" alt=\"x\"/>
";
      echo "You are [b]Banned[/b]
";
      $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));
      $remain = $banto[0]- time();
      $rmsg = gettimemsg($remain);
      echo "Time to finish your penalty: $rmsg

";
      //echo "<a href=\"index.php\">Login</a>";
      echo "</p>";
      echo "</card>";
      echo "</wml>";
      exit();
    }
if($action=="send"){

addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Popup-PM\">";
      echo "<p align=\"center\">";
echo "$getbuttons 

";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
echo "Sending Popup-PM to ".$whonick."
";
echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
";
echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&who=$who&sid=$sid\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></anchor>[/size]";
echo "

<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
else if($action=="sendto")
{
addonline(getuid_sid($sid),"Sending pop-up MSG","");
echo "<card id=\"main\" title=\"Send Pop-up\">";
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_sid($sid);
$tm = time();
$res = mysql_query("INSERT INTO popup SET text='".$msg."',byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "Popup Poruka Poslata za $whonick!";
echo "
========================
";
echo "[b]Online:[/b] <a href=\"index.php?action=online&sid=$sid\">".getnumonline()."</a>";
echo "
===========
";
    include ('lastpost_wappyMOD2.php');
echo "

<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
?>
</wml>
Ricky21ster Developer · 139 posts #3

lol romi here it is popup archive put this on list.php then put this code where u want popup listing in place of fun_pops replace it with ibwf_pops coz u have that table

echo "<a href="list.php?action=archive&sid=$sid">Popup Archeive</a>"; CODE//////////////////////////////////User Popups else if($action=="archive") { $who = $_GET["who"]; addonline(getuid_sid($sid),"Pop Up Archive",""); if (mypro(getuid_sid($sid), $who)) { echo "<card id="main" title="Pop Up Archive">"; $uid = getuid_sid($sid); if($page=="" || $page<=0)$page=1; $myid = getuid_sid($sid); $pms = mysql_fetch_array(mysql_query("SELECT COUNT() FROM fun_pops WHERE touid=$uid ORDER BY timesent")); echo mysql_error(); $num_items = $pms[0]; //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)$items_per_page; if($num_items>0) { echo "

"; $pms = mysql_query("SELECT byuid, touid, text, timesent FROM fun_pops WHERE touid=$uid ORDER BY timesent DESC LIMIT $limit_start, $items_per_page"); while($pm=mysql_fetch_array($pms)) { if(isonline($pm[0])) { $onlby = "<img src="../images/onl.gif" alt="+"/>"; }else{ $onlby = "<img src="../images/ofl.gif" alt="-"/>"; } if(isonline($pm[1])) { $onlto = "<img src="../images/onl.gif" alt="+"/>"; }else{ $onlto = "<img src="../images/ofl.gif" alt="-"/>"; } $bylnk = "<a href="index.php?action=viewbud&who=$pm[0]&sid=$sid">".getnick_uid($pm[0])."</a>"; //$tolnk = "<a href="index.php?action=viewuser&who=$pm[1]&sid=$sid">$onlto".getnick_uid($pm[1])."</a>"; echo "$bylnk "; $tmopm = date("D d M y - h:i:s",$pm[3]); echo " $tmopm ";

    echo parsepm($pm[2], $sid);

echo "

"; } echo "

"; if($page>1) { $ppage = $page-1; echo "<a href="lists.php?action=archive&page=$ppage&sid=$sid&who=$who">«Prev</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href="lists.php?action=archive&page=$npage&sid=$sid&who=$who">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { $rets = "Jump to page<input name="pg" format="*N" size="3"/>"; $rets .= "<anchor>[GO]"; $rets .= "<go href="lists.php" method="get">"; $rets .= "<postfield name="action" value="$action"/>"; $rets .= "<postfield name="sid" value="$sid"/>"; $rets .= "<postfield name="page" value="$(pg)"/>"; $rets .= "<postfield name="who" value="$who"/>"; $rets .= "</go></anchor>";

  echo $rets;
  }
  }else{
    echo "

"; echo "NO DATA"; }

echo " "; echo " "; $unick = getnick_uid($who); echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt=""/>"; echo "Home</a>"; echo " "; echo "</card>"; }else{ echo "<card id="main" title="Error!!!">"; echo " "; echo "This Popup Archieve is not your's! "; echo " "; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt=""/> Home</a>"; echo " "; echo "</card>"; } }

get cheap web hosting ever AdzeHost

get free hosting for life time hostwebswap not allowed

get free cpanel web hosting free cpanel hostingwap are allowed

External image (may be gone)

Guest #8

Ricky21ster I put your code in list.php and that no work...

This Popup Archieve is not your's!

But archive is mine External image (may be gone)

I don`t understand about you talking more?

alesh Lead · 604 posts #9

WTF u r talking about? Arhive is ur coding? R u brain dead?

eeeeerrr....

Ricky21ster Developer · 139 posts #10

1st thing every thing is blaze's so dont get bother about that ppls just implementing the codes and no one claims any of the codes his or her coz each and every part is of blaze so better dnt get bother u got this free script use it and enjoy i dont use lavalair any more from last one year i hav my own script i totally leave wap codings i love web code its really fun lol dnt get bother about any of the codes lol dacha play with codes n try to fix it some where i think hypetype hav that code working ask him lol

get cheap web hosting ever AdzeHost

get free hosting for life time hostwebswap not allowed

get free cpanel web hosting free cpanel hostingwap are allowed

External image (may be gone)

Guest #11

1st thing every thing is blaze's so dont get bother about that ppls just implementing the codes and no one claims any of the codes his or her coz each and every part is of blaze so better dnt get bother u got this free script use it and enjoy i dont use lavalair any more from last one year i hav my own script i totally leave wap codings i love web code its really fun lol dnt get bother about any of the codes lol dacha play with codes n try to fix it some where i think hypetype hav that code working ask him lol

I try and hypetype code but not working External image (may be gone)

alesh Lead · 604 posts #14

It must hurt when u fall on ur head, am i right?

eeeeerrr....

metulj Super moderator Principal · 1,726 posts #15

and me too...but pop archive is mine External image (may be gone)

you mind to stop posting bollox?!? thank you locked

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close