Quick Login   
 
Register AdminFusion Tutorials
 
Featured Sponsors


One.com Domain and Hosting


vBulletin, phpBB, & IPB Skins vBulletin Skins

Register
Register
Forum of the Month
Australian Webmaster
fotm

A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.

Tag Cloud
Latest Threads
Forum Stats
7,522 Members
163,697 Posts
64 Users Online

Please welcome our newest member, aamer1!

Affiliates
Go Back AdminFusion » Getting Started » Software » Invision Power Board » [IPB] Add image uploading to your forum
Welcome to the AdminFusion. AdminFusion is the ultimate resource for forum administrators and moderators. With exclusive articles, interviews with the experts, free downloadable skins, and the revolutionary post exchange system - PostFusion, AdminFusion is the place to go for all of your forum needs.  By joining AdminFusion, you will become part of a thriving admin community and immediately gain access to all of these resources. Registration is fast, simple and absolutely free so please join us today!
Want more than our forums? Try these: Post Fusion Forum Matrix
Old 10-28-2005, 07:12 AM   #1

Title: Rookie

Points: 1,889, Level: 12Points: 1,889, Level: 12Points: 1,889, Level: 12
Level up: 13%, 261 Points neededLevel up: 13%, 261 Points neededLevel up: 13%, 261 Points needed
Activity: 0%Activity: 0%Activity: 0%

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


Reply With Quote
Old 10-28-2005, 07:16 AM   #2

Ryan's Avatar

Title: Administrator

Points: 47,649, Level: 67Points: 47,649, Level: 67Points: 47,649, Level: 67
Level up: 68%, 701 Points neededLevel up: 68%, 701 Points neededLevel up: 68%, 701 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 10,246

Location: Athens, GA

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!
__________________
...some super-sweet signature
Reply With Quote
Old 10-28-2005, 07:27 AM   #3

Title: Rookie

Points: 1,889, Level: 12Points: 1,889, Level: 12Points: 1,889, Level: 12
Level up: 13%, 261 Points neededLevel up: 13%, 261 Points neededLevel up: 13%, 261 Points needed
Activity: 0%Activity: 0%Activity: 0%

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!
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
Free forum hosting miner Buy and Sell 15 02-17-2008 08:37 PM
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 04:27 AM. Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 © 2005-2008 AdminFusion - All Rights Reserved



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