Quick Login   
 
Register AdminFusion Tutorials Post Fusion Forum Matrix
 
Go Back AdminFusion » Software & Tech » Software » Invision Power Board » [IPB] Add image uploading to your forum
Reply
 
LinkBack
Old 10-28-2005, 07:12 AM   #1
Rookie
 
Join Date: Oct 2005
Posts: 16
ben_ is on a distinguished road
Hi guys,

I run an image hosting site and have completed a very interesting module that allows forum owners to integrate image uploading with their forum - an 'UPLOAD IMAGE' button that launches a popup with the upload form.

My image hosting site is optimized specifically for posting photos, screenshots and wallpapers on forums. It resizes to a user-selected width of up to 1600px (resizing only occurs if the uploaded image exceeds the selected width). It also converts to jpeg. The default width is a comfortable 400px which is fast to load for your users and unlikely to break layouts. The major benefit to forum owners is they don't end up with 5mb of photos in a post that dialup users are viewing!

Other features include generating thumbnails for the uploads so users can just paste a 120x120 thumb with the link leading to the full image.

If anyone would like to test it I have prepared instructions for integrating it with IPB at two popular locations: invisionfree.com and forumer.com.

If you have direct access to the files then you will find it very easy to implement.

If you have direct access to your files
Add this code anywhere on your page:
<div class='quotetop'>QUOTE[/center]<div class='quotemain'>
<script language="javascript" src="http://forum.imgfree.net/uploadpop.js"></script>
<noscript>Image Hosting</noscript>
[/b][/quote]

Add this code where you would like the button to appear:
<div class='quotetop'>QUOTE[/center]<div class='quotemain'>
<input type="button" value="UPlOAD IMAGE" cssclass="codebuttons" onclick="LaunchImgFree();" />
[/b][/quote]

For InvisionFree.com (Updated to support Opera)
All you need to do to add an 'UPLOAD IMAGE' button to your forum @ invisionfree.com is add this code to your Footer in your administration control panel:
<div class='quotetop'>QUOTE[/center]<div class='quotemain'><script language="javascript" src="http://forum.imgfree.net/uploadpop.js"></script>
<noscript>Image Hosting</noscript>
<script type="text/javascript">
var b = document.getElementsByTagName("input");
var numb = b.length;
for(i=0;i<numb; i++)
{
if(b[i].name == "img")
{
// get the parent element
var c = b[i].parentNode;

br = ((c.innerHTML.indexOf("
") > 0) ? "
" : ((c.innerHTML.indexOf("
") > 0) ? "
" : "
"));

// internet explorer
var ctextarr = c.innerHTML.split(br);

// put the inner text back together with the new button
c.innerHTML = ctextarr[0] + br + ctextarr[1];
c.innerHTML += "<input type=\"button\" class=\"codebuttons\" value=\"UPLOAD IMAGE\" onclick=\"LaunchImgFree();\" title=\"Upload Image\" />";
c.innerHTML += br + ctextarr[2];
break;
}
}
</script>[/b][/quote]

For Forumer.com
If you're using IPB at Forumer then you need to follow these instructions:

Navigate to 'Html Template -> Manage HTML -> Post Screen Sections -> "Edit Single" on Post: Code Buttons & Post Text area'

Find this piece of code:
<div class='quotetop'>QUOTE[/center]<div class='quotemain'>
<input type='button' accesskey='g' value=' IMG ' onclick='tag_image()' class='codebuttons' name='img' onmouseover="hstat('img')" />
[/b][/quote]

Change it to this piece of code:
<div class='quotetop'>QUOTE[/center]<div class='quotemain'>
<input type='button' accesskey='g' value=' IMG ' onclick='tag_image()' class='codebuttons' name='img' onmouseover="hstat('img')" />
<script language="javascript" src="http://forum.imgfree.net/uploadpop.js"></script>
<noscript>Image Hosting</noscript>
<input type='button' value='UPLOAD IMG' onclick='LaunchImgFree();' class='codebuttons' />
[/b][/quote]

Screenshots


ben_ is offline   Reply With Quote
Old 10-28-2005, 07:16 AM   #2
Forum Guru
 
Ryan's Avatar
 
Join Date: Sep 2005
Location: Athens, GA
Posts: 10,256
Ryan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond repute
Thanks for the great mod, ben...I have never personally seen the mod in action, but have heard it works very well

*stickied*

great work, and welcome to the forums!
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Professional vBulletin Skins
Ryan is offline   Reply With Quote
Old 10-28-2005, 07:27 AM   #3
Rookie
 
Join Date: Oct 2005
Posts: 16
ben_ is on a distinguished road
Thanks Cadence

It's been met with some really great feedback from people and I'm amazed at just how well it's been received!
ben_ is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Generic Forum Policy Template gprime Handling Problem Members 8 01-19-2007 01:27 AM
Creating A Successful Forum PaidPosts Creating Interest 8 12-14-2005 06:47 PM

AdminFusion

All times are GMT +1. The time now is 08:40 AM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

© 2009 AdminFusion | Advertising Opportunities | Legal | A member of the Crowdgather Forum Community
 
From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77