The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#202
|
||||
|
||||
Quote:
Dont really know I am just your average vb muppet :classic: |
#203
|
|||
|
|||
Nope, it's all CHMOD'd, the images are getting uploaded, just giving me that error and not showing in the gallery.
|
#204
|
||||
|
||||
Quote:
|
#205
|
|||
|
|||
Quote:
Right! Is there a addon to delete some pictures? Now it is a pain in the *ss to delete a photo |
#206
|
|||
|
|||
Old, but good question. Is there a possibillity to delete a photo??
Floh |
#207
|
||||
|
||||
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. |
#208
|
|||
|
|||
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. |
#209
|
|||
|
|||
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. TIA, |
#210
|
|||
|
|||
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 |
#211
|
|||
|
|||
Quote:
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, |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|