vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Social Group and Album Enhancements - All Albums (https://vborg.vbsupport.ru/showthread.php?t=172215)

TrIn@dOr 07-03-2008 02:44 PM

Perhaps "$vbphrase[pictures]" is not defined in phrases section?

Thanks in advance.

ProtoPC 07-03-2008 07:31 PM

Quote:

Originally Posted by TrIn@dOr (Post 1565868)
Perhaps "$vbphrase[pictures]" is not defined in phrases section?

Thanks in advance.

Not sure if this reply was for me...but my Pictures phrase variable and definition is listed in Phrases.

I would love it to have emtpy albums to not show...somehow.

Here is a link to it.

CPB123 07-03-2008 08:26 PM

Quote:

Originally Posted by ProtoPC (Post 1562706)
Where exactly in the two Select statements?...I added it at the end on both and got an error, ie:

$albumcount = $db->query_first("
SELECT COUNT(*) AS total
FROM " . TABLE_PREFIX . "album
WHERE state IN ('" . implode("', '", $state) . "')
AND album.visible > 0
");

I don't think you add that line to the end of the second SELECT statement (you do the first however, and it seems you have correctly done it based on your posted example) - here's how I did mine, on the first SELECT statement I did it just like yours, on the next one I added it right after the WHERE line and before the ORDER line as this made the most sense to me and lo and behold it worked on the first try. See if this helps:

SELECT album.*,
picture.pictureid, picture.extension, picture.idhash,
picture.thumbnail_dateline, picture.thumbnail_width, picture.thumbnail_height,
user.*
FROM " . TABLE_PREFIX . "album AS album
LEFT JOIN " . TABLE_PREFIX . "picture AS picture ON (album.coverpictureid = picture.pictureid AND picture.thumbnail_filesize > 0)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (album.userid = user.userid)
WHERE album.state IN ('" . implode("', '", $state) . "')
AND album.visible > 0
ORDER BY $sortname $sortorder
LIMIT $start, $perpage
");

ProtoPC 07-04-2008 12:31 AM

I still get the error:

MySQL Error : Unknown column 'album.visible' in 'where clause'

CPB123 07-04-2008 12:54 AM

Is that the same error you had before? I'm using this mod on 3.7.2 and the album.visible hack worked just fine, its just another condition thrown into the query. Are you able to access your forum database and see if there is a column called 'visible' in your table named 'album'?

ProtoPC 07-04-2008 06:05 AM

in table vb_album there is a column named visible.

All Columns:
albumid userid createdate lastpicturedate visible moderation title description state coverpictureid

Error Message emailed to me:

Invalid SQL:

SELECT COUNT(*) AS total
FROM vb_album
WHERE state IN ('public', 'private', 'profile')
AND album.visible > 0;

MySQL Error : Unknown column 'album.visible' in 'where clause'
Error Number : 1054

--------------------Added to---------------

$albumcount = $db->query_first("
SELECT COUNT(*) AS total
FROM " . TABLE_PREFIX . "album
WHERE state IN ('" . implode("', '", $state) . "')
AND album.visible > 0
");

------------And--------------

$albums = $db->query_read("
SELECT album.*,
picture.pictureid, picture.extension, picture.idhash,
picture.thumbnail_dateline, picture.thumbnail_width, picture.thumbnail_height,
user.*
FROM " . TABLE_PREFIX . "album AS album
LEFT JOIN " . TABLE_PREFIX . "picture AS picture ON (album.coverpictureid = picture.pictureid AND picture.thumbnail_filesize > 0)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (album.userid = user.userid)
WHERE album.state IN ('" . implode("', '", $state) . "')
AND album.visible > 0
ORDER BY $sortname $sortorder
LIMIT $start, $perpage
");

CPB123 07-04-2008 10:48 AM

Okay I think you're getting closer - since you have a table prefix of vb_ try this

$albumcount = $db->query_first("
SELECT COUNT(*) AS total
FROM " . TABLE_PREFIX . "album
WHERE state IN ('" . implode("', '", $state) . "')
AND vb_album.visible > 0
");

but leave the second SELECT statement as album.visible don't change that one to vb_album.visible and see what happens

ProtoPC 07-04-2008 05:16 PM

Quote:

Originally Posted by CPB123 (Post 1566625)
Okay I think you're getting closer - since you have a table prefix of vb_ try this

$albumcount = $db->query_first("
SELECT COUNT(*) AS total
FROM " . TABLE_PREFIX . "album
WHERE state IN ('" . implode("', '", $state) . "')
AND vb_album.visible > 0
");

but leave the second SELECT statement as album.visible don't change that one to vb_album.visible and see what happens

Thank you! That fixed it.

CPB123 07-05-2008 12:32 AM

woohoo! glad to help, ProtoPC. :)

Smiry Kin's 07-05-2008 06:26 PM

One of the most usful addons, altho this should have been default with vbulletin, go copyright it and make them pay you to use it. :)

Rideharder 07-10-2008 04:22 AM

sweet

Emmmmrz 07-10-2008 09:37 AM

I was thinking about asking for this feature; when low and behold; here it is!

Thanks so much!

OsideRida06 07-11-2008 02:18 AM

Thanks, installed on another forum!

PoetJA-1975 07-12-2008 02:31 PM

Thanx.

Jacquii.

trilogy33 07-14-2008 02:08 PM

I would like to list all albums without the page break "Page 1 of 2" etc.
Can this be modified to fit down one page please?

TIA

EDIT: Bah!! Ignore me, found it in Options!!
Schoolboy error.

myrhoto 07-14-2008 04:01 PM

I think recent picture comments should be next!

Shazz 07-14-2008 04:02 PM

Will be installing... This looks nice that should be a default option :p

7lanet 07-14-2008 07:56 PM

Please add search feature for the Album

Cigarcritic 07-14-2008 11:12 PM

Installed but I can't get the link to show on my Navbar. Nothing in the navbar template either other than a reference to Quicklinks. Any help would be appreciated. I'm running the default template.

I can excess from Quick Links.

BeerLuver 07-16-2008 02:21 PM

Installed, works great. One odd issue though; when using this with the link to it via Quick Links... on my vbAdvanced CMS homepage, it doesn't link properly to it. It is missing the /forums/ part of the url. And yes, I added all_albums.php to the Navbar Replacements field under the vBAdvanced Global Options section of the CMS's options. That should have done the trick but it didn't. My only guess is the file name containing an underscore _ in it maybe?

Just thought I'd mention this lil minor issue if you'd like to look into it then and possibly provide a resolution or alternative fix to it in the next update or something :). Great mod though so far... thanks for all the hard work put into it.

Digital Jedi 07-21-2008 12:04 PM

Quote:

Originally Posted by Cigarcritic (Post 1575489)
Installed but I can't get the link to show on my Navbar. Nothing in the navbar template either other than a reference to Quicklinks. Any help would be appreciated. I'm running the default template.

I can excess from Quick Links.

It only adds the link to your Quick Links menu.


Quote:

Originally Posted by BeerLuver (Post 1576852)
Installed, works great. One odd issue though; when using this with the link to it via Quick Links... on my vbAdvanced CMS homepage, it doesn't link properly to it. It is missing the /forums/ part of the url. And yes, I added all_albums.php to the Navbar Replacements field under the vBAdvanced Global Options section of the CMS's options. That should have done the trick but it didn't. My only guess is the file name containing an underscore _ in it maybe?

Just thought I'd mention this lil minor issue if you'd like to look into it then and possibly provide a resolution or alternative fix to it in the next update or something :). Great mod though so far... thanks for all the hard work put into it.

For your homepage, I thought you had to make the edit manually in the navbar template and add /forums/ to the link.

Cigarcritic 07-21-2008 06:11 PM

Quote:

Originally Posted by Digital Jedi (Post 1580538)
It only adds the link to your Quick Links menu.

Looking at the image provided, it shows a link on the toolbar.

https://vborg.vbsupport.ru/attachmen...1&d=1205636277

Digital Jedi 07-21-2008 06:25 PM

The auto-template edit only does the Quick Link edit from what I remember from install.

SSJB_7 07-21-2008 08:41 PM

thanks very nice

baktabul 07-21-2008 11:55 PM

Thank you very much, nice work

robertpro2a 07-23-2008 07:15 PM

Is it me or is everytime that page loads, the user gets logged out? But when I navigate away from it, it says "Welcome, Robert" again...?

robertpro2a 07-23-2008 10:53 PM

I'm stressin' out. Been searching threw the code all day..can't figure out why it's not recognizing the logged in user...?

CPB123 07-23-2008 11:28 PM

robertpro2a: I'm going to ask the obvious.. have you tried clearing cookies, using different browsers (firefox, ie 6, ie 7) using different computers (home, work, school) to see if the behavior is reproduced across all platforms? It seems to be working fine for me.

robertpro2a 07-24-2008 01:40 AM

Yeah, I have. Maybe it's an install issue...is it smart to install the entire Vbulletin package on the same server but a different sub directory...that way I can test it to see if it works? Because if it does, it may just mean that I have corrupt files on the other sub directory.

Fred. 07-24-2008 08:18 PM

Is it possible to hide empty albums for users?
So only the creator can see his emty album.

JVSP 07-27-2008 05:21 PM

Getting this message when trying to delete a picture

Quote:

Invalid Picture specified. If you followed a valid link, please notify the Administrator
The picture deletes but we get the above error.

CPB123 07-27-2008 09:44 PM

Quote:

Originally Posted by robertpro2a (Post 1582769)
Yeah, I have. Maybe it's an install issue...is it smart to install the entire Vbulletin package on the same server but a different sub directory...that way I can test it to see if it works? Because if it does, it may just mean that I have corrupt files on the other sub directory.

Yes according to VB license you can install a development version of your forum under the subdirectory "testvb" but it must be password protected (.htaccess) so only you can get to it.

tgroba 07-27-2008 10:59 PM

How can I get the pictures to show up in the posts?
When I use the pic code inside a post, the picture only shows for users who are logged in. I want the pictures to show for visitors who are not logged in even when I set the album folder to public (not private. What am I doing wrong? How can I do this?

Thanks

marcossalazar 07-29-2008 09:12 PM

Quote:

Originally Posted by fxlr8 (Post 1585363)
Getting this message when trying to delete a picture



The picture deletes but we get the above error.

I am getting this same error, but have not used this mod...i used a VB mod and the Last Picture on Forumhome mod....something is getting messed up with these mods and other people may not know becayse they are not deleting pics. Did you find a solution?

obiefan 07-29-2008 09:51 PM

I have set the usergroup unregistered/not logged in to" can view albums", and they get the "you are not logged in" page. is there a reason for this? Plus I'd rather not have to make member info publically viewable, only the album.

THANKS, OUTSTANDING MOD!

LanciaStratos 07-29-2008 10:22 PM

Quote:

Originally Posted by obiefan (Post 1586988)
I have set the usergroup unregistered/not logged in to" can view albums", and they get the "you are not logged in" page. is there a reason for this? Plus I'd rather not have to make member info publically viewable, only the album.

THANKS, OUTSTANDING MOD!

I changed this setting for that user group as you described, and they were able to view the all_albums.php page and each of the galleries.

marc2005 07-30-2008 02:41 AM

Quote:

Version 2.3 (05/05/08):
Changed definition of THIS_SCRIPT to all_albums
Link in navbar is now phrase along with a template.
all_albums phrase switched to global phrase
Added all albums link to navbits when on an album page.
Added who's online location.
Added sort
New option: Default Sortfield
New option: Default Sortorder
Added link to quick links.
New option: Show Navbar Link
New Option: Show Quick-Links Link
New Option: Show Link in Navbits of Albums
can someone tell me what's the use of this "Show Link in Navbits of Albums" option? I've tried on and off, see no difference.

Abe1 07-30-2008 10:50 AM

Quote:

Originally Posted by marc2005 (Post 1587134)
can someone tell me what's the use of this "Show Link in Navbits of Albums" option? I've tried on and off, see no difference.

Look at a regular album page.

ArnyVee 07-30-2008 12:13 PM

Anyone know how to get the Albums feature in vBulletin to go to 'slideshow' mode like most picture sharing programs out there?

obiefan 07-30-2008 01:29 PM

I think I have the problem solved.

Thanks!

Quote:

Originally Posted by LanciaStratos (Post 1587014)
I changed this setting for that user group as you described, and they were able to view the all_albums.php page and each of the galleries.



All times are GMT. The time now is 04:08 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.01799 seconds
  • Memory Usage 1,830KB
  • 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
  • (13)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