vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Member Album 2.0 (https://vborg.vbsupport.ru/showthread.php?t=63733)

kjell 07-05-2004 07:43 AM

Does it? Have you tested to change your profile picture or rebuild the thumbs?
When I do I get the word Array in the thumbnaildata field instead of the picture.

The function fetch_thumbnail_from_image in /includes/functions_image.php has changed alot so I would like to know for sure if this works or not.

Another question.
How much did you have to pay Jelsoft to remove the copyright notice and have it looked like you made it yourself?

nighteyes 07-06-2004 02:27 AM

Quote:

Originally Posted by kjell
Does it? Have you tested to change your profile picture or rebuild the thumbs?
When I do I get the word Array in the thumbnaildata field instead of the picture.

The function fetch_thumbnail_from_image in /includes/functions_image.php has changed alot so I would like to know for sure if this works or not.

Another question.
How much did you have to pay Jelsoft to remove the copyright notice and have it looked like you made it yourself?

That's what I thought. I'm holding off installig this one for now until more people install it. We now use thumbs and attachments in the file system and I guessed with the coding changes since this hack was released.... it would cause problems.

Onkel_Tom 07-06-2004 09:02 AM

Quote:

Originally Posted by kjell
Does it? Have you tested to change your profile picture or rebuild the thumbs?
When I do I get the word Array in the thumbnaildata field instead of the picture.

The function fetch_thumbnail_from_image in /includes/functions_image.php has changed alot so I would like to know for sure if this works or not.

Yes, you are right !
When uploading a new profile picture it isn't shown in the album.php
also the recreate thumbnails in adminCP for member album didn't work.

So sorry for my replay without checking all functions !

Quote:

Another question.
How much did you have to pay Jelsoft to remove the copyright notice and have it looked like you made it yourself?
I didn't pay Jelsoft for a branding free version, I payed to the german reseller aducco digital which are under vbulletin-germany.com?
The price was about 110,-? for a unbranded version of vb3

kjell 07-07-2004 10:58 AM

That's not so expensive :eek:
I know it's of topic but is there any information somewhere about unbranded versions from Jelsoft?
I heard roumers like $700 or more...

Onkel_Tom 07-07-2004 11:23 AM

You can find all needed information about unbranded version in the members area of vbulletin.com
So please visit this site or ask Jelsoft for more details

Boofo 07-07-2004 02:47 PM

Quote:

Originally Posted by Onkel_Tom
You can find all needed information about unbranded version in the members area of vbulletin.com
So please visit this site or ask Jelsoft for more details

It costs $120 (USD) for the branding fee option now for vB3. ;)

kjell 07-09-2004 07:46 AM

Thanks for the info. Got it worked out.
Back to topic then. I like this hack and tried to fix it myself but don't have any experience in image manipulation so I didn't get it to work properly. It's possible to implement the old function in the files and rename them but it's not so convenient I guess.
Is there a chance that the originator will upgrade his board or has anyone else had any succeed with this hack?

Boofo 07-09-2004 08:47 AM

Did anyone ever come up with a way to send the admin an email or pm when a new pic is uploaded? I had 2 users upload pics last week and they could see them so they didn't think they had to be approved. I found them accidentally by checking the options. Can this be done?

FleaBag 07-10-2004 10:26 PM

I get the word 'Array' on a fresh install of this hack and vB 3.03 [when rebuilding thumbnails] and the classic red X in the album.php itself for every photo. Tried everything I can think of to fix it, any input would be appreciated. :)

Steve123 07-14-2004 06:50 AM

Ive installed this hack in vb 3.0.2 and i am also getting the word array..

gd 2+ is installed

any ideas?

buro9 07-14-2004 09:05 AM

* sigh *

OK, These changes remove the word Array and put in the thumbnail data.

In functions_upload.php find the following (created by this hack):
PHP Code:

    $image['update'] = ", thumbnaildata = '"$DB_site->escape_string($thumbnail)."'";
    
$image['insert'] = "'".$DB_site->escape_string($thumbnail)."',"

Replace it with:
PHP Code:

    $image['update'] = ", thumbnaildata = '"$DB_site->escape_string($thumbnail['filedata'])."'";
    
$image['insert'] = "'".$DB_site->escape_string($thumbnail['filedata'])."',"

