Picture html resize.

Support for IntegraMOD 141

Moderator: Integra Moderator

Picture html resize.

PostAuthor: Joshie » Thu Apr 26, 2007 8:02 pm

Your phpBB Version: 2.0.
phpBB Type: phpBB / IMPortal
MODs: No
Your knowledge: Beginner
Board URL: [url]http://[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?
I don't know


What was done to try to solve the problem?
I don't know



De.scription and Message

I am wondering if there is any way I can get a mod for picture html resize. When member upload an avater that it automatically resize an avatar.

And if there is one, then how can I add a mod?
Last edited by Joshie on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]KillYourBoredom.com[/url]
[url=http]Pay-Infinity-Links.com[/url]
[url=http]JustAFreeLancer.com[/url]
User avatar
Joshie
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 25, 2007 7:49 pm
Cash on hand: 0.00

Re: Picture html resize.

PostAuthor: Frost » Thu Apr 26, 2007 9:57 pm

You can pick a mod that does this from [url=http]HERE[/url]

Then you would just follow the mod installation instructions.

If you need further help, post here and I will try and help you.
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Picture html resize.

PostAuthor: Joshie » Thu Apr 26, 2007 11:06 pm

"Frost";p="24465" wrote:You can pick a mod that does this from [url=http]HERE[/url]

Then you would just follow the mod installation instructions.

If you need further help, post here and I will try and help you.
I don't know how to install it.<img> I looked in for how to install and it really confuses me, and I don't even know which right file to download for it.
Last edited by Joshie on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]KillYourBoredom.com[/url]
[url=http]Pay-Infinity-Links.com[/url]
[url=http]JustAFreeLancer.com[/url]
User avatar
Joshie
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 25, 2007 7:49 pm
Cash on hand: 0.00

PostAuthor: Joshie » Thu Apr 26, 2007 11:40 pm

Alright, got this going until I get to 2nd step.

ALTER TABLE phpbb_users ADD `user_avatar_img` LONGBLOB AFTER `user_avatar` [Error]
Duplicate column name 'user_avatar_img'ALTER TABLE phpbb_users ADD `user_avatar_mime` VARCHAR( 25 ) NOT NULL AFTER `user_avatar_img` [Error]
Duplicate column name 'user_avatar_mime'INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_auto_resize_remote_avatar', '1') [Error]
Duplicate entry 'nivisec_auto_resize_remote_avatar' for key 1INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_blank_avatar_image', 'nivisec/spacer.gif') [Error]
Duplicate entry 'nivisec_blank_avatar_image' for key 1INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_too_big_avatar_image', 'nivisec/toobig.png') [Error]
Duplicate entry 'nivisec_too_big_avatar_image' for key 1



<?PHP

