A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.
Please welcome our newest member, aamer1!
Spice up your web site with the ultimate community message board solution!
Fake Id'sGet fake Id's made right now!
vBSEOSearch Engine Optimization for your VBulletin Forum.
AdminFusion
»
[IPB] Add image uploading to your forum
| | #1 |
| | |||||
| Title: Rookie Join Date: Oct 2005 Posts: 16 ![]() | 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 ![]() ![]() | ||||
| |
| | #2 |
| | #3 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
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 |
