Lavalair Mods...

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16







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

    Comment


      #17
      Code:
      bronze~silver~gold version






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

      Comment


        #18









        if you dont like images.. make your own :P
        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ノ刀ノイリ!

        Comment


          #19
          this might help for blog comments aswell

          in genproc.php action=delbl

          $res = mysql_query("DELETE FROM ibwf_blogcomment WHERE blogowner='".$bid."'");
          Last edited by something else; 28.12.11, 20:30. Reason: quotes are screwed up due to forum swap over

          Comment


            #20
            Code:
            $avlink = getavatar($item[2]);
            if ($avlink!=""){
            echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>
            ";
            }else{
            echo "<img src=\"images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>
            ";
            }
            here sumthing some ppl mabe looking for well i did and ppl here helped me to complete it use this code to see user avatar next to their names in online list forums etc

            Comment


              #21
              Code:
              $vfc = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Viewing Forum Category&#39;"));
              $vft = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Viewing Forum Topic&#39;")); 
              $vfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Viewing Forum&#39;"));
              $cnt = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Creating new topic&#39;")); 
              $pry = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Posting reply&#39;")); 
              $nif = $vfc[0] + $vft[0] + $vfo[0] + $cnt[0] + $pry[0];
              echo "<a href=\"index.php?action=forumindx&amp;sid=$sid\">Forums($nif)</a>
              ";
              i found this on other site how do i use it

              Comment


                #22
                Code:
                $vfc = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Viewing Forum Category&#39;"));
                
                $vft = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Viewing Forum Topic&#39;")); 
                
                $vfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Viewing Forum&#39;"));
                
                $cnt = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Creating new topic&#39;")); 
                
                $pry = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Posting reply&#39;")); 
                
                echo "$vfc[0] members Viewing Forum Category
                ";
                
                echo "$vft[0] members Viewing Forum Topic
                ";
                
                echo "$vfo[0]Viewing Forum
                ";
                
                echo "$cnt[0] members Creating new topic
                ";
                
                echo "$pry[0] members Posting reply
                ";
                2 much useless infos lol
                sigpiceeeeerrr....

                Comment


                  #23
                  same way as before as online list but change
                  Code:
                  ///////for 1st post in topic
                  $avlink = getavatar($ttext[0]);
                  if ($avlink!=""){
                  echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>
                  ";
                  }else{
                  echo "<img src=\"images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>
                  ";
                  }
                   ////then for posts
                  $avlink = getavatar($post[2]);
                  if ($avlink!=""){
                  echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>
                  ";
                  }else{
                  echo "<img src=\"images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>
                  ";
                  }
                  but its a really naff way of doing it. and will slow your topics down lol

                  Comment


                    #24
                    <div class='quotetop'>QUOTE (Numb @ Jan 13 2009, 05:29 PM) <{POST_SNAPBACK}></div>
                    Code:
                    $vfc = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Viewing Forum Category&#39;"));
                    $vft = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Viewing Forum Topic&#39;")); 
                    $vfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Viewing Forum&#39;"));
                    $cnt = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Creating new topic&#39;")); 
                    $pry = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place=&#39;Posting reply&#39;")); 
                    $nif = $vfc[0] + $vft[0] + $vfo[0] + $cnt[0] + $pry[0];
                    echo "<a href=\"index.php?action=forumindx&amp;sid=$sid\">Forums($nif)</a>
                    ";
                    i found this on other site how do i use it[/b]
                    dont do it alesh`s way cos that is useless
                    just change your forum link on action=main to that code and it will tell you how many people are in the forums
                    eg:
                    Chat(46)
                    Forums(157)

                    Comment


                      #25
                      Avatar inbox

                      find
                      Code:
                      echo "$ptxt $bylnk
                      ";
                      into"readpm" action
                      and replace with this code.

                      Code:
                        echo "$ptxt";
                          $uid =$pminfo[1];
                          $avatar = getavatar($uid);
                         if ($avatar=="")
                        { 
                        echo"<img src=\"mages/nopic.jpg\" width=\"32\" height=\"32\" alt=\"avatar\"/>";
                        }else{
                      echo"<img src=\"$avatar\" width=\"32\" height=\"32\" alt=\"avatar\"/>";
                      }
                      echo "$bylnk
                      ";

                      Comment


                        #26
                        for 1st Post !
                        index.php action="viewtpc".
                        (after
                        Code:
                        $unick = getnick_uid($ttext[0]);
                        )
                        add this

                        Code:
                        uid =$ttext[0];
                            $avatar = getavatar($uid);
                           if ($avatar=="")
                          { 
                          echo"<img src=\"images/nopic.jpg\" width=\"32\" height=\"32\" alt=\"avatar\"/>";
                          }else{
                        echo"<img src=\"$avatar\" width=\"32\" height=\"32\" alt=\"avatar\"/>";
                        }
                        for other replied posts
                        find and add after

                        Code:
                        $unick = getnick_uid($post[2]);
                        Code:
                         $uid =$post[2];
                            $avatar = getavatar($uid);
                           if ($avatar=="")
                          { 
                          echo"<img src=\"images/nopic.jpg\" width=\"32\" height=\"32\" alt=\"avatar\"/>";
                          }else{
                        echo"<img src=\"$avatar\" width=\"32\" height=\"32\" alt=\"avatar\"/>";
                        }
                        to get avatar exact before username remove</br> into $usl .

                        Comment


                          #27
                          Code:
                          echo $pmtext;
                               echo "
                          <input name=\"pmtext\" maxlength=\"500\"/>
                          ";
                            echo "<anchor>+ Fast reply<go href=\"inbxproc.php?action=sendpm&amp;who=$pminfo[1]&amp;sid=$sid\" method=\"post\">";
                            echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>";
                            echo "</go></anchor>
                          ";
                          this u can put in the inbox

                          add before or after
                          Code:
                           echo "
                          ";
                            echo "</p>";
                            echo "<p align=\"center\">";
                            
                            echo "Action: <select name=\"pmact\">";
                            echo "<option value=\"rep-$pmid\">Reply</option>";
                            echo "<option value=\"del-$pmid\">Delete</option>";
                            if(isstarred($pmid))
                            {
                              echo "<option value=\"ust-$pmid\">Unstar</option>";
                            }else{
                            echo "<option value=\"str-$pmid\">Star</option>";
                            }
                            echo "<option value=\"rpt-$pmid\">Report</option>";
                            
                              echo "<option value=\"frd-$pmid\">Email To</option>";
                              echo "<option value=\"dnl-$pmid\">Download</option>";
                            
                            echo "</select>";
                          or anyplace u want in the inbox

                          Comment


                            #28
                            code to update plusses after shout
                            replace this action in genproc.php
                            CODE
                            Code:
                            //////////////////////////////////////////shout
                            
                            else if($action=="shout")
                            {
                              $shtxt = $_POST["shtxt"];
                                addonline(getuid_sid($sid),"close your ears im Shouting","");
                            
                                echo "<card id=\"main\" title=\"Shout\">";
                                echo "<p align=\"center\">";
                                if(getplusses(getuid_sid($sid))<5)
                                {
                                    echo "<img src=\"images/notok.gif\" alt=\"X\"/>You should have at least 5 plusses to shout!";
                                }else{
                                  $shtxt = $shtxt;
                                //$uid = getuid_sid($sid);
                                $shtm = time();
                                $res = mysql_query("INSERT INTO ibwf_shouts SET shout=&#39;".$shtxt."&#39;, shouter=&#39;".$uid."&#39;, shtime=&#39;".$shtm."&#39;");
                                if($res)
                                {
                                $shts = mysql_fetch_array(mysql_query("SELECT shouts from ibwf_users WHERE id=&#39;".$uid."&#39;"));
                                $shts = $shts[0]+1;
                                mysql_query("UPDATE ibwf_users SET shouts=&#39;".$shts."&#39; WHERE id=&#39;".$uid."&#39;");
                                $cow = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                                $cow = $cow[0]+20;
                                mysql_query("UPDATE ibwf_users SET plusses=&#39;".$cow."&#39; WHERE id=&#39;".$uid."&#39;");
                                echo "<img src=\"images/ok.gif\" alt=\"O\"/>Shout added successfully";
                                }else{
                                    echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
                                }
                                        }
                                     echo "
                            
                            <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                            echo "Home</a>";
                                echo "</p>";
                                echo "</card>";
                            }
                            code to update plusses after sending PM
                            replace these actions in inbxproc.php
                            CODE
                            Code:
                            if($action=="sendpm")
                            {
                              echo "<card id=\"main\" title=\"Inbox\">";
                              echo "<p align=\"center\">";
                              $whonick = getnick_uid($who);
                              $byuid = getuid_sid($sid);
                              $tm = time();
                              $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid=&#39;".$byuid."&#39;"));
                              $pmfl = $lastpm[0]+getpmaf();
                              if($byuid==1)$pmfl=0;
                              if($pmfl<$tm)
                              {
                                if(!isblocked($pmtext,$byuid))
                                {
                                if((!isignored($byuid, $who))&&(!istrashed($byuid)))
                                {
                              $res = mysql_query("INSERT INTO ibwf_private SET text=&#39;".$pmtext."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
                              }else{
                                $res = true;
                              }
                              if($res)
                              { 
                                $cow = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                                $cow = $cow[0]+10;
                                mysql_query("UPDATE ibwf_users SET plusses=&#39;".$cow."&#39; WHERE id=&#39;".$uid."&#39;");
                            
                                echo "<img src=\"images/ok.gif\" alt=\"O\"/>";
                                echo "PM was sent successfully to $whonick
                            
                            ";
                                echo parsepm($pmtext, $sid);
                                
                              }else{
                                echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
                                echo "Can&#39;t Send PM to $whonick
                            
                            ";
                              }
                              }else{
                                $bantime = time() + (7*24*60*60);
                                echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
                                echo "Can&#39;t Send PM to $whonick
                            
                            ";
                                echo "You just sent a link to one of the crapiest sites on earth
                             The members of these sites spam here a lot, so go to that site and stay there if you don&#39;t like it here
                             as a result of your stupid action:
                            1. you have lost your sheild
                            2. you have lost all your plusses
                            3. You are BANNED!";
                                mysql_query("INSERT INTO ibwf_penalties SET uid=&#39;".$byuid."&#39;, penalty=&#39;1&#39;, exid=&#39;1&#39;, timeto=&#39;".$bantime."&#39;, pnreas=&#39;Banned: Automatic Ban for spamming for a crap site&#39;");
                                mysql_query("UPDATE ibwf_users SET plusses=&#39;0&#39;, shield=&#39;0&#39; WHERE id=&#39;".$byuid."&#39;");
                                mysql_query("INSERT INTO ibwf_private SET text=&#39;".$pmtext."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;2&#39;, timesent=&#39;".$tm."&#39;");
                              }
                              }else{
                                $rema = $pmfl - $tm;
                                echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
                                echo "Flood control: $rema Seconds
                            
                            ";
                              }
                              echo "
                            
                            <a href=\"inbox.php?action=main&amp;sid=$sid\">Back to inbox</a>
                            ";
                              echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                            echo "Home</a>";
                              echo "</p>";
                                echo "</card>";
                            }
                            else if($action=="sendto")
                            {
                              echo "<card id=\"main\" title=\"Inbox\">";
                              echo "<p align=\"center\">";
                              $pmtou = $_POST["pmtou"];
                              $who = getuid_nick($pmtou);
                                if($who==0)
                                {
                                  echo "<img src=\"images/notok.gif\" alt=\"x\"/>User Does Not exist
                            ";
                                }else{
                            $whonick = getnick_uid($who);
                              $byuid = getuid_sid($sid);
                              $tm = time();
                              $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid=&#39;".$byuid."&#39;"));
                              $pmfl = $lastpm[0]+getpmaf();
                              if($pmfl<$tm)
                              {
                                if(!isblocked($pmtext,$byuid))
                                {
                                if((!isignored($byuid, $who))&&(!istrashed($byuid)))
                                {
                              $res = mysql_query("INSERT INTO ibwf_private SET text=&#39;".$pmtext."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
                              }else{
                                $res = true;
                              }
                              if($res)
                              { $cow = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                                $cow = $cow[0]+10;
                                mysql_query("UPDATE ibwf_users SET plusses=&#39;".$cow."&#39; WHERE id=&#39;".$uid."&#39;");
                                echo "<img src=\"images/ok.gif\" alt=\"O\"/>";
                                echo "PM was sent successfully to $whonick
                            
                            ";
                                echo parsepm($pmtext, $sid);
                            
                              }else{
                                echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
                                echo "Can&#39;t Send PM to $whonick
                            
                            ";
                              }
                              }else{
                               $bantime = time() + (7*24*60*60);
                                echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
                                echo "Can&#39;t Send PM to $whonick
                            
                            ";
                                echo "You just sent a link to one of the crapiest sites on earth
                             The members of these sites spam here a lot, so go to that site and stay there if you don&#39;t like it here
                             as a result of your stupid action:
                            1. you have lost your sheild
                            2. you have lost all your plusses
                            3. You are BANNED!";
                                mysql_query("INSERT INTO ibwf_penalties SET uid=&#39;".$byuid."&#39;, penalty=&#39;1&#39;, exid=&#39;1&#39;, timeto=&#39;".$bantime."&#39;, pnreas=&#39;Banned: Automatic Ban for spamming for a crap site&#39;");
                                mysql_query("UPDATE ibwf_users SET plusses=&#39;0&#39;, shield=&#39;0&#39; WHERE id=&#39;".$byuid."&#39;");
                                mysql_query("INSERT INTO ibwf_private SET text=&#39;".$pmtext."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;2&#39;, timesent=&#39;".$tm."&#39;, reported=&#39;1&#39;");
                              }
                              }else{
                                $rema = $pmfl - $tm;
                                echo "<img src=\"images/notok.gif\" alt=\"X\"/>";
                                echo "Flood control: $rema Seconds
                            
                            ";
                              }
                            
                                }
                              
                              echo "
                            
                            <a href=\"inbox.php?action=main&amp;sid=$sid\">Back to inbox</a>
                            ";
                              echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                            echo "Home</a>";
                              echo "</p>";
                                echo "</card>";
                            }
                            code to show members having >4999
                            add this action index.php
                            CODE
                            Code:
                            else if($action=="rukiya")
                            
                            {
                            
                                 echo "<card id=\"main\" title=\"Leaderboard \">";
                                 echo "<p align=\"center\">";
                            
                            if($page=="" || $page<=0)$page=1;
                                $nov = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_users WHERE plusses>4999"));
                                $num_items = nov[0];
                                $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;
                            
                                 $sql = "SELECT id, name,plusses FROM ibwf_users WHERE plusses>4999 ORDER BY plusses DESC LIMIT $limit_start, $items_per_page";
                            
                                echo "
                            
                            [size="1"]";
                                $items = mysql_query($sql);
                                echo mysql_error();
                                while ($item = mysql_fetch_array($items))
                                {
                                  $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[0]&amp;sid=$sid\">$item[1]</a>";
                                  echo "$lnk - $item[2] 
                            ";
                                }
                                echo "[/size]</p>";
                                echo "<p align=\"center\">";
                                if($page>1)
                                {
                                  $ppage = $page-1;
                                  echo "<a href=\"index.php?action=rukiya&amp;page=$ppage&amp;sid=$sid\">«PREV</a> ";
                                }
                                if($page<$num_pages)
                                {
                                  $npage = $page+1;
                                  echo "<a href=\"index.php?action=rukiya&amp;page=$npage&amp;sid=$sid\">Next»</a>";
                                }
                                echo "
                            $page/$num_pages
                            ";
                                if($num_pages>2)
                                {
                                  echo getjumper($action, $sid,"index");
                                }
                                echo "</p>";
                               echo "</card>";
                            echo "<card><p align=\"center\">";
                              echo "</p>";
                               echo "</card>";
                            }
                            here u can get plusses when users shout and pm each other

                            Comment


                              #29
                              PROFILE MOODS

                              core.php
                              Code:
                              function getpmood($uid)
                              {
                                $pmood = mysql_fetch_array(mysql_query("SELECT pmood FROM ibwf_users WHERE id='".$uid."'"));
                                return $pmood[0];
                              }
                              index.php

                              use as
                              Code:
                               
                              echo "<a href=\"lists.php?action=pmoods&sid=$sid\">»Profile Moods</a><br/>";
                              to display mode into index.php action "viewuser"
                              Code:
                              $pmoodlink = getpmood($who);
                                if($pmoodlink=="")
                                {
                                echo "";
                                }else{
                                echo "<img src=\"$pmoodlink\" alt=\"$whonick\"/><br/>";
                                }
                              genproc.php
                              Code:
                              //////////////////////////////////////////Select Profile Moods
                              else if($action=="uppmoods")
                              {
                              /*
                              Profile Moods Lavalair Modification
                              Editor:opticalpigion
                              
                              forum.wapfuns.com
                              */
                              	addonline(getuid_sid($sid),"Updating Profile Moods","");
                              	$pmoodid = $_GET["pmoodid"];
                              	  echo "<head>";
                              	  echo "<title>$sitename</title>";
                              	  echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                              	  echo "</head>";
                              	  echo "<body>";
                                echo "<p align=\"center\">";
                                //$uid = getuid_sid($sid);
                                $pmoodlnk = mysql_fetch_array(mysql_query("SELECT pmoodlink FROM ibwf_profilemood WHERE id='".$pmoodid."'"));
                                $res = mysql_query("UPDATE ibwf_users SET pmood='".$pmoodlnk[0]."' WHERE id='".$uid."'");
                                if($res)
                              		{
                              			echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Profile Mood Selected<br/>";
                              		}else{
                              		  echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!<br/>";
                              		}
                              		echo "<br/>";
                                
                              echo "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                              echo "</p>";
                                echo "</body>";
                              echo"Script By:opticalpigion";
                              }
                              list.php

                              Code:
                              //////////////////////////////////Profile Moods
                              
                              else if($action=="pmoods")
                              {
                              /*
                              Profile Moods Lavalair Modification
                              Editor:opticalpigion
                              
                              forum.wapfuns.com
                              */
                              
                              	addonline(getuid_sid($sid),"Viwing The Profile Moods List","");
                              	echo "<head>";
                              	echo "<title>Profile Moods List</title>";
                              	echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                              	echo "</head>";
                              	echo "<body>";
                              
                              	//////ALL LISTS SCRIPT <<
                              
                              	if($page=="" || $page<=0)$page=1;
                              	$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_profilemood"));
                              	$num_items = $noi[0]; //changable
                              	$items_per_page= 5;
                              	$num_pages = ceil($num_items/$items_per_page);
                              	if(($page>$num_pages)&&$page!=1)$page= $num_pages;
                              	$limit_start = ($page-1)*$items_per_page;
                              
                              	//changable sql
                              
                              		$sql = "SELECT id, pmoodlink FROM ibwf_profilemood ORDER BY id DESC LIMIT $limit_start, $items_per_page";
                              
                              
                              	echo "<p>";
                              	$items = mysql_query($sql);
                              	echo mysql_error();
                              	if(mysql_num_rows($items)>0)
                              	{
                              	while ($item = mysql_fetch_array($items))
                                 {
                              		echo "<img src=\"$item[1]\" width=\"119\" height=\"30\" alt=\"Profile Moods\"/><br/>";
                              		echo "<a href=\"genproc.php?action=uppmoods&sid=$sid&pmoodid=$item[0]\">SELECT</a><br/>";
                              		echo "<br/>";
                              	}
                              	}
                              	echo "</p>";
                              	echo "<p align=\"center\">";
                              	if($page>1)
                              	{
                              	  $ppage = $page-1;
                              	  echo "<a href=\"lists.php?action=pmoods&page=$ppage&sid=$sid&view=$view\">«PREV</a> ";
                              	}
                              	if($page<$num_pages)
                              	{
                              	  $npage = $page+1;
                              	  echo "<a href=\"lists.php?action=pmoods&page=$npage&sid=$sid&view=$view\">Next»</a>";
                              	}
                              	echo "<br/>$page/$num_pages<br/>";
                              	if($num_pages>2)
                              	{
                              		$rets = "<form action=\"lists.php\" method=\"get\">";
                              		$rets .= "<input name=\"page\" style=\"-wap-input-format: '*N'\" size=\"2\"/>";
                              		$rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
                              		$rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
                              		$rets .= "<input type=\"submit\" value=\"Go To Page\"/>";
                              		$rets .= "</form>";
                              
                              		echo $rets;
                              	}
                              	echo "</p>";
                                ////// UNTILL HERE >>
                              	echo "<p align=\"center\">";
                              	echo "<a href=\"index.php?action=cpanel&sid=$sid\">Settings</a><br/>";
                                echo "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                                echo "</p>";
                              	echo "</body>";
                              echo"Script By:opticalpigion";
                              }
                              SQL:-
                              Code:
                              CREATE TABLE `ibwf_profilemood` (
                                `id` int(10) NOT NULL auto_increment,
                                `pmoodlink` varchar(150) NOT NULL default '',
                                PRIMARY KEY  (`id`),
                                UNIQUE KEY `pmoodlink` (`pmoodlink`)
                              ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=235;
                              
                              -- 
                              -- Dumping data for table `ibwf_profilemood`
                              -- 
                              
                              INSERT INTO `ibwf_profilemood` VALUES (1, '../profilemoods/0carefree.gif');
                              INSERT INTO `ibwf_profilemood` VALUES (2, '../profilemoods/0euphoric.gif');
                              INSERT INTO `ibwf_profilemood` VALUES (3, '../profilemoods/0excited0.gif');
                              INSERT INTO `ibwf_profilemood` VALUES (4, '../profilemoods/0flirty.gif');
                              INSERT INTO `ibwf_profilemood` VALUES (5, '../profilemoods/0happy.gif');
                              Add new row into ibwf_users


                              Code:
                              pmood	varchar(100)	latin1_swedish_ci		No



                              make new directory with name"profilemoods" into root


                              u have to insert image in to sql ur self.

                              uploading images was not working here
                              so i have upload to mediafire.


                              file name is methos profile moods.rar and my profile moods.rar
                              sigpic

                              Comment


                                #30
                                you can use this code below
                                Code:
                                $noi = mysql_fetch_array(mysql_query("SELECT timesent FROM ibwf_private WHERE id='".$pmid."'")); 
                                 $var1 = date("his",$noi[0]); 
                                 $var2 = time (); 
                                 $var21 = date("his",$var2); 
                                 $var3 = $var21 - $var1; 
                                 $var4 = date("s",$var3); 
                                 echo "<b>This pm was sent </b>";
                                 $remain = time() - $noi[0]; 
                                 $idle = gettimemsg($remain); 
                                 echo "$idle ago<br/>";

                                WapCHAT Forum Currenltly changing over to xhtml

                                My Dowloads Site

                                Comment

                                Working...
                                X