Im finally done with Lava.... Every one Shoud Have these Codings,,, im sharing caus that matter
some wap owners thinks this is big deal codings... simple stuff only thing u have to do is try try try
do exactly what i say... this is perfectly working 100% codings!!!!
Only for Wapdesire Old Ver! Make your own Modifications thats all
*****Uploadrs Are Safe*****
If You Have Any Problems Installing Jus Tell I Will Help Personally
1.Download The Zip File
2.Make a Folder Name forum on your root folder
3.Put post_image.php and class.uplaod.php on your wap folder or what ever u called it
4.Go to phpmyadmin and add these one row under ibwf_posts
`image` varchar(100) NOT NULL,
5.Open index.php and add this after post reply link
6.and under index.php
7.find ($action=="viewtpc") under index.php
replace to
find
add after
thats all people enjoy
some wap owners thinks this is big deal codings... simple stuff only thing u have to do is try try try
do exactly what i say... this is perfectly working 100% codings!!!!
Only for Wapdesire Old Ver! Make your own Modifications thats all
*****Uploadrs Are Safe*****
If You Have Any Problems Installing Jus Tell I Will Help Personally
1.Download The Zip File
2.Make a Folder Name forum on your root folder
3.Put post_image.php and class.uplaod.php on your wap folder or what ever u called it
4.Go to phpmyadmin and add these one row under ibwf_posts
`image` varchar(100) NOT NULL,
5.Open index.php and add this after post reply link
PHP Code:
echo "<a href=\"index.php?action=postimage&sid=$sid&tid=$tid\">+ Image</a><br/>";
PHP Code:
//////////////////////////////////////////Post reply with image
else if($action=="postimage")
{
$whoimage = $_GET["whoimage"];
$tid = $_GET["tid"];
$tfid = mysql_fetch_array(mysql_query("SELECT fid FROM ibwf_topics WHERE id='".$tid."'"));
$fid = $tfid[0];
if(!canaccess(getuid_sid($sid), $fid))
{
echo "<head>";
echo "<title>Post Reply</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
echo "You Don't Have A Permission To View The Contents Of This Forum<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
addonline(getuid_sid($sid),"Posting reply + image","");
echo "<head>";
echo "<title>Space</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/stylesheet.css\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\"><small>";
print'<div class="header">Post reply with Image</div>';
$qut = $_GET["qut"];
echo "<p>";
echo "<br/><b>Pick a Photo to upload</b>";
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"post_image.php?action=upload&sid=$sid\">";
echo "<input type=\"file\" name=\"f1\" size=\"15\"><br/>";
echo "<b>Reply Text</b><br/> <input name=\"descript\" value=\"Hello\" maxlength=\"500\" size=\"20\"/>";
echo "<input type=\"hidden\" name=\"action\" value=\"image\" /><br/>";
echo "<input type=\"hidden\" name=\"tid\" value=\"$tid\"/>";
echo "<input type=\"hidden\" name=\"qut\" value=\"$qut\"/>";
echo "<INPUT TYPE=\"submit\" name=\"upl\" VALUE=\"Post\"></form>";
echo "<br/><small>Note:<br/>";
echo "* File size limit 512kb. If your upload does not work, try a smaller Photo.<br/>";
echo "* Allowed formats: <b>.jpg, .gif, .bmp, .png</b><br/>";
echo "</center></small></p>";
$fid = getfid($tid);
$fname = getfname($fid);
echo "<br/><a href=\"index.php?action=viewtpc&sid=$sid&tid=$tid\">Back to topic</a>";
echo "<br/><a href=\"index.php?action=viewfrm&sid=$sid&fid=$fid\">$fname</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
/////////////////////////////footer
echo"<br/><div class=\"logo\">";
echo"<b>© Centi - ".date("Y")."</b><br/>";
echo"</small></div>";
echo"<div class=\"center\">";
//echo'<center><a href="http://top.slhitz.com/in.php?sid=1"><img src="http://top.slhitz.com/cou.php?sid=1" alt="SM" /></a><center>';
echo"</div></small></p>";
echo"</body>";
}
////////////////////////
PHP Code:
$sql = "SELECT id, text, uid, dtpost, quote FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start, $posts_per_page";
PHP Code:
$sql = "SELECT id, text, uid, dtpost, quote, image FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start, $posts_per_page";
PHP Code:
$usl = "<a href=\"index.php?action=viewuser&sid=$sid&who=$post[2]\">$iml$unick</a>";
$pst = parsemsg($post[1], $sid);
PHP Code:
$image = ($post[5]);
if($image=="")
{
$topt = "<a href=\"index.php?action=pstopt&sid=$sid&pid=$post[0]&page=$page&fid=$tinfo[5]\">*</a>";
}else{
$topt = "<a href=\"index.php?action=pstopt&sid=$sid&pid=$post[0]&page=$page&fid=$tinfo[5]\">*</a> | <a href=\"$post[5]\">Att</a><br/><img src=\"$post[5]\" width=\"40\" height=\"40\"/>";
}
Comment