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)

Christine 04-13-2004 12:50 AM

What if the images are smaller than the 175x175 thumbnail I am setting -- would that cause it to cough?

Here is a sample of the first images:
137x191
175x173
134x165
175x170
168x154
172x175

Most are within these dimensions as I had them all sized for an html gallery that we had been using.

Velocd 04-13-2004 01:23 AM

That is odd, if it worked the first time through with 100x100.

Try 200x200, maybe that works (just for testing). Are the images up to #7 actually being resized properly? There might be something up with those #7-#11 images, like you mentioned.

I'll look into why it might be doing this.

Pseudomizer 04-13-2004 01:31 AM

Hello,

i need a little bit of help please. I just installed this hack on vb3.0.0 and did all the modifications, uploads and database queries. All without any errors.

In the AdminCP i have now the options and i can set them BUT:

- where is the link to this new gallery ? Is this not in the modifications ? Do i have to manually edit my navbar to add the link to album.php ?
- when i go to my control panel ( normal user ) and i try to upload a file larger then 100x100 it rejects it. How do i set the size for the pictures ? I searched through all admin settings, but i did not find it.

Please help me.

Thanks in advance.

Cheers,

Pseudomiizer

Boofo 04-13-2004 02:16 AM

What is a good size to allow for profile pics?

Christine 04-13-2004 02:50 AM

Bob,

I have all of mine set to the approx. dimensions above for displaying in rows of 3 for 800x600 resolution.

Velocd,

I will try 200x200.

Tonight, I took a datadump of the customprofilepic table and uploaded it to my test server, deleted the thumbnaildata field all together, and then readded the field under profilepicdata.

I then reset thumbnails to 175 and attempted to resize, and it locked up here:

albumcp.php?do=rebuildthumbs&startat=21&perpage=20

With the thumbnaildata field cleared, it ran through the first 20 pics just fine, but then kept cycling back through startat=21&perpage=20.

I opened another browser program and set the URL for startat=41&perpage=20 to see if I could maybe skip over any problem pics, but it wouldn't take that -- it just refreshed itself to 21 & 20 and kept cycling though those over and over again.

All of the photos are .jpg format, and all original sizes are as mentioned.

If I add a new photo with the 175 limit, it also works fine - it is just trying to change them once they have been added and the limit is changed after that time.

This has me baffled.

Christine 04-13-2004 02:58 AM

Quote:

Originally Posted by Pseudomizer
- where is the link to this new gallery ? Is this not in the modifications ? Do i have to manually edit my navbar to add the link to album.php ?

Yes, so that you can customize it to your forums. Here is the code I used -- but I am restricting the album to members only. If you don't want to restrict that, take out the conditional.
PHP Code:

Add phrase
   
   Global
   
album
   Album
   
   In Navbar
find:
   
 <
td class="vbmenu_control"><a href="memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>
   
   
Below it add:
   
   <if 
condition="$show['member']">
     <
td class="vbmenu_control"><a href="album.php?$session[sessionurl]">$vbphrase[album]</a></td>
   </if> 

Quote:

- when i go to my control panel ( normal user ) and i try to upload a file larger then 100x100 it rejects it. How do i set the size for the pictures ? I searched through all admin settings, but i did not find it.
This is tied into the Attachment thumbnail setting.

That is in Options > Message Attachment Options > Thumbnail Size

:)

Christine 04-13-2004 03:00 AM

Speaking of permissions, if anyone is interested in tying the permissions on the album to the memberlist security field, just add this to album.php:
PHP Code:

Find:

$perpage $vboptions['album_perpage'];
$pertr   $vboptions['album_pertr'];

Under itadd:

// permissions check
if (!($permissions['forumpermissions'] & CANVIEW) OR !($permissions['genericpermissions'] & CANVIEWMEMBERS))
{
    
print_no_permission();


:)

Boofo 04-13-2004 03:29 AM

Quote:

Originally Posted by Christine
Bob,

I have all of mine set to the approx. dimensions above for displaying in rows of 3 for 800x600 resolution.

I have my thumbnails set at 150 width right now. But what is a good size to allow the propfilepic so it isn't too small but not too large for the profile itself? There it will show full size.

calvinnguyen 04-13-2004 04:56 AM

Quote:

Originally Posted by Velocd
vB3 Member Photo -> Options is what I meant.

Is the images per page value set?

Try editing your album.php, and under where it says:

PHP Code:

$perpage $vboptions['album_perpage']; 

Place:

PHP Code:

echo $perpage

And see if there is any output.

Still the same problem
Warning: Division by zero in /home/vietmyen/public_html/album.php on line 151

Warning: Division by zero in /home/vietmyen/public_html/includes/functions.php on line 1707



There seems to have been a slight problem with the Vietmyen Net database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.0.0:

Invalid SQL:
SELECT user.userid, dateline,
comment, user.username, user.usertitle,
user.joindate, user.usergroupid
FROM customprofilepic
LEFT JOIN user USING (userid)
WHERE visible=1

ORDER BY posts desc
LIMIT 0,

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9

mysql error number: 1064

Date: Monday 12th of April 2004 10:55:27 PM

Pseudomizer 04-13-2004 07:51 AM

Hello Christine,

thanks for all your answers. Point 1: This is fine. Now i will add a link to my menu, but after reading your second answer with the permissions how about addind this to the memberlist as a pop-up like the search button ? This would make more sense if you already are tying it to memberlist.

Point2: I tried to set it to 200 and rebuild the attachment update counters and i tried to set it to 500 and updated the attachment counters. It is STILL 100x100. Something is going wrong here. Any idea why ?

Cheers,

Pseudomizer


All times are GMT. The time now is 06:32 AM.

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.02936 seconds
  • Memory Usage 1,761KB
  • 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
  • (4)bbcode_php_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