Lava Forum Post + Att Image *Centi*

Started on the old forum in February 2011 · view the original in the archive · old links redirect here

9 replies · 2,963 views · started 15 years ago · 2 min read

7 participants
centi Developer · 159 posts #1

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

echo "<a href=\"index.php?action=postimage&sid=$sid&tid=$tid\">+ Image</a><br/>";

6.and under index.php

//////////////////////////////////////////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>";
}
////////////////////////

7.find ($action=="viewtpc") under index.php

$sql = "SELECT id, text, uid, dtpost, quote FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start, $posts_per_page";

replace to

$sql = "SELECT id, text, uid, dtpost, quote, image FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start, $posts_per_page";

find

$usl = "<a href=\"index.php?action=viewuser&sid=$sid&who=$post[2]\">$iml$unick</a>";
$pst = parsemsg($post[1], $sid);

add after

$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\"/>";
}

thats all people enjoy

😳 .................................... http://photomag.lk/ .................................... 🤨

Attachments: forum.zip
12345xmen Developer · 239 posts #3

dear make code for free sms servic via free sms site for lava. . We need dis ,u

centi Developer · 159 posts #4

ok i will when i have time

😳 .................................... http://photomag.lk/ .................................... 🤨

mirror Developer · 108 posts #8

centi wrote: 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

echo "<a href=\"index.php?action=postimage&sid=$sid&tid=$tid\">+ Image</a><br/>";

6.and under index.php

//////////////////////////////////////////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>";
}
////////////////////////

7.find ($action=="viewtpc") under index.php

$sql = "SELECT id, text, uid, dtpost, quote FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start, $posts_per_page";

replace to

$sql = "SELECT id, text, uid, dtpost, quote, image FROM ibwf_posts WHERE tid='".$tid."' ORDER BY dtpost LIMIT $limit_start, $posts_per_page";

find

$usl = "<a href=\"index.php?action=viewuser&sid=$sid&who=$post[2]\">$iml$unick</a>";
$pst = parsemsg($post[1], $sid);

add after

$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\"/>";
}

thats all people enjoy

alls working well but the images not showing in forums only blank showing any one pls help

wap-ruler Developer · 143 posts #9

rep

Have u run the sql?? Chk by uploading a image... is the information abt image is inserted in the row 'images' of ibwf_posts ???

ImPoSsIbLe iS nOthInG aS ImPoSsible ItSelF SaYs "I M POSSIBLE"

mirror Developer · 108 posts #10

wap-ruler wrote: Have u run the sql?? Chk by uploading a image... is the information abt image is inserted in the row 'images' of ibwf_posts ??? not working bro i m getting other errors now like u dnt hve permission to access this ,forums

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close