Customizing SMF > Modifications and Packages
Simple Image Upload
CT-Louis:
Trying to use this mod, but when I install it, all my old images on the forum won't enlarge when I click on them anymore. Any ideas?
Inti31:
postimage.org still works fine - it is used very often by our members.
The link is directly placed into the post-area (below the smiley bar) - okay - and tinypic...
All runs fine - now my question:
I implemented a few days ago a shoutbox - I also want to place a link to postimage.org, so member can share pictures when chatting more easy
only thing - I don't need the [img][/img] tags, also I've no luck that the code is automaticaly inserted into the shoutbox message field (name of shoutbox field=Shoutbox_message)
i guess I need a 2nd addform.html...
How do I have to modify this new addform.html that I will work with the shoutbox?
cheers, inti31
the temp solution at time is another picture hoster (pic-upload.de) which runs in an iframe
smldmr:
can I disable the 'post image' link over the 'Quick reply' textbox. I want, that the user see the link only in Post page.
BaghdadGhost:
--- Quote from: City Builder on May 16, 2011, 11:14:04 PM ---In RC4 this messes up the areas of the forum where you try to select a username by typing it in and having the server bring up the possible list of names you are trying to find in your memberbase, like typing in a name for sending mail etc.
At least it does on mine. It basically prevents that from working.
Any clues how to fix this problem?
--- Quote from: Sium on May 16, 2011, 10:15:40 PM ---Manual Installation:
--- Code: ---#
#-----[ OPEN ]---------------------------------------------
#
./Themes/default/index.template.php
#
#-----[ FIND ]---------------------------------------------
#
</head>
#
#-----[ REPLACE WITH ]---------------------------------------------
#
<script language="javascript" type="text/javascript">
<!--
// MOD Title: Simple Image Upload
// MOD Author: Sium < admin@postimage.org > (N/A) http://www.postimage.org/
// MOD Version: 1.3.0
var postimage_lang="english";
var postimage_add_text="Add image to post";
var postimage_textarea_ignore_name=/username_list|search/i;
function postimage_query_string(postimage_search_name)
{
postimage_query=window.location.search.substring(1).split("&");
for(postimage_i=0;postimage_i<postimage_query.length;postimage_i++)
{
postimage_string_data=postimage_query[postimage_i].split("=");
if(postimage_string_data[0]==postimage_search_name)
{
return unescape(postimage_string_data[1]);
}
}
}
function postimage_add_code()
{
if(opener)
{
var postimage_text=postimage_query_string("postimage_text");
var postimage_id=postimage_query_string("postimage_id");
var postimage_area=opener.document.getElementsByTagName("TEXTAREA");
for(var postimage_i=0;postimage_i<postimage_area.length;postimage_i++)
{
if(postimage_i==postimage_id)
{
break;
}
}
if(opener.editorHandlemessage && opener.editorHandlemessage.bRichTextEnabled)
{
opener.editorHandlemessage.insertText(postimage_text+"<br /><br />",false);
}
else
{
postimage_area[postimage_i].value=postimage_area[postimage_i].value+postimage_text;
}
opener.focus();
window.close();
}
}
function postimage_insert()
{
var postimage_area=document.getElementsByTagName("TEXTAREA");
for(var postimage_i=0;postimage_i<postimage_area.length;postimage_i++)
{
if(!postimage_area[postimage_i].name.match(postimage_textarea_ignore_name))
{
var postimage_new_div=document.createElement("div");
postimage_new_div.innerHTML="<br /> • <a href=\"javascript:void(0);\" onclick=\"window.open(\'http://www.postimage.org/s1/index.php?mode=smf&lang="+postimage_lang+"&areaid="+postimage_i+"&forumurl=\' + escape(document.location.href), \'postimage\', \'resizable=yes,width=500,height=400\');return false;\"><b>"+postimage_add_text+"</b></a><br /><br />";
postimage_area[postimage_i].parentNode.insertBefore(postimage_new_div,postimage_area[postimage_i]);
}
}
}
postimage_add_code();
window.onload=postimage_insert;
//-->
</script>
</head>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
--- End code ---
--- End quote ---
--- End quote ---
It does to mine also. I also noticed that it is not functioning right when I have full editor on quick reply. It would not automatically post pack the like to the reply :(
if anyone can solve these two problems would be great and appreciated
hellboy78:
simple image upload has conflict with pretty url
I use smf 1.1.16
could someone help?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version