In albumcp.php, which is the one in the admincp folder, find the following:
PHP Code:

      UPDATE " . TABLE_PREFIX . "customprofilepic
      SET thumbnaildata 
'" . $DB_site->escape_string($thumbnail) . "'
      
WHERE picture_id $image[picture_id

Replace that with:
PHP Code:

      UPDATE " . TABLE_PREFIX . "customprofilepic
      SET thumbnaildata 
'" . $DB_site->escape_string($thumbnail['filedata']) . "'
      
WHERE picture_id $image[picture_id

Finally, you might also want to do find this in that file:
PHP Code:

if ($_REQUEST['do'] == 'rebuildthumbs')


And follow it with this, adjusting the number of seconds to suit your needs:
PHP Code:

  set_time_limit(120); 

That last bit simply allows the rebuild thumbnails thing to run for 120 seconds = 2 minutes... because there's no pagination stuff in that script and it will probably time out if you have a load of users to rebuild thumbs for.

Other things you might want to do whilst your here... take a look at this thread: https://vborg.vbsupport.ru/showthread.php?t=66765
And then execute this piece of SQL if you haven't already:
[sql]
ALTER TABLE `customprofilepic` ADD INDEX ( `userid` )
[/sql]

Obviously prepending any TABLE_PREFIX that you use, if indeed you use one.

Any more bugs with this? Probably, so let's resolve them eh? Just report them and there's nothing stopping you lot looking around and trying to figure it out too ;)

Steve123 07-14-2004 09:28 AM

i was in the process of triyng to find out why it was doing the array..

then i got a reply to this thread :)..

it works thanks :)

Malfunktion 07-14-2004 02:46 PM

mine still displays the array :(

buro9 07-14-2004 03:15 PM

Quote:

Originally Posted by Malfunktion
mine still displays the array :(

And you have rebuilt the thumbnails, yes?

Malfunktion 07-14-2004 03:28 PM

correct

kjell 07-15-2004 06:10 AM

It works again :)
Thanks for having a look at this buro9

Alien 07-15-2004 06:13 AM

Fresh install. This definatly needs work. ;)

In the admincp (and album.php), everything is red x'd no matter how much counters i update everywhere.. Attempted fixes above, still same problem.. <sigh>

buro9 07-15-2004 06:29 AM

Quote:

Originally Posted by Alien
Fresh install, same problem as Malfunktion. This definatly needs work.

In the admincp (and album.php), everything is red x'd no matter how much counters i update everywhere.. Attempted fixes above, still same problem.. <sigh>

Update Counters?

The Rebuild Thumbnails function for the Album can be found in http://www.example.com/forums/admincp/albumcp.php

If you've installed the hack fully, that would be:
Admin CP > Member Album > Verify Pictures > Rebuild Thumbnails.

The one in Update Counters do posts and attachments... not profile pics :)

Can you confirm this is what you are running :)

Alien 07-15-2004 06:39 AM

Quote:

Originally Posted by buro9
Update Counters?

The Rebuild Thumbnails function for the Album can be found in http://www.example.com/forums/admincp/albumcp.php

If you've installed the hack fully, that would be:
Admin CP > Member Album > Verify Pictures > Rebuild Thumbnails.

The one in Update Counters do posts and attachments... not profile pics :)

Can you confirm this is what you are running :)

Sorry for the lack of clarity, it's very late... lol

Yes, I've run Member Album > Verify Pictures > Rebuild Thumbnails. It goes through them (I have about 100 currently) but if you right click on any of them and open it's a red X, as well as all listings in the album.php...

buro9 07-15-2004 06:50 AM

Quote:

Originally Posted by Alien
Sorry for the lack of clarity, it's very late... lol

Yes, I've run Member Album > Verify Pictures > Rebuild Thumbnails. It goes through them (I have about 100 currently) but if you right click on any of them and open it's a red X, as well as all listings in the album.php...

Cool :)

One more silly request then, could you CTRL + F5 that page to ensure that it's not a browser cache thing... even Firefox still cached the bad results when I finally fixed mine.

If not... then I shall see what else this could be, which might involve you looking for things in your code :)

Alien 07-15-2004 07:31 AM

Quote:

Originally Posted by buro9
Cool :)

One more silly request then, could you CTRL + F5 that page to ensure that it's not a browser cache thing... even Firefox still cached the bad results when I finally fixed mine.

If not... then I shall see what else this could be, which might involve you looking for things in your code :)

