Today Fahim is providing an complex system.I guess you might be wondering how is it possible to upload image and use fimg bbtag for non-fm site.

wait a second, you can’t upload images in your site.we are going to use php programing languages.

Here I am providing a way to use [fimg tag.

Tutorial

Step 1:
-1st of all we need a hosting.
-try : hostcodec.ml
or other hosting provider.

Step 2:
Create a file “index.html” & post code
[text]

Select image to upload:

<?php

$path = "uploads/";
$files = scandir($path);
foreach ($files as &$value) {
echo "
“;
}
?>

body{width:500px”}[/text]

Now create Another file “upload.php” & post code

[text] 500000) {
echo “Sorry, your file is too large.”;
$uploadOk = 0;
}
// Allow certain file formats
if($imageFileType != “jpg” && $imageFileType != “png” && $imageFileType != “jpeg”
&& $imageFileType != “gif” ) {
echo “Sorry, only JPG, JPEG, PNG & GIF files are allowed.”;
$uploadOk = 0;
}
// Check if $uploadOk is set to 0 by an error
if ($uploadOk == 0) {
echo “Sorry, your file was not uploaded.”;
// if everything is ok, try to upload file
} else {
if (move_uploaded_file($_FILES[“fileToUpload”][“tmp_name”], $target_file)) {
echo “

Your Bbcode is
“;
} else {
echo “Sorry, there was an error uploading your file.”;
}
}
?>

body{max-width:100%}[/text]

Now create a “directory” name it “uploads”

note: Note that all uploaded images will be uploading in the “uploads” directory

Step 3:
Post in bottom forum
[text]

var msg=document.getElementsByName(“scodec”);
for(var i=0;i<msg.length;i++){
var txt=document.getElementsByName("scodec")[i].innerHTML;

txt=txt.replace(/\[fimg=(.+?)\]/ig,'
scodec img‘);

document.getElementsByName(“scodec”)[i].innerHTML=txt;
}

[/text]

Don’t forget to cover ::msg:: from mif box 1

::msg::

Now;
Edit site
global setting
-forum
-wcodec

disabled [*fimg= bbtag

After create a new site in wapka

2 thoughts on "Upload image and use [fimg=] bbtag for non file manager sitep"

  1. Sagor Sarwar Author says:
    buji nai bangla likle valo hoy
    1. Fahim Contributor Post Creator says:
      ok…

Leave a Reply