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)

Vivi Ornitier 04-11-2004 04:21 PM

hmmm . . . i was hopin this would be like the vb2 hack where it would thumbnail the picture to be put on the photo album page but then if u click on the thumbnailed picture, it would become the original large size.

Boofo 04-11-2004 04:29 PM

Quote:

Originally Posted by mudxx
Installed it, works great :)

Btw, Boofo, be sure you have jpeg support enabled in GD...

It's most likely you've got something wrong with GD... ran into that problem myself.

Yes, it's enabled and running fine. ;)

Boofo 04-11-2004 04:39 PM

Ok, it works now. Whatever you did in the new update, Mike, it seems to have fixed it. Thank you for a great hack, buddy! ;)

Vivi Ornitier 04-11-2004 04:54 PM

hmmm .. . disregard what i said. This hack uses the profile pic as the basis for the photo album. I remember the last version created a whole new feature where you uploaded the picture so in the photo album, you could click on the thumbnil and it would show the original unthumbnaield version.

However, I'm sure you could do what i asked for in my previous post but it would show in the case that the picture the user uploaded was really large, it would show that picture instead of a thumbnailed version in the member's profile.

Mehh . ..oh well, it all works lol, great hack

Velocd 04-11-2004 05:17 PM

Quote:

I got this error below: Can anyone help me out with this error?

Warning: Division by zero in /home/vietmyen/public_html/album.php on line 149

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 VietSuperModel 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=0

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
Did you run the MySQL queries?

It's giving a division by zero because the $perpage variable is empty. You should have this field set in AdminCP -> vB3 Member Photo -> Settings.

Also..

Code:

FROM customprofilepic
LEFT JOIN user USING (userid)
WHERE visible=0

In my code, it is not visible=0 but visible=1. It would be good to change that.

Velocd 04-11-2004 05:22 PM

Also note, I usually release my hacks in full featured status.

Meaning, I don't plan to add-on any enhancements. This hack is a simple gallery system for current vB3 profile pictures and signatures. I wont be adding multiple image support, a commenting system, etc.

If you would like to do so, feel free.

calvinnguyen 04-11-2004 08:01 PM

Quote:

Originally Posted by Velocd
Did you run the MySQL queries?

It's giving a division by zero because the $perpage variable is empty. You should have this field set in AdminCP -> vB3 Member Photo -> Settings.

Also..

Code:

FROM customprofilepic
LEFT JOIN user USING (userid)
WHERE visible=0

In my code, it is not visible=0 but visible=1. It would be good to change that.

yes, visible is 1

yes, I did run individual each line query for a time. And completed run to all.

I didn't see any opotion like you said:AdminCP -> vB3 Member Photo -> Settings.

I only see : AdminCP -> vB3 Member Photo

under vB3 Member Photo have:
options
approve images

Velocd 04-11-2004 08:05 PM

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.

Christine 04-11-2004 08:22 PM

Working like a champ on the first install. :D

I can't thank you enough for this. You wrote this WAY more thorough then I would have been capable of doing in just slapping something together. Saved me a MOUNTAIN of time and aggrivation.

:)

Edit to add -- I just changed my favorite hack to this one.

Velocd 04-12-2004 12:45 AM

Heh, I'm glad I could help such a large way. ;)

This was probably the quickest hack I've coded, since Mudxx requested it on Wednesday or Tuesday. :p


All times are GMT. The time now is 10:16 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.01315 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_php_printable
  • (3)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