Bitcoin Forum
September 04, 2025, 07:42:38 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Bitcointalk Image Uploader | Image Upload has never been so easy  (Read 521 times)
Youngrebel
Full Member
***
Offline Offline

Activity: 280
Merit: 128


Bitcoin hits 888,888 Block


View Profile
August 01, 2025, 04:28:02 PM
 #21

I think this suggestion had been made by some other people in the time past which I have seen in the forum but it had been turn down at all the time but we all know that it is the best to operate in the forum but the request has not been actualized and continue requesting it might be approved and add to the forum software one day and that day will be a good ideal in the forum. And really talkimg.com image hosting or uploading site sis a nightmare sometimes. Last month I was trying to upload image and once I clicked the upload button after I have selected the image, and the link would take me back to the gallery of my phone.
It was really a mess so I have to left it.

CryptoHeadlineNews
Hero Member
*****
Offline Offline

Activity: 1442
Merit: 887



View Profile WWW
August 01, 2025, 08:13:28 PM
 #22

The only way it can be harmful is from the image host provider, as long as they keep things straight, it is safe.
If I'm not wrong, LM is the owner of the site and that's why I believe the host should also be a reliable one. I think this extension should work with Talkimg as that's also a popular image hosting site that allows Bitcointalk image uploading.
Are you sure it's owned by LM? I visited the site and found one of the casino ads that LM is currently managing. So I guess it might be related to him. But it would be better if LM clarifies this somewhere (or did he?).
Judging from my little investigation, then I surely think that if Little Mouse isn't the owner of this image hosting site, then I think he might allegedly be affiliated to it. Because ever since hostmeme.com official account was created on this forum, and in less than 10minutes, they created their thread to create awareness to this hosting site, Little Mouse seems to be the second person to publicly create an awareness to this image hosting site in less than 24hours these people came to the forum. Which however, it's literally not a crime though, since he is a campaign manager, and it is his job to create awareness for brands and businesses. But what I literally don't like about this tool is publicly displaying people's image on their public gallery. Or are they trying to prove to us to be an "Open source" image hosting site? However, what I love about this tool is it's  "Password Protection" feature, whereby you can upload an image and only those with the link and password will be able to view it. Which is quite impressive, as I look forward to using it very soon.

 
█▄
R


▀▀██████▄▄
████████████████
▀█████▀▀▀█████
████████▌███▐████
▄█████▄▄▄█████
████████████████
▄▄██████▀▀
LLBIT▀█ 
  TH#1 SOLANA CASINO  
████████████▄
▀▀██████▀▀███
██▄▄▀▀▄▄████
████████████
██████████
███▀████████
▄▄█████████
████████████
████████████
████████████
████████████
█████████████
████████████▀
████████████▄
▀▀▀▀▀▀▀██████
████████████
███████████
██▄█████████
████▄███████
████████████
█░▀▀████████
▀▀██████████
█████▄█████
████▀▄▀████
▄▄▄▄▄▄▄██████
████████████▀
........5,000+........
GAMES
 
......INSTANT......
WITHDRAWALS
..........HUGE..........
REWARDS
 
............VIP............
PROGRAM
 .
   PLAY NOW    
Little Mouse (OP)
Legendary
*
Offline Offline

Activity: 2534
Merit: 2979


Marketing Campaign Manager |Telegram ID- @LT_Mouse


View Profile WWW
August 24, 2025, 06:07:16 PM
Merited by Ricardo11 (1)
 #23

Updated the content.js file with select code option so you can copy the content inside a code tag.


Code:
// --------------------
// Upload Image Button
// --------------------
function addUploadButton() {
  const postBtn = document.querySelector("input[name='post']");
  if (!postBtn || document.getElementById("uploadImageBtn")) return;

  const uploadBtn = document.createElement("button");
  uploadBtn.type = "button"; // Prevent form submission
  uploadBtn.id = "uploadImageBtn";
  uploadBtn.innerText = "Upload Image";
  uploadBtn.style.marginLeft = "10px";
  uploadBtn.style.padding = "5px 10px";
  uploadBtn.style.cursor = "pointer";

  postBtn.parentNode.insertBefore(uploadBtn, postBtn.nextSibling);

  uploadBtn.addEventListener("click", () => {
    const input = document.createElement("input");
    input.type = "file";
    input.accept = "image/*";

    input.onchange = async () => {
      const file = input.files[0];
      if (!file) return;

      const formData = new FormData();
      formData.append("image", file);

      uploadBtn.innerText = "Uploading...";

      try {
        const response = await fetch("https://hostmeme.com/bitcointalk.php", {
          method: "POST",
          body: formData
        });

        const data = await response.json();
        if (data.success && data.url && data.width && data.height) {
          const bbcode = `[img height=${data.height} width=${data.width}]http://${data.url}[/img]`;
          const textarea = document.querySelector("textarea[name='message']");
          if (textarea) {
            textarea.value += `\n${bbcode}\n`;
            textarea.focus();
          }
        }
      } catch (err) {
        console.error("Upload error:", err);
      } finally {
        uploadBtn.innerText = "Upload Image";
      }
    };

    input.click();
  });
}

