LavaSCRIPT L9 Tamagochi, smile generator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • kiLLeR-eyEd_14
    replied
    These were a nice share

    Leave a comment:


  • friend
    replied
    Thanks very much

    Leave a comment:


  • arg0s12
    replied
    Ok. Kaboom, i found that, sorry! Hehehe, thanx dudes, im trying to make wap community. .

    Leave a comment:


  • kabooms
    replied
    @ wapmaster to solve that error create a flag in flag folder unknown.png or unknown.gif o kaya Find ip_files script here.

    Leave a comment:


  • kabooms
    replied
    Sory subzero. I forgot to upload ip_files/ i will upload later or search here. All code of lucky9 is in chat.php simple read the script given sql already posted.

    Leave a comment:


  • subzero
    replied
    with that reply you need anger management class's lol

    Leave a comment:


  • NoObCodeR
    replied
    All of the stuffs were given...its time for you to do your job.,....solve it on your own

    Leave a comment:


  • wapmaster2
    replied
    Warning: include(ip_files/117.php) [function.include]: failed to open stream: No such file or directory in /home/........../public_html/web/core.php on line 319

    Warning: include() [function.include]: Failed opening 'ip_files/117.php' for inclusion (include_path='.:/usr/lib/php') in /home/........./public_html/web/core.php on line 319

    Warning: Invalid argument supplied for foreach() in /home/........./public_html/web/core.php on line 321



    plzzz help somthing missing like ip_files ?????
    Last edited by wapmaster2; 27.11.09, 12:35.

    Leave a comment:


  • kabooms
    replied
    [QUOTE=arg0s12;43160]***use english on forums***
    Code:
    CREATE TABLE IF NOT EXISTS `ibwf_settings` (
      `id` int(10) NOT NULL auto_increment,
      `name` varchar(30) NOT NULL default '',
      `value` text NOT NULL,
      `value2` varchar(50) NOT NULL,
      `value3` varchar(50) NOT NULL,
      `title` varchar(250) NOT NULL,
      `sino` int(100) NOT NULL default '0',
      PRIMARY KEY  (`id`),
      UNIQUE KEY `name` (`name`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;
    
    --
    -- Dumping data for table `ibwf_settings`
    --
    
    INSERT INTO `ibwf_settings` (`id`, `name`, `value`, `value2`, `value3`, `title`, `sino`) VALUES
    (1, 'sesexp', '20', '', '', '', 0),
    (2, 'Sat 12 Sep 2009 - 22:02', '38', '', '', '', 0),
    (3, '4ummsg', 'welcome', '', '', '', 0),
    (16, 'texttwist', '', '', '', '', 166),
    (4, 'Counter', '174840', '', '', '', 0),
    (5, 'pmaf', '30', '', '', '', 0),
    (6, 'reg', '0', '', '', '', 0),
    (7, 'fview', '0', '', '', '', 0),
    (8, 'lastbpm', '2009-10-14', '', '', '', 0),
    (9, 'sitename', 'WapAdik.NeT', '', '', '', 0),
    (10, 'vldtn', '0', '', '', '', 0),
    (11, 'online', '0', '', '', '', 0),
    (12, 'qmsg', '', '', '', '', 152),
    (13, 'chaf', '20', '', '', '', 0),
    (14, 'resetsht', '1251276469', '', '', '', 0),
    (15, 'votefor', 'Fun Sign', '0', 'hehehehe', '', 0);
    Last edited by metulj; 28.11.09, 05:01.

    Leave a comment:


  • wapmaster2
    replied
    THANKS kabooms !
    what am searching these day it is......

    Thanks a lot buddy am trying.......................

    Leave a comment:


  • kabooms
    replied
    here it is sorry i forgot
    Attached Files

    Leave a comment:


  • wapmaster2
    replied
    Originally posted by kabooms View Post
    Country Flags

    [/code]


    Usage poh ito
    Code:
    Adding Country Name and Flags in User profile under action="viewuser"
    
    
    
    
    
      $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
      echo "Ip: $uipadd[0]<br/>";
    
    
    $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
    $IPaddress=$uipadd[0];
    $two_letter_country_code=iptocountry($IPaddress);
    echo "Country: <img src=\"flags/$two_letter_country_code.png\" alt=\"*\" /> ";
         include("countries.php");
    $country_name=$countries[$two_letter_country_code][1];
    echo "$country_name <br/>";
    
    
    Detect Visitor Country name and Flags
    
    
    $hulikanyahaha=$_SERVER['HTTP_USER_AGENT'];
    $two_letter_country_code=iptocountry($hulikanyahaha);
    echo "<img src=\"flags/$two_letter_country_code.png\" alt=\"*\" />";
         include("countries.php");
    $country_name=$countries[$two_letter_country_code][1];
    echo "$country_name ";
    where is countries.php ?????

    Leave a comment:


  • kabooms
    replied
    demo script of gsm.pinoy3g.info create your own sql okey
    Attached Files

    Leave a comment:


  • kabooms
    replied
    Image Resize

    first Create Folder, name it "cute" with out qoutes okey!!
    timthumb.php usage example random photo in lavalair

    usage

    w= Width
    h= Hight
    zc= zoom crop
    Code:
    $randomm = mysql_fetch_array(mysql_query("SELECT itemurl, sex FROM ph_bazzztord_gallery WHERE id ORDER BY RAND() LIMIT 1")); 
    echo "<p align=\"center\">";
    echo "Random Photo<br/>";
    echo "<img src=\"timthumb.php?src=$randomm[0]&amp;w=45&amp;h=45&amp;zc=1\" alt=\"$randomm[1]\"/>";
    echo "</p>";

    next is img.php usage example random photo in lavalair
    r = Width and Hight
    Code:
    $randomm = mysql_fetch_array(mysql_query("SELECT itemurl, sex FROM ph_bazzztord_gallery WHERE id ORDER BY RAND() LIMIT 1")); 
    echo "<p align=\"center\">";
    echo "Random Photo<br/>";
    echo "<img src=\"img.php?src=$randomm[0]&amp;r=50\" alt=\"$randomm[1]\"/>";
    echo "</p>";
    Attached Files
    Last edited by kabooms; 27.11.09, 09:14.

    Leave a comment:


  • kabooms
    replied
    Country Flags

    adding flags at online list
    my online list



    Code:
    else if($action=="online")
    {
    
    $uid =getuid_sid($sid);
    if($uid>0)
    {
    addonline(getuid_sid($sid),"Online List","index.php?action=$action");
    $onli =  mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_online"));
    }
    echo "<card id=\"chat\" title=\"Online list $onli[0]\" ontimer=\"index.php?action=online&amp;time=";
    echo date('dmHis');
    echo "&amp;sid=$sid&amp;page=$page";
    echo "\">";
    echo "<timer value=\"200\"/>";
    //////ALL LISTS SCRIPT <<
    
    
    if($page=="" || $page<=0)$page=1;
    $num_items = getnumonline(); //changable
    $items_per_page= 15;
    $num_pages = ceil($num_items/$items_per_page);
    if($page>$num_pages)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;
    /////////changable sql
    $sql = "SELECT
    a.name, a.perm, b.userid FROM ph_bazzztord_users a
    INNER JOIN ph_bazzztord_online b ON a.id = b.userid
    ORDER BY a.perm DESC, a.plusses DESC, a.name
    LIMIT $limit_start, $items_per_page
    ";
    
    echo "<p align=\"center\">";
    
    $items = mysql_query($sql);
    echo mysql_error();
    while ($item = mysql_fetch_array($items))
    {
    $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid&amp;browse?\">$item[0]</a>";
    if($item[1]==1)
    {
    $item[1] = "<b><a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid&amp;browse?\">&#x2022; $item[0] &#x2022; </a></b>";
    }else if($item[1]==2)
    {
    $item[1] = "<b><a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid&amp;browse?\">* $item[0] *</a></b>";
    }else if($item[1]==3)
    {
    $item[1] = "<b><a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid&amp;browse?\">» $item[0] «</a></b>";
    }else if($item[1]==4)
    {
    $item[1] = "<b><a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid&amp;browse?\">» $item[0] «</a></b>";
    }else if($item[1]==0)
    {
    $item[1] = "$lnk";
    }
    $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ph_bazzztord_users WHERE id='".$item[2]."'"));
    $IPaddress=$uipadd[0];
    $two_letter_country_code=iptocountry($IPaddress);
    echo "<img src=\"../flags/$two_letter_country_code.png\" alt=\"*\"/>";
    echo "$item[1] <br/>";
    
    }
    echo "</p>";
    echo "<p align=\"center\">";
    if($page>1)
    {
    $ppage = $page-1;
    echo "<a href=\"index.php?action=online&amp;page=$ppage&amp;sid=$sid&amp;browse?\">prev</a> ";
    }
    if($page<$num_pages)
    {
    $npage = $page+1;
    echo "<a href=\"index.php?action=online&amp;page=$npage&amp;sid=$sid&amp;browse?\">next</a>";
    }
    
    echo "<br/>$page/$num_pages<br/>";
    if($num_pages>2)
    {
    echo getjumper($action, $sid,"index");
    }
    echo "</p>";
    ////// UNTILL HERE >>
    
    
    echo "<p align=\"center\">";
    $uid =getuid_sid($sid);
    if($uid>0)
    {
      echo "<a href=\"index.php?action=main&amp;sid=$sid\">main menu</a>";
    }else{
    
      echo "<a href=\"index.php\">main menu</a>";
    }
    echo "</p>";
    echo "</card>";
    
    }


    in core.php add this code
    Code:
    //////////////////////Country 
    
    function iptocountry($ip) {
        $numbers = preg_split( "/\./", $ip);
        include("ip_files/".$numbers[0].".php");
        $code=($numbers[0] * 16777216) + ($numbers[1] * 65536) + ($numbers[2] * 256) + ($numbers[3]);
        foreach($ranges as $key => $value){
            if($key<=$code){
                if($ranges[$key][0]>=$code){$two_letter_country_code=$ranges[$key][1];break;}
                }
        }
        if ($two_letter_country_code==""){$two_letter_country_code="unkown";}
        return $two_letter_country_code;
    }
    function country_name($two_letter_country_code)
        {
         include("ip_files/countries.php");
        $country_name=$countries[$two_letter_country_code][0];
       return $country_name;
        }
    function show_flag($two_letter_country_code)
          {
         $file_to_check='./flags/'.strtolower($two_letter_country_code).'.png';
         if (file_exists($file_to_check)){
                    $FLAG= '<img src="'.$file_to_check.'" alt="'.$two_letter_country_code.'"/>';
                    }else{
                    $FLAG= '<img src="./flags/noflag.png" alt="'.$two_letter_country_code.'"/>';
                    }
           return $FLAG;
           }

    Usage poh ito
    Code:
    Adding Country Name and Flags in User profile under action="viewuser"
    
    
    
    
    
      $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
      echo "Ip: $uipadd[0]<br/>";
    
    
    $uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
    $IPaddress=$uipadd[0];
    $two_letter_country_code=iptocountry($IPaddress);
    echo "Country: <img src=\"flags/$two_letter_country_code.png\" alt=\"*\" /> ";
         include("countries.php");
    $country_name=$countries[$two_letter_country_code][1];
    echo "$country_name <br/>";
    
    
    Detect Visitor Country name and Flags
    
    
    $hulikanyahaha=$_SERVER['HTTP_USER_AGENT'];
    $two_letter_country_code=iptocountry($hulikanyahaha);
    echo "<img src=\"flags/$two_letter_country_code.png\" alt=\"*\" />";
         include("countries.php");
    $country_name=$countries[$two_letter_country_code][1];
    echo "$country_name ";
    Attached Files
    Last edited by kabooms; 27.11.09, 09:17.

    Leave a comment:

Working...
X