Negative, I've cleared cache and restarted browsers.. Nothing.. Even installed latest Firefox again since I hadn't gotten the last version and figured I would test not just on IE.. Nothing! It just won't bring up an image using that pthumb stuff.. :(

Malfunktion 07-15-2004 12:19 PM

I'm on his boat, I had performed all mentioned tasks but to no avail

redlabour 07-15-2004 04:15 PM

What did i have to do if i update to 3.0.3 ??

FleaBag 07-15-2004 05:48 PM

I applied the changes - I no longer get the word array but I now get the red X's too.

www.dragonninja.com/forums/album.php

In both the album itself and in the CP - all counters updated. Thanks for your help buro9.

MissKalunji 07-16-2004 03:36 AM

Quote:

Originally Posted by Velocd
http://www.animesystem.com/temp/logo_vma.gif

In vBulletin 3 there is an option for members to upload a profile picture. This hack provides more incentive for members to upload their picture, as it integrates a gallery to browse them all. :up:

In addition to browsing profile pictures, there is an option for viewing signatures. This comes in handy, for you don't have to browse through each individual member. Also, a "edit signature" link is provided for moderators, for fast access to editing signatures that aren't in accordance with your rules.

Other Features
  • Require pictures to be approved in order to be visible. You can exempt specified usergroups from this.
  • Thumbnails are generated for profile pictures. You must have GD installed and enabled via the AdminCP options page.
  • For more insight, refer to the attached screenshots, or install it!

Upgrade to 2.0
  • Redo steps 7-8, 11-12, 19-20, 26, 27, and 34
  • Revert the template "modifyprofilepic", and do steps 29-32
  • Run the following queries:
    [sql]
    ALTER TABLE `customprofilepic` ADD disapproved smallint(5) not null default'0';
    ALTER TABLE `customprofilepic` ADD reason varchar(100) not null;
    [/sql]

Notes
  • This hack does not support uploading multiple images per account.
  • Profile thumbnail sizes are defined by the attachment thumbnail sizes. So modify the attachment thumbnail sizes in your AdminCP options page if you wish to change the profile picture thumbnail sizes. Be sure to run "re-generate thumbnails" via the vB3 Member Album -> Approve Images" page.
  • Profile picture sizes (not thumbnails) are defined for each usergroup. Modify a usergroup via AdminCP to change the dimensions members under that group are allowed to have for profile pictures.

3rd Party Add-ons
  • Pseudomizer has posted a migration script that will transfer your files from my old vB2 Member Photo to the correct tables in this vB3 hack. Click here to view.
  • Pseudomizer also posted a portal-integration allowing you to display a random profile picture on your portal.
    Click here to view.
  • Thanks to those who posted add-ons!

Galleries in Action
If you have this hack installed on your forum, and could provide me a demo, please PM a link so I can post it in this thread. ;)


Great Hack I've installed it :squareeyed: all i need to find out is where to accept gd in the admincp

www.dancehallareaz.com/forum/album.php

MissKalunji 07-16-2004 04:16 AM

Quote:

Originally Posted by buro9
* sigh *

OK, These changes remove the word Array and put in the thumbnail data.

In functions_upload.php find the following (created by this hack):
PHP Code:

    $image['update'] = ", thumbnaildata = '"$DB_site->escape_string($thumbnail)."'";
    
$image['insert'] = "'".$DB_site->escape_string($thumbnail)."',"

Replace it with:
PHP Code:

    $image['update'] = ", thumbnaildata = '"$DB_site->escape_string($thumbnail['filedata'])."'";
    
$image['insert'] = "'".$DB_site->escape_string($thumbnail['filedata'])."',"

In albumcp.php, which is the one in the admincp folder, find the following:
PHP Code:

      UPDATE " . TABLE_PREFIX . "customprofilepic
      SET thumbnaildata 
'" . $DB_site->escape_string($thumbnail) . "'
      