// --------------------
// Select All in Textarea
// --------------------
function addSelectTextareaButton() {
  const textarea = document.querySelector("textarea[name='message']");
  if (!textarea || document.getElementById("selectTextareaBtn")) return;

  const selectBtn = document.createElement("button");
  selectBtn.type = "button"; // Prevent form submission
  selectBtn.id = "selectTextareaBtn";
  selectBtn.innerText = "Select All";
  selectBtn.style.marginLeft = "10px";
  selectBtn.style.padding = "5px 10px";
  selectBtn.style.cursor = "pointer";

  textarea.parentNode.insertBefore(selectBtn, textarea.nextSibling);

  selectBtn.addEventListener("click", () => {
    textarea.focus();
    textarea.select();
  });
}

// --------------------
// Select for code blocks
// --------------------
function addSelectButtonsToCode() {
  const codeBlocks = document.querySelectorAll("div.code");

  codeBlocks.forEach(block => {
    if (block.dataset.selectAttached === "1") return;
    block.dataset.selectAttached = "1";

    const header = block.previousElementSibling;
    const container = header && header.classList.contains("codeheader")
      ? header
      : block;

    const selectBtn = document.createElement("button");
    selectBtn.type = "button"; // Prevent form submission
    selectBtn.innerText = "Select";
    selectBtn.style.marginLeft = "8px";
    selectBtn.style.padding = "2px 6px";
    selectBtn.style.fontSize = "12px";
    selectBtn.style.cursor = "pointer";

    container.appendChild(selectBtn);

    selectBtn.addEventListener("click", () => {
      const range = document.createRange();
      range.selectNodeContents(block);
      const sel = window.getSelection();
      sel.removeAllRanges();
      sel.addRange(range);
    });
  });
}

// --------------------
// Initialize all features
// --------------------
function initFeatures() {
  addUploadButton();
  addSelectTextareaButton();
  addSelectButtonsToCode();
}

if (document.readyState === "loading") {
  document.addEventListener("DOMContentLoaded", initFeatures);
} else {
  initFeatures();
}

// Observe dynamically loaded posts and forms
const observer = new MutationObserver(() => {
  addUploadButton();
  addSelectTextareaButton();
  addSelectButtonsToCode();
});
observer.observe(document.body, { childList: true, subtree: true });

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
Ricardo11
Sr. Member
****
Offline Offline

Activity: 868
Merit: 356

Thunder_warrior ⚡⚡⚡


View Profile WWW
August 24, 2025, 09:11:58 PM
 #24



This is really a great thing, it will save us a lot of time on such things, one of the most important things in the forum is uploading images, which has become really easy with your update, it will save us a lot of time, this is really a great initiative and we are definitely grateful to you for this.

Personally I will enjoy this update and it will really feel great and it will save me a lot of time, but I am getting some problems with it. I downloaded this Image Uploader today but it is not working properly, my image is not showing in the post.


According to your new update, I got "copy the content inside a code tag" here and it is working properly.



But when I upload the image it looks like this;



Is this problem only for me or for others too? If there is a solution for this, please give me boss. And if it is happening to everyone, I hope it will be fixed soon.


But whatever, a big thank you to LM boss for bringing such a beautiful and effective update that will make everyone's work a lot easier, and as a result, everyone will be able to do everything more easily and everyone will save a lot of time.
Little Mouse (OP)
Legendary
*
Offline Offline

Activity: 2534
Merit: 2979


Marketing Campaign Manager |Telegram ID- @LT_Mouse


View Profile WWW
August 25, 2025, 02:55:29 AM
 #25

Is this problem only for me or for others too? If there is a solution for this, please give me boss. And if it is happening to everyone, I hope it will be fixed soon.
It works fine here. Not sure what's going wrong on your end.

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!