Messages 4 Page

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

33 replies · 1,921 views · started 18 years ago · 1 min read

11 participants
sweetangel Lead · 885 posts #1

hi friends External image (may be gone) I have modify page chat.php at my wapdesire script :

   
 addtochat($uid, $rid);
        $timeto = 90000;
        $timenw = time();
        $timeout = $timenw-$timeto;
        $deleted = mysql_query("DELETE FROM ibwf_chat WHERE timesent<".$timeout."");
        $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
        $rname = $rooms[1];
        $nick = getnick_sid($sid);

any1 say how I can setting max 20 messages 4 page??? and how this:

    if($page>1)
    {
      $ppage = $page-1;
      echo "<a href=\"chat.php?action=$action&page=$ppage&sid=$sid\">«PREC</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"chat.php?action=$action&page=$npage&sid=$sid\">Succ»</a>";
    }
    echo "
$page/$num_pages
";

please help to fix...External image (may be gone)

if like my post click:

External image (may be gone)

thanatos Senior · 261 posts #2

hi friends External image (may be gone) I have modify page chat.php at my wapdesire script :

   
 addtochat($uid, $rid);
        $timeto = 90000;
        $timenw = time();
        $timeout = $timenw-$timeto;
        $deleted = mysql_query("DELETE FROM ibwf_chat WHERE timesent<".$timeout."");
        $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
        $rname = $rooms[1];
        $nick = getnick_sid($sid);

any1 say how I can setting max 20 messages 4 page??? and how this:

    if($page>1)
    {
      $ppage = $page-1;
      echo "<a href=\"chat.php?action=$action&page=$ppage&sid=$sid\">«PREC</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"chat.php?action=$action&page=$npage&sid=$sid\">Succ»</a>";
    }
    echo "
$page/$num_pages
";

please help to fix...External image (may be gone)

you need to edit the db query to show items on pages.. External image (may be gone)

thanatos Senior · 261 posts #4

like this.. pmpl.. External image (may be gone)

    if($page=="" || $page<=0)$page=1;
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(msgtext) FROM ibwf_chat WHERE rid='".$rid."'"));
    $num_items = $noi[0]; //changable
    $items_per_page= 20;
    $num_pages = ceil($num_items/$items_per_page);
    if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;

$sql = "SELECT chatter, who, timesent, msgtext, exposed FROM ibwf_chat rid='".$rid."' ORDER BY timesent DESC LIMIT $limit_start, $items_per_page";
darkdesire Senior · 250 posts #6

here's an idea for you, look through your coding to find the bit that thanatos kindly edited for you, its not exactly hard to find using the find/replace tool in whatever prog you use to edit, come on use your common sense for once and dont ask questions until you've made a decent attempt to do the editing yourself

:p:p:p

metulj Super moderator Principal · 1,726 posts #10

you always have problems thats because you can code nothing External image (may be gone)

her problem is more that she never even try anything on hers own she just come here and beg for help... eventhough it could be done be herself in 30 seconds External image (may be gone) 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ノ刀ノイリ!

Guest #11

her problem is more that she never even try anything on hers own she just come here and beg for help... eventhough it could be done be herself in 30 seconds External image (may be gone) External image (may be gone)

dont be so bad with her ![](http://www.2wap.org/forums/style_emoticons/<#EMO_DIR#>/smile.gif) ... shes novice..

metulj Super moderator Principal · 1,726 posts #12

dont be so bad with her ![](http://www.2wap.org/forums/style_emoticons/<#EMO_DIR#>/smile.gif) ... shes novice..

novice External image (may be gone)

Posts: 595 Joined: 24-December 06

this doesnt look like novice External image (may be gone) 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ノ刀ノイリ!

Guest #16

BEG TAKE A PICTURE OF YU ON YA KNEES HOLDING A PLACK SAYIN MEMBERS OF 2WAP HELP ME. THEN I AND OTHERS MAY CONSIDER

eheh External image (may be gone) don`t be so rude with her .. =))

WhiteWarrior Principal · 1,419 posts #18

BEG TAKE A PICTURE OF YU ON YA KNEES HOLDING A PLACK SAYIN MEMBERS OF 2WAP HELP ME. THEN I AND OTHERS MAY CONSIDER

LMAO!! if she done that i'd help her with whatever she wants when ever she wants it lol!

an kosty, its not being rude, its talking facts! nobody here helps her because when you do you don't get a thanks, she just continues to beg more, and if you really feel bad for her then you help her personally, to be honest, the only help she needs is mental help, nobody in the world asks for so much. take a look thru the forums, shes not shared one thing, shes not helped anyone, shes not even said thanks... and she had the correct coding here but she just don't have a clue how to add it, i don't mean it rude to her but her best bet is to close her sites, goto some sort of coding college learn the basics then start again.

i gotta add, shes also a lier! she thinks in a matter of about 2 months her site has grown bigger then the sites that have been around years like prodigits etc..

Guest #19

LMFAO site bigger than prodigits etc?? Does her site even work??

crazybrumi Super moderator Principal · 1,064 posts #20

i gotta add, shes also a lier! she thinks in a matter of about 2 months her site has grown bigger then the sites that have been around years like prodigits etc..

saying that she has never givern her site addy out here; she prob knows itl get hacked

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

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