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
under genproc.php
index.php under profile viewuser
////////////////////////////////
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
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&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&sid=$sid&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&sid=$sid\">Rules</a> | <a href=\"help.php\">Help</a>";
echo"</div></small></p>";
echo"</body>";
}
////////////////////
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&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&sid=$sid\">Rules</a> | <a href=\"help.php\">Help</a>";
echo"</div></small></p>";
echo"</body>";
}
PHP Code:
echo '<img src="http://twitter-badges.s3.amazonaws.com/t_mini-b.png" alt="Twitter"/>';
echo " <a href=\"tweets.php?sid=$sid&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
Comment