iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > Putting it Together > Forums, Blogging and Content Management

Reply
 
LinkBack Thread Tools
Old July 23rd, 2007, 10:41 AM   #1
New Member
 

Join Date: Jul 2007
Location: UK
Age: 39
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ofear is on a distinguished road
Help with Phpbb forum

Hi,

Could anybody tell me where I would put the following code for resizing photos on my forum www.ofear.com.

Code:
<!-- // start form -->
<form name="F1Upload" enctype="multipart/form-data" action="http://www.resize.it/client/client.php" method="post"><!-- // start file input table -->   <table width="450" border="0" cellspacing="0" cellpadding="0">   <tr>   <td>select file:    <input name = "Photo" type= "file" id="Photo" size="30"></td>   </tr>   </table><!-- end file input table // --><!-- // start portrait input table -->   <table width="450" border="0" cellspacing="0" cellpadding="0">   <tr>   <td>portrait:    <input name="preset" type="radio" value="360x480" checked>   [360x480]   <input name="preset" type="radio" value="450x600">   [450x600]   <input name="preset" type="radio" value="540x720">   [540x720]</td>   </tr>   </table><!-- end portrait input table // --><!-- // start landscape input table -->   <table width="450" border="0" cellspacing="0" cellpadding="0">   <tr>   <td>landscape:    <input name="preset" type="radio" value="480x360">   [480x360]   <input name="preset" type="radio" value="600x450">   [600x450]   <input name="preset" type="radio" value="720x540">   [720x540]</td>   </tr>   </table><!-- end landscape input table // --><!-- // start percent input table -->   <table width="450" border="0" cellspacing="0" cellpadding="0">   <tr>   <td>percent:    <input name="preset" type="radio" value="75">   75%   <input name="preset" type="radio" value="50">   50%   <input name="preset" type="radio" value="25">   25%</td>   </tr>   </table><!-- end percent input table // --><!-- // start rotate input table -->   <table width="450" border="0" cellspacing="0" cellpadding="0">   <tr>   <td>rotate?    <input type="checkbox" name="rotateon" value="checkbox">   &lt;-   select for yes    <input name="rotate" type="radio" value="270" checked>   90 left   <input name="rotate" type="radio" value="90">   90 right   <input name="rotate" type="radio" value="180">   180 (flip) </td>   </tr>   </table><!-- end rotate input table // --><!-- // start hidden messages table -->   <table width="450" border="0" cellspacing="0" cellpadding="0">   <tr>   <td><input type="hidden" name="backgroundcolor" value="CCCCCC">   <input type="hidden" name="textcolor" value="000000">   <input type="hidden" name="fontsize" value="10">   <input type="hidden" name="message1" value="this is message one">   <input type="hidden" name="message2" value="this is message two[br]Click image to download.">   <input type="hidden" name="urlback" value="http://www.resize.it">   <input type="hidden" name="selectfile" value="Error! Please select a file!">   <input type="hidden" name="filetypeerror" value="Error! File type not accepted! The file you uploaded is a: ">   <input type="hidden" name="oldimageinfotxt" value="Old image info:">   <input type="hidden" name="imageidenfied" value="Image identified as:">   <input type="hidden" name="oldimagesize" value="old filesize">   <input type="hidden" name="oldimagewidth" value="old filewidth">   <input type="hidden" name="oldimageheight" value="old fileheight">   <input type="hidden" name="newimageinfotxt" value="New image info:">   <input type="hidden" name="newimagesize" value="new filesize">   <input type="hidden" name="newimagewidth" value="new filewidth">   <input type="hidden" name="newimageheight" value="new fileheight"></td>   </tr>   </table><!-- end hidden messages table // --><!-- // start okay button table -->   <table width="450" border="0" cellspacing="0" cellpadding="0">   <tr>   <td><input name="submitbutton" type="submit" value="okay" /></td>   </tr>   </table><!-- end okay button table // --></form>
<!-- end form // -->
Thanks in advance

John
Ofear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 23rd, 2007, 11:48 AM   #2
Highly Reputable Member
 

Join Date: Apr 2007
Location: Willich, Germany
Age: 21
Posts: 592
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough
Re: Help with Phpbb forum

The code you posted is just a html form. By itself it can't resize anything. To do that you need some server side language like PHP that receives the posted values from this form, stores the image on the server and then resizes it. I formatted the code for you:
Code:
<!-- // start form -->
<form name="F1Upload" enctype="multipart/form-data" action="http://www.resize.it/client/client.php" method="post"><!-- // start file input table -->
<table width="450" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>select file:
            <input name = "Photo" type= "file" id="Photo" size="30">
        </td>
    </tr>
</table>
<!-- end file input table // -->
<!-- // start portrait input table -->
<table width="450" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>portrait:
            <input name="preset" type="radio" value="360x480" checked>[360x480]
            <input name="preset" type="radio" value="450x600">[450x600]
            <input name="preset" type="radio" value="540x720">[540x720]
        </td>
    </tr>
</table>
<!-- end portrait input table // -->
<!-- // start landscape input table -->
<table width="450" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>landscape:
            <input name="preset" type="radio" value="480x360">[480x360]
            <input name="preset" type="radio" value="600x450">[600x450]
            <input name="preset" type="radio" value="720x540">[720x540]
        </td>
    </tr>
