Help with Phpbb forum

This is a discussion on "Help with Phpbb forum" within the Scripts and Online Services section. This forum, and the thread "Help with Phpbb forum are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Scripts and Online Services

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 23rd, 2007, 13:41
New Member
Join Date: Jul 2007
Location: UK
Age: 38
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
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: Select all
<!-- // 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
Reply With Quote

  #2 (permalink)  
Old Jul 23rd, 2007, 14:48
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
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: Select all
<!-- // 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 // -->
Reply With Quote
  #3 (permalink)  
Old Jul 23rd, 2007, 16:25
New Member
Join Date: Jul 2007
Location: UK
Age: 38
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #4 (permalink)  
Old Jul 23rd, 2007, 16:35
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
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.
Reply With Quote
  #5 (permalink)  
Old Jul 23rd, 2007, 17:15
New Member
Join Date: Jul 2007
Location: UK
Age: 38
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #6 (permalink)  
Old Jul 23rd, 2007, 19:54
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: Help with Phpbb forum

Ummm... Anywhere you want inside of a file that ends with .htm, .html, .php, .php3, .php4 would be ok.
Reply With Quote
  #7 (permalink)  
Old Jul 23rd, 2007, 20:48
New Member
Join Date: Jul 2007
Location: UK
Age: 38
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with Phpbb forum

That sounded pretty vague lol but what if I want it in a particular forum?
Reply With Quote
  #8 (permalink)  
Old Jul 24th, 2007, 06:11
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
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...
Reply With Quote
  #9 (permalink)  
Old Jul 24th, 2007, 13:00
New Member
Join Date: Jul 2007
Location: UK
Age: 38
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with Phpbb forum

Sent you pm about it
Reply With Quote
Reply

Tags
forum, phpbb

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 Forum 8 Apr 8th, 2008 21:13
Help width alignment in phpbb forum RASHID Starting Out 4 Nov 6th, 2007 03:17
phpBB alexgeek Website Planning 34 Oct 2nd, 2007 23:30
forum phpbb MetallicWarfare Webforumz Cafe 13 Aug 15th, 2007 15:52
PHPbb forum help RSStites PHP Forum 5 Aug 8th, 2005 00:10


All times are GMT. The time now is 03:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : 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