MyBB Community Forums

Full Version: LLNN's Image Profile plugin issue...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This plugin is supposed to restrict the Profile Image to a size of 950x100, but I have people uploading images to as much as 1432x2046. Is this a known problem that needs to be addressed?
Do you have a link to the plugin?
It's this plugin...

http://mods.mybb.com/view/profile-image



Also, we seem to be having a problem with the "Remove Image" function. It doesn't work.
(2011-01-04, 07:33 PM)pqphillips Wrote: [ -> ]It's this plugin...

http://mods.mybb.com/view/profile-image



Also, we seem to be having a problem with the "Remove Image" function. It doesn't work.

Any solutions on this thing yet?
De-activate plugin. Now open plugin file and find;
<center><img src=\"{\$img_prof}\"></center>
and change it to;
<center><img src=\"{\$img_prof}\" height=\"100\" width=\"950\"></center>

Activate it again. Now when a user upload any image beyound the limit, his / her image will be shortened to height=100 and width= 950 Wink
(2011-01-23, 04:50 AM)Yaldaram Wrote: [ -> ]De-activate plugin. Now open plugin file and find;
<center><img src=\"{\$img_prof}\"></center>
and change it to;
<center><img src=\"{\$img_prof}\" height=\"100\" width=\"950\"></center>

Activate it again. Now when a user upload any image beyound the limit, his / her image will be shortened to height=100 and width= 950 Wink

Awesome... now what about the fact that the "Remove Image" function won't work?

Also, I now get an error when trying to reactivate it...

Quote:Parse error: syntax error, unexpected '{', expecting ')' in /home/adolfo/public_html/forums/inc/plugins/imgprofile.php on line 78
(2011-01-23, 05:58 PM)pqphillips Wrote: [ -> ]
(2011-01-23, 04:50 AM)Yaldaram Wrote: [ -> ]De-activate plugin. Now open plugin file and find;
<center><img src=\"{\$img_prof}\"></center>
and change it to;
<center><img src=\"{\$img_prof}\" height=\"100\" width=\"950\"></center>

Activate it again. Now when a user upload any image beyound the limit, his / her image will be shortened to height=100 and width= 950 Wink

Awesome... now what about the fact that the "Remove Image" function won't work?

Also, I now get an error when trying to reactivate it...

Quote:Parse error: syntax error, unexpected '{', expecting ')' in /home/adolfo/public_html/forums/inc/plugins/imgprofile.php on line 78

I went to line 78, as it said, and I got this coding:

		"template"	=> "<table border=\"0\" 

As you can see, there's not even a '{' character on that line. Anyone want to take a look at the code for me and tell me what I'm missing?

I'd much appreciate it...
(2011-01-24, 10:40 PM)pqphillips Wrote: [ -> ]
(2011-01-23, 05:58 PM)pqphillips Wrote: [ -> ]
(2011-01-23, 04:50 AM)Yaldaram Wrote: [ -> ]De-activate plugin. Now open plugin file and find;
<center><img src=\"{\$img_prof}\"></center>
and change it to;
<center><img src=\"{\$img_prof}\" height=\"100\" width=\"950\"></center>

Activate it again. Now when a user upload any image beyound the limit, his / her image will be shortened to height=100 and width= 950 Wink

Awesome... now what about the fact that the "Remove Image" function won't work?

Also, I now get an error when trying to reactivate it...

Quote:Parse error: syntax error, unexpected '{', expecting ')' in /home/adolfo/public_html/forums/inc/plugins/imgprofile.php on line 78

I went to line 78, as it said, and I got this coding:

		"template"	=> "<table border=\"0\" 

As you can see, there's not even a '{' character on that line. Anyone want to take a look at the code for me and tell me what I'm missing?

I'd much appreciate it...

Sorry about the constant replies, but I should tell you guys that I kinda need this resolved ASAP, as this particular error has affected my ability to access the plugins area on the Admin CP.
Line 78 should be the replacement code Yaldaram posted... And the line 78 you posted doesn't look like the code.
Not sure what that code should be, but that's not even a complete tag: <table border=\"0\">blah</table> is the proper way, but i haven't messed with templating enough to be able to help ya, sorry :\
Pages: 1 2