</table>
<!-- end landscape input table // -->
<!-- // start percent input table -->
<table width="450" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>percent:
            <input name="preset" type="radio" value="75">75%
            <input name="preset" type="radio" value="50">50%
            <input name="preset" type="radio" value="25">25%
        </td>
    </tr>
</table>
<!-- end percent input table // -->
<!-- // start rotate input table -->
<table width="450" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>rotate?
            <input type="checkbox" name="rotateon" value="checkbox">&lt;-   select for yes
            <input name="rotate" type="radio" value="270" checked>90 left
            <input name="rotate" type="radio" value="90">90 right
            <input name="rotate" type="radio" value="180">   180 (flip) 
        </td>
    </tr>
</table>
<!-- end rotate input table // -->
<!-- // start hidden messages table -->
<table width="450" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <input type="hidden" name="backgroundcolor" value="CCCCCC">
            <input type="hidden" name="textcolor" value="000000">
            <input type="hidden" name="fontsize" value="10">
            <input type="hidden" name="message1" value="this is message one">
            <input type="hidden" name="message2" value="this is message two[br]Click image to download.">
            <input type="hidden" name="urlback" value="http://www.resize.it">
            <input type="hidden" name="selectfile" value="Error! Please select a file!">
            <input type="hidden" name="filetypeerror" value="Error! File type not accepted! The file you uploaded is a: "> 
            <input type="hidden" name="oldimageinfotxt" value="Old image info:">
            <input type="hidden" name="imageidenfied" value="Image identified as:">
            <input type="hidden" name="oldimagesize" value="old filesize">
            <input type="hidden" name="oldimagewidth" value="old filewidth">
            <input type="hidden" name="oldimageheight" value="old fileheight">
            <input type="hidden" name="newimageinfotxt" value="New image info:">
            <input type="hidden" name="newimagesize" value="new filesize">
            <input type="hidden" name="newimagewidth" value="new filewidth">
            <input type="hidden" name="newimageheight" value="new fileheight">
        </td>
    </tr>
</table>
<!-- end hidden messages table // -->
<!-- // start okay button table -->
<table width="450" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <input name="submitbutton" type="submit" value="okay" />
        </td>
    </tr>
</table>
<!-- end okay button table // -->
</form>
<!-- end form // -->
c010depunkk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 23rd, 2007, 01:25 PM   #3
New Member
 

Join Date: Jul 2007
Location: UK
Age: 39
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ofear is on a distinguished road
Re: Help with Phpbb forum

Thanks for your help, its really appreciated.

Maybe following this link it might make more sense what I want.

http://www.resize.it/client/demo-one.html

This is what I would like on my forum for people to be able to resize a photo quickly to post on the forum.

Thanks once again.

John
Ofear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 23rd, 2007, 01:35 PM   #4
Highly Reputable Member
 

Join Date: Apr 2007
Location: Willich, Germany
Age: 21
Posts: 592
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough
Re: Help with Phpbb forum

Ok, but if you use your current form the resized image is processed by the resize.it server, outputted to the page, and then it is most likely deleted. You would have to get the same script that they use and run it on your server to process the stuff posted by your form and store the images on your server.
c010depunkk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 23rd, 2007, 02:15 PM   #5
New Member
 

Join Date: Jul 2007
Location: UK
Age: 39
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ofear is on a distinguished road
Re: Help with Phpbb forum

Im happy for it to work that way and they just right click the picture and save as to their pc.

So now is the code I posted ok to use for that purpose and where would I put it?

Thanks

John
Ofear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 23rd, 2007, 04:54 PM   #6
Highly Reputable Member
 

Join Date: Apr 2007
Location: Willich, Germany
Age: 21
Posts: 592
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough
Re: Help with Phpbb forum

Ummm... Anywhere you want inside of a file that ends with .htm, .html, .php, .php3, .php4 would be ok.
c010depunkk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 23rd, 2007, 05:48 PM   #7
New Member
 

Join Date: Jul 2007
Location: UK
Age: 39
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ofear is on a distinguished road
Re: Help with Phpbb forum

That sounded pretty vague lol but what if I want it in a particular forum?
Ofear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 24th, 2007, 03:11 AM   #8
Highly Reputable Member
 

Join Date: Apr 2007
Location: Willich, Germany
Age: 21
Posts: 592
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough
Re: Help with Phpbb forum

Sorry, I'm not familiar with the forum package that you are using so I can't really help you further...
Do you own the server where to forum is hosted (do you have access to the HTML / PHP source files), (it looks like you do). If you have access to the files, you just have to find the page where you want the form to appear and paste the code into the file.

If you are totally lost then maybe you should PM me and we can see if we can work something out...
c010depunkk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 24th, 2007, 10:00 AM   #9
New Member
 

Join Date: Jul 2007
Location: UK
Age: 39
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ofear is on a distinguished road
Re: Help with Phpbb forum

Sent you pm about it
Ofear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
forum , phpbb


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup phpbb forum? GuNka PHP 8 April 8th, 2008 06:13 PM
Help width alignment in phpbb forum RASHID Your Design and Layout 4 November 6th, 2007 12:17 AM
phpBB alexgeek How is this done? 34 October 2nd, 2007 08:30 PM
forum phpbb MetallicWarfare The Café 13 August 15th, 2007 12:52 PM
PHPbb forum help RSStites PHP 5 August 7th, 2005 09:10 PM


Search Engine Optimization by vBSEO 3.2.0 RC8