WHERE picture_id $image[picture_id

Replace that with:
PHP Code:

      UPDATE " . TABLE_PREFIX . "customprofilepic
      SET thumbnaildata 
'" . $DB_site->escape_string($thumbnail['filedata']) . "'
      
WHERE picture_id $image[picture_id

Finally, you might also want to do find this in that file:
PHP Code:

if ($_REQUEST['do'] == 'rebuildthumbs')


And follow it with this, adjusting the number of seconds to suit your needs:
PHP Code:

  set_time_limit(120); 

That last bit simply allows the rebuild thumbnails thing to run for 120 seconds = 2 minutes... because there's no pagination stuff in that script and it will probably time out if you have a load of users to rebuild thumbs for.

Other things you might want to do whilst your here... take a look at this thread: https://vborg.vbsupport.ru/showthread.php?t=66765
And then execute this piece of SQL if you haven't already:
[sql]
ALTER TABLE `customprofilepic` ADD INDEX ( `userid` )
[/sql]

Obviously prepending any TABLE_PREFIX that you use, if indeed you use one.

Any more bugs with this? Probably, so let's resolve them eh? Just report them and there's nothing stopping you lot looking around and trying to figure it out too ;)

i did everything there :-( and i still see the red x n e idea what to do?

kira 07-17-2004 05:27 AM

Installed here on my vb 3.03, and I'm getting the strange sig dating (1969) and the broken thumbnails just as the rest are. I only have one profile pic in there (mine) since this is a test forum, and while the picture shows up in my profile, the thumbnail is broken in the gallery and the admincp. And before you ask, yes, I have GD enabled, and yes, I rebuilt the thumbs in the member gallery option area of the admincp. :)

Anyone have ideas? Hellloooooo? Don't get me wrong, this is a great idea for a hack, but 3.03 seems to be making it cry.

If this can't be fixed, how do I uninstall this? I don't mean reverting the files and templates, that's the easy part; how can I "undo" the queries and the changes they wrought onto my database?

kira 07-17-2004 04:00 PM

I just noticed that the last time Velocd posted in this thread was May 24. As a mod I know he's busy and all, but he did agree to support this hack, didn't he? (Glances up at the thread title) Yep, he did. :) So since he is a moderator, can Velocd the Moderator put some pressure on Velocd the hack author to figure out what's going on with the thumbnail issue, pleeeeeeeeeeease? Thanks! :D

Delirion 07-19-2004 08:18 AM

I've installed it, and after some tweaking of the database queries, I got it to run.

I rebuild the thumbnails, saved the settings. I've set it that pics don't need to be approved.

But when I in my Admin account and another regular users account look at the Profile Pictures Members Album, I get two images (of 14) - the ones which uploaded since installing the hack. The others just show up as blank. Nothing there, no red x's or words or anything.

And yet some of my other regular users can see 14 images in there.

Velocd 07-26-2004 05:10 PM

Sorry about not updating this hack (and others), as I've been concentrating lately on the Article Bot I've released, but moreover my actual job has consumed 95% of my time for coding.

I'll read through this thread (which is a lot!) and post a complete update soon. (aiming for this weekend)

MissKalunji 07-26-2004 05:11 PM

Quote:

Originally Posted by Velocd
Sorry about not updating this hack (and others), as I've been concentrating lately on the Article Bot I've released, but moreover my actual job has consumed 95% of my time for coding.

I'll read through this thread (which is a lot!) and post a complete update soon. (aiming for this weekend)


Hurray :nervous:

SnowBot 07-29-2004 12:50 AM

I am having problems with only some pics showing up. If you click on the red X it still takes you to there profile and the pic is clear on that, any ideas?

P.S. The bottom left pic is my wife :) :)

tHe Rk 07-29-2004 01:12 AM

Quote:

Originally Posted by Velocd
Sorry about not updating this hack (and others), as I've been concentrating lately on the Article Bot I've released, but moreover my actual job has consumed 95% of my time for coding.

I'll read through this thread (which is a lot!) and post a complete update soon. (aiming for this weekend)

I'll be waiting for it.

The problems I am currently have are these: (Running 3.0.1)

I have red X's showing up on the Album page and on the admin cp approval page. When I try to rebuild album thumbs, it goes to a screen listing all the thumbs, but just sits there, and says this:

Quote:

Processing: profile picture : [1]
Processing: profile picture : [2]
Processing: profile picture : [3]
Processing: profile picture : [4]
Processing: profile picture : [5]
Processing: profile picture : [6]
Processing: profile picture : [7]
Processing: profile picture : [8]
Processing: profile picture : [9]

vBulletin v3.0.1, Copyright ?2000-2004, Jelsoft Enterprises Ltd.
Also on the sigs display page is says every sig was last edited on: 12-31-1969, 06:00 PM

