vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Member Photo (https://vborg.vbsupport.ru/showthread.php?t=49565)

irn-bru 09-08-2003 07:11 PM

Quote:

Today at 03:01 PM Nebby said this in Post #200
i get this;

Code:

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/nebby/htdocs/vb/gdresize.php on line 9
EDIT: i've checked the folder, and the pics are uploading fine, it's just i get that error, and it's not showing in the gallery.

I reckon you need chmod 777 on that gallery folder m8.
Dont really know I am just your average vb muppet :classic:

Nebby 09-13-2003 10:45 PM

Nope, it's all CHMOD'd, the images are getting uploaded, just giving me that error and not showing in the gallery.

Velocd 09-23-2003 02:35 AM

Quote:

Fatal error: Call to undefined function: imagecreatefromjpeg()
I'm mentioned this many times already, you must have GD2 library installed for this hack to work. GD2 is an external library, which ships with newer versions of PHP (4.3.0+), that helps PHP do advance imaging process.

Athmo 10-03-2003 10:35 AM

Quote:

Originally Posted by engquist
I installed this hack about 3 months ago, so I'm running the version from then.

It is truely wonderful and I thank you Velocd!

I have one thing I'd like to change on it if anyone knows how to code it.

I use the verify pictures system. when I want to disapprove a photo I have to go into phpMyadmin and delete it from the database and then go into the server, look at each member photo (I have like 100 +) and then delete the unapproved ones.

if an option to delete and disapprove a photo can be added via the admin CP, I would be eternally grateful.

all I need is just the lines of code to add/overwrite and the files to do it to.

Thank you all for your hard work on this hack! Even if this change is never made, it's still an awesome hack that the members of my forums really enjoy!


Right!

Is there a addon to delete some pictures?
Now it is a pain in the *ss to delete a photo

Floh 10-08-2003 03:31 PM

Old, but good question. Is there a possibillity to delete a photo??

Floh

DaveRobbo 10-14-2003 09:44 AM

OK - I'm having some trouble with this hack now - but it's rather hard to describe so bear with me....

My host provider didn't have the latest GD library installed, so the hack wouldn't work as originally released and I had to defer installing it for many months.

Then someone on this thread came up with an alternative version of one of the files (I think it was gdresize.php) which though was unsupported, was supposed to get around the GD2 library problem. I installed the hack with this modification and it all worked great! (many thanks to both VeloCD and the guy who came up with the mod to make it work on "pre-GD2" - sorry can't remember who you were but it worked fine)

Now, many months later, my host has finally upgraded their PHP and GD libraries - and the "mod'd" version now doesn't seem to work too good - the generated thumbnails seem to get their colourmap all confoozed. I'm assuming this is the upgraded GD libraries that are responsible for this.

However - my problem; I can no longer find what the "mod" was! I've tried downloading the original hack again - but can't see any difference between that and the version of gdresize.php I am using.

Can anyone think what it is I may have done? I've got around the problem temporarily my altering the templates so that the thumbnail page uses the fullsize picture - but scaled down to thumbnail size by the browser. This works fine although it means that the thumbnail page is actually downloading all the fullsize photos while only displaying them at thumbnail resolution.

I'm sure I'm just missing something obvious here - both the original hack and the mod seem great and all kudos to both authors.

Areku 10-15-2003 09:28 PM

From time to time, the UNAPPROVED section of the Admin panel gets full coz users won't upload any new photos...

Since this hack didnt provide any delete photos, I decided to:

1) approve all conforming photos
2) run this php file every once in a while, when unapproved photos list is too long

Hope this helps any1 like me....

Set up instructions:
**THIS HACK WILL DELETE ALL UNAPPROVED PHOTOS FROM MEMBERPHOTO TABLE**

1) download attachment
2) put deletephotos.php on forums/admin folder
3) edit admin/index.php

Find
makenavoption("Verify","pverify.php?action=verify" );

Replace with
makenavoption("Verify","pverify.php?action=verify" ,"|");
makenavoption("Delete Unapproved","deletephotos.php?action=");

Save, upload.
4) Enter admin panel.
5) approve all photos complying with your rules...
6) click on Delete Unapproved and follow instructions.

aquariumpros 10-15-2003 09:59 PM

Great add-on...

One problem - I am getting the following error when I run the delete command:

Code:

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: delete FROM 'memberphoto' WHERE visible='-1'
mysql error: You have an error in your SQL syntax near ''memberphoto' WHERE visible='-1'' at line 1

mysql error number: 1064

Date: Wednesday 15th of October 2003 06:57:36 PM
Script: http://www.aquariumpros.ca/forums/fo...tos.php?paco=1
Referer: http://208.56.122.88/forums/admin/de...php?action=&s=
Repair Report: This type of error cannot be automatically repaired.

Any help would be appreciated!

TIA,

Areku 10-15-2003 10:03 PM

I'm afraid I uploaded a wrong version of the php... I've reuploaded the correct one. Just remove the quotes from the SQL query in the php file, ie.:

where it reads
delete FROM 'memberphoto' WHERE visible='-1'

put
delete FROM memberphoto WHERE visible=-1

aquariumpros 10-15-2003 10:11 PM

Quote:

Originally Posted by Areku
I'm afraid I uploaded a wrong version of the php... I've reuploaded the correct one. Just remove the quotes from the SQL query in the php file, ie.:

where it reads
delete FROM 'memberphoto' WHERE visible='-1'

put
delete FROM memberphoto WHERE visible=-1

Sweet!

That fixed it 100%.

It's soo nice not to see that long list of memberphotos anymore!

Thank you greatly for this add-on Areku

Cheers,


All times are GMT. The time now is 03:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01391 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete