Popup Archive
Started on the old forum in February 2008 · view the original in the archive · old links redirect here
when any other normal person says that they tend to share it with the person who requests it lol not jus say yh sure lol
Want something coded email me at sales@webnwaphost.com for a prices.
place this coding on bud list page in php
echo "+<a href="lists.php?action=archive&sid=$sid&who=$uid">Pop Up Archive</a> ";
place this coding in list.php
//////////////////////////////////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 ibwf_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 ibwf_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 "
[size="1"]---[/size]
";
}
echo "</p><p align=\"center\">";
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 "<p align=\"center\">";
echo "NO DATA";
}
echo "</p>";
echo "<p align=\"center\">";
$unick = getnick_uid($who);
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}else{
echo "<card id=\"main\" title=\"Error!!!\">";
echo "<p align=\"center\">";
echo "This is NOT your pop up archive!
";
echo "
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/> Home</a>";
echo "</p>";
echo "</card>";
}
}
place this coding on bud list page in php
echo "+<a href="lists.php?action=archive&sid=$sid&who=$uid">Pop Up Archive</a> "; place this coding in list.php
//////////////////////////////////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 ibwf_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 ibwf_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 "</p><p align=\"center\">"; 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 "<p align=\"center\">"; echo "NO DATA"; } echo "</p>"; echo "<p align=\"center\">"; $unick = getnick_uid($who); echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; }else{ echo "<card id=\"main\" title=\"Error!!!\">"; echo "<p align=\"center\">"; echo "This is NOT your pop up archive! "; echo " "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/> Home</a>"; echo "</p>"; echo "</card>"; } }
thanks hyptetype. but where to put this codings
echo "+<a href="lists.php?action=archive&sid=$sid&who=$uid">Pop Up Archive</a><br
in which php. index or list
WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!
thanks hyptetype. but where to put this codings
echo "+<a href="lists.php?action=archive&sid=$sid&who=$uid">Pop Up Archive</a><br in which php. index or list
read his reply properly.... he said "place this coding on bud list page in php" so.... find that coding about bud list and place posted code in there... nothing hard about that... External image (may be gone)
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ノ刀ノイリ!
Thanx guys for helpin me wiv that codein was big help External image (may be gone) n pmpl @ brumi ya nutter
it gives me an error.. prematured wml ended something like that.
yes modfiles is rite. i m also getting error like
Call to undefined function: mypro() in
WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!
BUT WHY IT GIVES ERROR.THERE ALREADY EXISTS POP UP CODINGS THEN ALSO IT GIVES THAT ERRORS.
WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!
when I click on the the link i get NO DATA. what could be the cause of that?
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)