Thanks, and hopefully it will be an easy fix;)

Yelper 07-29-2004 03:45 AM

I'm extremely confused. I've done everything correctly (or so I think, redone each step twice [copied original vbulletin 3.0.3 files over and re-configured them]), but in my album page, it shows avatars instead of profile pictures.

Check here for album. So far, aside from this, seems like everything's going smoothly! :)

Christine 07-31-2004 12:35 PM

I am having the same issues.

Tried buro9's fix, but that didn't work -- none of the images showed up after a rebuild.

Tried a few things, and two seemed to get close, but still not working:

Switched $thumbnail['filedata'] to $thumbnail['profilepicdata'] and that worked great calling the image from the profilepicdata field, but obviously the images were not thumbnailed. Option here would be to not thumbnail, but to set image limits.

Then tried going back to $thumbnail['filedata'] in conjuntion with commenting out the if (!$vboptions['attachfile']) statement in the fetch_thumbnail_from_image function. That worked GREAT for the profile pics (and thumbnailing) but throws SQL errors for attachments.

I will watch for updates, but for now, I think I am just going to take all of the related functions and image files and copy them to the old 3.0 function way specific to the album (which also makes for one less thing to worry on for upgrades).

:)

SnowBot 07-31-2004 01:38 PM

Quote:

Originally Posted by buro9
Other things you might want to do whilst your here... take a look at this thread: https://vborg.vbsupport.ru/showthread.php?t=66765
And then execute this piece of SQL if you haven't already:
[sql]
ALTER TABLE `customprofilepic` ADD INDEX ( `userid` )
[/sql]

Obviously prepending any TABLE_PREFIX that you use, if indeed you use one.

Any more bugs with this? Probably, so let's resolve them eh? Just report them and there's nothing stopping you lot looking around and trying to figure it out too ;)

Well i ran that query after making the code changes and now none of the pics show at all :( How do i undo these changes ?

Pseudomizer 08-01-2004 01:37 AM

Hello @LL,

after having seen that a lot of people have requested this function, and i also needed it, i decided to code it on my own. What is urgently needed for this hack ( despite of the thumbnail problems which are due to vb3.0.3 upgrade ) ? An email function for unapproved images!!!

I received a lot of complaints of my members that their uploaded pics were not visible. But as usual they did not read any thread or any hint on the page. They even do not read the message "This picture hasn't been verified yet". We did not check the ACP every day and due to this i coded this small add-on. I hope you will enjoy it and you will find it useful.

Here is a small installation instruction:

- open the vma_hourly_english.php file and edit the 2 email addresses. One for the sender address and one for the recipient address
- Copy the vma_hourly_english.php file into /forum/includes/cron folder.
- Open your ACP and create a cron job and define in which interval you want to receive emails and you place the link to the new uploaded file in the script field.

That's it !!!

I set it up to hourly reporting but you can set it to daily or weekly. It is up to you. You define the time period via your ACP. The file has nothing to do with the timing and the file name is given by me. You can change it to whatever you want if you wish.

P.S: It only sends an email when you have unapproved images. It does NOT send an email if you have no unapproved images and it also does NOT send an email for disapproved pictures.

That's all. Now enjoy !!!

Cheers,

SnowBot 08-01-2004 12:27 PM

Quote:

Originally Posted by Pseudomizer
Hello @LL,

after having seen that a lot of people have requested this function, and i also needed it, i decided to code it on my own. What is urgently needed for this hack ( despite of the thumbnail problems which are due to vb3.0.3 upgrade ) ? An email function for unapproved images!!!

Wanna share how you got it working with 3.0.3 ? :) pretty please..lol

tHe Rk 08-01-2004 02:27 PM

All of the sudden, my thumbnails are working and showing up on the album page. Also the sig dates fixes itself once the user edits sig for the first time after the hack is installed. However I still can't "Rebuild Profile Picture Thumbnails" in admincp. Hack creator, could we get some support please:)

Pseudomizer 08-01-2004 04:41 PM

Quote:

Originally Posted by SnowBot
Wanna share how you got it working with 3.0.3 ? :) pretty please..lol

Very easy. I am still on 3.0.1 and it works, but i was missing this email part.

Cheers,


All times are GMT. The time now is 11:42 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.01965 seconds
  • Memory Usage 1,890KB
  • 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
  • (12)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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