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,

Areku 10-15-2003 11:16 PM

U're welc. Glad u liked it! ;)

pdatoon 10-18-2003 04:22 PM

Quote:

Originally Posted by Velocd
Admin CP Verify Page:


Hi guys,

I dont have that link into my admin CP Panel?!
I dont understand. I changed admin/index.html

I uploaded pverify in the admin folder.
Everything else should be working.

Help please!

pdatoon 10-18-2003 04:52 PM

Quote:

Originally Posted by pdatoon
Hi guys,

I dont have that link into my admin CP Panel?!
I dont understand. I changed admin/index.html

I uploaded pverify in the admin folder.
Everything else should be working.

Help please!

Which file or what templates is involved in the admin CP link? Please let me know

pdatoon 10-18-2003 05:02 PM

Does it has anything to do with the :

// draw cp nav bar
$cpnav = array();
$cpmenu = array();
$cpnav[1]="{firstaltcolor}";
$cpmenu[1]="class=\"fjsel\" selected";
$cpnav[2]="{secondaltcolor}";
$cpnav[3]="{secondaltcolor}";
$cpnav[4]="{secondaltcolor}";
$cpnav[5]="{secondaltcolor}";
$cpnav[6]="{secondaltcolor}";
$cpnav[7]="{secondaltcolor}";
$cpnav[8]="{secondaltcolor}";

?

pdatoon 10-19-2003 09:23 PM

Anyone please?

Does someone know what part of the modification is involved with the cpanel left menu link? please :rolleyes:

zsmom 10-26-2003 12:40 AM

Nevermind, thanks!

SEShady 10-31-2003 01:15 PM

Wowzer.

GreaT Hack, and I'm a NoOb at this, and it only took me like 30 minutes!

Great Job!

pz out,
Shady

parajsa 11-04-2003 07:25 PM

Greetings,
Firstly wanna congratulate for this good and usefull hack.
Secondly, i got a quest. Is there a way to use this hack with the GD 1.6.x/1.8.x version? Coz i been running this version right now, and can't update to the new version coz of some reason.

Thanks in advanced,
Peace on ya!

magnus 11-06-2003 01:52 PM

Velocd, *love* the hack, great work!

I'm trying to modify it slightly, however, to display on the main home page instead. I've tried to take the code inserted in memberlist.php and apply it to index.php (minus the (if $action) portions) in hopes if displaying a row of pictures at the top of the forum.

Obviously, this didn't work. I was wondering if someone could help point me in the right direction as to how to accomplish this.

Thanks!

jp2 11-20-2003 04:17 PM

good work
/me installs

parajsa 11-24-2003 10:31 AM

Is there a way to use this hack with the GD 1.6.x/1.8.x version? Coz i been running this version right now, and can't update to the new version coz of some reason.

No response yet on this quest, any help?

Oblivion Knight 12-21-2003 04:29 PM

Apologies if I'm wrong, but shouldn't there be something in the admin cp around this area IF you have the approval system enabled.?
Quote:

From here, you can control all aspects of your vBulletin forums. Please select what you need from the links down the left hand side of this page.

There are currently 0 user(s) awaiting moderation.
I've looked at the code in index.php and found that it does absolutely nothing, so I changed it to this:

Code:

if($approvalsystem==1){
  $checkphoto=$DB_site->query_first("SELECT COUNT(*) AS visible FROM memberphoto WHERE visible=0");
  if($checkphoto[count] > 1){
    echo "<font size=\"1\">There are currently <b>$checkphoto[count]</b>
    photos unverified, which can be checked <a href=\"pverify.php?s=$session[sessionhash]&action=verify\">here</a>.";
  } else if($checkphoto[count] == 1){
    echo "<font size=\"1\">There is currently <b>$checkphoto[count]</b>
    photo unverified, which can be checked <a href=\"pverify.php?s=$session[sessionhash]&action=verify\">here</a>.";
  }
}

but it still doesn't work.. Anyone have any ideas.?

bgray 01-01-2004 11:03 PM

I just moved to a new server. I check my permissions and have GD 2.0.15 installed but when I try to upload a pic this screen shows up for a second and the pic doesn''t load in the Member Photos section.

I've attached a screenshot. Does anyone know what is wrong?

Thanks,

BGray


All times are GMT. The time now is 07:06 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.01289 seconds
  • Memory Usage 1,795KB
  • 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
  • (3)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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