Twiter On Lava Profiles

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

    Twiter On Lava Profiles

    this one is nice to have... i code this using yaya style hope u guys enjoy
    and ill post new updates asap



    ////////////////////////////////////////
    add this sql under ibwf_users

    tweeter varchar 100 notnull
    ///////////////////////////////////////

    under index.php cpanel

    PHP Code:
    echo "» <a href=\"index.php?action=tweets&amp;sid=$sid\">Set My Tweeter Username</a><br/>"
    PHP Code:
    ////////////////////////////////////////

    else if($action=="tweets")

    {
    addonline(getuid_sid($sid),"Setting up Tweeter Name","quick.php?action=tweets");

    echo 
    "<head>";
    echo 
    "<title>Space</title>";
    echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/default.css\">";
    echo 
    "</head>";
    echo 
    "<body>";

      echo 
    "<p align=\"left\"><small>";

    echo 
    "<form action=\"genproc.php?action=tweets&amp;sid=$sid&amp;who=$uid\" method=\"post\"> <font color=\"grey\"><b>Set My Tweeter Name:</font></b><br/>


    (eg. jhon_lex , samantha )<br/>


    <input type=\"text\" class=\"inputText\" name=\"msg\"/><br/>


    <input type=\"Submit\" name=\"Submit\" class=\"inputButton\" value=\"Set\"/>


    </form>"
    ;


    /////////////////////////////footer

    echo"<b>© Centi - ".date("Y")." - SLHitZ.Com</b><br/>";
    echo
    "</small></div>";
    echo
    "<div class=\"center\">";

    echo 
    "<small><center><a href=\"index.php?action=terms&amp;sid=$sid\">Rules</a> | <a href=\"help.php\">Help</a>";

    echo
    "</div></small></p>";
    echo
    "</body>";


    }

    //////////////////// 
    under genproc.php

    PHP Code:
    //////////////////////////////////////////Update tweeter nick



    else if($action=="tweets")



    {



        
    addonline(getuid_sid($sid),"Updating Tweeter Name","");



        echo 
    "<head>";
    echo 
    "<title>Space</title>";
    echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/default.css\">";
    echo 
    "</head>";
    echo 
    "<body>";

    print
    '<div class="header">Tweeter Name</div>';


        echo 
    "<p align=\"center\"><small>";







    if(
    getplusses(getuid_sid($sid))<6)







        {







            echo 
    "You need at least 6 plusses to use this Feature<br/>";








        }else{



       

    $val $_POST["msg"];

    //$uid = getuid_sid($sid);

      
    $res mysql_query("UPDATE ibwf_users SET tweeter='".$val."' WHERE id='".$uid."'");

     
    $hehe mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));

     
    $totl $hehe[0]-5;

     
    mysql_query("UPDATE ibwf_users SET plusses='".$totl."' WHERE id='".$uid."'");


     if(
    $res)



            {



                echo 
    "<img src=\"../images/ok.gif\" alt=\"o\"/><br/>Tweeter Name Updated Successfully<br/>";



            



            }else{



              echo 
    "<img src=\"images/notok.gif\" alt=\"x\"/>Can't Update Username<br/>";



            }



    }



     echo 
    "<br/><br/>";



            echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";

    /////////////////////////////footer
    echo"<div class=\"logo\">";
    echo
    "<b>© Centi - ".date("Y")." - SLHitZ.Com</b><br/>";
    echo
    "</small></div>";
    echo
    "<div class=\"center\">";

    echo 
    "<small><center><a href=\"index.php?action=terms&amp;sid=$sid\">Rules</a> | <a href=\"help.php\">Help</a>";

    echo
    "</div></small></p>";
    echo
    "</body>";

      




    index.php under profile viewuser

    PHP Code:
    echo '<img src="http://twitter-badges.s3.amazonaws.com/t_mini-b.png" alt="Twitter"/>';
       echo 
    " <a href=\"tweets.php?sid=$sid&amp;name=$tweets[0]\">$whonick's Tweets</a><br/>"
    ////////////////////////////////
    include 2 other php files
    ///////////////////////////////
    demo:

    working fyn wit me.... if ne errors let me knw

    working 100% for me... let me knw if hv ne errors
    Attached Files


    ....................................
    http://photomag.lk/
    ....................................


    #2
    add your custom made lavalair modificaitons into Lavalair Mod here
    sigpic

    Comment


      #3
      all my files have been created correctly, after doing Tweeter Set My Username in cpanel> set> Tweeter Name Updated Successfully, but after I check to the user online and username Twitter tweet's happening Invalid Username, there is something wrong?

      Comment


        #4
        thats caus ya givven twitter name was wrong.. im sure


        ....................................
        http://photomag.lk/
        ....................................

        Comment


          #5
          so it means this is for only have twitter acount? am i right?

          Comment


            #6
            ..

            Tnx pal .. U kn0w hOW to add facebo0k feeds?


            http://www.toinx.org

            Comment


              #7
              whitewigz its a stupid qestion..... rajyjee im on it....


              ....................................
              http://photomag.lk/
              ....................................

              Comment


                #8
                okm8...ill w8 ur update...up


                http://www.toinx.org

                Comment


                  #9
                  but why not use api key for this?
                  if like my post click:

                  http://coding-talk.com/images/totall...ost_thanks.gif

                  Comment


                    #10
                    sweet u want one???


                    ....................................
                    http://photomag.lk/
                    ....................................

                    Comment


                      #11
                      why its not wrk i have an a/c in twitter still its show invalid twitter user name i put right username

                      Comment


                        #12
                        agrees it just says invalid twitter name? also its twitter not tweeter lol

                        Comment


                          #13
                          works fyn fa others... re check people


                          ....................................
                          http://photomag.lk/
                          ....................................

                          Comment


                            #14
                            Thanks Bro,this is awsome..works well on my site..with some mods i had to do,anyway... *thumbs up*

                            Comment


                              #15
                              see that guys i told uuuuuuuuuu


                              ....................................
                              http://photomag.lk/
                              ....................................

                              Comment

                              Working...
                              X