/***************************************************************************
* sql_install.php
* -------------------
* copyright: (C) 2004 Billy Sauls
* email: <a>support@nivisec.com</a>
*
* $Id: $
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

define('IN_PHPBB', true);
$phpbb_root_path = './';

include($phpbb_root_path."extension.inc");
include_once($phpbb_root_path."common.$phpEx");

$error_text = '<span>[Error]</span><br>';
$good_text = '<span>[Passed]</span><br>';

$sql = array();
$sql[] = "ALTER TABLE ".USERS_TABLE." ADD `user_avatar_img` LONGBLOB AFTER `user_avatar`";
$sql[] = "ALTER TABLE ".USERS_TABLE." ADD `user_avatar_mime` VARCHAR( 25 ) NOT NULL AFTER `user_avatar_img`";
$sql[] = "INSERT INTO ".CONFIG_TABLE." ( `config_name` , `config_value` ) VALUES ('nivisec_auto_resize_remote_avatar', '1')";
$sql[] = "INSERT INTO ".CONFIG_TABLE." ( `config_name` , `config_value` ) VALUES ('nivisec_blank_avatar_image', 'nivisec/spacer.gif')";
$sql[] = "INSERT INTO ".CONFIG_TABLE." ( `config_name` , `config_value` ) VALUES ('nivisec_too_big_avatar_image', 'nivisec/toobig.png')";

foreach($sql as $command)
{
echo trim($command);
if ($db->sql_query($command) === false)
{
echo ' '.$error_text;
$error = $db->sql_error();
echo $error['message'];
}
else echo ' '.$good_text;
}
Last edited by Joshie on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]KillYourBoredom.com[/url]
[url=http]Pay-Infinity-Links.com[/url]
[url=http]JustAFreeLancer.com[/url]
User avatar
Joshie
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 25, 2007 7:49 pm
Cash on hand: 0.00

PostAuthor: Joshie » Thu Apr 26, 2007 11:42 pm

Last edited by Joshie on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]KillYourBoredom.com[/url]
[url=http]Pay-Infinity-Links.com[/url]
[url=http]JustAFreeLancer.com[/url]
User avatar
Joshie
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 25, 2007 7:49 pm
Cash on hand: 0.00

Re: Picture html resize.

PostAuthor: Frost » Fri Apr 27, 2007 12:11 am

Well, to begin with you need to look into each of the listed mods and select the best one that suits what you need. IntegraMOD has this feature built in but I don't know which mod it is.

After reviewing a couple, I would think this one would be good '"Avatar Database Storage and Resize"

To install the mods:

1. Download the mod

2. Unzip the mod

3. Read all "readme" and "install" text files

4. BackUp ALL related files! This includes ANY file(s) you will be touching in any way. (Including your database)

5. Open the install file and follow the directions.

Examples]OPEN[/b] - This is telling you to open the file and get it ready to edit. I would suggest using a more advanced text editor. Notepad will most likely just cause your problems (I use HTML-Kit and Notepad+)

FIND - This is telling you to find a specific part of the file. This will always work in conjunction with "BEFORE, ADD and AFTER, ADD and REPLACE WITH". So what I do is copy (CTRL+C) what it tells me to find, then in the editor do a "Find" (CTRL+F). This will take you straight to the text the mod is asking you to find. Note - In some cases you will not be able to "find" the text and there can be many reasons for this. Such as:

1. The file has been edited before, and the original code is no longer there.

2. Some editors exclude certain code from their find feature

3. The code might have been changed, depending on your version of phpbb and what the mod was designed for.

4. Almost all theme files are different. The mods are always made to be installed on an ordinary version of phpbb with the default theme called "subSilver"

So in the case that you cannot find the required text, you can try to shorten the text you are looking for. If it asked you to find
Code: Select all
$template->pparse("body");


And you could not find it, try changing it to something shorter, but keep important words or phrases, like so
Code: Select all
$template->pparse


Then manually look at the code and see if it matches.

Ok, back on topic]BEFORE, ADD[/b] - This is telling you to add this text BEFORE the text that you have found. This means to add the text on the next line up from the text it asked you to find. Be sure to maintain the structure of the file and use common sense.

AFTER, ADD - This is telling you to add this text AFTER the text that you have found. This means to add the text on the next line down from the text it asked you to find. Be sure to maintain the structure of the file and use common sense.

REPLACE WITH - This is telling you to replace the code it told you to find, with the new code. A good practice to get into would be to keep the highlight that you get when you find the original text, then just paste(CTRL+V) the new code in it's place. Note - This method would not work unless you found the entire piece of code that it asked you to, to begin with of course.

SAVE & CLOSE ALL FILES - This is just telling you to save and close the files (mainly for easymod) When I do mods or file edits, I save and upload each file as I get done with it because my ftp program is still in the folder I got the file from and it just makes it easier.

Then once you have done the entire install you should go visit your board to see the results. I would not suggest looking at your board until you are finished because you will most likely get errors until all of the edits are done and the mod is complete.

In the same sense, I also suggest disabling your board while you do the mod, but the simple truth of it is, the absolute best practice here would be to try the mod install on a demo board or even on your local machine first.

I can tell you right now, even the most experienced users and even developers miss something or mess something up at some point. So if you do not succeed on your first attempt, don't give up, try it again.

Hope this helps you some, and in worst case scenario you could always invite someone to install the mod for you. Although I highly suggest you learn it yourself!
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Picture html resize.

PostAuthor: Frost » Fri Apr 27, 2007 12:15 am

Ok, apparently it took me so long to write that, you had time to post more lol

And what file is that?!
Who is the author?

The sql file is not even correct

Code: Select all
ALTER TABLE phpbb_users ADD `user_avatar_img` LONGBLOB AFTER `user_avatar` [Error]Duplicate column name 'user_avatar_img'ALTER TABLE phpbb_users ADD `user_avatar_mime` VARCHAR( 25 ) NOT NULL AFTER `user_avatar_img` [Error]Duplicate column name 'user_avatar_mime'INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_auto_resize_remote_avatar', '1') [Error]Duplicate entry 'nivisec_auto_resize_remote_avatar' for key 1INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_blank_avatar_image', 'nivisec/spacer.gif') [Error]Duplicate entry 'nivisec_blank_avatar_image' for key 1INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_too_big_avatar_image', 'nivisec/toobig.png') [Error]Duplicate entry 'nivisec_too_big_avatar_image' for key 1


1INSERT INTO` should be `INSERT INTO`
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Picture html resize.

PostAuthor: Joshie » Fri Apr 27, 2007 3:36 pm

"Frost";p="24476" wrote:Ok, apparently it took me so long to write that, you had time to post more lol

And what file is that?!
Who is the author?

The sql file is not even correct

Code: Select all
ALTER TABLE phpbb_users ADD `user_avatar_img` LONGBLOB AFTER `user_avatar` [Error]Duplicate column name 'user_avatar_img'ALTER TABLE phpbb_users ADD `user_avatar_mime` VARCHAR( 25 ) NOT NULL AFTER `user_avatar_img` [Error]Duplicate column name 'user_avatar_mime'INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_auto_resize_remote_avatar', '1') [Error]Duplicate entry 'nivisec_auto_resize_remote_avatar' for key 1INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_blank_avatar_image', 'nivisec/spacer.gif') [Error]Duplicate entry 'nivisec_blank_avatar_image' for key 1INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_too_big_avatar_image', 'nivisec/toobig.png') [Error]Duplicate entry 'nivisec_too_big_avatar_image' for key 1


1INSERT INTO` should be `INSERT INTO`
Hey.

Author]http://phpbbhacks.com/download/3306[/url]

Thats what I tried to use, but appearently. It don't work.<img>
Last edited by Joshie on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]KillYourBoredom.com[/url]
[url=http]Pay-Infinity-Links.com[/url]
[url=http]JustAFreeLancer.com[/url]
User avatar
Joshie
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 25, 2007 7:49 pm
Cash on hand: 0.00

PostAuthor: Joshie » Mon Apr 30, 2007 2:51 pm

Anyone, help?
Last edited by Joshie on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]KillYourBoredom.com[/url]
[url=http]Pay-Infinity-Links.com[/url]
[url=http]JustAFreeLancer.com[/url]
User avatar
Joshie
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 25, 2007 7:49 pm
Cash on hand: 0.00

Re: Picture html resize.

PostAuthor: Frost » Mon Apr 30, 2007 4:35 pm

Other than actually installing the file for you, I would just have to tell you to throw that mod in the garbage and try another one.

If you want, you can pick the next one and show me which one you picked, then I'll tell you to send me certain files that need the edits, I'll edit them and send them back, or just give someone access to your site.

Other than that, I don't know how else to help you <img>
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

PostAuthor: Joshie » Tue May 01, 2007 2:10 pm

Is there another file for this? Because I would absolutely to have this kind of mod, soon as possible.

Do you know any other file? That'll work.
Last edited by Joshie on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]KillYourBoredom.com[/url]
[url=http]Pay-Infinity-Links.com[/url]
[url=http]JustAFreeLancer.com[/url]
User avatar
Joshie
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 25, 2007 7:49 pm
Cash on hand: 0.00

PostAuthor: Joshie » Tue May 08, 2007 7:50 pm

http://www.killyourboredom.com/sql_install.php

<img>

It still does it, I change it to INSERT instead of 1INSERT.
Last edited by Joshie on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]KillYourBoredom.com[/url]
[url=http]Pay-Infinity-Links.com[/url]
[url=http]JustAFreeLancer.com[/url]
User avatar
Joshie
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 25, 2007 7:49 pm
Cash on hand: 0.00

Re: Picture html resize.

PostAuthor: zenrei » Tue May 08, 2007 7:53 pm

"Joshie";p="24495" wrote:
"Frost";p="24476" wrote:Ok, apparently it took me so long to write that, you had time to post more lol

And what file is that?!
Who is the author?

The sql file is not even correct

Code: Select all
ALTER TABLE phpbb_users ADD `user_avatar_img` LONGBLOB AFTER `user_avatar` [Error]Duplicate column name 'user_avatar_img'ALTER TABLE phpbb_users ADD `user_avatar_mime` VARCHAR( 25 ) NOT NULL AFTER `user_avatar_img` [Error]Duplicate column name 'user_avatar_mime'INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_auto_resize_remote_avatar', '1') [Error]Duplicate entry 'nivisec_auto_resize_remote_avatar' for key 1INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_blank_avatar_image', 'nivisec/spacer.gif') [Error]Duplicate entry 'nivisec_blank_avatar_image' for key 1INSERT INTO phpbb_config ( `config_name` , `config_value` ) VALUES ('nivisec_too_big_avatar_image', 'nivisec/toobig.png') [Error]Duplicate entry 'nivisec_too_big_avatar_image' for key 1


1INSERT INTO` should be `INSERT INTO`
Hey.

Author]http://phpbbhacks.com/download/3306[/url]

Thats what I tried to use, but appearently. It don't work.<img>


joshie, this mod doesn't work with integramod, i've tried it before.
Last edited by zenrei on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
IntegraMOD 141 RULES!!
[img=left]http://www.falloutzone.net/foz/images/smiles/attentionwhore.gif[/img]

[url=http]Click here to go to my site built with IntegraMOD 141[/url] <img>
User avatar
zenrei
Sr Integra Member
Sr Integra Member
 
Posts: 286
Likes: 0 post
Liked in: 0 post
Joined: Mon Oct 09, 2006 8:36 am
Cash on hand: 0.00

PostAuthor: Joshie » Wed May 09, 2007 7:04 am

<img>

That's major sucks. I really like to have this kind of mod for my site, so it can be easier for members to upload the avatar instead of asking me bunch of questions about how to resize a image.
Last edited by Joshie on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]KillYourBoredom.com[/url]
[url=http]Pay-Infinity-Links.com[/url]
[url=http]JustAFreeLancer.com[/url]
User avatar
Joshie
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 25, 2007 7:49 pm
Cash on hand: 0.00

Re: Picture html resize.

PostAuthor: Frost » Wed May 09, 2007 8:13 am

You could do a sticky or announcement, or even a Force To Read topic explaining how to resize the image.

If it were me, and I had that many users who didn't know how to do it, I would put a link right there in the profile area that said "Need help resizing Images?" and apon clicking, it would open a small pop-up box similar to the smileys, that explained how to do it
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Picture html resize.

PostAuthor: Joshie » Wed May 09, 2007 7:16 pm

"Frost";p="24993" wrote:You could do a sticky or announcement, or even a Force To Read topic explaining how to resize the image.

If it were me, and I had that many users who didn't know how to do it, I would put a link right there in the profile area that said "Need help resizing Images?" and apon clicking, it would open a small pop-up box similar to the smileys, that explained how to do it
And how can I do that? In the file of profile, and the code, etc.
Last edited by Joshie on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]KillYourBoredom.com[/url]
[url=http]Pay-Infinity-Links.com[/url]
[url=http]JustAFreeLancer.com[/url]
User avatar
Joshie
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 25, 2007 7:49 pm
Cash on hand: 0.00

Re: Picture html resize.

PostAuthor: Frost » Thu May 10, 2007 5:52 pm

Let me build up some code, give me a couple of days
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3

PostAuthor: Joshie » Wed May 30, 2007 1:49 pm

I'd love it is if there are any available to make this work. For resizing an image when they upload an image.
Last edited by Joshie on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http]KillYourBoredom.com[/url]
[url=http]Pay-Infinity-Links.com[/url]
[url=http]JustAFreeLancer.com[/url]
User avatar
Joshie
Integra Member
Integra Member
 
Posts: 138
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 25, 2007 7:49 pm
Cash on hand: 0.00

PostAuthor: nGAGE » Fri Jun 01, 2007 7:50 am

Shouldn't it be possible to just pic some of the code that is responsible for creating thumbs on attachments?
That DOES resize the images to a thumbnail size and avatars are rarely much bigger!

Don't know if I have time to look into this.
Last edited by nGAGE on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://www.net-clan-gaming.eu/ftp/ngage/images/nEt_v3_sig.png[/img][/url]
User avatar
nGAGE
Sr Integra Member
Sr Integra Member
 
Posts: 248
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 7:28 am
Cash on hand: 0.00

Re: Picture html resize.

PostAuthor: Frost » Sat Jun 02, 2007 9:15 pm

I realize it has been more than a couple of days, and I apologize, I haven't forgot about you, just been really busy.
Last edited by Frost on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 2:04 am
Cash on hand: 0.00
Location: Photoshop CS3


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]