Popup Archive

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

15 replies · 1,303 views · started 18 years ago · 1 min read

9 participants
Destiny Newbie · 2 posts #1

If anyone as any plz message me or leave them ere Thanx guys

hypetype Developer · 128 posts #4

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>";
} 
}
thunderwap Developer · 169 posts #5

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!!

metulj Super moderator Principal · 1,726 posts #6

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ノ刀ノイリ!

modfiles Developer · 200 posts #8

it gives me an error.. prematured wml ended something like that.

thunderwap Developer · 169 posts #12

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!!

mcKeny Developer · 130 posts #13

thats bcuz that function doesn't exist

R.M.C

PHP Adovocate B)

thunderwap Developer · 169 posts #14

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!!

Pablo Developer · 164 posts #16

lol lol lol bro bcuz there is no pop up msg lol

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